Digital Image Processing: Lecture # 2
Digital Image Processing: Lecture # 2
age
Processing
Lecture #
2
Contents
0 Spatial resolution
0 Gray-level resolution
0 Zooming
0 Shrinking
0 MATLAB functions
Representing digital
images
Spatial resolution
128
64
256
512
Gray-levels represented with 8 bits for spatial
resolution.
1024
Spatial resolution
1024
128
512
256
64
False
contouring
Pixel relationship
(1,1 (1,2
)
)
4-neighbors
(2,1
)
x
x-1,
y-1
x,y1
x1,y
x, y
Diagonal neighbors
x-1,
y+1
x,y+
1
8 neighbors
Pixel adjacency
0 Pixels: p(x,y) and q(s,t)
0 V = set of intensity values used to define
Path
0 A (digital) path (or curve) from pixel p(x, y) to
8-paths m-path
Pixel distances
0 For pixels p, q, and z, with coordinates (x, y), (s,
0 Euclidean distance
Pixel Distances
(Contd.)
between p and q is
0 TheD8 distance (also called chessboard distance)
between p and q is
Note that the D4 and D8
distances between p and q
are independent of any
paths that might exist
between the points because
these distances involve only
the coordinates of the points
Pixel Distances
(Contd.)
0
1
Dm = 2
1
1
1
0
1
Dm = 3
1
1
1
1
1
Dm = 4