Template Ait
Template Ait
Piecewise-Linear Transformation
Transformation Functions
Functions
Case
Case 1:
1: Contrast
Contrast Stretching
Stretching
Some Basic Gray Level
Transformations
• simplest of all image enhancement techniques.
• The values of pixels, before and after processing, will be denoted by r
and s, respectively.
• s=T(r),
• where T is a transformation that maps a pixel value r into a pixel value
s.
• Since we are dealing with digital quantities, values of the
transformation function typically are stored in a one-dimensional array
and the mappings from r to s are implemented via table lookups.
• For an 8-bit environment, a lookup table containing the values of T
will have 256 entries. ECE Dept., AIT
• Three basic form of Transformation functions used frequently
for image enhancement:
• linear (negative and identity transformations)
• logarithmic (log and inverse-log transformations),
• power-law (nth power and nth root transformations).
• Less useful
• output intensities are identical to input intensities.
• If we map input pixel value with output pixel value ,we will get same
value at the output
• Consider L\4,If we map that identity line we get i\p,o\p values are L\4
• Contrast is the difference between the lowest and highest gray level of
an image
• Low-contrast images can result from poor illumination, lack of
dynamic range in the imaging sensor, or even wrong setting of a lens
aperture during image acquisition.
• The idea behind contrast stretching is to increase the dynamic range of
the gray levels in the image being processed. Figure 3.10(a) shows a
typical transformation used for contrast stretching. The locations of
points (r1, s1) and (r2, s2) control the shape of the transformation
• Idea is to increase the contrast of an image by making darker portion
more darker, brighter portion more brighter
ECE Dept., AIT
• Transformtion function
• Low contrast image,not properly visible
• Result of contrast stretching
• Result of thresholding