how to calculate width and length of binary image?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I need to calculate width and length of the binary image... PLZ SUGGEST A WAY
0 commentaires
Réponse acceptée
Image Analyst
le 18 Oct 2014
You can use the size() function:
[theLength, width] = size(binaryImage);
The first return argument, theLength, is the number of rows (the height), and the second output argument, width, is the number of columns.
As an aside, don't use length as the name of a variable since it's the name of a built-in function.
8 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox 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!