How can I draw a line along the middle row of the crop?

1 visualización (últimos 30 días)
Wen Yan
Wen Yan el 6 de Abr. de 2018
Editada: Wen Yan el 7 de Abr. de 2018
Hello, I am trying to draw a line along the middle row of the crop after color threshold and changing the picture to binary.
How do i achieve this?Please help me with the code. Here is the original image and binary image.
Thank you in advance.

Respuestas (1)

Image Analyst
Image Analyst el 7 de Abr. de 2018
Try to skeletonize it and use houghlines(). Or use hough() on the original binary image perhaps.
  1 comentario
Wen Yan
Wen Yan el 7 de Abr. de 2018
Editada: Wen Yan el 7 de Abr. de 2018
How do you detect or identify the middle row of the crops from the graph created from hough()? As it does not even identify the middle row of the crops at all.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by