To Know the total number of pixels which belongs to one color
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
May I know is there any coding that can be used to know the total number of pixels that belongs to certain color?
Thanks.
0 Kommentare
Antworten (1)
Sabarinathan Vadivelu
am 19 Aug. 2013
I = imread('peppers.png');
RedPlane = I(:,:,1);
GreenPlane = I(:,:,2);
BluePlane = I(:,:,3);
This how you may extract separate color planes in an RGB Image
Siehe auch
Kategorien
Mehr zu Mathematics and Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!