how can find maximum width of object

how can I automatically find the maximum width of this object in a binary image? I've shown the maximum width in red line

Respuestas (1)

Image Analyst
Image Analyst el 5 de Oct. de 2015

0 votos

Or else if you don't want the bounding box width, and want the actual width perpendicular to the major axis at the mid point, you can use my attached demo. regionprops() does not give the actual feret diameters, just the axis lengths of an ellipse fitted to the blob.

4 comentarios

Abo
Abo el 6 de Oct. de 2015
thank you, but your recommended method is not precise when I check the result with the real sample
Image Analyst
Image Analyst el 6 de Oct. de 2015
Show me why.
hyz
hyz el 27 de Abr. de 2017
Hi Image Analyst. I know I want to know if there is any possible modification to make your farthest_points function able to compute the feret diameter along the right edge of moon. As now, it computes the distance at med point, which sometimes might not be the maximum distance. Thanks.
Image Analyst
Image Analyst el 27 de Abr. de 2017
Use the radon transform to get the width of the binary object along any angle you want. It's the radon() function.

Iniciar sesión para comentar.

Preguntada:

Abo
el 5 de Oct. de 2015

Comentada:

el 27 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by