Merubah model warna RGB ke CMY pada matlab

ini merupakan contoh koding untuk merubah citra model RGB (Red Green Blue) menjadi CMY (Cyan Magenta Yellow)

function rgbcmy(x)
F=imread('baboon24.bmp');
F=im2double(F);
%F=double(x);
r=F(:,:,1);
g=F(:,:,2);
b=F(:,:,3);

C=(1-r);
M=(1-g);
Y=(1-b);
CMY=cat(3,C,M,Y);

HE=histeq(C);
SE=histeq(M);
IE=histeq(Y);

figure,imshow(F),title('RGB Image');
figure, imshow(CMY),title('CMY Image');
end




Artikel yang berhubungan




1 comments:

Blog27999 said...

Do this hack to drop 2lb of fat in 8 hours

At least 160000 women and men are trying a easy and SECRET "water hack" to drop 1-2lbs every night as they sleep.

It is effective and it works on anybody.

This is how to do it yourself:

1) Grab a drinking glass and fill it with water half glass

2) Now learn this crazy hack

you'll become 1-2lbs lighter in the morning!

Post a Comment

Related Posts Plugin for WordPress, Blogger...