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!