Login  Register

Re: macro - command with default options

Posted by Wayne Rasband on Jun 12, 2008; 2:49pm
URL: http://imagej.273.s1.nabble.com/macro-command-with-default-options-tp3695943p3695944.html

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