Skip to main content

MLClassify

サマリー

Performs a supervised classification using the maximum likelihood classification algorithm.

ディスカッション

For more information about how this function works, see ML Classify raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

構文

MLClassify(raster, signature)

パラメーター 説明 データ タイプ

raster

The input raster to classify using the maximum likelihood classification algorithm.

Raster

signature

The .gsg signature file.

String

戻り値

データ タイプ 説明

Raster

The output raster.

コードのサンプル

MLClassify example

This example performs a supervised classification, using the maximum likelihood classification.

from arcpy.ia import *
out_mlclassify_raster = MLClassify("northerncincy.tif", "C:/arcpyExamples/data/cincinnati1234.gsg")
out_mlclassify_raster.save("C:/arcpyExamples/outputs/outputs_mlclassify.tif")