Login  Register

Re: Getting x,y of Maxima

Posted by Michael Schmid on Jul 10, 2014; 3:57pm
URL: http://imagej.273.s1.nabble.com/Re-Getting-x-y-of-Maxima-tp5008664p5008668.html

Hi Giuseppe,

if you write a macro, you can't access public methods of a plugin, with the exception of static methods having only String arguments.

You can call other methods, e.g., MaximumFinder.getMaxima, from a plugin or javascript.

Michael
________________________________________________________________
On Jul 10, 2014, at 14:05, Giuseppe Lucarelli wrote:

> Thank you Micheal.
>
> I am looking at getting more maxima points from an roi and thought that the getMaxima was an instance of Find Maxima.
>
> Thanks for your help.
>
> Giuseppe
>
> On 10 Jul 2014 18:09, "Michael Schmid" <[hidden email]> wrote:
> 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