Re: Exporting the coords of a single pixel to a text file?

Posted by Zach Dexter on
URL: http://imagej.273.s1.nabble.com/Exporting-the-coords-of-a-single-pixel-to-a-text-file-tp3702196p3702199.html

Dear all,

Wayne Rasband's solution fit the bill perfectly.  Now all of my data is in
a nice text file.  Thanks to everyone for helping out.

On 7/11/06, Johannes Schindelin <[hidden email]> wrote:

>
> Hi,
>
> On Tue, 11 Jul 2006, Zach Dexter wrote:
>
> > It would save me a lot of time on a research project I'm currently
> working
> > on if I could export the coordinates of a single pixel to a text file by
> > pressing a button or a key when I have my mouse over that pixel.  Can
> ImageJ
> > or any of its plugins do this?  If not, is anyone aware of a piece of
> > software that will let me do this?
>
> Try this tool:
>
> http://rsb.info.nih.gov/ij/macros/tools/GetCursorLocDemoTool.txt
>
> BTW this outputs only pixel coordinates, so if the origin of your stack is
> not (0, 0, 0) or the voxel size is not (1, 1, 1), you have to adjust.
>
> Unfortunately, there is no way to get the origin with a macro function,
> but you can get the voxel size with the function getVoxelSize().
>
> Hth,
> Dscho
>