Distance between a robot and a line

asked 2017-01-03 09:51:18 -0600

prvs gravatar image

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.

edit retag flag offensive close merge delete

Comments

If you have an explicit mathematical representation of the line: https://en.wikipedia.org/wiki/Distanc...

spmaniato gravatar image spmaniato  ( 2017-01-03 10:23:16 -0600 )edit