Re: geometric challenge :)
Posted by
Leon Espinosa-3 on
URL: http://imagej.273.s1.nabble.com/Macro-code-to-fit-a-spline-to-two-segments-tp5009069p5009342.html
Dear Olivier, yes indeed if you vave the image coordinates ofA B and C you have :
AB^2 = (xB-xA)^2+(yB-yA)^2
also:
AB^2 = (xB-xA)^2+(d/2)^2
the same for
BC^2 = (xC-xB)^2+(yC-yB)^2
BC^2 = (xC-xB)^2+(d/2)^2
For angle :
d/2 = AB*sin(alpha)
alpha = arcsin(d/2 / AB)
beta = arcsin(d/2 / BC)
Hope it helps...
Leon
Le 25 août 2014 à 21:12, olivier a écrit :
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html