Classify Raster (Spatial Analyst)

Available with Spatial Analyst license.

Summary

Classifies a raster dataset based on an Esri classifier definition file (.ecd) and raster dataset inputs.

The .ecd file contains all the information needed to perform a specific type of Esri-supported classification. The inputs to this tool must match the inputs used to generate the required .ecd file.

The .ecd file can be generated from any of the classifier training tools, such as Train Random Trees Classifier or Train Support Vector Machine Classifier.

Usage

  • The input raster can be any Esri-supported raster and any valid bit depth.

  • The input .ecd file contains attribute statistics suitable for the appropriate classifier.

Parameters

LabelExplanationData Type
Input Raster

The raster dataset to classify.

Mosaic Layer; Raster Layer; Image Service; String; Raster Dataset; Mosaic Dataset
Input Classifier Definition File

The input Esri classifier definition file (.ecd) containing the statistics for the chosen attributes for the classifier.

File
Additional Input Raster
(Optional)

Ancillary raster datasets, such as a multispectral image or a DEM, will be incorporated to generate attributes and other required information for the classifier. This raster is necessary when calculating attributes such as mean or standard deviation. This parameter is optional.

Mosaic Layer; Raster Layer; Image Service; String; Raster Dataset; Mosaic Dataset

Return Value

LabelExplanationData Type
Output Classified Raster

The path and name of the classified image you are creating.

The output classified raster is defined by the input raster dataset and .ecd file inputs.

Raster

ClassifyRaster(in_raster, in_classifier_definition, {in_additional_raster})
NameExplanationData Type
in_raster

The raster dataset to classify.

Mosaic Layer; Raster Layer; Image Service; String; Raster Dataset; Mosaic Dataset
in_classifier_definition

The input Esri classifier definition file (.ecd) containing the statistics for the chosen attributes for the classifier.

File
in_additional_raster
(Optional)

Ancillary raster datasets, such as a multispectral image or a DEM, will be incorporated to generate attributes and other required information for the classifier. This raster is necessary when calculating attributes such as mean or standard deviation. This parameter is optional.

Mosaic Layer; Raster Layer; Image Service; String; Raster Dataset; Mosaic Dataset

Return Value

NameExplanationData Type
out_raster_dataset

The path and name of the classified image you are creating.

The output classified raster is defined by the input raster dataset and .ecd file inputs.

Raster

Related topics