img_eq)) cv2.imwrite('res.png', res) plt.figure(figsize=(10,10)) plt.imshow(res, cmap="gray") 全部代码地址:histogram-equalization