import cv2
import numpy as np
import matplotlib.pyplot as plt
import time
def calcGrayHist(I):
# 计算灰度直方图
h, w = I.shape[:2]
grayHist = np
OpenCV图像处理---绘制灰度直方图
最新推荐文章于 2024-07-31 14:06:33 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import cv2
import numpy as np
import matplotlib.pyplot as plt
import time
def calcGrayHist(I):
# 计算灰度直方图
h, w = I.shape[:2]
grayHist = np