直方图绘制
import cv2 as cv
from matplotlib import pyplot as plt
def whole_hist(image):
'''
绘制整幅图像的直方图
'''
plt.hist(image.ravel(), 256, [
直方图绘制
import cv2 as cv
from matplotlib import pyplot as plt
def whole_hist(image):
'''
绘制整幅图像的直方图
'''
plt.hist(image.ravel(), 256, [