Digital Image Fundamentals and Image Acquisition: Advance Topics in Image Processing - CSC657
Digital Image Fundamentals and Image Acquisition: Advance Topics in Image Processing - CSC657
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 1
Image Acquisition
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 2
Image description
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 3
Sampling and Quantization
quantization
sampling sampling
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 4
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)
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 5
Sampling and Quantization
. . . . . .
. . . . . .
. . . . . .
f ( M 1,0) f ( M 1,1) . . . f ( M 1, N 1)
N : No of Columns
M : No of Rows
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 6
Sampling and Quantization
Image coordinate convention (not valid for MATLAB!)
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 7
Sampling and Quantization
MATLAB Representation
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 8
Digital Images
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 9
Sampling
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 10
Sampling
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 11
Effect of Sampling and Quantization
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 13
Effect of Sampling and Quantization
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 14
Effect of Sampling and Quantization
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 15
Effect of Sampling and Quantization
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 16
RGB (color) Images
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 18
Image acquisition
Line sensor
Array sensor
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 19
Image acquisition
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 20
Image acquisition
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 21
Image Sensors
Common technologies:
– CCDs (charge-coupled devices)
– CMOS (complementary metal oxide semiconductor)
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 22
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
CCD: 2–5 W, CMOS: 20–50 mW
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 23
Digital Camera Technologies
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 24
Digital Camera Technologies
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 25
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
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 26
Acquisition of color images
Single sensor assembly
For still scenes
Three sensors
with prisms
Sensor arrays
a. Stripe filter pattern
b. Bayers filter pattern
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 27
Foveon X3 imager
This sensor uses 3 layers of
CMOS imagers.
Each layer absorbs different
colours of light at different
depths.
Single shot camera for three
colors
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 28
Various commercial sensor sizes
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
1" 4:3 12.8 9.6
4/3" 4:3 18.0 13.5
Relative size of various digital camera sensors
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 29
Pixel Neighborhood
The pixels surrounding a given pixel.
Most neighborhoods used in image processing algorithms are small square
arrays with an odd number of pixels.
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 30
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
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 32
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)
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 33
Basic relationships between pixels
Mixed Connectivity:
Note: Mixed connectivity can eliminate the multiple path
connections that often occurs in 8-connectivity
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 34
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
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 35
Distance Measures
Given coordinates of pixels p and q: (x,y) and (s,t)
Euclidean distance between p and q:
De ( p, q ) ( x s) 2 ( y t ) 2
– De distance r from (x,y) define a disk of radius r centered at (x,y)
City-block distance between p and q:
D4 ( p, q) x s y t
– The pixels with D4 distance r from (x,y) form a diamond centered at (x,y)
– the pixels with D4=1 are the 4-neighbors of (x,y)
Chessboard distance between p and q:
D8 ( p, q ) max(| x s |, | y t |)
– The pixels with D8 distance r from (x,y) form a square centered at (x,y)
– The pixels with D8=1 are the 8-neighbors of (x,y)
10/28/21 COMSATS Institute of Information Technology, Lahore -- Advance Topics in Image Processing -- CSC657 36