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
Hope it helps
2 | No.2 Revision |
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
Hope it helps