Python图像批处理(图像滤波处理)
#苏浩然
#suhaoran109@163.com
#2017.06.14
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/lvbo_”+raster.strip(“.jpg”)
arcpy.FilterWithConvolution_envi(inraster, outraster, “Sobel”, 3, 0, 20, “”)
print(“All have done”)
转载自:https://blog.csdn.net/suhaorangis/article/details/73527866