Distance between a robot and a line
I want to calculate the distance between the current position of my robot and the lines that are constructed with my function cv::line. My line is resultant of a hough transform with the function HoughLinesP. How can I calculate the distance? Or instead,how can I get the position of the robot and the lines?
Thanks! Any help will be appreciated.
Asked by prvs on 2017-01-03 10:51:18 UTC
Comments
If you have an explicit mathematical representation of the line: https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line
Asked by spmaniato on 2017-01-03 11:23:16 UTC