Hough transform filter lines

Viewed 952

I have applied the Hough transform algorithm provided by OpenCV to an image, and now I have an array of lines, each of them containing a startPoint and an endPoint. I saw that I have multiple lines that could be merged into single lines (based on their slope/distance).

How can I merge multiple lines that have the same slope?

1 Answers
Related