Find area from binary image.

1 次查看(过去 30 天)
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.

采纳的回答

Image Analyst
Image Analyst 2017-11-1
Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));

更多回答(1 个)

Naga Sai Anupoju
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
Image Analyst 2019-4-27
??? This answer is identical to the one I posted a year and a half ago.
darova
darova 2019-4-27
Use special button for code inserting please
Untitled.png

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by