Python图像批处理(图像非监督分类)
#苏浩然
#suhaoran109@163.com
#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!”)
转载自:https://blog.csdn.net/suhaorangis/article/details/73528076