Lecture 3
Lecture 3
Lecture-3
2
of
36
Single-pixel Operations
The simplest operation we perform on a digital image is to
alter the intensity of its pixels individually using a
transformation function, T, of the form: s = T(z)
where z is the intensity of a
pixel in the original image and
s is the (mapped) intensity of
the corresponding pixel in the
processed image.
Fig. shows the transformation
used to obtain the negative
(sometimes called the complement)
of an 8-bit image.
3
of
36
Neighbourhood Operations
Let Sxy denote the set of coordinates of a neighborhood
centered on an arbitrary point (x, y) in an image, f.
Neighborhood processing generates a corresponding
pixel at the same coordinates in an output (processed)
image, g, such that the value of that pixel is determined
by a specified operation on the neighborhood of pixels
in the input image with coordinates in the set Sxy.
(a) A 541 x 421 image of the letter T. (b) Image rotated -21°using nearest-neighbor interpolation for intensity assignments. (c) Image rotated -21°using bilinear interpolation. (d) Image rotated -21°using bicubic interpolation. (e)-(h) Zoomed sections (each square
is one pixel, and the numbers shown are intensity values).
11
of
36
Image Registration
One of the principal approaches for solving the problem just discussed is to
use tie points (also called control points). These are corresponding points
whose locations
are known precisely in the input and reference images.
For example, suppose that we have a set of four tie points each in an input
and a reference image. A simple model based on a bilinear approximation is
given by
x = c1 v + c2 w + c3 vw + c4 (i)
and
y = c5 v + c6 w + c7 vw + c8 (ii)
During the estimation phase, (v , w) and (x , y) are the coordinates of tie points in the
input and reference images, respectively. If we have four pairs of corresponding tie
points in both images, we can write eight equations using Eqs. (i) and (ii) and use
them to solve for the eight unknown coefficients, c1 to c8.
12
of
36
Image Registration
(a) A digital image. (b) Rotated
image (note the counterclockwise
direction for a positive angle of rotation).
(c) Rotated image cropped to fit the
same area as the original image.
(d) Image enlarged to
accommodate the entire rotated image.
13
of
36
Image Registration
Image registration.
(a) Reference image. (b) Input (geometrically
distorted image). Corresponding tie points are
shown as small white squares near the corners.
(c) Registered (output) image (note the errors in the
border).
(d) Difference between (a) and (c), showing more
registration errors.
14
of
36
Vector & Matrix Operations
Multispectral image processing is a typical area in which
vector and matrix operations are used routinely. For
example each pixel of an RGB image has three
components, which can be organized in the form of a
column vector
(ii)
where nk is the number of times that intensity zk occurs in the image and MN is
the total number of pixels. Clearly