I am trying to convert RGB to Lab and then zero the a and b channels to get a grayscale image but I get an image with reddish orange tint

后端 未结 0 1858
甜味超标
甜味超标 2021-01-21 09:31

My code:

imgrey = np.asarray(ibuffer).copy()
grey = cv2.cvtColor(imgrey, cv2.COLOR_BGR2Lab)
grey[:,:,1] = 0
grey[:,:,2] = 0
grey = cv2.cvtColor(grey,cv2.COLOR_LAB         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题