Login  Register

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

Posted by Michael Schmid on Jul 06, 2010; 8:17am
URL: http://imagej.273.s1.nabble.com/How-to-export-imagej-multi-point-selection-coordinates-tp3687663p3687666.html

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.