getActiveChannels in composite image

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

getActiveChannels in composite image

grimper
Hello,

In the IJ built-in Macro, there is  "Stack.setActiveChannels(string)" to set the displayed channels in composite image. Does it exist any expression like "Stack.getActiveChannels(string)" to get the displayed channels?

Actually, what I want to do is to write a little macro to activate and deactivate specific channels by using keyboard shortcut.

Thanks,

Zong
Reply | Threaded
Open this post in threaded view
|

Re: getActiveChannels in composite image

Wayne Rasband
On Jul 9, 2009, at 3:27 AM, grimper wrote:

> Hello,
>
> In the IJ built-in Macro, there is  "Stack.setActiveChannels(string)"
> to set
> the displayed channels in composite image. Does it exist any
> expression like
> "Stack.getActiveChannels(string)" to get the displayed channels?
>
> Actually, what I want to do is to write a little macro to activate and
> deactivate specific channels by using keyboard shortcut.

The v1.43d daily build adds a Stack.getActiveChannels(string) macro
function.

-wayne