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 件のコメント
Image Analyst
2019 年 4 月 27 日
??? This answer is identical to the one I posted a year and a half ago.
参考
カテゴリ
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!