Dear 3dslicer community.
I try to write script which would calculate the angle between two segments.
Here is the image I have
I obtained the segments using simple threshold
Then I would need to draw (automatically by python script as it is a part of an extension) lines through the segments and calculate the angle between the two lines.
As part of the extension I already have the center coordinates of the segments.
do you have any ideas ?
if it is needed, the whole script which give me the image is here: