Digitization and Pixel Relationships
Digitization and Pixel Relationships
Digitization and Pixel Relationships
Operations
Overview
•This lecture will cover:
•Digitization
– Quantization
– Resolutions
•Pixel Relationships
– Neighbourhood pixels
– Connectivity
– Adjacency
– Path
What is a Digital Image?
•A digital image is a representation of a two-
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Number of Intensity
Number of Bits Examples
Levels
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011, 01010101
16 65,536 1010101010101010
Spatial Resolution..contd
1024 * 1024 512 * 512 256 * 256
128 * 128 64 * 64 32 * 32
Intensity Level Resolution (cont…)
256 grey levels (8 bits per pixel) 128 grey levels (7 bpp) 64 grey levels (6 bpp) 32 grey levels (5 bpp)
16 grey levels (4 bpp) 8 grey levels (3 bpp) 4 grey levels (2 bpp) 2 grey levels (1 bpp)
Session3 Overview
•Digitization
– Quantization
– Resolutions
•This lecture will cover:
•Pixel Relationships
– Neighbourhood pixels
– Connectivity
– Adjacency
– Path
Neighbours of a Pixel
Connectivity
Regions and boundaries
Inequality
• p(x,y) and q(s,t)
• Euclidean Distance:
1. A)Let V={0,1}. Compute the De, D4, D8 distances between two pixels
p and q. Let the pixel coordinates of p and q be (3,0) and (2,3)
respectively, for the image shown below:
0 1 2 3
0 0 1 1 1 De = √10
1 1 0 0 1
D4 = 1 + 3 = 4
2 1 1 1 11 q
3 1 1 1 1
D8 = max(1,3) = 3
p
Problems