Borrar filtros
Borrar filtros

How to skeletal the image ?

3 visualizaciones (últimos 30 días)
Naresh Naik
Naresh Naik el 28 de Dic. de 2013
Comentada: Image Analyst el 30 de Dic. de 2013
Do we find out the exact length (In pixels) of horizontal and vertical line....

Respuesta aceptada

Image Analyst
Image Analyst el 28 de Dic. de 2013
To get the skeleton:
skelImage = bwmorph(binaryImage, 'skel', inf);
to find the number of pixels in that:
theNumberOfPixels = sum(skelImage(:));
  2 comentarios
Naresh Naik
Naresh Naik el 30 de Dic. de 2013
Editada: Image Analyst el 30 de Dic. de 2013
Here are the link gives the both real image and skelton image
I got number of pixels as 1193
If we compare the both real and skel image,
the horizontal and vertical lines were different in widths with respect to each other
My doubt is why don't we get the width as same as the real image in skel image ?
How can I know the horizontal and vertical line length in pixels from total number of pixels (1193 pixels) ?
Image Analyst
Image Analyst el 30 de Dic. de 2013
Skeletons are only one pixel wide - that's the definition of them. Perhaps you were thinking of the binary image, like
binaryImage = realImage > 30; % or whatever value you want.
This will have some width to the lines.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by