Disponible avec une licence Image Analyst.
Synthèse
Performs a supervised classification using the maximum likelihood classification algorithm.
Discussion
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.
Syntaxe
MLClassify (raster, signature)
Paramètre | Explication | Type de données |
raster [raster,...] | The input raster to classify using the maximum likelihood classification algorithm. | Raster |
signature [signature,...] | The .gsg signature file. | String |
Type de données | Explication |
Raster |
The output raster. |
Exemple de code
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")
Vous avez un commentaire à formuler concernant cette rubrique ?