Extract objects from binary image
이전 댓글 표시
Hey,
I am looking for a way to extrac objects from an binary image.
For example, Given the following image, I am looking for a way to get the matrix of the area of each of those 3 big objects.

Thank you in advance.
답변 (1개)
Something like this perhaps,
BW=bwareafilt(~yourBinarizedImage,3);
regions=regionprops(BW,'Image');
댓글 수: 3
Walter Roberson
2021년 4월 18일
In particular, regionprops and ask for 'Area'
Walter Roberson
2021년 4월 18일
I would interpret it as a single matrix containing all three areas.
Areas = [regions.Area];
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!