Previous ENVI User's Guide: Spectral Tools Next

Spectral Analyst

Use ENVI's Spectral AnalystTM to help identify materials based on their spectral characteristics. The Spectral Analyst uses ENVI techniques, such as binary encoding, Spectral Angle Mapper, and Spectral Feature Fitting to rank the match of an unknown spectrum to the materials in a spectral library (see Using Binary Encoding, Spectral Angle Mapper Classification, and Using Spectral Feature Fitting for method descriptions). You can also define your own spectral similarity techniques and add them to the Spectral Analyst (see "Spectral Analyst Functions" in the ENVI Programmer's Guide). The output of the Spectral Analyst is a list of the materials in the input spectral library ranked in order of best to worst match. An overall similarity score, and individual 0 to 1 scores for each method are reported. For more information, see Tips for Successful Use of the Spectral Analyst.


Warning
This function does not identify spectra, it just recommends likely candidates for identification. The results may change when the similarity methods used or weights are changed. It is still up to you to make the actual identification.

Opening the Spectral Analyst


Note
A plot window must be displayed.

  1. Select Spectral  Spectral Analyst.
  2.  

  3. When the Spectrum Analyst Input Spectral Library dialog appears, select the spectral library to use for the comparisons and click OK. The Edit Identify Methods Weighting dialog appears.
  4.  

  5. In the Weight text box for each similarity method, enter the desired weighting factors.
  6.  

    The weighting factors can have any value. A perfect match to a library spectrum would have an output Score of the sums of the weights.

     


    Tip
    A recommended starting point is to use a weight of 1.0 in Spectral Feature FittingTM.

     

  7. Edit the Min and Max factors for each method if desired.
  8.  

    Use the Min and Max factors to indicate which values are considered a perfect match by scaling them to 0 to 1 (or 1 to 0) scores.

    • For the Spectral Angle Mapper (SAM) method, enter the min and max values in radians. (The similarity to the library spectra are measured as an angle in radians.)
    •  

    • For the Spectral Feature Fitting (SFF) method, enter the min and max values in RMS error units. (The similarity is measured using the RMS fit error.)
    •  

      A SAM or SFF result less than or equal to the min value indicates a perfect match and gets a score of 1. A SAM or SFF result greater than or equal to the max value gets a score of 0.

       

      For the binary encoding method, enter the min and max values as a percentage of bands correctly matched (0-1).

       

      A binary encoding result less than or equal to the min value gets a score of 0 and a result greater than or equal to the max value a gets a score of 1.

       

      See Spectral Angle Mapper Classification, Using Spectral Feature Fitting, and Using Binary Encoding for method descriptions.

     

  9. In the Edit Identify Methods Weighting dialog, click OK.
  10.  

  11. The Spectral Analyst window appears. Use the Spectral Analyst window to open a new spectral library, edit the weights and min and max values, input x and y scale factors, and get input spectra from a Z-profile plot (see Spectral Analyst Options) When a spectrum displays, the Spectral Analyst works over the range displayed in the plot being analyzed.
  12.  

  13. In the Spectral Analyst window, click Apply to load a spectrum.
    • If one spectral plot is open, that spectrum is automatically entered into the Spectral Analyst.
    •  

    • If more than one spectrum is plotted, select the desired spectrum name.
    •  

    • Spectra can also be entered directly from a Z-profile window.

The results of the similarity measures are listed. ENVI resamples the spectral library to match the spectral resolution of the input spectrum.

Spectral Analyst Options

Use the Spectral Analyst window to open a new spectral library, edit the weights and min and max values, input x and y scale factors, and get input spectra from a Z-profile plot.

Setting Wavelength Ranges

To use a specific wavelength range:

  1. In the plot window, use the middle mouse button to zoom to the desired wavelength range.
  2.  

  3. In the Spectral Analyst dialog, click Apply.

Displaying Library Spectra with Input Spectra

To display the input spectrum and a selected library spectrum (with the continuum removed) in a plot together, double click with the left mouse button on the library name in the Spectral Analyst list.

Opening New Spectral Libraries

To open a new spectral library file to use in the comparisons:

  1. In the Spectral Analyst window, select File  New Spectral Library File.
  2.  

  3. When the Spectral Analyst Input Spectral Library dialog appears, select the spectral library to use for the comparisons.

