Practical 3
Practical 3
Introduction
“The term enhancement is used to mean the alteration of the appearance of an image in such a way
that the information contained in that image is more readily interpreted.” (Mather, 1999)
One type of image enhancement with which you are already familiar from the previous lab is image
reduction and magnification, this is a simple example but makes the point of how you can gather
different information from the same image by simply zooming in and out of an image. In this lab,
we will introduce more advanced image enhancements. The basic idea it to use either global
statistics (those from the entire image) or neighborhood statistics (these from a smaller number of
pixels) to modify or adjust each pixel’s value. Not that after image enhancements are performed,
you no longer have the same digital numbers for the bands.
INFORMATION BOX
There are 3 main types of image enhancement:
1. Contrast Enhancement
Contrast enhancement is only intended to improve the visual quality of a displayed
image. It is a process generally required for all images because satellite-based sensors
with global coverage need to image a wide range of scenes. From very low radiance
(oceans, low solar elevation angles, high latitudes etc) to very high radiance (snow,
sand, high solar elevation angles, high altitudes). Any one scene will generally have a
radiance range much less than the full range. When such a scene is imaged and
converted to digital numbers (DNs), it uses less than the full quantization range
(usually 0-255). When the image is displayed it will have low contrast, appearing quite
dull, making visual interpretation difficult. Contrast stretching involves increasing the
range (spreading or stretching) of data values to occupy the available image display
range (usually 0-255). The result is displayed image with a greater level of contrast.
2. Spatial Enhancement
Spatial enhancement techniques modify the value of a given pixel based on the values
of surrounding pixels.
3. Spectral Enhancement
Spectral enhancement techniques are mainly transforms that are used to aid in
interpreting image data
In this practical we will specifically concentrate on contrast and spatial enhancement techniques.
We will not cover all the available enhancement methods, instead we will be concentrate on the
following:
1. Contrast Enhancement
• Simple linear stretch
• Linear stretch with saturation
• Histogram equalization
2. Spatial Enhancement
• High pass convolution filter
• Low pass convolution filter
Data for this Practical
Before we can apply a contrast stretch to our image, we must first view the image histogram.
1. Load the Murrells inlet image into a false colour display as RGB = 6,4,2.
The default dialog box is as figure (a) which is the look-up table (LUT) that govern visual display
and you can see the histogram of each data values by clicking the button encircled by black ellipse
in figure (a).
The text box immediately below the histogram plot of each band represents the minimum and
maximum values which participates in the stretch i.e. in this case 3 and 160. These values are
represented on the plots by two vertical lines, which we will call range bar (maximum and
minimum range bar).
The button encircled by black ellipse allows you to toggle between the bands that you have
assigned to R G B in your image i.e. bands 6,4,2.
This is the display contrast set by default by computer. At the present display, you will notice that
the contrast in the image is poor, especially for wetlands.
Question 1:
Explain the shape of the Red and NIR histograms based on your knowledge of the
electromagnetic spectrum.
B. Applying a Linear Stretch
Now, you can experiment using interactive stretching.
1. Set the method to Linear and linear (percent value) to 1.
2. To apply linear stretch, move the maximum and minimum range bars to the left and right to find
a level which best enhances the details of the wetlands within Murrell’s inlet colour. Remember
that you can alters the stretches in each of the RGB bands.
Questions 2:
What were the stretch parameters (numerical values below the histograms) that you choose
to enhance detail within the wetlands of Murrell’s Inlet and why did your chosen parameters
improve the contrast in this region?
Question 3:
What happens to the images when using histogram equalization? When would histogram
equalization not be appropriate to use?
Other technique:
There are a range of other contrast enhancement techniques and you can try them in your own if
you wish.
Question 4:
Explain how the high pass convolution kernel works and what it does to the image?
10. Now repeat both processes but change the kernel size to 7*7 for each.
Question 6:
What differences do increasing the kernel size from 3*3 to 7*7 have on the images?
11. Try other type of the filtering such as directional, Laplacian, median, sobel, Robert filter etc if
you wish.