Login  Register

Re: Batch channel splitter

Posted by ctrueden on Sep 11, 2014; 6:18pm
URL: http://imagej.273.s1.nabble.com/Batch-channel-splitter-tp5009575p5009585.html

Hi Chinmaya,

> I am not aware of how to edit the macro. Could you help?

Your exact question has been asked and answered before; maybe this thread
in the archives helps you. It has a fully formed macro you could adapt to
your purposes.

https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;cdc7ef1a.1008

Regards,
Curtis

On Thu, Sep 11, 2014 at 12:39 PM, Jeff Spector <[hidden email]> wrote:

> On Thu, Sep 11, 2014 at 11:54 AM, csadangi <[hidden email]> wrote:
>
> > Does anyone know how to split channels in a batch for multiple images
> using
> > ImageJ?
> >
> > Also how to select only a particular channel for batch conversion? For
> ex:
> > converting multiple RGB TIFF images to green channel only?
> >
> > Lastly, how can i change the default save from .TIFF to .JPEG. When i
> press
> > CTRL+S after taking a screenshot my images are stored as .TIFF and i want
> > to
> > save the images as .JPEG.
> >
> > Thanks :)
> >
> >
> >
> > --
> > View this message in context:
> > http://imagej.1557.x6.nabble.com/Batch-channel-splitter-tp5009575.html
> > Sent from the ImageJ mailing list archive at Nabble.com.
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
>
> Hi,
>  You can split the channels and then select the channel you want using the
> imageID.  A Macro that looks something like this
>
> run("Split Channels"); //split the channels
> blue = getImageID(); // get id of blue image
> red = blue+1 ; //assign ids
> green = blue + 2; //assign ids
>
>
> should get you the individual channels.
> then you can use selectImage(ImageID) to get the channel you want..
>
>
> selectImage(green);
>
> and then save it..
>
>
> hope this helps...
> -Jeff
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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