Spectral change detection

Available with Image Analyst license.

Change detection using multiband imagery is based on computing the spectral difference on a pixel-by-pixel basis.

Comparing multiband image data allows you to identify areas that have experienced a change in spectral response, usually over a period of time. ArcGIS Pro provides a few methods for comparing multiband images.

The spectral change methods are available when a mutliband raster is selected in the Contents pane.

The Compute Change raster function computes the difference between two raster layers on the fly. Only the pixels within the visible extent are processed, and if zoomed out beyond the source resolution of the input data, the pixels are resampled to a larger size to speed up processing. This is a way to compute change for quick visualization and assessment of change. You can combine this function with other raster functions for a more complex workflow.

The Compute Change Raster geoprocessing tool computes the difference between two raster datasets and generates a new raster dataset containing the change information. You can combine this tool with other tools for a more complex workflow.

The Change Detection Wizard combines tools and functions to guide you through the process of performing categorical change detection, pixel value change detection, spectral change detection, or time series change detection. You can compare two raster datasets, or two slices in a multidimensional raster dataset.

Change Detection Wizard

The Change Detection Wizard is launched from the Change Detection drop-down button on the Imagery tab, in the Analysis group. The button is unavailable if you are not working in a 2D map scene, or if you do not have the Image Analyst extension.

Configure pane

The first pane in the Change Detection Wizard is the Configure pane, where you set the Change Detection Method value. To compare multiband datasets, set Change Detection Method to Spectral Change.

ParameterDescription

From Raster

The first raster to be used in the computation. To evaluate change from time 1 (earlier) to time 2 (later), enter the time 1 raster.

To Raster

The second raster to be used in the computation. To evaluate change from time 1 (earlier) to time 2 (later), enter the time 2 raster.

To compare two slices in a multidimensional dataset, enter the multidimensional raster as the From Raster parameter. The Configure pane updates with the parameters in the table below.

ParameterDescription

Variable

The variable to be analyzed.

Dimension

The dimension field to use to compare slices.

From Slice

The first slice to be used in the computation. To evaluate change from time 1 (earlier) to time 2 (later), enter the time 1 slice.

To Slice

The second slice to be used in the computation. To evaluate change from time 1 (earlier) to time 2 (later), enter the time 2 slice.

Processing Extent

The processing extent for the output.

X Skip Factor

The x skip factor used to calculate statistics and the histogram for the change raster.

Y Skip Factor

The y skip factor used to calculate statistics and the histogram for the change raster.

Spectral Difference pane

The Spectral Difference pane allows you to specify how to compare the input multiband imagery and specify the type of change information to calculate.

ParameterDescription

Difference Type

The difference method to use in the calculation.

  • Spectral Euclidean Distance—The distance between two multiband rasters in which the spectra of each pixel is treated as a vector. Larger values indicate more change between the images. This is the default.
  • Spectral Angle Difference—The angle between two multiband rasters in which the spectra of each pixel is treated as a vector. Larger angles indicate more change between the images.
  • Band With Most Change—The band that accounts for the most change in each pixel between two multiband rasters.

Cell Size Type

  • First Of—Use the first cell size of the input rasters.
  • Min Of—Use the smallest cell size of all the input rasters.
  • Max Of—Use the largest cell size of all the input rasters. This is the default.
  • Mean Of—Use the mean cell size of all the input rasters.
  • Last Of—Use the last cell size of the input rasters.

Extent Type

  • First Of—Use the extent of the first input raster to determine the processing extent.

  • Intersection Of—Use the extent of the overlapping pixels to determine the processing extent. This is the default.
  • Union Of—Use the extent of all the rasters to determine the processing extent.
  • Last Of—Use the extent of the last input raster to determine the processing extent.

Click Preview to add a preview layer to the map, using the options you specified. You can modify the options and click Update Preview to refresh the preview layer with the new options.

Note:

The preview layers are generated using raster functions. When zoomed out beyond the source resolution, raster functions process the data using a resampled pixel size. To ensure the preview looks the way you want to see in your final result, zoom to the source resolution of the data. Right-click the preview layer and click Zoom to Source Resolution.

Classify Difference pane

The Classify Difference pane allows you to explore the differences in pixel spectra on the fly in the map, and use the information to classify the results.

The Explore Differences section is in the upper half of the Classify Difference pane.

Explore Differences section and interactive histogram
The histogram of difference values is displayed along with interactive handles for visualizing change. The Preview_Mask layer is added to the map by default when the pane is opened. When you drag the minimum and maximum histogram handles to different values in the histogram, the pixel values between the minimum and maximum are visible in the Preview_Mask layer on the map. All other pixel values are masked out and not visible. It may be easier to see the values if all other layers in the map are turned off. You can also modify the symbology of the Preview_Mask layer to more easily view the results.

To skip classification and retain the original pixel value differences, uncheck the Classify the difference in values parameter, and click Next to move to the next pane.

Use the interactive histogram to generate classes

