opencv-python 绘制图像直方图及直方图均衡化

1. 绘制图像的直方图   下面的程序给出了如何绘制一幅图像总体的直方图和每一个通道的直方图html #-*- coding:utf-8 -*- import cv2 from matplotlib import pyplot as plt def whole_hist(image): ''' 绘制整幅图像的直方图 ''' plt.hist(image.ravel(), 256, [0,
相关文章
相关标签/搜索