Re: Determining origin of Z coordinates
Posted by
Stein Rørvik on
Mar 14, 2018; 10:06pm
URL: http://imagej.273.s1.nabble.com/Determining-origin-of-Z-coordinates-tp5020239p5020290.html
Thanks, works great!
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Wayne Rasband
Sent: 14. mars 2018 21:21
To:
[hidden email]
Subject: Re: Determining origin of Z coordinates
...
Upgrade to the latest daily build (1.52a4) and toUnscaled(x, y, z) will work. Both toScaled() and toUnscaled() now support a third z argument. Here is an updated version of your example:
run("T1 Head (2.4M, 16-bits)");
run("Properties...", "origin=128,128,64");
x=0; y=0; z=0;
toUnscaled(x, y, z);
print("x origin: " + x);
print("y origin: " + y);
print("z origin: " + z);
-wayne
> The easy fix to this would be to allow this third Z parameter in the toScaled and toUnscaled macro commands, for consistency.
>
> Perhaps even better, a getOrigin(x,y,z) command?
>
>
> Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html