Find area from binary image.
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I have this binary image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169029/image.jpeg)
I want to encircle it with ellipse or any kind of boundary like below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169031/image.jpeg)
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.
댓글 수: 0
채택된 답변
Image Analyst
2017년 11월 1일
Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
댓글 수: 0
추가 답변 (1개)
Naga Sai Anupoju
2019년 4월 24일
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!