RGB to Montage macro

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

RGB to Montage macro

djw23
Hi,

I am new to coding and I have many images that I want to make a montage of the blue, red and green channels.  I've written a macro that will do this but I want to be able to automatically save each image instead of having to do it manually. Could someone advise me as to what to do? Thanks
Reply | Threaded
Open this post in threaded view
|

Re: RGB to Montage macro

Michael Schmid
On Jun 24, 2015, at 20:31, djw23 wrote:

> I am new to coding and I have many images that I want to make a montage of
> the blue, red and green channels.  I've written a macro that will do this
> but I want to be able to automatically save each image instead of having to
> do it manually. Could someone advise me as to what to do? Thanks

Have a look at the saveAs command of the macro functions:
  http://rsb.info.nih.gov/ij/developer/macro/functions.html#saveAs

you might also want the getDirectory function
  http://rsb.info.nih.gov/ij/developer/macro/functions.html#getDirectory


You can combine the directory and title (and/or other strings) to get a file path, e.g.
  path = getDirectory("image") + "montage_of_" + getTitle();

Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

RGB to Montage macro

Olivier Burri
Dear All,

Just as an FYI, we have a small tool called "Common Tools" in the PTBIOP update site that makes montages of multichannel images.

You can choose the position of the channels, the colors, the scalebar... and further customization. Hope this is useful for someone.

The nice thing is that it can be batch processed.

You can look at the last bit of this PDF regarding the montage
http://biop.epfl.ch/pdf/Common%20Tools_SubBars.pdf

Best

Oli @ BIOP

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: RGB to Montage macro

Jason Miller
Hi Oli-

Thanks so much for this tool. Reminds me of magicmontage to a degree, but
the batch processing is really terrific.

-Jason

On Thu, Jun 25, 2015 at 10:03 AM, Burri Olivier <[hidden email]>
wrote:

> Dear All,
>
> Just as an FYI, we have a small tool called "Common Tools" in the PTBIOP
> update site that makes montages of multichannel images.
>
> You can choose the position of the channels, the colors, the scalebar...
> and further customization. Hope this is useful for someone.
>
> The nice thing is that it can be batch processed.
>
> You can look at the last bit of this PDF regarding the montage
> http://biop.epfl.ch/pdf/Common%20Tools_SubBars.pdf
>
> Best
>
> Oli @ BIOP
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

Jason Miller, MD, PhD

University of Michigan Kellogg Eye Center

--

Home address:

117 Worden Ave

Ann Arbor, MI 48103

Cell: (415) 225-2134

E-mail: *[hidden email] <[hidden email]>*


"When I was 5 years old, my mother always told me that happiness was the
key to life. When I went to school, they asked me what I wanted to be when
I grew up. I wrote down, 'Happy.' They told me I didn't understand the
assignment. I told them they didn't understand life." - John Lennon

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