Image Processing(Histogram)
直方图规定化
【代码过程】
1.读入俩张灰度图
2.对俩张图片分别进行均衡化
def histequ(gray, nlevels=256):
# Compute histogram
# np.bincount compute the amount of each pixel
histogram = np.bincount(gray.flatten(), minlength=nlevels)
#np.cumsum 累加
uniform_hist = (nlevels
原创
2020-09-30 11:01:06 ·
177 阅读 ·
0 评论