How to convert a rgb image into a cmyk?
问题 I want to convert a rgb image into cmyk. This is my code the first problem is, when I divide each pixel by 255 the value closes to zero so the result image is approximately black! The second problem is, I don't know how to convert the 1 channel resulted image to 4 channel. Of course I'm not sure the made CMYK in the following code is correct. Thank you for your attention import cv2 import numpy as np import time img = cv2.imread('image/dr_trump.jpg') B = img[:, :, 0] G = img[:, :, 1] R = img[