Python图像批处理(图像非监督分类)

#苏浩然
#[email protected]
#2017.06.15
import arcpy, envipy
envipy.Initialize(arcpy)
from arcpy import env
env.workspace="E:/aaa"
rasters = arcpy.ListRasters("*", "JPG")
for raster in rasters:
    inraster = raster
    outraster= "E:/bbb/fenlei_"+raster.strip(".jpg")
    arcpy.ClassifyWithoutTraining_envi(inraster, outraster, "", "", "")
print("Completed!")

你可能感兴趣的:(Python图像批处理(图像非监督分类))