Topics in Image Enhancement
Topics in Image Enhancement
1) Negative image
2) Thresholding
3) Gray level slicing
4) Contrast stretching
5) Histogram Equalization
6) Histogram specifications
7) Spatial Filtering
a) Smoothening by average
b) Weighted Average Filter
c) Median Filtering
Definition
The negative of an image is achieved by replacing the intensity ‘i’ in the original image by ‘i-
1’, i.e. the darkest pixels will become the brightest and the brightest pixels will become the
darkest. Image negative is produced by subtracting each pixel from the maximum intensity
value.
For example in an 8-bit grayscale image, the max intensity value is 255, thus each pixel is
subtracted from 255 to produce the output image.
The transformation function used in image negative is:
s = T(r) = (L – 1) – r
2) Thresholding
The grey level or grey value indicates the brightness of a pixel. The minimum
grey level is 0. The maximum grey level depends on the digitisation depth of the
image. In contrast, in a greyscale or colour image a pixel can take on any value
between 0 and 255.
4) Contrast stretching
Contrast stretching is also known as normalization. It is a simple image enhancement
technique. The quality of image is enhanced by stretching the range of intensity
values.
To perform the stretching, we have to specify the upper- and lower-pixel value limits
over which the image is about to be normalized. Let’s say a is the lower limit and b is
the upper limit. We also need to find the existing lowest and highest pixel vales
present in the image.
5) Histogram Equalization
6) Histogram specifications
7) Spatial Filtering
a) Smoothening by average
Frequency Domain Filters are used for smoothing and sharpening of image by
removal of high or low frequency components. Sometimes it is possible of removal
of very high and very low frequency. Frequency domain filters are different from
spatial domain filters as it basically focuses on the frequency of the images. It is
basically done for two basic operation i.e., Smoothing and Sharpening.
1. Low pass filter:
Low pass filter removes the high frequency components that means it keeps
low frequency components. It is used for smoothing the image. It is used to
smoothen the image by attenuating high frequency components and preserving
low frequency components.
Band pass filter removes the very low frequency and very high frequency
components that means it keeps the moderate range band of frequencies.
Band pass filtering is used to enhance edges while reducing the noise at the
same time.
1. Smoothening
Smoothing filters are used to enhance noisy images (at the expense of blurring). This
filter generates the average over a 3 x 3 area of the image. The technique is also called
moving window averaging.
2. Sharpening
The principal objective of sharpening is to highlight transitions in intensity.
c) Gradient Filter
d) Laplacian Filter
d) Gaussian Filter
The Gaussian smoothing operator is a 2-D convolution operator that is
used to `blur' images and remove detail and noise. In this sense it is similar
to the mean filter, but it uses a different kernel that represents the shape
of a Gaussian (`bell-shaped') hump.
3. Homomorphic Filtering
Homomorphic filtering is sometimes used for image enhancement. It simultaneously
normalizes the brightness across an image and increases contrast. Here homomorphic
filtering is used to remove multiplicative noise