opencv 直方图均衡化(-215:Assertion failed) _src.type() == CV_8UC1 in function ‘equalizeHist‘
……median=cv2.medianBlur(img_dif2,5)print(type(median),median.shape,median.dtype)#cv2.imshow(“median-image”,median)cv2.imwrite(‘img_geo_dif_median2.png’,median)Grayimg=medianprint(Grayimg.shape)hist=cv