how to calculate width and length of binary image?

14 visualizaciones (últimos 30 días)
sou
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

Respuesta aceptada

Image Analyst
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
sou
sou el 20 de Oct. de 2014
ok sir i will check this...
sou
sou el 20 de Oct. de 2014
sir but this gives wrong width for my image sir...
my image is in this link http://labs.fme.aegean.gr/decision/downloads in this link under martin2003 zip file New database pictures\normal superficiel cells are my images sir... plz try it

Iniciar sesión para comentar.

Más respuestas (1)

Matt J
Matt J el 18 de Oct. de 2014
Editada: Matt J el 18 de Oct. de 2014
The size() command?
[Width,Length]=size(binaryImage);

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by