Python图像批处理(图像重采样)

#苏浩然
#suhaoran109@163.com
#2017.06.10

import arcpy, os

from arcpy import env
env.workspace=”E:/aaa”
rasters = arcpy.ListRasters(“*”, “JPG”)
for raster in rasters:
    inraster = raster
    outraster=”E:/bbb/re_”+raster
    arcpy.Resample_management(inraster,outraster,”#”,”NEAREST”)
print(“All have done”)

转载自:https://blog.csdn.net/suhaorangis/article/details/73527955

You may also like...