3.Intensity transformation
3.Intensity transformation
3.Intensity transformation
Introduction:
Intensity: In image processing, intensity is the amount of light or the numerical value of a pixel
in an image. It is also known as the gray level of an image
Spatial Domain: The spatial domain in image processing refers to the visible image space and
the methods that directly manipulate the pixels of an image
Where
g(x,y):output image
The operator can be applied to the pixels of a single image or to the pixels of a set of images,
such as performing the elementwise sum of a sequence of images for noise reduction
The process in the above figure consists of moving the center of the neighborhood from pixel to
pixel, and applying the operator T to the pixels in the neighborhood to yield an output value at
that location. Thus, for any specific location (x0 , y0 ), the value of the output image g at those
coordinates is equal to the result of applying T to the neighborhood with origin at (x0 , y0 ) in f.
For example, suppose that the neighborhood is a square of size 3 X 3 and that operator T is
defined as compute the average intensity of the pixels in the neighborhood.” Consider an
arbitrary location in an image, say (100,150). The result at that location in the output image,
g(100,150), is the sum of f (100,150) and its 8-neighbors, divided by 9.
The center of the neighborhood is then moved to the next adjacent location and the procedure is
repeated to generate the next value of the output image g. Typically, the process starts at the top
left of the input image and proceeds pixel by pixel in a horizontal (vertical) scan, one row
(column) at a time.
The smallest possible neighborhood is of size 1 × 1. In this case, g depends only on the value of f
at a single point (x, y) and T
Eq. (3-1) becomes an intensity (also called a gray-level, or mapping) transformation function of
the form
If T(r) has the form of the given below figure (a) the result of applying the transformation to
every pixel in f to generate the corresponding pixels in g would be to produce an image of higher
contrast than the original, by darkening the intensity levels below k and brightening the levels
above k. In this technique, sometimes called contrast stretching (see Section 3.2), values of r
lower than k reduce (darken) the values of s, toward black. The opposite is true for values of r
higher than k. Observe how an intensity value r0 is mapped to obtain the corresponding value s0.