Find Point Distance

asked 2015-07-11 05:28:33 -0500

image description In Picture 1 Point Reference to find distance between black line.

I want to measure the black line. please share idea or code for me. Help me..................

edit retag flag offensive close merge delete


so you know the coordinates of red spot? is that line parallel to y axis ( the red line passing through red spot which represents the distance) ? or you know the angle at which the red line intersects black line? this is not the opencv or programming question, this is an algebra question where you need to find some logic to find the intersecting points ( of red and black line ) then you can simply compute the distance between the points ( in turn line ).

Prem gravatar imagePrem ( 2015-07-11 09:13:12 -0500 )edit

Please define your "distance", for example due to lines aren't parallel, pt to l1 has different direction from pt to l2 while you are drawing a single segment l1 to l2 crossing by pt

pklab gravatar imagepklab ( 2015-07-11 09:57:16 -0500 )edit