Macro code to fit a spline to two segments

Posted by olivier on
URL: http://imagej.273.s1.nabble.com/Macro-code-to-fit-a-spline-to-two-segments-tp5009069.html

Hi there,

I need to calculate the length of a spline fitted to two straight lines and I am trying to write a macro for this.
The attached figure illustrates the situation.

I went as far as to calculate segments AB and BC, and angles alpha and beta. the distance "d" is known.

What should I do next? try to get the coordinates of A, B and C? And then what? Some suggesting of macro scripts or directions would be much appreciated!



EDIT: I changed the title to reflect more precisely what I need help with