Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Matlab-and-ImageJ-compatibility-tp3694692p3694697.html
Hi Gareth,
the Angle Tool does not have two different symbols for the two ends
of the angle, so one cannot see which end was clicked first. Thus, I
think it would be confusing to get, e.g., either "+60°" or
"300°" (=-60°) from angle tool selections that look absolutely
identical.
If you know that you always click on one type of feature first, then
on the vertex and then on the other feature, you could use a simple
macro that gives the angle with a sign:
if (selectionType() !=8) exit ("No Angle Selection");
getSelectionCoordinates(x, y);
angle=57.2957795131*(atan2(y[0]-y[1],x[0]-x[1])-atan2(y[2]-y[1],x[2]-x
[1]));
angle=(angle+360)%360;
print (angle);
Michael
________________________________________________________________
On 19 Oct 2008, at 23:53, Gareth Martin wrote:
> Dear All,
> Hello. I'm new to the list but have used ImageJ for a
> while now, mainly on geomorphic data, and have found it to be an
> excellent programme. I've currently begun to use ImageJ to analyse
> my archery ends to obtain the distance from the centre of the
> target face and angle from the vertical of the arrows I have shot.
> I use the measuring tools for this, namely the Angle tool and
> Straight Line Selection tool but have noticed that both tools do
> not measure from 0 to 360 degrees. I understand this is
> surmountable with some simple mathematics but this slows down my
> data entry and analysis somewhat! I've searched the forum and the
> ImageJ documentation but am no further to finding a solution. Could
> anyone offer any solutions to my problem? Thanks very much in
> advance for any help.
>
> Best wishes,
> Gareth.