I have a binary image with curved lines as shown below, but I would like to know how I can find where they would intersect if they are extended.
So could you give me some ides on how i could:
- extend the line endpoints in the same direction,
- how to find the intersections?
I have thought about using hough transform to find lines, then intersection, but in some images my line endpoints are not exactly straight. Is there a way to maybe only find the direction of the line at the end of it instead of over the whole line, as it is a binary image?
Thanks for any help


Applying a dilation and then an erosion will extend your endpoints like this:
A full solution could be something like this: