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

1 view (last 30 days)
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.

Answers (1)

Image Analyst
Image Analyst on 7 Apr 2018
Try to skeletonize it and use houghlines(). Or use hough() on the original binary image perhaps.
  1 Comment
Wen Yan
Wen Yan on 7 Apr 2018
Edited: Wen Yan on 7 Apr 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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!