Pages

Ads 468x60px

Sharing Ilmu Pengetahuan

Mendeteksi warna RGB

untuk mendeteksi warna merah hijau dan biru di matlab berikut adalah script contohnya

a=imread('spongebob2.jpg');
figure, imshow(a);
r=a(:,:,1);
g=a(:,:,2);
b=a(:,:,3);
figure,imshow(r);
figure,imshow(g);
figure,imshow(b);

ScreenShoot :
gambar asli
show r


show g
show b


gambar diatas adalah hasil dari script yang tadi telah ditulis

No comments:

Post a Comment

Your comments are very valuable

 

Sample text

Sample Text

Sample Text