Professional Documents
Culture Documents
Lecture 2
Lecture 2
Techniques
Dr. K. Adalarasu
KA – MIT – Unit I – Dec, 2019, Sastra Deemed University
2
Textbook and Materials
Rafael C. Gonzalez, Richard E. Woods,
“Digital Image Processing”, 2nd Edition,
Pearson Education, 2003
Digital Image Processing by Jayaraman,
Veerakumar, 2012
Khandpur R.S, Handbook of Biomedical
Instrumentation, 3/e, Tata McGraw
Hill,New Delhi, 2014
Digital Image
Fundamentals and
Transforms
(a) 452*374,
256-level image.
(b)–(d) Image
displayed in 128,
64, and 32 gray
levels, while
keeping the
spatial resolution
constant
(e)–(g)
Image
displayed in
16, 8,
4, and 2
gray
levels
Questions
Define Image?
What is the need for digital Image
processing ?
What do you mean by sampling and
quantization ?
Images
Zooming
Viewed as oversampling
Shrinking
Viewed as under-sampling
Zooming and shrinking are applied to a digital
image
Zooming requires two steps
Creation of new pixel locations
Assignment of gray levels to those new locations
Objective
To study relationships
between pixels in an image
4-neighbors of p = b, d, e, g;
8-neighbors of p = a, b, c, d, e, f, g, h;
Diagonal neighbors of p = a, c, f, h;
Neighbors of a Pixel
4-neighbors of p
8-neighbors of p
Diagonal neighbors of p
Adjacency
Mixed adjacency is a modification of 8-
adjacency
Introduced to eliminate ambiguities that often
arise when 8-adjacency is used
For example, pixel arrangement shown in Fig
Adjacency
For V={1}
Three pixels at top show multiple (ambiguous) 8-
adjacency, as indicated by dashed lines
Adjacency
Ambiguity is removed by using m-
adjacency
Adjacency
Distance Measures
D4 and D8 distances between p and q are
independent of any paths that might exist
between points
Because these distances involve only
coordinates of points
Dm distance between two points is defined
as shortest m-path between point
Distance between two pixels will depend on
values of pixels along path
As well as values of their neighbors
Distance Measures
Suppose that we consider adjacency of
pixels valued 1 (i.e., V={1})
Case 1
If p1 and p3 = 0
Length of shortest path between p and p4 = 2
Case 2
If p1 = 1 and p3 = 0
Length of shortest path between p and p4 = 3
Path p p1 p2 p4
Distance Measures
Case 3
If p1 = 0 and p3 = 1
Length of shortest path between p and p4
=3
Path p p2 p3 p4
Case 4
If p1 = 1 and p3 = 1
Length of shortest path between p and p4
=4
Path p p1 p2 p3 p4
KA – MIT – Unit I – Dec, 2019, Sastra Deemed University
37
Problem
Solution
Problem 2