how to calculate width and length of binary image?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sou
el 18 de Oct. de 2014
Comentada: sou
el 20 de Oct. de 2014
I need to calculate width and length of the binary image... PLZ SUGGEST A WAY
0 comentarios
Respuesta aceptada
Image Analyst
el 18 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!