Modal plugin call from Macro

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

Modal plugin call from Macro

Heerpa
Hi All,

I am trying to get my first macro to work. In the process, I would like the user to set the threshold of an image. therefore, I call

run("Threshold...");

afterwards, I proceed processing the image. However, this line calls the threshold window and the macro goes on right away, without waiting for an application of threshold.
Is there a way to make it wait for the user to adjust the parameters?

thanks
   Heinrich

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

Re: Modal plugin call from Macro

dscho
Hi Heinrich,

On Tue, 16 Jul 2013, Heinrich Grabmayr wrote:

> I am trying to get my first macro to work. In the process, I would like
> the user to set the threshold of an image. therefore, I call
>
> run("Threshold...");
>
> afterwards, I proceed processing the image. However, this line calls the
> threshold window and the macro goes on right away, without waiting for
> an application of threshold.  Is there a way to make it wait for the
> user to adjust the parameters?

Yep:

        http://imagej.net/developer/macro/functions.html#waitForUser

Ciao,
Johannes

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