Login  Register

Re: Select window

Posted by Jerome Mutterer-3 on Nov 24, 2015; 7:13pm
URL: http://imagej.273.s1.nabble.com/Select-window-tp5015022p5015024.html

Hi John,
Use imageIDs. After running RGB Split, get the blue imageID. The green and
red imageIDs can then be computed.

run("Clown (14K)");
run("Split Channels");
blue = getImageID();
close(); // blue channel
selectImage(blue+2);
close(); // red channel

Sincerely,

Jerome.



On 24 November 2015 at 19:45, JP Dustin <[hidden email]> wrote:

> I have been trying to find a solution to this, but have been having little
> success.
>
> I am running an RGB split and need to keep the green channel from the
> resulting split. How can I get my macro to select the green channel image,
> and close the red and blue? I would like to do this for all subsequent
> images with differing image names.
>
> Thank you,
>
> JP
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--
Jerome Mutterer
CNRS - Institut de biologie moléculaire des plantes
12, rue du Général Zimmer
67084 Strasbourg Cedex
www.ibmp.cnrs.fr

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