DCBIA-OrthoLab / Q3DCExtension

Apache License 2.0
4 stars 14 forks source link

Update method to compute distance from point to line #69

Closed jcfr closed 3 years ago

jcfr commented 3 years ago

from @luciacev

We realized today that Q3DC computation of a fiducial to a line actually computes the closest point distance between the fiducial and line segment and not the orthogonal distance to a true line ( infinite).

Please let me know if the explanation below is clear and we can post this issue in Github, or if you would like to schedule a Zoom meeting this Thursday PM with Antonio and I any time except from 2-3PM. In the examples below, in one of the screenshots, the line segment N-A is away from the fiducial U1 , and fiducial A is the closest point to fiducial U1, so Q3DC is computing the distance to the line segment as the distance between A and U1 (incorrect distance) instead of the true closest point of the orthogonal distance to the line projection in the infinite ( the distance we want to measure) . In the other screenshot, when the line segment N-B passes relatively close to the fiducial L1, Q3DC computes the closest point distance between fiducial L1 to the line N-B correctly ( the orthogonal distance to the line).

Can you please modify the Q3DC code to compute the distance between a true line ( infinite) and a point , instead of the distance between the line segment defined by 2 fiducials and a point?

image

image