Computer Vision, Image Processing, Computer Science, Colors, Engineering.
plt.imshow(L_GRAY, cmap="gray") # L is on the gray scale plt.show() Similar to the L channel, we need to convert the a channel to RGB then to Gray: a = im_Lab.copy() a[:, :, 0] = 127 a[:, :, 2] = 0 a_RGB = cv2.cvtColor(a,cv2.COLOR_LAB2RGB) a_GRAY = cv2.cvtColor(a_RGB,cv2.COLOR_RGB2GRAY) In the