Getting x,y of Maxima

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

Getting x,y of Maxima

alexwatson
Does anyone know how to get the x,y position of the ROIs produced by the "Find Maxima" function programmatically?

I would prefer some sort of array so that I can easily process them.  I assume it would have something to do with instantiating an RoiManager.
Reply | Threaded
Open this post in threaded view
|

Re: Getting x,y of Maxima

Lai Ding
Use "List" as output type can give the X/Y coordinates

Lai Ding, PhD | Optical Imaging Manager
Harvard NeuroDiscovery Center
Harvard Medical School
(617) 432-2799
http://www.neurodiscovery.harvard.edu/ 


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of alexwatson
Sent: Thursday, June 07, 2012 1:52 PM
To: [hidden email]
Subject: Getting x,y of Maxima

Does anyone know how to get the x,y position of the ROIs produced by the
"Find Maxima" function programmatically?

I would prefer some sort of array so that I can easily process them.  I
assume it would have something to do with instantiating an RoiManager.

--
View this message in context: http://imagej.1557.n6.nabble.com/Getting-x-y-of-Maxima-tp4998940.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Getting x,y of Maxima

alexwatson
In reply to this post by alexwatson
I found what I was looking for here, if anyone else is curious:

http://imagej.1557.n6.nabble.com/Getting-x-y-coordinates-of-the-multi-point-tool-td4490440.html
Reply | Threaded
Open this post in threaded view
|

Re: Getting x,y of Maxima

Michael Schmid
In reply to this post by alexwatson
Hi Alex,

you can get the coordinates as Polygon vertices using the call
  MaximumFinder.getMaxima(ImageProcessor ip, double tolerance, boolean
excludeOnEdges)

You need ImageJ 1.46a or later for this.

Michael
______________________________________________________________________


On Thu, June 7, 2012 19:52, alexwatson wrote:

> Does anyone know how to get the x,y position of the ROIs produced by the
> "Find Maxima" function programmatically?
>
> I would prefer some sort of array so that I can easily process them.  I
> assume it would have something to do with instantiating an RoiManager.
>
> --
> View this message in context:
> http://imagej.1557.n6.nabble.com/Getting-x-y-of-Maxima-tp4998940.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html