Dip Assignment 1
Dip Assignment 1
Digital Image
Processing
Introduction to Supervised Classification Assignment
#1
Page |
Table of Contents
1.0 Introduction....................................................................................................................4
2.0 Background.....................................................................................................................4
2.1 - Unsupervised Classification.....................................................................................4
2.2 - Supervised Classification..........................................................................................4
3.0 Methodology...................................................................................................................4
3.1 Performing the Unsupervised Classification.........................................................4
3.2 Performing the Supervised Classification.............................................................6
4.0 - Discussion......................................................................................................................10
4.1 Advantages and Disadvantages.............................................................................10
4.2 Discussing the Classifiers.......................................................................................11
4.3 Differences.................................................................................................................11
5.0 Conclusions...................................................................................................................14
Bibliography...........................................................................................................................15
Appendix.................................................................................................................................16
List of Figures
Figure 1 - Resultant Image of Merged TIFF files..............................................................5
Figure 2 - Subset Raster of Area of Interest (AOI)...........................................................5
Figure 3 ERDAS Imagine menu displaying the process for conducting an
Unsupervised Classification (right) and its resultant image (left)...............................6
Figure 4 - Attribute Table for the Unsupervised Classification......................................6
Figure 5 - Signature Editor for Supervised Classification..............................................7
Figure 6 - Pre-Supervised Signature Alarm Layer with visible AOI (Training Sites).7
Figure 7 - ERDAS Imagine menu displaying the process for conducting a
Supervised Classification.......................................................................................................8
Figure 8 Result from the Maximum Likelihood Classification....................................8
Figure 9 Result from the Mahalanobis Classification...................................................9
Figure 10 Result from the Minimum Distance Classification.....................................9
Figure 11 - Attribute Table for the Supervised Classification......................................10
Figure 12 - Histogram showing the pixel value (x-axis) versus the frequency of that
pixel (y-axis) for the Supervised Classification signature Deep Water...................10
Figure 13 - Supervised Classification (Minimum Distance) of the AOI Using ERDAS
Imagine 2014.........................................................................................................................16
Figure 14 - Unsupervised Classification of the AOI Using ERDAS Imagine 2014....17
Figure 15 - Subset Raster Imagery for the AOI...............................................................18
List of Tables
Table 1 - Resultant Images for both Classification Types.............................................12
Page | 1
1.0 Introduction
What is Digital Image Processing? It is the process of manipulating and analyzing
digital imagery using computer algorithms (Tutorialspoint, 2014). The scope of this
deliverable revolves around using a versatile application called ERDAS Imagine to
do so. ERDAS Imagine is a user-friendly application capable of analyzing and
manipulating digital imagery. Preliminary steps are taken to properly prepare the
digital imagery for the classification process. Of its many abilities, the
classification methods are going to process raster images for analysis. There are a
two different types of classification methods that will be used in ERDAS to
complete the tasks required in this deliverable; unsupervised and supervised.
Unsupervised is a more automated method using a preset algorithm whereas
supervised is more user-dependent. The idea is to take the digital imagery and
manipulate and analyze it to distinguish between various features in an area of
interest.
2.0 Background
2.1 - Unsupervised Classification
By definition, this classification forms clusters of pixels with similar spectral
characteristics by applying the Iterative Self-Organizing Data Analysis Technique
(ISODATA) algorithm to the selected image. In laymen terms, it uses an algorithm
preset in the program to try and determine which surface cover types are the
same, group them and classify them accordingly.
3.0 Methodology
Before any data was used, all the required files were transferred to an external
hard drive. The file pathways were used to find what was required and then saved
so they could be worked on from a source other than the X: drive. This prevented
future complications and the potential corruption of data. Never work off the X:
drive!
Page | 2
images (1, 2, 3, 4, 5 and 7) to form a stacked image for use in the classification
process as indicated in Figure 1.
Page | 3
Page | 4
Page | 5
Page | 6
Page | 7
Page | 8
Figure 12 - Histogram showing the pixel value (x-axis) versus the frequency
of that pixel (y-axis) for the Supervised Classification signature Deep
Water
4.0 - Discussion
4.1 Advantages and Disadvantages
The processes for classifying the features in a subset of digital imagery are, as
previously mentioned, the unsupervised and supervised classifications. With any
methodology, there are always advantages and disadvantages for each one, be it
with these classifications or simply outside the boundaries of this deliverable. The
unsupervised classification tends to generalize the identification of features,
resulting in clusters of pixels that only roughly match some of the actual classes or
that group completely unrelated pixels together. Although the general quality of an
unsupervised classification is poor, it does have its benefits. It is good for
identifying similar features in regions where no prior knowledge is known. If you
viewed the digital imagery of a new planet, an unsupervised classification would
probably more accurately classify the area for similar features using an algorithm
than human judgment. It gives an idea of how the results of a supervised
classification would look before having to actually perform one. There is almost no
dependence on the user to perform an unsupervised classification, therefore
Page | 9
minimizing human error. The classes are often more spectrally uniform, but
majority of the time yields an inaccurate representation of features on an image.
The supervised classification is heavily user-oriented but can yield a much more
accurate interpretation of features on an image. The procedural step requiring the
signature editor allows the resultant attribute table to produce information classes
that are grouped, discarding the need for recoding. The user is in full control of
determining training sites for the image. Both the signature editor and training
sites can be saved as layers for later use. An image alarm can be created as a layer
to evaluate which pixels for a specific training area will belong to that class.
Depending on the type of supervised classifier that is used, the spectral
distribution of the resultant image can change drastically between each type.
Assigning training sites could result in unclassified pixels, which are then assigned
values depending on the type of supervised classifier.
P a g e | 10
4.3 Differences
The results of both the unsupervised and supervised classification methods are
displayed below in Table 1. A closer look at the unsupervised classification, located
in the Appendix, is displayed in Figure 13. A closer look at the supervised
classification, located in the Appendix, is displayed in Figure 14.
The first notable difference in the colour scheme is that the urban area for the
unsupervised classification is divided into two colours: red and yellow; whereas the
supervised classification represents that same urban area with one colour: yellow.
The unsupervised classification could not identify a generalized feature such as
urban area, therefore dividing roads from buildings. So, the roads were assigned
the red colour and the buildings were categorized as urban area and assigned
the yellow colour, as shown by the black indicator arrow in Table 1. The training
sites for the supervised classification were sufficient enough to categorize the
roads and buildings into one class. The roads class, for the unsupervised
classification, included some blocky, farmland shapes, hence the name Roads /
Some Agriculture. The black circle indicator in Table 1 shows the difference in
pixel density for the shallow coast feature. The unsupervised classification hardly
represented the amount of visible sediment seen in the original true colour subset
raster image (Figure 15). The light blue circle indicator in Table 1 shows the
difference in consistency between agriculture and roads. The unsupervised
classification demonstrates difficulty in identifying the roadways that run through
that area and there is hardly any consistency in features; almost looking like a
random assortment of red and orange starburst candy had been tossed into a bowl.
The supervised classification demonstrates an easy to follow roadway and its
surrounding agriculture and forest features. The yellow indicator arrow in Table 1
shows the difference in pixel density for the shadow coast feature. The supervised
classification demonstrates a realistic extent of the shallow coast, again, evident in
the original true colour subset raster image (Figure 15).
Table 1 - Resultant Images for both Classification Types
Unsupervised Classification
Supervised Classification
P a g e | 11
P a g e | 12
5.0 Conclusions
After following workshop and deliverable procedures, it can be concluded that
ERDAS Imagine excels at manipulating and analyzing digital imagery. It was
determined that minimum distance was the best representation of the results from
a supervised classification because it was much cleaner than the other classifiers
and had more features categorized correctly, as well, the features were much more
distinguishable. The supervised classification is a more accurate representation of
features on an image, but an unsupervised classification has its benefits as well.
P a g e | 13
Bibliography
1) Tutorialspoint. Digital Image Processing. (2014). Retrieved on January 28th
from www.tutorialspoint.com/dip/.
2) Niagara College. Janet Finlays Digital Image Processing (DIP) Lecture on
Supervised Classification. (2015).
P a g e | 14
Appendix
P a g e | 15
Figure 13 - Supervised Classification (Minimum Distance) of the AOI Using
ERDAS Imagine 2014
P a g e | 16
P a g e | 17