To Know the total number of pixels which belongs to one color
조회 수: 1 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!