0% found this document useful (0 votes)
3 views

lecture2 computer archers notes

The document covers the fundamentals of digital image processing, focusing on image acquisition, sampling, and quantization. It explains the relationship between intensity, illumination, and reflectance, as well as the structure of digital images as 2D arrays. Additionally, it discusses various digital camera technologies, scanning schemes, and pixel connectivity concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

lecture2 computer archers notes

The document covers the fundamentals of digital image processing, focusing on image acquisition, sampling, and quantization. It explains the relationship between intensity, illumination, and reflectance, as well as the structure of digital images as 2D arrays. Additionally, it discusses various digital camera technologies, scanning schemes, and pixel connectivity concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Digital Image Processing CPE3643

Lecture 2:
Digital Image Fundamentals and
Image Acquisition

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 1

Image Acquisition

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 2

1
Image description

f (x,y): intensity/brightness of the image at spatial coordinates (x,y)

0< f (x,y)<∞ and determined by 2 factors:


illumination component i(x,y): amount of source light incident
reflectance component r(x,y): amount of light reflected by objects

f (x,y) = i(x,y) r(x,y)


where
0< i(x,y)<∞: determined by the light source
0< r(x,y)<1: determined by the characteristics of objects

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 3

Sampling and Quantization


quantization

sampling sampling
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 4

2
Sampling and Quantization
Sampling: Digitization of the spatial coordinates (x,y)
Quantization: Digitization in amplitude (also called gray-
level quantization)

8 bit quantization: 28 = 256 gray levels (0: black, 255: white)


Binary (1 bit quantization): 2 gray levels (0: black, 1: white)

Commonly used number of samples (resolution)


Digital still cameras: 640x480, 1024x1024, 4064 x 2704 so on
Digital video cameras: 640x480 at 30 frames/second
1920x1080 at 60 f/s (HDTV)

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 5

Sampling and Quantization

An M x N digital image is expressed as


Columns
 f (0,0) f (0,1) . . . f (0, N − 1) 
 f (1,0) f (1,1) . . . f (1, N − 1) 
Rows


 . . . . . . 
 
 . . . . . . 
 . . . . . . 
 
 f ( M − 1,0) f ( M − 1,1) . . . f ( M − 1, N − 1)

N : No of Columns
M : No of Rows

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 6

3
Digital Image
a f(x, y)

bc
FIGURE 2.18
a. Image plotted as a
surface.
b. Image displayed
as a visual y
intensity array. x

c. Image shown as a
Origin
2-D numerical
y
array. (The 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0
numbers 0, .5, and .5 .5 .5
0 0 .5 .5
1 represent black, 0 0 .5
0 111
1
gray, and white,
1 .5
respectively.)

[DIP by Gonzalez] x
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 7

Digital Images

Digital images are 2D arrays (matrices) of numbers:

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 8

4
Digital Image

a bc
FIGURE 2.25 (a) Image with a low level of detail. (b) Image with a medium level of detail. (c)
Image with a relatively large amount of detail. (Image (b) courtesy of the Massachusetts Institute
of Technology.)

[DIP by Gonzalez]

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 9

Sampling

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 10

10

5
Sampling

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 11

11

Effect of Sampling and Quantization

250 x 210 samples 125 x 105 samples 50 x 42 samples 25 x 21 samples


256 gray levels

16 gray levels 8 gray levels 4 gray levels Binary image


3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 12

12

6
RGB (color) Images

Red + Blue + Green

Red Green Blue


3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 13

13

Image acquisition

Single imaging sensor

Line sensor

Array sensor

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 14

14

7
Image acquisition

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 15

15

Image acquisition

Image acquisition through


linear sensor strip

Image acquisition through


circular sensor strip

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 16

16

8
Digital Camera Technologies
▪ CCD (Charge Coupled Device)
– Capacitive device
– Proper mechanism for charge
transfer
▪ CMOS (Complementary
magnetic oxide)
– Fabricated in standard
semiconductor production line
– Lower power consumption A
CCD: 2–5 W, CMOS: 20–50 mW
▪ Foveon X3
– a chip of transparent quartz
containing 3 layers of CMOS

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 17

17

Digital Camera Technologies

CCD Array Cameras


▪ Consists of sensor elements/ photo detectors (active devices)
and charge storage devices also called charge buckets
▪ Every element in the array is linked (charge coupled) to other
element.
▪ Charges are transferred serially out of the array through
shifting charges from one element to the other.

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 18

18

9
Digital Camera Technologies
CCD Array Cameras

Frame Transfer
Architecture

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 19

19

Digital Camera Technologies


CCD Array Cameras

Interline Transfer
Architecture

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 20

20

10
Digital Camera Technologies

CMOS Array Cameras


Standard semiconductor
production line
Active pixel architecture
Photo-detector and amplifier
are both fabricated inside
each pixel.

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 21

21

Digital camera technologies comparison


