1.彩色直方图 def ImgHist(image,type): color = (255,255,255) windowName='gray' if type==31: color=(255,0,0) windowName='B' elif type==32: color=(0,255,0) windowName='G' elif type==33: color=(0,0,255) windowName='R' #[0]通道 hist=cv2.calcHist([image],[0],None…