Find the area within a boundary
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've used the function "bwboundaries" on a binary image but I can't seem to figure out how to find the area enclosed by the boundary output, B.
Is there some output from the function itself that will give me the area values of the shapes or is there another function that I can use with the boundary output from the "bwboundaries" function as the output.
Thanks
0 commentaires
Réponses (1)
Image Analyst
le 18 Fév 2013
Modifié(e) : Image Analyst
le 18 Fév 2013
You don't need the boundaries. Just pass the binary image into regionprops():
measurements = regionprops(binaryImage, 'Area');
allAreas = [measurements.Area];
See my Image Segmentation Tutorial for a more comprehensive demo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
0 commentaires
Voir également
Catégories
En savoir plus sur Image Segmentation and Analysis 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!