Find area from binary image.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Naseeb Gill
el 1 de Nov. de 2017
Comentada: darova
el 27 de Abr. de 2019
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 comentarios
Respuesta aceptada
Image Analyst
el 1 de Nov. de 2017
Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
0 comentarios
Más respuestas (1)
Naga Sai Anupoju
el 24 de Abr. de 2019
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
2 comentarios
Image Analyst
el 27 de Abr. de 2019
??? This answer is identical to the one I posted a year and a half ago.
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!