To Know the total number of pixels which belongs to one color
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Sabarinathan Vadivelu
2013 年 8 月 19 日
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
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!