HoughLinesP gives 5 points
hi
I am new to using openCV and i have just started with the tutorials. I am using the Canny with HoughLinesP on a straight lines just for testing, when i run the tutorial code on a diagonal line i always get 5 4-element vector coordinates. I though i would only get 2 for a straight lines, all the coordinates pass through the line so its correct, i was just wondering why there were more that 2.
Thanks
Steve
Did you try the non probabilistic version to see it the issue is coming from the Hough transform parameters you're using or from the probabilistic method?
regarding HoughLinesP the parameter lines equates as follows...
lines – Output vector of lines. Each line is represented by a 4-element vector (x_1, y_1, x_2, y_2) , where (x_1,y_1) and (x_2, y_2) are the ending points of each detected line segment.