To Know the total number of pixels which belongs to one color
显示 更早的评论
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.
回答(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
类别
在 帮助中心 和 File Exchange 中查找有关 Contrast Adjustment 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!