lecture2 computer archers notes
lecture2 computer archers notes
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
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 3
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)
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 5
. . . . . .
. . . . . .
. . . . . .
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
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
12
6
RGB (color) Images
13
Image acquisition
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
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
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
Interline Transfer
Architecture
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 20
20
10
Digital Camera Technologies
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 21
21
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
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
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 29
29
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
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 31
31
4-connectivity:
If gray-level p , q V, and q N4(p)
8-connectivity:
If gray-level p , q V, and q N8(p)
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
3/5/2025 Capital University of Science and Technology Digital Image Processing CPE3643 33
33
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
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