Login  Register

Setting the current channel in a CompositeImage

Posted by Junkshops on Apr 20, 2010; 10:32pm
URL: http://imagej.273.s1.nabble.com/Setting-the-current-channel-in-a-CompositeImage-tp3688537.html

Hi all,

    I'm trying to programatically manipulate a CompositeImage in Jython.
Some class methods operate on the current channel: getChannelColor(),
setDisplayRange() and setChannelLut(), for example. However, I can't
find any way to actually set the current channel.
CompositeImage.currentChannel is only accessible to code in the same
package, and there are no methods to change it. Even the code in
ContrastAdjuster just calls ImagePlus.setPosition() rather than setting
the current channel.

Hence, if I want to programatically set channel colors in a
CompositeImage, how the heck do I do it?

Thanks.