- Home »
- PENGOLAHAN CITRA »
- script matlab untuk menghitung rata - rata warna RGB
On Senin, 14 November 2011
rgbImage = imread ('peppers.png');
imshow (rgbImage);
redChannel = rgbImage (:,:, 1);
greenChannel = rgbImage (:,:, 2);
blueChannel = rgbImage (:,:, 3);
redMean = mean (rata-rata (redChannel))
greenMean = mean (rata-rata (blueChannel))
blueMean = mean (rata-rata (blueChannel))
pesan = sprintf ('merah rata-rata =% .2 f \ nthe hijau berarti =% .2 f \ nthe
biru berarti =% .2 f ", ...
redMean, greenMean, blueMean);
MsgBox (pesan);
Search Box
dfggfgf
Mau nanya mas, kalau script untuk mencari rata - rata dari nilai pixel bagaimana ya ? Terima Kasih
BalasHapus