macro - command with default options

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

macro - command with default options

Nicola B.
Hi all,
a simple question.. I want to insert a command into a macro with default
values, how can I do?
In instance I'm trying to insert the command
..
run("Make Binary");
..
but when it is executed it displays a dialog with three checkbox (that I
always want cheked).
I try with
run("Make Binary",1,1,1);
and with
run("Make Binary",true,true,true);
but it does not work...
Thank a lot, best regards,

   -nicola
Reply | Threaded
Open this post in threaded view
|

Re: macro - command with default options

Wayne Rasband
On Jun 12, 2008, at 10:26 AM, Nicola B. wrote:

> Hi all,
> a simple question.. I want to insert a command into a macro with
> default values, how can I do?
> In instance I'm trying to insert the command
> ..
> run("Make Binary");
> ..
> but when it is executed it displays a dialog with three checkbox (that
> I always want cheked).
> I try with
> run("Make Binary",1,1,1);
> and with
> run("Make Binary",true,true,true);
> but it does not work...
> Thank a lot, best regards,

Run the the command with the command recorder (Plugins>Macros>Record)
running. This is what is recorded when I run the Process>Binary>make
Binary command on a thresholded image and check all three boxes is the
dialog:

     run("Make Binary", "thresholded remaining black");

-wayne