Login  Register

Re: Passing parameter(Checked or uncheked) to macro

Posted by Wayne Rasband on Jul 08, 2008; 9:00pm
URL: http://imagej.273.s1.nabble.com/ImageJ-macro-roiManager-setBatchMode-leads-to-out-of-memory-sometimes-tp3695631p3695635.html

On Jul 8, 2008, at 3:49 PM, Pang, Zhengyu (GE, Research) wrote:

>  Can anyone let me know how to pass parameter to a macro. How do I know
> the options for a macro.
>
> The specific problem I have is as follows:>
>
> I want to run("Channels Tool...") and I only want to check channels 1,
> 3, and 5. How do I write it in the macro?

     Stack.setActiveChannels("10101");

This function was added to the macro language in ImageJ 1.41b.

-wayne