rgb=imread('flower2.tif'); //tentukan lokasigambar
rgb=imread('flower2.tif');
figure,imshow(rgb)
FR = rgb (:,:,1);
FG = rgb (:,:,2);
FB = rgb (:,:,3);
rgb_image=cat(3,FR,FG,FB)
rgb_image=cat(3,FR,FG,FB);
figure,imshow(rgb_image)
figure,imshow(FR)
figure,imshow(FG)
figure,imshow(FB)
cmy_image=imcomplement(rgb_image)
cmy_image=imcomplement(rgb_image);
figure,imshow(cmy_image)
FC = cmy_image (:,:,1);
FM = cmy_image (:,:,2);
FY = cmy_image (:,:,3);
figure,imshow(FC)
figure,imshow(FM)
figure,imshow(FY)