how to calculate width and length of binary image?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I need to calculate width and length of the binary image... PLZ SUGGEST A WAY
0 Commenti
Risposta accettata
Image Analyst
il 18 Ott 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 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!