ENVI Tutorial: Basic Hyperspectral Analysis
ENVI Tutorial: Basic Hyperspectral Analysis
ENVI Tutorial: Basic Hyperspectral Analysis
Hyperspectral Analysis
Basic Hyperspectral Analysis
Files Used in this Tutorial
Define ROIs
Load AVIRIS Data
Create and Restore ROIs
Extract Mean Spectra from ROIs
Discriminate Mineralogy
Close Plot Windows and ROI Controls
2D Scatter Plots
Density Slice the Scatter Plot
Dancing Pixels
Scatter Plots Linked to a Spectral Profile
Scatter Plot ROIs
Image ROIs
Scatter Plots and Spectral Mixing
References
2
2
3
3
3
4
6
6
7
7
7
8
8
9
9
10
Description
Define ROIs
You can use ROIs to extract statistics and average spectra from groups of pixels. You can define as
many ROIs as you wish in any displayed image.
First standard deviation above and below the mean spectrum (green)
Minimum and maximum envelope containing all of the spectra in the ROI (red)
5. From the ROI Statistics Results dialog menu bar, select File > Cancel.
6. In the ROI Tool, click Delete to delete the selected ROI.
7. From the ROI Tool dialog menu bar, select File > Restore ROIs. An Enter ROI Filenames
dialog appears.
8. Navigate to Data/c95avsub and select cup95_av.roi. Click Open. This file contains
previously defined ROIs for known areas of specific minerals. The ROIs are listed in an ENVI
message dialog and loaded into the ROI Tool dialog as shown in the following figure:
9. In the ROI Tool dialog, select the Off radio button to enable pixel positioning in the display group.
10. From the Display group menu bar, select Tools > Profiles > Z Profile (Spectrum).
11. Move the crosshairs in the Zoom window to a pixel inside of an ROI.
8. Compare the spectral features of each spectrum and note unique characteristics that might allow
mineral identification.
9. You can compare spectral library signatures to the ROI mean signatures for calcite,
buddingtonite, kaolinite, and alunite. Right-click inside the plot window (in the ROI Statistics
Results dialog) and select File > Input Data > Spectral Library.
10. In the Spectral Library Input File dialog, click Open and select Spectral Library.
11. Navigate to Data\spec_lib\jpl_lib and select jpl1.sli. Click Open. Click OK in the
Spectral Library Input File dialog.
12. In the Input Spectral Library dialog, select one of the following:
CALCITE C-3D
BUDDINGTONITE FELDS TS-11A
KAOLINITE WELL ORDERED PS-1A
ALUNITE SO-4
13. In the Y Data Multiplier field of the Input Spectral Library dialog, enter 1000. Click OK. The
spectral library signature appears in the plot window.
14. Try comparing spectra from the USGS spectral library (usgs_min.sli) with image spectra
and the JPL spectral library.
15. When you have finished, close the ROI Statistics Results dialog. Keep the ROI Tool dialog open
for the next exercise.
Discriminate Mineralogy
Design color images to discriminate mineralogy:
1. In the Available Bands List, select the RGB Color radio button. Select Band 183, Band 193, and
Band 207. Click Load RGB.
2. From the Display group menu bar, select Tools > Profiles > Z Profile (Spectrum). A Spectral
Profile plot window appears. Red, green, and blue lines mark the positions of the bands used to
make the RGB color-composite image.
3. In the ROI Tool dialog, select the Off radio button and browse spectra near your ROI locations.
4. Notice where the selected RGB bands fall with respect to spectral features in the previously
displayed mean spectra and how the spectral features affect the color observed in the image.
5. Click and drag the colored bars in the Spectral Profile to change them to the desired bands. One
way to enhance specific materials is by centering one color bar in an absorption feature and the
other two on opposite shoulders of the feature.
6. Right-click inside the Spectral Profile and select Load New RGB Combination to load the new
bands into the display group.
After inspecting a few sites, you should begin to understand how the color-composite colors
correspond with the spectral signature. For instance, the alunitic regions appear magenta in the
RGB composite because the green band is within the alunite absorption feature, giving a low
green value, while the red and blue bands have nearly equal reflectance. The combination of red
and blue results in a magenta color for pixels containing alunite.
Based on the above results, try these exercises:
7. Predict how certain spectra will look, given a particular pixels color in the RGB image.
8. Explain the colors of the training sites, in terms of their spectral features.
9. Design and test specific RGB band selections that maximize your ability to map certain minerals,
like kaolinite and calcite.
2D Scatter Plots
1. From the Display group menu bar, select Tools > 2D Scatter Plots. A Scatter Plot Band Choice
dialog appears.
2. Under Choose Band X, select Band 193. Under Choose Band Y, select Band 207. Click OK. A
Scatter Plot window appears with a plot of the x and y apparent reflectance values:
Dancing Pixels
1. Click and drag inside the display group to show "dancing pixels" in the Scatter Plot. The red
pixels in the Scatter Plot correspond to those pixels within a 10 x 10 patch around the cursor in the
display group.
2. Try to predict the locations of certain image colors in the scatter plot, then check them. Notice the
shape of the red dancing pixels.
3. Click and drag the middle mouse button in the Scatter Plot to show dancing pixels in the display
group. The red pixels in the image correspond to those pixels within a 10 x 10 patch around the
cursor in the Scatter Plot. Note the spatial distribution and coherency of the selected pixels.
4. Change the patch size in the Scatter Plot by selecting Options > Set Patch Size from the Scatter
Plot menu bar, and observe the difference.
Image ROIs
The Scatter Plot also functions as a simple classifier from the image.
1. From the Scatter Plot menu bar, select Options > Image ROI.
2. Draw some polygon ROIs in the display group. The ROIs are mapped to and highlighted in the
Scatter Plot with the selected color. All of the matching pixels in the image are inversely mapped
to the display group and highlighted in the same color, as though you had drawn the scatter plot
region yourself. This is the simplest form of two-band classification.
3. Note the correspondence between image color and scatter plot characteristics.
References
Clark, R. N., G. A. Swayze, A. Gallagher, T. V. V. King, and W. M. Calvin, 1993, The U. S.
Geological Survey Digital Spectral Library: Version 1: 0.2 to 3.0 mm: U. S. Geological Survey, Open
File Report 93-592, 1340 p.
Clark, R. N., A. J. Gallagher, and G. A. Swayze, 1990, Material absorption band depth mapping of the
imaging spectrometer data using a complete band shape least-squares fit with library reference spectra:
in Proceedings of the Second Airborne Visible/Infrared Imaging Spectrometer (AVIRIS) Workshop, JPL
Publication 90-54, p. 176 - 186.
Clark, R.N., T. V. V. King, M. Klejwa, G. Swayze, and N. Vergo, 1990, High Spectral Resolution
Reflectance Spectroscopy of Minerals: J. Geophys Res. 95, 12653-12680.
Grove, C. I., S. J. Hook, and E. D. Paylor, 1992, Laboratory reflectance spectra of 160 minerals, 0.4 to
2.5 Micrometers: JPL Publication 92-2.
Kruse, F. A., A. B. Lefkoff, and J. B. Dietz, 1993, Expert System-Based Mineral Mapping in northern
Death Valley, California/Nevada using the Airborne Visible/Infrared Imaging Spectrometer (AVIRIS):
Remote Sensing of Environment, Special issue on AVIRIS, May-June 1993, v. 44, p. 309 - 336.
Kruse, F. A., and A. B. Lefkoff, 1993, Knowledge-based geologic mapping with imaging spectrometers:
Remote Sensing Reviews, Special Issue on NASA Innovative Research Program (IRP) results, v. 8, p. 3
- 28.
10