Local Spatial Statistics

Local spatial statistics look for specific areas in an image that have clusters of similar or dissimilar values. The statistics output is an image for each index you select to calculate; each image contains a measure of autocorrelation around that pixel. ENVI provides three local spatial statistics: Anselin Local Moran’s I, Getis-Ord Local Gi, and Anselin Local Geary’s C.

To compute local spatial statistics:

  1. From the Toolbox, select Statistics > Compute Local Spatial Statistics. The Local Spatial Statistics Input File dialog appears.
  2. Select an input file and perform optional spatial and spectral subsetting, and/or masking, then click OK. The Local Spatial Statistics Parameters dialog appears.

    If the input file has a bad bands list associated with it, the default spectral subset excludes the bands specified in the list.

  3. From the Neighborhood Rule drop-down list, select which adjacency rule to use in the calculation. This rule defines which adjacent pixels to compare to the central pixel. The choices are:
  4. Select the Calculate Statistics at Multiple Ranges check box to calculate a multi-range correlogram. Selecting this check box causes the Select Maximum Lag (Pixels) and Include Intermediate Lags options to display.
  5. Use Select Maximum Lag (Pixels) with the Calculate Statistics at Multiple Ranges option to specify the maximum lag distance, in pixels, to use in the correlogram calculation. The autocorrelation statistics are calculated at each lag distance, up to the specified maximum lag. For example, a value of 5 means that autocorrelation will be calculated for lags of 5, 4, 3, 2, and for each pixel’s nearest neighbors. The statistics for each lag are stored as a separate band in the output image. This value must be greater than 1, but less than the lesser value of the number of rows and columns in the source dataset divided by 4. The default is 2 pixels.
  6. Use Include Intermediate Lags with the Select Maximum Lag (Pixels) option to use all pixel values inside the range specified in the Select Maximum Lag field for the local calculation. If this value is not set, ENVI uses only the pixels at the specified range in the calculation.
  7. Select the Output Local Moran’s I (Clustering) check box to calculate the Local Moran’s I correlation image. At least one of the three local output types is required. The default is selected.
  8. Select the Output Local Getis-Ord Gi (Hot Spots) check box to calculate the Local Getis-Ord Gi correlation image. At least one of the three local output types is required. The default is selected.
  9. Select the Output Local Geary’s C (Variability) check box to calculate the Local Geary’s C correlation image. At least one of the three local output types is required. The default is selected.
  10. Select output to File or Memory. Enter the root name for the output file in Output Root Name field. ENVI appends a string to the root name for each output type you select (for example, the output filenames for the root name bighorn would be: bighornmoran_i, bighorngeary_c, bighorngetis_ord_gi).
  11. Click OK. ENVI adds the resulting output to the Layer Manager.

Tip: When calculating statistics for multiple ranges, you can use the Z Profile tool to view the correlogram for an individual pixel.

References

Contact Technical Support to obtain copies of these references: