Extract objects from binary image
Afficher commentaires plus anciens
Hey,
I am looking for a way to extrac objects from an binary image.
For example, Given the following image, I am looking for a way to get the matrix of the area of each of those 3 big objects.

Thank you in advance.
Réponses (1)
Something like this perhaps,
BW=bwareafilt(~yourBinarizedImage,3);
regions=regionprops(BW,'Image');
3 commentaires
Walter Roberson
le 18 Avr 2021
In particular, regionprops and ask for 'Area'
Walter Roberson
le 18 Avr 2021
I would interpret it as a single matrix containing all three areas.
Areas = [regions.Area];
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!