绿油油专题

plt.imshow()显示灰度图色差问题,图片绿油油的

import pywtimport numpy as npfrom cv2 import cv2import matplotlib.pyplot as pltimg = cv2.imread("lenags15.bmp", 0)w = 'sym4' # 定义小波基的类型l = 3 # 变换层次为3coeffs = pywt.wavedec2(data=img, wavelet=w,