MATLAB Based Image Processing Lab Experiments: Session S3F
MATLAB Based Image Processing Lab Experiments: Session S3F
I. Introduction
Motivation for a digital image processing course [ 1-31
arises mainly from two areas of applications, namely, a)
an increase in the pictorial information available for
human interpretation, and b) image processing for
automatic and autonomous machine control. This is
because vision is the most important human sense in
terms of the amount of information it conveys and
because of a good visualization is very important for the
correct information converged in an image.
Many image processing circuits require dedicated
software to perform their tasks. These packages usually
are highly priced and are not easily modified by the final
user. In this paper the basis for the image processing is
MATLAB [4], a software package now available almost
anywhere for other uses and that is used as the engine for
the image processing experiments. The software written
for the image processing experiments is available from
the users at no cost to interested users and instructors.
Image processing. applications include many topics,
among which we can mention remote sensing,
ultrasound images, meteorology, astronomy, inspection,
radar, seismology, radiology, autonomous navigation,
recognition, etc.
2.
3.
4.
5.
6.
:
~4
=%*,plj
.,H..*
1255
98CH36214
logic
7.
compression.
compression,
1.
2.
4.
Histogram
equalization.
This
experiment
illustrates the relationship among the intensities
(gray levels) of an image and its histogram. It
shows how to improve the image by equalizing the
histogram.
5.
6.
IV. Examples
Our first example is related to experiment No. 1 about
image enhancement by use of point-to-point
transformations. The goal of enhancement techniques is
to process a given image so that the result is more
suitable than the original image. An histogram provides
statistical information about the use of the range of gray
levels in a digital image (e.g., the histogram of a dark
image is concentrated in he loer gray levels). Fig. 1 a
shows a typical Mexican church tower and Fig. l b
shows its histogram. Here students can observe that
most of the pixel's intensities are between 120 and 200.
In other words, this image has a small dynamic range.
To obtain further information about the image we can
choose a value of the gray level and observe the image
formed by pixels at that value. For example, choosing
first as a threshold the value of 129 and then the value of
140, the resulting images in Figs. 2a and 2b are
obtained. Note that clearly there are more pixels with
intensity 140 and, therefore, Fig. 2b has more
definition. Note that Fig. 2b shows a glimpse of a tower
while Fig. 2a does not. Further processing can be done
with the histogram. This is done in the next example.
A related experiment is Experiment No. 4 for histogram
equalization. The purpose of histogram equalization is
to optimize the use of the dynamic range. Fig. 3 shows
an original image and its histogram. Note that both
ends of the histogram are not used meaning that there
are neither black nor white pixels in the figure. Fig. 4
shows the result on the image after histogram
equalization. It can be noticed the contrast in the
I
1256
98CH36214
(a)
I '
(b)
50
150
100
200
Intensity
250
b)
Fig. 1. a) Mexican church tower.
(b) Histogram for Fig. 1a.
Fig. 5 shows the church tower from Fig. 1 a k r
applying histogram equalization. Note that the contrast
improves drastically since in the original image grey
levels are clustered around the center values and now
they are distributed throughout all the range. This
example shows how a simple concept can be used to
improve images. This is in general a concept for non
linear signal processing.
p*p*,,
0-7803-4762-5/98/$10.006>1998 IEEE
:agj;
I,
48..
*. s
1257
98CH36214
2130,
200,
Ib)
Fig., 6 . Noise removal by applying non linear filtering.
a) 11mage with impulsive noise added, b) filtered image .
Fig. 4 This figure shows image from Fig. 3 after
histogram equalization.
References
Conclusions
A set of image processing experiments based on
MATLAB has been developed. This set of experiments
covers most of the topics in a regular image processing
course. An additional use of this set would be to use it
in a regular Digital Signal Processing course, where
image processing occupies a small part, to show digital
image processing applications.
1258
I
E
E
98CH36214