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.

 Respuesta aceptada

Image Analyst
Image Analyst el 1 de Nov. de 2017

0 votos

Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));

Más respuestas (1)

Naga Sai Anupoju
Naga Sai Anupoju el 24 de Abr. de 2019

1 voto

binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));

2 comentarios

Image Analyst
Image Analyst el 27 de Abr. de 2019
??? This answer is identical to the one I posted a year and a half ago.
darova
darova el 27 de Abr. de 2019
Use special button for code inserting please
Untitled.png

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Nov. de 2017

Comentada:

el 27 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by