Lecture 2
Lecture 2
Lecture 2
15 x
=
100 17
x = 2.55mm
Image Formation in the Eye
• Perception takes place by the relative
excitation of light receptors.
– Illumination: i(x,y)
– Reflectance: r(x,y)
• Lmin ≤ l ≤ Lmax
– Where Lmin: positive
Lmax: finite
A Simple Image Model
• In practice:
– Lmin = imin rmin and
– Lmax = imax rmax
and
– Varying N, M numbers
– Varying k (number of bits)
– Varying both
Sampling & Quantization
• Isopreference curves (in the Nm plane)
• Conclusions:
– Quality of images increases as N & k increase
– Sometimes, for fixed N, the quality improved by
decreasing k (increased contrast)
– For images with large amounts of detail, few gray
levels are needed
Nonuniform
Sampling & Quantization
• An adaptive sampling scheme can improve the
appearance of an image, where the sampling would
consider the characteristics of the image.
• In this case:
– few gray levels in the neighborhood of
boundaries
– more in regions of smooth gray-level variations
(reducing thus false contours)
Some Basic Relationships
Between Pixels
• Definitions:
• q is in N4(p) or
• q is in ND(p) and the set N4(p)∩N4(q) has no pixels with
values from V
Adjacency
• Mixed adjacency is a modification of 8-
adjacency and is used to eliminate the
multiple path connections that often arise
when 8-adjacency is used.
0 1 1 0 1 1 0 1 1
0 1 0 0 1 0 0 1 0
0 0 1 0 0 1 0 0 1
Adjacency
– D8(p,q) = max(|x-s|,|y-t|)
– Forms a square centered at p
– e.g. pixels with D8≤2 from p
2 2 2 2 2
2 1 1 1 2
2 1 0 1 2 D8 = 1 are the 8-neighbors of p
2 1 1 1 2
2 2 2 2 2
Distance Measures
• D4 and D8 distances between p and q are
independent of any paths that exist between
the points because these distances involve
only the coordinates of the points
(regardless of whether a connected path
exists between them).
Distance Measures
• However, for m-connectivity the value of the
distance (length of path) between two pixels
depends on the values of the pixels along the
path and those of their neighbors.
Distance Measures
• e.g. assume p, p2, p4 = 1
p1, p3 = can have either 0 or 1