2 - UNIT DIP
2 - UNIT DIP
• Negative:
• In Image negative, intensity will be reversed to produce a photographic
negative. White pixels will become black and vice versa.
• So Each value of input image is subtracted from L-1 and mapped onto the
output image. Where L is the maximum value of intensity
• It is given by:
•
Graphical representation of Negative and
Identity, Example in next slide
Computing
Image Negative,
Considering 256
level Gray values
Example for Negative Image
Log Transformation
• Log transformation means replacing each pixel value with its logarithm (10)
value.
• The log transformation can be defined by the formula:
• Where s and r are the pixel values of the output and input image and c is
the constant.
• If there is a pixel intensity of 0, then log(0) will be infinity, so 1 is added to
make the minimum value at least 1.
• C is a constant.
• Properties of Log transformation is: For lower amplitudes of input image
the range of gray levels are expanded. For higher amplitudes of input
image the range of gray levels are compressed
• Summary is : dark pixels are expanded and brighter images are compressed
Log and Inverse Log
Log transformation : Example
Log Transformation : Example 2-Darker
regions are now bright.
Inverse Log
• Performs the inverse operation of the Log.
• Here dark pixels are compressed and brighter images are Expanded.
• This is usually applied on lighter image to make darker.
• Inverse Log is computed using the formula:
• Where s is the output, r is the input and c is constant.
Power Law (Gamma Correction)
• Given by the formula: