Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

First I would calculate the normal vector for each white line. Afterwards, iterate for each white point along the corresponding normal vector until a reed line is found. Then you have found two corresponding points (a white and a red point) for that you can calulate the euclidean distance.

see e.g.

How to calculate the normal vector of a line

and

Euclidean Distance

Hope it helps

Hi,

First I would calculate the normal vector for each white line. Afterwards, iterate for each white point along the corresponding normal vector until a reed red line is found. Then you have found two corresponding points (a white and a red point) for that you can calulate the euclidean distance.

see e.g.

How to calculate the normal vector of a line

and

Euclidean Distance

Hope it helps