This task uses the Reed-Xiaoli Detector (RXD) algorithm to identify the spectral or color differences between a region to test and its neighboring pixels or the entire dataset.
Example
e = ENVI()
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
Task = ENVITask('RXAnomalyDetection')
Task.INPUT_RASTER = Raster
Task.Execute
DataColl = e.Data
DataColl.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('RXAnomalyDetection')
Input parameters (Set, Get): ANOMALY_DETECTION_METHOD, INPUT_RASTER, KERNEL_SIZE, MEAN_CALCULATION_METHOD, OUTPUT_RASTER_URI, SUPPRESS_VEGETATION
Output parameters (Get only): OUTPUT_RASTER
Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.
Input Parameters
ANOMALY_DETECTION_METHOD (optional)
Specify one of the following strings, indicating which anomaly detection method to use. See the RX Anomaly Detection help topic for more detailed descriptions of each method. The default value is RXD.
- RXD: Standard RXD algorithm
- UTD: Uniform Target Detector algorithm
- RXD-UTD: Hybrid of the RXD and UTD algorithms
INPUT_RASTER (required)
Specify a raster on which to perform anomaly detection.
KERNEL_SIZE (optional)
Specify the kernel size in pixels, around a given pixel that will be used to create a mean spectrum. Use an odd number. The minimum value is 3, and the maximum value is (number of columns - 1) less than (number of rows - 1). Specify KERNEL_SIZE only when using the Local option for MEAN_CALCULATION_METHOD. The default value is 9.
MEAN_CALCULATION_METHOD (optional)
Specify one of the following strings, indicating which mean calculation method to use. The default value is Global.
- Global: Derive the mean spectrum from the full dataset.
- Local: Derive the mean spectrum from the KERNEL_SIZE around a given pixel.
OUTPUT_RASTER_URI (optional)
Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER.
- If you do not specify this parameter, or set it to an exclamation symbol (!), ENVI creates a temporary file.
- If you set it to the hash symbol (#), ENVI creates a file in the temporary directory, but this file will not be deleted when ENVI closes.
SUPPRESS_VEGETATION (optional)
Set this parameter to true to suppress vegetation anomalies in the RXD results. The options are true or false (default).
Output Parameters
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI.
Methods
Execute
Parameter
ParameterNames
Properties
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
Version History
See Also
ENVITask, Masking Support in ENVITasks