Image Sampling and Quantization
Image Sampling and Quantization
Quantization
b=M×N×k
As Fig. 2.18 shows, there are three basic ways to represent f(x,y).
Figure 2.18(a) is a plot of the function, with two axes determining
spatial location
and the third axis being the values of f (intensities) as a function of
the two spatial
variables x and y. Although we can infer the structure of the image
in this
example by looking at the plot, complex images generally are too
detailed and
difficult to interpret from such plots.This representation is useful
when working
with gray-scale sets whose elements are expressed as triplets of the
form (x,y,z)
, where x and y are spatial coordinates and z is the value of f at
coordinates (x,y)
The representation in Fig. 2.18(b) is much more common. It shows
as it would appear on a monitor or photograph. Here, the intensity of each
point is proportional to the value of f at that point. In this figure, there are only
three equally spaced intensity values. If the intensity is normalized to the interval
[0, 1], then each point in the image has the value 0, 0.5, or 1. A monitor
or printer simply converts these three values to black, gray, or white, respectively,
as Fig. 2.18(b) shows. The third representation is simply to display the
numerical values of f(x,y) as an array (matrix). In this example, f is of size 600 x 600
elements, or 360,000 numbers. Clearly, printing the complete array
would be cumbersome and convey little information.When developing algorithms,
however, this representation is quite useful when only parts of the
image are printed and analyzed as numerical values. Figure 2.18(c) conveys
this concept graphically
Numerical arrays are used for processing and
algorithm development.
In equation form, we write the representation of an
M x N numerical array as
origin of a digital image is at the
top left, with the positive x-axis extending downward and the positive y-
axis
extending to the right.This is a conventional representation based on the
fact
that many image displays (e.g., TV monitors) sweep an image starting at
the
top left and moving to the right one row at a time. More important is the
fact
that the first element of a matrix is by convention at the top left of the
array, so
choosing the origin of f(x,y) at that point makes sense mathematically.
Keep
in mind that this representation is the standard right-handed Cartesian
coordinate
system with which you are familiar.† We simply show the axes pointing
downward and to the right, instead of to the right and up
we define the dynamic range of an imaging
system to be the ratio of the maximum measurable
intensity to the minimum
detectable intensity level in the system. As a rule, the upper limit is
determined
by saturation and the lower limit by noise (see Fig. 2.19). Basically,
dynamic
range establishes the lowest and highest intensity levels that a system can
represent
and, consequently, that an image can have. Closely associated with this
concept
is image contrast, which we define as the difference in intensity between
the highest and lowest intensity levels in an image.When an appreciable
number
of pixels in an image have a high dynamic range, we can expect the image
to have high contrast. Conversely, an image with low dynamic range
typically
has a dull, washed-out gray look
The number of intensity levels corresponding to each
value of k is shown in parentheses.When an image
can have 2 power k intensity levels,
it is common practice to refer to the image as a “k-bit
image.”
Spatial and Intensity Resolution