I used standard hough transforms to obtain the straight lines in an image using OpenCV. Now, I need to find the x and y coordinates of the point of intersection of most of the lines in the image. My idea was to divide the image into several 8*8 pixel segments( I haven’t decided on the size yet) and then search the region for lines. But I am not sure as to how I count the lines in the segments. I am struck at this point. So the things I am unable to do( using openCV) are
1.Divide the image into 8*8 pixel segments( i don’t know if there is a function for it and if not what do I do)
2.Count the number of lines in each segment.
Any reading material or hints for the code will be of really helpful.
I used standard hough transforms to obtain the straight lines in an image using
Share
Your way of detecting intersection points is totally wrong. There is a simple mathematical formula for that. I am giving you an example code in plain C. :