![]() |
![]() |
Module 7 |
Caribbean Regional Node |
Information | Data | Software | Sites | Education | Feedback | News
Lesson
6. Mapping the Major Inshore Marine Habitats of the Caicos Bank by Multispectral
Classification Using Landsat TM
Aim of Lesson
To undertake a supervised classification of a Landsat
TM image to show the major marine and terrestrial habitats of the Caicos
Bank.
Objectives
2. To use UTM coordinate referenced field survey data of shallow water marine habitats and inspection of a Landsat TM image to derive spectral signatures for the major marine habitats (sand, seagrass, algae, gorgonian plain, coral reef).
3. To perform a simple box classification of marine habitats into sand, seagrass, algae, gorgonian plain, and coral reef in turn.
4. To combine these separate images (GIS layers) into a single image and use an appropriate palette to display the habitats.
This lesson relates to material covered in Chapters 9-11 of the Remote Sensing Handbook for Tropical Coastal Management and readers are recommended to consult this for further details of the techniques involved. The lesson introduces you to multispectral classification of imagery using a simple two-dimensional box-classification of the "feature space" of two depth-invariant bottom index images.
The Bilko for Windows image processing software
Familiarity with Bilko for Windows 2.0 is required to carry out this lesson. In particular, you will need experience of using Formula documents (see Part 5 of the Introduction) to carry out mathematical manipulations of images. Some calculations need to be performed independently; these can either be carried out on a spreadsheet such as Excel or using a calculator.
Image data
The image used as the basis for this lesson was acquired by Landsat 5 TM on 22nd November 1990 at 14.55 hours Universal Time (expressed as a decimal time and thus equivalent to 14:33 GMT). The Turks & Caicos are on GMT - 5 hours so the overpass would have been at 09:33 local time. This image has been geometrically corrected, radiometrically and atmospherically corrected (Lesson 3), and finally water column corrected (Lesson 5) to produce two depth-invariant bottom index bands; one from bands 1 and 3 (DI_TM13.DAT) and one from bands 2 and 3 (DI_TM23.DAT). The third depth-invariant band (from bands 1 and 2) will not be used here. The subscenes provided are of the South Caicos area only and are floating point images, i.e. each pixel is stored as a floating point number and occupies four bytes. To allow a mask image to be made to mask out the land areas, you are also provided with the band 5 image of the same area (TMBAND5.GIF).
Field survey data
You are provided with a spreadsheet (HABITATS.XLS) containing field survey data on seven habitat classes:
Lesson Outline
The first task is to mask out the land areas on the two depth-invariant bottom index images (DI_TM13.DAT and DI_TM23.DAT). We will use the near-infrared Landsat TM band 5 image to make the mask and then multiply the depth-invariant images by it.
Making a land mask
The main task in this lesson is to classify major submerged habitats. To allow contrast stretches which will display these best and to remove the distraction of terrestrial habitats which are best classified separately using a combination of infra-red and visible wavebands, we should mask out the land areas. These is easily achieved using a Landsat TM band 5 infra-red image (TMBAND5.GIF) where there will be very little reflectance from water covered areas but considerable reflectance from land areas. This allows water and land areas to be fairly easily separated on the image and a mask of either land or water to be created with a simple Formula document.
A land mask image has all land pixels set to zero and all water pixels set to 1, so when used to multiply another image it leaves sea pixel values unchanged but sets all land pixels to zero.
The next step is to make a mask using TMBAND5.GIF. We want to produce an image from it with all sea pixels set to 1 and all land pixels to 0. Minimize the two depth-invariant images and apply an automatic linear stretch to the original TMBAND5.GIF image. Note that the sea pixels are uniformly dark whilst the land pixels are very variable. It will thus be fairly easy to find out what the maximum reflectance of the sea pixels are, then to consider any pixels above this threshold value as being land.
You can either move the cursor around in areas which are clearly sea and note the highest pixel value you record or copy some 10 x 10 groups of sea pixels to an Excel spreadsheet and use the MAX function or inspection to find out what the largest value is. [Suggestion: Use Edit, GoTo to select 10 x 10 pixel box starting at coordinates 382, 82 off the east coast of South Caicos, Copy this block of pixels and Paste it to a spreadsheet. Note the highest value. Repeat with a 10 x 10 pixel box from the salinas on South Caicos starting at coordinates 300, 105].
Question: 6.1. What is the highest pixel value in areas which are clearly water covered? Answers
This requires a formula of the type:
IF (@1 <= threshold ) 1 ELSE 0 ;
where @1 is the TMBAND5.GIF image. The formula takes each pixel in the @1 image and compares it to the threshold value, then IF the pixel has a value which is less than or equal to (<=) the threshold value it sets the output image pixel to 1. Otherwise (ELSE) the output image pixel is set to 0. Thus the output image has all land pixels set to 0 and all water pixels set to 1.
Copy the formula and Paste it to the connected images window where TMBAND5.GIF is @1. The resultant image should look all black since the brightest pixel has a value of only 1. Save this image immediately as TM_MASK6.GIF. Apply an automatic linear contrast stretch to the image. All the land should be black and all the water areas white.
Close the connected images window, the band 5 image TMBAND5.GIF, and the formula document (without saving any changes).
Question: 6.2. What two formula statements are required to make the two masked images? Answers
When you are satisfied with your formula statements. Apply your formula to the connected images and inspect the resultant images to see if the land pixels have been set to zero as expected. Save the 32 bit float images as DITM1.DAT (for the DI_TM13.DAT masked image) and DITM2.DAT (for the DI_TM23.DAT masked image). Close the connected images window, the TM_MASK6.GIF image and the unmasked depth-invariant images.
In this section you will use field survey data on where different habitats are located on the images (in HABITATS.XLS) to derive spectral signatures for major marine habitats and then use these signatures to classify the image. The classification method which will be tried is to create a simple box classifier for each habitat using the two depth-invariant bottom index images. That is, you are seeking to define discrete two dimensional areas in feature space which relate to specific habitats.
The first step is to find out what reflectance values in each depth-invariant band relate to which habitats.
Make the DITM1.DAT image the active window. Use Edit, GoTo (with UTM check box set to on) to locate the relevant pixels which are listed in Table 6.1 for your convenience. The GoTo function puts you on the north-west corner of the pixel containing the GPS coordinates input. Enter the pixel values to 3 decimal places in Table 6.1. When you have found the four sites on DITM1.DAT repeat the procedure for the DITM2.DAT image.
|
|
|||
|
|
|
|
|
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
Inspect the completed Table 6.2 and note that sand and possibly sparse seagrass appear to be fairly readily separable from other habitats on the basis of their depth-invariant bottom-index values whilst there appears to be a lot of overlap in the other classes. You will probably agree that it is very difficult to see the relationship of the signatures in the table in the two bands.
6.4. Which two habitats occupy very similar areas in feature space?
6.5. Which two habitats are likely to be confused with dense Montastraea reef patches?
6.6. With which two habitats is gorgonian plain likely to be confused?
|
|
||||
|
|
|
|
|
|
Dense seagrass | |||||
Sparse seagrass | |||||
Sand | |||||
Dense Montastraea reef | |||||
Gorgonian plain | |||||
Lobophora dominated algal areas | |||||
Coral patch reef |
Clearly it is not feasible to separate Lobophora dominated algal areas from coral patch reefs using just these two depth-invariant bands. Thus these two habitats need to be combined for classification.
|
|
||||
|
|
|
|
|
|
Lobophora dominated algal areas and coral patch reefs |
This improves the classification scheme but two further anomalies need addressing. As is evident from Figure 6.1 the Montastraea reef class swallows the dense seagrass class because of two outliers. For the purposes of this simple box-classification it is perhaps best to risk misclassification of some of the Montastraea reef by restricting the Montastraea class to a box around the five training sites which group together (Figure 6.2). Similarly the one gorgonian plain outlier with a high depth-invariant TM band 2/3 bottom index results in a lot of overlap with the coral patch reef/Lobophora class. Restricting the gorgonian plain class box to the remaining points risks leaving gorgonian plain unclassified but should improve classification of the coral patch reef/Lobophora class. The revised box-classifier boundaries which reflect the classification scheme in Figure 6.2 are listed below in Table 6.4.
Figure 6.1. Box-classification using full range of values for all seven classes.
Figure 6.2. Box-classification where Lobophora and coral patch reef classes are merged, some gorgonian plain is left unclassified, and some dense Montastraea reef class is mis-classified as dense seagrass or a coral patch reef/Lobophora. However, this scheme is likely to produce a better map than Figure 6.1.
Bear in mind that we have used a very small sample of field survey points in constructing our classification and thus may be underestimating the spread of values in feature space. This could lead to a lot of the image being unclassified.
Table 6.4. Minimum and maximum reflectances in depth-invariant bottom index images for 6 major marine habitats, using box-classifiers illustrated in Figure 6.2. Changes are in bold type.
|
|
||||
|
|
|
|
|
|
Dense seagrass |
|
|
|
|
|
Sparse seagrass |
|
|
|
|
|
Sand |
|
|
|
|
|
Dense Montastraea reef |
|
|
|
|
|
Gorgonian plain |
|
|
|
|
|
Lobophora dominated algal areas and coral patch reefs |
|
Table 6.5. Habitat classes used in classification with pixel values and colours assigned to each habitat by the formula and palette documents respectively.
Habitat class |
|
|
Classified in more than one class (unclassified) |
|
|
Sand |
|
|
Sparse seagrass |
|
|
Gorgonian plain |
|
|
Lobophora dominated algal areas and coral patch reefs |
|
|
Dense seagrass |
|
|
Dense Montastraea reef |
|
|
Land or not classified in any class |
|
|
You will now try a classification based on the tight boxes in Figure 6.2 and the very limited number of training sites (field survey stations).
Question: 6.7. What is the simple formula which will add the six images together? Answers
Copy this formula and Paste it to the connected images window. Save the resultant image as CLASSIF1.GIF and the formula as ADD6.FRM. Then apply the palette CLASSIF1.PAL (i.e. open and apply the palette while CLASSIF1.GIF is the active window). Close the connected images window and all six of the habitat images without saving them.
Question: 6.8. What is the primary problem with the resultant image? Answers
Finally, as before, add the 6 images together. Save the resultant image as CLASSIF2.GIF and apply the CLASSIF1.PAL palette to it to show up the different habitats.
Question: 6.9. In what way has the habitat map improved with the extra field data? Answers
Compare the two classifications and experiment with passing a 3x3 and 5x5 Median smoothing filter over the image to allow the broad distribution of the habitats to more clearly seen. When you have finished close all files. Do not save the 6 habitat images.
References
Mather, P.M. 1987. Computer Processing of Remotely-Sensed
Images: an Introduction. Wiley and Sons, Chichester, New York. 352
pp.
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 6.2. Minimum and maximum reflectances in depth-invariant bottom index images for 7 major marine habitats.
|
|
||||
|
|
|
|
|
|
Dense seagrass |
|
|
|
|
|
Sparse seagrass |
|
|
|
|
|
Sand |
|
|
|
|
|
Dense Montastraea reef |
|
|
|
|
|
Gorgonian plain |
|
|
|
|
|
Lobophora dominated algal areas |
|
|
|
|
|
Coral patch reef |
|
|
|
|
Table 6.3. Combined class boundaries for Lobophora dominated algal areas and coral patch reefs.
|
|
||||
|
|
|
|
|
|
Lobophora dominated algal areas and coral patch reefs |
|
|
|
|
Ground-truthing data from 7 training sites for each of
7 habitat classes.
|
|
|
|
|
237102
|
2378625
|
4.889
|
5.074
|
|
237419
|
2378323
|
5.050
|
5.354
|
|
237537
|
2378220
|
4.889
|
5.074
|
|
238531
|
2377962
|
4.698
|
5.224
|
|
238557
|
2378139
|
4.971
|
5.254
|
|
239481
|
2378287
|
4.461
|
5.165
|
|
241566
|
2379111
|
4.698
|
5.074
|
|
Max
|
5.05
|
5.35
|
||
Min
|
4.46
|
5.07
|
||
241271
|
2378574
|
6.319
|
6.072
|
|
239474
|
2378426
|
6.389
|
6.051
|
|
239025
|
2378331
|
6.431
|
6.098
|
|
239076
|
2378147
|
6.219
|
5.855
|
|
237529
|
2378066
|
6.529
|
5.902
|
|
237367
|
2378168
|
6.529
|
5.966
|
|
237161
|
2378250
|
6.277
|
5.888
|
|
Max
|
6.53
|
6.10
|
||
Min
|
6.22
|
5.86
|
||
235570
|
2377579
|
6.886
|
6.323
|
|
235283
|
2378220
|
6.960
|
6.396
|
|
231902
|
2376710
|
7.262
|
6.483
|
|
230731
|
2378132
|
7.124
|
6.437
|
|
235747
|
2380356
|
6.990
|
6.351
|
|
241741
|
2381881
|
6.991
|
6.370
|
|
242162
|
2382248
|
6.976
|
6.432
|
|
Max
|
7.26
|
6.48
|
||
Min
|
6.89
|
6.32
|
||
242192
|
2380643
|
3.962
|
4.756
|
|
242177
|
2379631
|
3.962
|
5.030
|
|
242015
|
2382824
|
3.798
|
4.819
|
|
241831
|
2379443
|
4.068
|
5.123
|
|
241904
|
2379060
|
4.417
|
5.245
|
|
241521
|
2378758
|
4.889
|
5.354
|
|
241190
|
2378147
|
5.418
|
5.573
|
|
Max
|
5.42
|
5.57
|
||
Min
|
3.80
|
4.76
|
||
241794
|
2378345
|
6.693
|
5.816
|
|
242523
|
2379111
|
6.031
|
5.030
|
|
242832
|
2379796
|
6.031
|
5.421
|
|
242818
|
2381034
|
6.176
|
5.361
|
|
240232
|
2377771
|
6.666
|
5.491
|
|
236881
|
2377248
|
6.228
|
5.245
|
|
235430
|
2375849
|
6.228
|
5.245
|
|
Max
|
6.69
|
5.82
|
||
Min
|
6.03
|
5.03
|
||
234701
|
2375304
|
6.122
|
5.670
|
|
235209
|
2375841
|
5.638
|
5.418
|
|
235438
|
2376239
|
6.070
|
5.666
|
|
236145
|
2377049
|
5.952
|
5.695
|
|
236903
|
2377410
|
5.916
|
5.603
|
|
239709
|
2378176
|
6.155
|
5.867
|
|
234377
|
2374891
|
5.463
|
5.485
|
|
Max
|
6.16
|
5.87
|
||
Min
|
5.46
|
5.42
|
||
233397
|
2376423
|
5.781
|
5.712
|
|
231904
|
2376460
|
6.101
|
5.701
|
|
242022
|
2382426
|
5.638
|
5.582
|
|
242280
|
2382139
|
6.122
|
5.666
|
|
241860
|
2381448
|
5.823
|
5.504
|
|
242096
|
2381321
|
5.188
|
5.469
|
|
238104
|
2377705
|
5.367
|
5.447
|
|
Max
|
6.12
|
5.71
|
||
Min
|
5.19
|
5.45
|
Appendix 6.2
The CLASSIF1.FRM formula document which uses the Figure 6.2 boxes as a basis for classification.
# Formula document to classify a Landsat TM image of the shallow sea around South Caicos.
#
# This document uses two depth-invariant bottom index images DITM1.DAT (@1)
# and DITM2.DAT (@2)
#
# Dense seagrass class boundaries
CONST DenSeagMin1 = 4.46 ; CONST DenSeagMax1 = 5.05 ;
CONST DenSeagMin2 = 5.07 ; CONST DenSeagMax2 = 5.35 ;
# Sparse seagrass class boundaries
CONST SpSeagMin1 = 6.22 ; CONST SpSeagMax1 = 6.53 ;
CONST SpSeagMin2 = 5.86 ; CONST SpSeagMax2 =6.10 ;
# Sand class boundaries
CONST SandMin1 = 6.89 ; CONST SandMax1 = 7.26 ;
CONST SandMin2 = 6.32 ; CONST SandMax2 = 6.48 ;
# Lobophora dominate algal area and coral patch reef class boundaries
CONST LobCoralMin1 = 5.19 ; CONST LobCoralMax1 = 6.16 ;
CONST LobCoralMin2 = 5.42 ; CONST LobCoralMax2 = 5.87 ;
# Dense Montastraea reef class boundaries
CONST MontMin1 = 3.80 ; CONST MontMax1 = 4.42 ;
CONST MontMin2 = 4.76 ; CONST MontMax2 = 5.25 ;
# Gorgonian plain class boundaries
CONST GorgMin1 = 6.03 ; CONST GorgMax1 = 6.69 ;
CONST GorgMin2 =5.03 ; CONST GorgMax2 =5.50 ;
# Sand box-classifier
IF ( (@1 >= SandMin1) AND (@1 <= SandMax1) AND (@2 >= SandMin2) AND (@2 <= SandMax2) ) 32 ELSE 0 ;
# Sparse seagrass box-classifier
IF ( (@1 >= SpSeagMin1) AND (@1 <= SpSeagMax1) AND (@2 >= SpSeagMin2) AND (@2 <= SpSeagMax2) ) 16 ELSE 0 ;
# Gorgonian plain box-classifier
IF ( (@1 >= GorgMin1) AND (@1 <=GorgMax1) AND (@2 >= GorgMin2) AND (@2 <= GorgMax2) ) 8 ELSE 0 ;
# Lobophora dominated algal areas and coral patch reef box-classifier
IF ( (@1 >= LobCoralMin1) AND (@1 <= LobCoralMax1) AND (@2 >= LobCoralMin2) AND (@2 <= LobCoralMax2) ) 4 ELSE 0 ;
# Dense seagrass box-classifier
IF ( (@1 >= DenSeagMin1) AND (@1 <= DenSeagMax1) AND (@2 >= DenSeagMin2) AND (@2 <= DenSeagMax2) ) 2 ELSE 0 ;
# Dense Montastraea reef box-classifier (sets this class to value of 1)
IF ( (@1 >= MontMin1) AND (@1 <=
MontMax1) AND (@2 >= MontMin2) AND (@2 <= MontMax2) ) 1 ELSE 0 ;
![]() |
Back to main page | Back to Module 7 | USDOC | NOAA | NESDIS | CoastWatch |