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!