Program Citra Berwarna
Codingnya:
a=imread('c:\image\bunga.tif');
red=a(:,:,1);
green=a(:,:,2);
blue=a(:,:,3);
subplot(2,2,1);imshow(a),title('empat bola')
subplot(2,2,2);imshow(red),title('empat bola merah')
subplot(2,2,3);imshow(green),title('empat bola hijau')
subplot(2,2,4);imshow(blue),title('empat bola biru')
red=a(:,:,1);
green=a(:,:,2);
blue=a(:,:,3);
subplot(2,2,1);imshow(a),title('empat bola')
subplot(2,2,2);imshow(red),title('empat bola merah')
subplot(2,2,3);imshow(green),title('empat bola hijau')
subplot(2,2,4);imshow(blue),title('empat bola biru')
Hasilnya :



Komentar
Posting Komentar