To use the interactive histogram to generate classes, complete the following steps:

  1. Drag the minimum and maximum handles in the histogram until you have identified the change information that is important to your analysis (for example, strong negative change).
  2. Click the Add New Class button Insert Down Arrow.

    The minimum and maximum values selected in the histogram are added as minimum and maximum class values in the Classify Output table at the bottom of the pane.

  3. In the Classify Output table, add the class value (an integer) to the Output field and the name of the class to the Class Name field.

    These are required.

  4. Specify the color to use to symbolize the class.

Manually generate classes

To manually add class information without using the interactive histogram, complete the following steps:

  1. Click the Generate button Color Scheme.
  2. In the Generate pane, set the Maximum Value parameter to the number of classes you want to generate.

    You can specify a base name for the classes associated with each unique value. You can also specify the color scheme and the transparency for the class symbology.

  3. Click OK.
  4. In the Classify Output table, type the Minimum and Maximum difference field values for each class.

Click Preview to add a preview layer to the map, using the options you specified. You can modify the options and click Update Preview to refresh the preview layer with the new options.

Note:

The preview layers are generated using raster functions. When zoomed out beyond the source resolution, raster functions process the data using a resampled pixel size. To ensure the preview looks the way you want to see in your final result, zoom to the source resolution of the data. Right-click the preview layer and click Zoom to Source Resolution.

Post-processing pane

The Post-processing pane allows you to smooth your results and generate an output.

ParameterDescription

Smoothing Neighborhood

The size of the focal neighborhood to use, in pixel rows and columns, to smooth your results.

  • None—Do not perform smoothing. This is the default.
  • 3 × 3—Smooth results based on a neighborhood of 3 pixel rows by 3 pixel columns.
  • 5 × 5—Smooth results based on a neighborhood of 5 pixel rows by 5 pixel columns.
  • 7 × 7—Smooth results based on a neighborhood of 7 pixel rows by 7 pixel columns.

Statistics Fill Method

  • Minimum—Calculates the minimum value of the pixels within the neighborhood.
  • Maximum—Calculates the maximum value of the pixels within the neighborhood.
  • Mean—Calculates the average value of the pixels within the neighborhood. This is the default.
  • Standard Deviation—Calculates the standard deviation value of the pixels within the neighborhood.
  • Median—Calculates the median value of pixels within the neighborhood.
  • Majority—Calculates the majority value, or the value that occurs most frequently, of the pixels within the neighborhood.
  • Minority—Calculates the minority value, or the value that occurs least frequently, of the pixels within the neighborhood.

The statistical method to use to recalculate pixel values for a smoother result.

Save Result As

Specify the output type to generate.

  • Raster Dataset—Results are saved as a raster dataset.
  • Raster Function Template—Results are saved as a raster function template to be used for additional processing.
  • Feature Class—Results are saved as a polygon feature class.

Output Dataset

The name of the output dataset. This parameter is only available if Save Result As is set to Raster Dataset or Feature Class. If the output is a raster dataset, specify the file extension to generate a raster in a supported format.

For additional smoothing options, you can use the Statistics raster function on your results. Choose None as the Smoothing Neighborhood in the wizard, and use the Statistics raster function on the output raster dataset.

Click Preview to add a preview layer to the map, using the options you specified. You can modify the options and click Update Preview to refresh the preview layer with the new options.

Note:

The preview layers are generated using raster functions. When zoomed out beyond the source resolution, raster functions process the data using a resampled pixel size. To ensure the preview looks the way you want to see in your final result, zoom to the source resolution of the data. Right-click the preview layer and click Zoom to Source Resolution.

Compute a spectral angle difference

The following example computes the spectral angle difference between two Landsat 8 images.

  1. Add the two Landsat 8 images to the map.
  2. With the earlier image layer selected in the Contents pane, launch the Change Detection Wizard from the Imagery tab in the Analysis group.

    In the Configure pane, set the Change Detection Method to Spectral Change.

  3. Set the From Raster parameter to the earlier raster layer.
  4. Set the To Raster parameter to the later raster layer.
  5. Click Next.
  6. In the Band Difference pane, set Difference Type to Spectral Angle Difference.
    1. Set the Cell Size Type parameter to Max of and the Extent Type parameter to Intersection of.
  7. Click Next.
  8. In the Classify Difference pane, drag the minimum histogram handle until the results in the preview mask are constrained to your area of interest. Leave the maximum histogram handle at the largest positive value. Click Add New Class.

    This reduces the presence of background or small-angle, ambient change in the results.

  9. In the Classify Output table, set the Output field value to 1, type an appropriate name for the Class Name field, and use the color picker to select a red color.
  10. Click Next.
  11. In the Post-processing pane, set the Smoothing Neighborhood parameter to 3 x 3 and the Statistics Fill Method parameter to Majority.
  12. For the Output Dataset parameter, type Spectral_angle_change.tif and click Run.
  13. When the dataset is added to the map, click Finish to close the Change Detection Wizard.

Related topics


In this topic
  1. Change Detection Wizard