Find area from binary image.
이전 댓글 표시
Hello,
I have this binary image:

I want to encircle it with ellipse or any kind of boundary like below:

After this, I have to fill the area inside the boundary and want to found out the area of this boundary. How to do so?
Thanks.
채택된 답변
추가 답변 (1개)
Naga Sai Anupoju
2019년 4월 24일
1 개 추천
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
댓글 수: 2
Image Analyst
2019년 4월 27일
??? This answer is identical to the one I posted a year and a half ago.
darova
2019년 4월 27일
Use special button for code inserting please

카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!