def resize_raw_images(prms):
rawNames,_,_ = get_imnames(prms, isRaw=True)
tgNames,_,_ = get_imnames(prms)
for rn,tn in zip(rawNames, tgNames):
im = scm.imread(rn)
im = scm.imresize(im, [320, 480])
dName = os.path.dirname(tn)
if not os.path.exists(dName):
os.makedirs(dName)
scm.imsave(tn, im)
##
# Write pairs file
process_cities.py 文件源码
python
阅读 48
收藏 0
点赞 0
评论 0
评论列表
文章目录