Editing Weighting Factors

To edit the methods' weighting factors and min and max values:

  1. In the Spectral Analyst window, select Options  Edit Method Weights.
  2.  

  3. When the Edit Identify Methods Weighting dialog appears, edit the weight factors and min and max.

Entering X and Y Scale Factors

To enter or edit X and Y scale factors used to scale the input spectrum into the same space as the spectral library:

  1. Select Options  Edit (x,y) Scale Factors.
  2.  

  3. When the Edit (x,y) Scale Factors dialog appears, enter the desired X and Y scale factors.

Entering Spectra from Z Profiles

To enter spectra directly from a Z-profile window:

  1. Open a Z-profile plot (see Extracting Z Profiles).
  2.  

  3. In the Spectral Analyst window, select Options  Auto Input via Z-profile.
  4.  

  5. In the Select Z Profiles dialog, click on a Z profile name.
  6.  

  7. Click OK.
  8.  

  9. In the Image or Zoom window, click on a pixel to analyze.
  10.  

    The Z Profile is updated and the spectral comparison information appears in the Spectral Analyst window. As you move the Zoom box in the Image window, the information in the Spectral Analyst changes accordingly.

     


    Tip
    If you have two images displayed, you must select Options  Clear Auto Inputs before using the Spectral Analyst in the second display.

Understanding the Spectral Analyst Information

The output of the Spectral Analyst is a ranked or weighted score for each of the materials in the input spectral library. The highest score indicates the closest match and indicates higher confidence in the spectral similarity. Similar materials may have relatively high scores, but unrelated materials should have low scores.

Tips for Successful Use of the Spectral Analyst

The Spectral Analyst is based on use of spectral matching techniques that have specific requirements for successful operation. The items in this section summarize some of factors needed to effectively use the Spectral Analyst.

Wavelength Ranges

Many materials are similar in one wavelength range, yet very different in another range. For best results, use the wavelength range that contains the diagnostic absorption features. When a spectrum displays, the Spectral Analyst works over the range displayed in the plot being analyzed. If a sub-range is desired, use the middle mouse button in the plot to zoom in on the desired wavelength range before clicking Apply in the Spectral Analyst.

Methods

Determine whether materials have absorption features. If they do, Spectral Feature Fitting is probably the best method. Otherwise, Spectral Angle Mapper and/or Binary Encoding will give better results.

Absence of Materials in the Library (Similarity to other Materials)

Materials of interest in the image spectra that are not in the reference spectral library will not be identified. If a material is not in the reference spectral library, materials similar to it may score relatively high.

Multiple Materials (Mixtures)

High scores for multiple materials may indicate mixtures, particularly for minerals that have absorption features in different parts of the spectrum. Because of this, it is best to run the Spectral Analyst function on the results of an endmember determination- the "pure" endmember spectra.

Score Magnitude and Score Separation

Higher scores indicate higher confidence, because more of the rules were satisfied. Greater separation between adjacent scores indicates higher confidence in the similarity. For example a score of 0.98 for one material followed by a score of 0.96 for another material indicates that the unknown is very similar to both sets of rules, whereas a score of 0.98 for one material and a score of 0.50 for another material indicates a high probability that the spectrum represents the first material.

Multiple Matches (same score)

In many cases, the Spectral Analyst may list multiple identical scores for different materials in the rule base. This indicates that the Analyst can not discriminate the two materials under the conditions being used for identification. In that case, try a different wavelength range or use the different weighted methods to produce a unique answer.

Figure 9-11: A Spectral Analyst Result

Figure 9-11: A Spectral Analyst Result

No Match (Zero Score)

In some cases, the Spectral Analyst may list a score of 0.000 (no match) for all materials in the library. This is a good indication that the material is not in the spectral library used, as well as not similar to other materials in the library.

Context

Finally, examine the spectral ranking in the context of the image setting and known information. If a suggested identification seems invalid with respect to the known information, it is probably not the correct identification.


Warning
The Spectral Analyst tool is not foolproof. It is meant to be used as a starting point to put you on the right track towards identifying the materials in an image scene. Used properly and with a good spectral library, it can provide excellent suggestions for identification. Used blindly, it can produce totally erroneous results.

  ENVI Online Help (August 12, 2005)