Login  Register

Re: Getting x,y of Maxima

Posted by Michael Schmid on Jul 10, 2014; 7:38am
URL: http://imagej.273.s1.nabble.com/Re-Getting-x-y-of-Maxima-tp5008664.html

On Jul 10, 2014, at 06:38, Giuseppe Lucarelli wrote:

> Hi Michael,
> I am writing in imagej macro language and would like to get the array containing the maxima coordinates returned by the getMaxima method in the FindMaxima plugin.
>
> How do I do that?

Hi Guiseppe,

In a macro, use output=List, which writes the maxima to the Results Table.
You can retrieve the data from the Results table with getResult("X",i) and getResult("Y", i).
  http://rsb.info.nih.gov/ij/developer/macro/functions.html#getResult

>
> Thanks in advance
>
> Giuseppe
>
> P.S.: I wanted to post this on the mailing list but the system did not allow me. Sorry

Did you subscribe to the mailing list? Positing to the mailing list is for subscribers only. For info how to subscribe, see
  http://rsb.info.nih.gov/ij/list.html


Michael

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