How can I measure how many pixels a single irregular object has?
이전 댓글 표시
I have an image with many irregular objects. How can I measure how many pixels each irregular object has? The image is shown as the follows. Thanks a lot!

답변 (2개)
Ahmet Cecen
2014년 8월 13일
편집: Ahmet Cecen
2014년 8월 13일
0 개 추천
I assume the sea of blue there are all 0s, so I would do image(image~=0)=1, and you will have a black and white image of only 1s and 0s.
You can use bwconncomp after the above thresholding. It will give a list of every individual object and a list of each objects pixels.
카테고리
도움말 센터 및 File Exchange에서 ROI-Based Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!