DIP2
DIP2
IMAGE ENHANCEMENT
Image Enhancement: Basic Gray Level
Transformations: Image negatives, Log
transformations, Powerl-Law transformations,
Histogram Processing: Histogram Equalization,
Fundamentals of Spatial Filtering, Smoothing
Spatial Filters, Sharpening Spatial Filters.
What is Image Enhancement?
•Image enhancement is the process of adjusting
digital images so that the results are more
suitable for display or fu her image analysis.
•For example, you can remove noise, sharpen, or
brighten an image, making it easier to identify
key features.
Image Enhancement
• The main objective of image enhancement is to process the given
image into a more suitable form for a specific application
• It makes an image more noticeable by enhancing the features
such as edge, boundaries or contrast.
• There are two types of image enhancement methods
• Special domain enhancement
• Frequency domain enhancement
Techniques of Image
Enhancement
•Spatial Domain : Manipulating pixel values
•Frequency Domain : Modifying the Fourier transformation of
Image
•Combination : Combination of first two methods
A mathematical representation of spatial domain enhancemen
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.
•are compressed
•amplitudes
Proper ti es ofofinput
Log transformation
image. is: For lower
• 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
Log and Inverse
Log
Log transformation : Example
Log Transformation : Example 2-Darker
regions are now bright.
Inverse
Log
• Per forms 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:
Gamma value >1 is nth power
Gamma value <1 is nth root
• It maps a narrow range of dark input values into a wider range of
output values or vice versa.
• Varying Y (Gamma) gives a whole family of curves. (Next slide)
Log curve for different values of Gamma.
Piecewise-Linear Transformation
function:
• 1)Constrast Stretching
• 2) Gray level Slicing
• 3)Bit Plane Slicing
1)Constrast Stretching
2) Bit Plane Slicing
•Separating a digital image into its bit planes is useful for
analyzing the relative impor tance played by each bit of
the image, implying, it determines the adequacy of
numbers of bits used to quantize each pixel , useful for
image compression.
Bit plane slicing
Grey Level Slicing : Highlight the specific
range of values
Histogram Processing
Histogram and Histogram
Equalization
• Histogram shows the distribution of Gray values of the image.
• Example:
Histogram Equalization is used
Example of Histogram Equalization
Gray Level histogram
representation
Histogram Equalized
representation
Example 2: Histogram Equalisation
Example 3 : Histogram Equalisation
Basics of Spatial
Filtering
Basics of Spatial Filtering