Merubah model warna RGB ke YIQ pada matlab

Kali ini contoh merubah model warna RGB ke model warna YIQ

function rgbtoyiq(x)

F=imread('baboon24.bmp');
YIQ = rgb2ntsc(F);
Y=YIQ(:,:,1);
I=YIQ(:,:,2);
Q=YIQ(:,:,3);

subplot(2,2,1);
imshow(F);
title ('gambar Asli');


subplot(2,2,2);
imshow(YIQ);
title ('gambar YIQ');

end




Artikel yang berhubungan




5 comments:

Angga Ramadhan said...

mas itu imangenya harus ukuran berapa???
kq syntac err
??? Error using ==> image
TrueColor CData contains element out of range 0.0 <= value <= 1.0.

Aritha H said...

Maaf baru balas.. untuk ukuran sepertinnya ga ada masalah. kemungkinan tipe gambarnya yang bukan .bmp..
makanya terjadi eror

Blog27999 said...

Did you hear there is a 12 word sentence you can communicate to your partner... that will induce intense feelings of love and instinctual appeal to you buried inside his heart?

That's because hidden in these 12 words is a "secret signal" that triggers a man's instinct to love, look after and care for you with his entire heart...

12 Words Who Fuel A Man's Desire Response

This instinct is so built-in to a man's mind that it will make him work better than before to make your relationship as strong as it can be.

In fact, triggering this influential instinct is absolutely essential to having the best possible relationship with your man that the second you send your man one of these "Secret Signals"...

...You will immediately notice him expose his soul and mind to you in a way he's never expressed before and he will identify you as the only woman in the universe who has ever truly understood him.

Blog27999 said...

Do you understand there is a 12 word phrase you can tell your partner... that will trigger deep feelings of love and impulsive attractiveness for you buried within his heart?

Because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, adore and guard you with all his heart...

12 Words Will Trigger A Man's Desire Instinct

This instinct is so built-in to a man's brain that it will make him try harder than ever before to to be the best lover he can be.

Matter of fact, fueling this influential instinct is so important to achieving the best ever relationship with your man that the moment you send your man one of these "Secret Signals"...

...You will immediately find him open his mind and heart for you in such a way he haven't expressed before and he will distinguish you as the only woman in the world who has ever truly attracted him.

Blog27999 said...

As reported by Stanford Medical, It is in fact the ONLY reason this country's women live 10 years more and weigh on average 19 KG lighter than we do.

(And really, it has absolutely NOTHING to do with genetics or some secret diet and really, EVERYTHING to do with "how" they are eating.)

BTW, I said "HOW", and not "WHAT"...

TAP on this link to determine if this brief questionnaire can help you discover your real weight loss possibilities

Post a Comment

Related Posts Plugin for WordPress, Blogger...