代码 import cv2 as cv import matplotlib.pyplot as plt import numpy as np def custom_hist(gray): h, w = gray.shape hist = np