Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In c++, if you pass a Vec3f as the output vector, the third "dimension" is the amount of votes that line got. You can classify the lines using a clustering algorithm like DBSCAN and then choose only the line with the most votes inside each cluster.
Another way of deciding the angle is taking the average of the rhos and thetas of each cluster. This works better if you have a lot of lines in each cluster.