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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Zach Dexter
 Hi,

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?

Thanks.
Reply | Threaded
Open this post in threaded view
|

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

Robert Dougherty
Point Picker (an ImageJ plugin) and Data Thief come to mind.

 

> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Zach
> Dexter
> Sent: Tuesday, July 11, 2006 12:46 PM
> To: [hidden email]
> Subject: Exporting the coords of a single pixel to a text file?
>
>  Hi,
>
> 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?
>
> Thanks.
Reply | Threaded
Open this post in threaded view
|

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

dscho
In reply to this post by Zach Dexter
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
Reply | Threaded
Open this post in threaded view
|

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

Zach Dexter
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
>
Reply | Threaded
Open this post in threaded view
|

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

Wayne Rasband
In reply to this post by Zach Dexter
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?

The point (crosshair) tool records coordinates if you double click on  
the tool icon and check "Auto-Measure" in the dialog.

-wayne