How to find the distance between lines in a image in matlab
Mostrar comentarios más antiguos
Hi All, I am trying to learn how to process images in Matlab. I am trying to find the vertical distance from the upper line to the lower one. I have a few questions as to how to start the process. Do I need to convert the image to binary in order to find the edges? How can I get the count of the pixels between these two lines?
Any guidance would be greatly appreciated to get me started in the right direction.
Thanks!
Added a JPG file.

Respuesta aceptada
Más respuestas (1)
Thomas Koelen
el 29 de Abr. de 2015
0 votos
With this function you can find the lines:
You get the coordinates from both lines and substract the top from the bottom one, that's the distance.
1 comentario
Sriram Badri
el 29 de Abr. de 2015
Categorías
Más información sobre Computer Vision with Simulink en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!