Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  ENVI API  >  Classification Framework  >  ENVICalculateConfusionMatrixFromRasterTask

ENVICalculateConfusionMatrixFromRasterTask

ENVICalculateConfusionMatrixFromRasterTask

This task returns a reference to an ENVIConfusionMatrix object computed from a classification raster and truth ROIs.

The classification raster contains predicted class values from a classification, which are accompanied by class names. The truth ROIs contain the actual, or expected, class names of a particular region of the raster. A confusion matrix is created by comparing the predicted names to the truth names.

Example


See the following code examples:

Syntax


Result = ENVITask('CalculateConfusionMatrixFromRaster')

Input properties (Set, Get): INPUT_RASTER, INPUT_ROIS, OUTPUT_CONFUSION_MATRIX_URI

Output properties (Get only): OUTPUT_CONFUSION_MATRIX

Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.

Methods


This task inherits the following methods from ENVITask:

AddParameter

Execute

Parameter

ParameterNames

RemoveParameter

Properties


This task inherits the following properties from ENVITask:

COMMUTE_ON_DOWNSAMPLE

COMMUTE_ON_SUBSET

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

This task also contains the following properties:

INPUT_RASTER (required)

Specify a classification raster.

INPUT_ROIS (required)

Specify an array of ENVIROIs containing truth data.

OUTPUT_CONFUSION_MATRIX

This is a reference to the output ENVIConfusionMatrix object.

OUTPUT_CONFUSION_MATRIX_URI (optional)

Specify a string with the fully qualified filename and path of the output object. If you do not specify this property, the output object (.epo) is only temporary. Once ENVI is closed, it deletes the temporary file. Restore the object later using ENVIRestoreObject.ENVIConfusionMatrix is a persistable object that can be saved and restored.

Version History


ENVI 5.4

Introduced

API Version


3.2

See Also


ENVITask, ENVICalculateConfusionMatrixFromRaster, ENVIConfusionMatrix, ENVIRestoreObject



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us