import numpy as np
import matplotlib.pyplot as plt
from skimage import io
import cv2
if __name__ == '__main__':
imgPath = 'background.png'
img = io.imread(imgPath)
n, bins, patches = plt.hist(img.flatten(), bins=256)
plt.savefig("his.png")
plt.show()
基于python的灰度直方图绘制
猜你喜欢
转载自blog.csdn.net/weixin_42990464/article/details/123172922
今日推荐
周排行