CCD (Charge Coupled Device) CMOS (Complementary Metal
–Specialized fabrication Oxide Semiconductor)
techniques are used so –Cheaper technology
expensive technology –Smaller size
–Larger size –Low power consumption
–Higher power consumption –Readout for selective area of an
because of the capacitive image is possible
architecture –Amplifier and additional
–Always have to read out the circuitry can be fabricated
whole image inside each pixel.
–Resolution is limited by –Higher resolution possible
sensor elements size –Stronger noise due to higher
–Less on-chip circuitry so dark currents because of more
lesser dark currents and on-chip circuitry
noise
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 22

22

11
Acquisition of color images
Single sensor assembly
For still scenes
Three sensors
with prisms

Sensor arrays
a. Stripe filter pattern
b. Bayers filter pattern

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 23

23

Acquisition of color images


▪ Fabrication of CMOS colored sensors

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 24

24

12
Foveon X3 imager
▪ A recent development in
photo-sensing technology
▪ This sensor uses 3 layers of
CMOS imagers.
▪ Each layer absorbs different
colours of light at different
depths.
▪ Single shot camera for three
colors
▪ Foveon has failed to make a
serious impact on the
market.
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 25

25

Scanning Schemes
Interlaced scanning
(used in TV)
▪ Read/display all
even-numbered lines
(even field, half-size)
▪ Restart
▪ Read/display all odd-
numbered lines (odd
field, half-size) A typical Interlaced Scanning scheme
▪ Stitch the even and
odd fields together
and form a single,
full-size frame
▪ Output the full-size
frame
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 26

26

13
Interlaced scanning
When motion is present the interlaced scanning produces blurring
in the image

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 27

27

Scanning Schemes
Progressive Scanning
▪ Immediately transfer an entire frame at once from
the image sensor without performing any line-
interlacing.
▪ Suitable for fast motion detection applications
▪ Incompatible with standard television systems.
▪ Popular in digital cameras (computer applications)

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 28

28

14
Various commercial sensor sizes

Aspect Width Height


"Name"
Ratio (mm) (mm)

1/3.6" 4:3 4.0 3.0

1/3.2" 4:3 4.5 3.4

1/3" 4:3 4.8 3.6

1/2.7" 4:3 5.3 4.0

1/2" 4:3 6.4 4.8

1/1.8" 4:3 7.2 5.3

2/3" 4:3 8.8 6.6


Relative size of various digital camera sensors

1" 4:3 12.8 9.6

4/3" 4:3 18.0 13.5

EOS 10D 3:2 22.0 15.0

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 29

29

Basic relationships between pixels


Arrangement of pixels: 0 1 1
0 1 0
0 0 1
4 neighbours N4(p): 1
0 1 0
0

Diagonal neighbours ND(p): 0 1


1
0 1

8 neighbours N8 (p) = ND(p) U N4(p): 0 1 1


0 1 0
0 0 1

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 30

30

15
Basic relationships between Pixels
▪ Connectivity between pixels:
An important concept used in establishing boundaries of objects
and components of regions
Two pixels p and q are connected if
– They are adjacent in some sense
– If their gray levels satisfy a specified criterion of similarity

V: Set of gray level values used to define the criterion of


similarity

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 31

31

Basic relationships between Pixels

4-connectivity:
If gray-level p , q  V, and q  N4(p)

8-connectivity:
If gray-level p , q  V, and q  N8(p)

m-connectivity (mixed connectivity):


Gray-level p , q  V, and q satisfies one of the following:
1) q  N4(p), 2) q  ND(p) and N4(p)∩ N4(q) has no values from V

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 32

32

16
Basic relationships between pixels

Mixed Connectivity:
Note: Mixed connectivity can eliminate the multiple path
connections that often occurs in 8-connectivity

Pixel 8-adjacent to the m-adjacency


arrangement center pixel

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 33

33

Basic relationships between pixels


Path
Let coordinates of pixel p: (x, y), and of pixel q: (s, t)
A path from p to q is a sequence of distinct pixels with
coordinates: (x0, y0), (x1, y1), ......, (xn, yn) where
(x0, y0) = (x, y) & (xn, yn) = (s, t),
and (xi, yi) is adjacent to (xi-1, yi-1) 1 i  n
Regions
A set of pixels in an image where all component pixels are
connected
Boundary of a region
A set of pixels of a region R that have one of more neighbors
that are not in R

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 34

34

17
Distance Measures
Given coordinates of pixels p, q, and z: (x,y), (s,t), and (u,v)
Euclidean distance between p and q:
De ( p, q) = ( x − s ) 2 + ( y − t ) 2

City-block distance between p and q:


D4 ( p, q) = x − s + y − t

Chessboard distance between p and q:


D8 ( p, q) = max(| x − s |, | y − t |)

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 35

35

Reading Assignment
▪ Chapters 1 and 2 of “Digital Image Processing” by
Gonzalez.
▪ Chapter 2 of “Digital Image Processing using MATLAB”
by Gonzalez.

3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 36

36

18

You might also like