How to Convert RGB color Image or simply image to CMY color Image and Extract Each Component cyan (C) magenta (M) and yellow (Y) ? My approach :-
I=imread('Capture2.PNG');
I3 = I;
I2 =I;
I1 = I;
I1(:,:,2:3)=0;
RED = I1;
I2(:,:,1:2) = 0;
BLUE = I2;
I3(:,:,1:3)=0;
GREEN=I3;
tic;
figure;imshow(RED);
figure;imshow(BLUE);
figure;imshow(GREEN);
c = 1.0-RED;
m = 1.0-GREEN;
y = 1.0-BLUE;
figure;imshow(c);
figure;imshow(m);
figure;imshow(y);
figure,imshow( cat(3,c,m,y));
work? – Jayimshow(YourImage,[])
– Benoit_11imshow(uint8(c*255))
? Also btw you can doI3(:,:,[1,3])=0;
in one line – Dan