摘要: #coding=utf-8 import numpy as np from PIL import Image a = np.asarray(Image.open('F:\\3.gif').convert('L')).astype('float') depth = 10. # 预设深度值为10 取值范围(0-100) grad = np.gradient(a) # 取图像灰度的梯度值... 阅读全文
posted @ 2018-11-04 23:16 SilentKiller 阅读(252) 评论(0) 推荐(0)