How to export imagej multi-point selection coordinates?

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

How to export imagej multi-point selection coordinates?

GoJian
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

How to export imagej multi-point selection coordinates?

GoJian
This post was updated on .
Dear all,

I am on a project where I am interested in the spacing & distribution of
point objects in an microscope image.

I looked through a couple different softwares and liked imagej, which has a
multi-point select feature.

But I couldn't figure out after selecting the points by hand, how to export
the coordinates. All I need is the X's and Y's for each point (for about a
hundred points for each image).

Any pointers?

Thanks immensely!

-Jian.

------------------

Update:  CTRL-M did the trick.  Thanks to WGross@uni-hd.de.

> From: WGross@uni-hd.de
> To: gj87@MSN.COM
> Date: Tue, 6 Jul 2010 09:01:58 +0200
> Subject: Re: How to export imagej multi-point selection coordinates?
>
> Hi Jian,
>
> just press CTRL-M.
>
> Regards
> Wolfgang
>
Reply | Threaded
Open this post in threaded view
|

Re: How to export imagej multi-point selection coordinates?

Michael Schmid
Hi Jian,

you can use a simple macro to write them, e.g., to the Results Table:

getSelectionCoordinates(xCoordinates, yCoordinates);
for(i=0; i<lengthOf(xCoordinates); i++) {
setResult("X", i, xCoordinates[i]);
setResult("Y", i, yCoordinates[i]);
}
updateResults();

In case the multi-point selection comes from 'Find Maxima': In the  
more recent versions of ImageJ, this command can also write the list  
directly to the Results Table.

Michael
________________________________________________________________

On 6 Jul 2010, at 08:47, GoJian wrote:

> Dear all,
>
> I am on a project where I am interested in the spacing &  
> distribution of
> point objects in an microscope image.
>
> I looked through a couple different softwares and liked imagej,  
> which has a
> multi-point select feature.
>
> But I couldn't figure out after selecting the points by hand, how  
> to export
> the coordinates. All I need is the X's and Y's for each point (for  
> about a
> hundred points for each image).
>
> Any pointers?
>
> Thanks immensely!
>
> -Jian.
>
> --
> View this message in context: http://imagej.588099.n2.nabble.com/ 
> How-to-export-imagej-multi-point-selection-coordinates-
> tp5259073p5259088.html
> Sent from the ImageJ mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to export imagej multi-point selection coordinates?

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by GoJian
On Jul 6, 2010, at 2:47 AM, GoJian wrote:

> Dear all,
>
> I am on a project where I am interested in the spacing & distribution of
> point objects in an microscope image.
>
> I looked through a couple different softwares and liked imagej, which has a
> multi-point select feature.
>
> But I couldn't figure out after selecting the points by hand, how to export
> the coordinates. All I need is the X's and Y's for each point (for about a
> hundred points for each image).
>
> Any pointers?

Use the Analyze>Measure command to write the coordinates of each point to the Results table, then save the Results table as either comma separated values (.csv) or tab-delimted test (.txt or .xls). Here is a macro that saves a multi-point selection in CSV format.

  run("Clear Results");
  run("Measure");
  saveAs("Results", getDirectory("home")+"points.csv");

-wayne