Re: Specific color channel to retrieve from an image in a plugin

Posted by dscho on
URL: http://imagej.273.s1.nabble.com/Specific-color-channel-to-retrieve-from-an-image-in-a-plugin-tp5004950p5004952.html

Hi Philippe,

On Thu, 26 Sep 2013, Philippe GENDRE wrote:

> I need to retrieve the red channel of an RGB image plus object as an image
> processor in a plugin.

I suspect that you need to use the static getChannel() method of the
ChannelSplitter class:

        http://jenkins.imagej.net/job/ImageJ1-javadoc/javadoc/ij/plugin/ChannelSplitter.html#getChannel%28ij.ImagePlus,%20int%29

Ciao,
Johannes

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html