Find area from binary image.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponse acceptée
Image Analyst
le 1 Nov 2017
Try this:
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
0 commentaires
Plus de réponses (1)
Naga Sai Anupoju
le 24 Avr 2019
binaryImage = bwconvhull(binaryImage, 'union');
area = bwarea(binaryImage);
% or for a simple sum of pixels:
area = sum(binaryImage(:));
2 commentaires
Image Analyst
le 27 Avr 2019
??? This answer is identical to the one I posted a year and a half ago.
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!