Movie/Multiple Stack Montage

classic Classic list List threaded Threaded
5 messages Options
Shanna Banman Shanna Banman
Reply | Threaded
Open this post in threaded view
|

Movie/Multiple Stack Montage

*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Does anyone know how make a montage of several time-lapse movies (.tif
format, RGB, 512x512px, 166 frames) of live cells? I have six files and would
like to combine them into one file that will play all videos at the same time in a
tiled/montage-type format.

THanks much!
Andrea Stout Andrea Stout
Reply | Threaded
Open this post in threaded view
|

Re: Movie/Multiple Stack Montage

*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Shanna,

You can do this easily in ImageJ or Fiji using the Image --> Stacks --> Tools --> Combine… function.   If you have 6 movies that you want to combine into one, you'll need to apply this function multiple times before you end up with one 6-tile stack, as it only works on pairs of stacks.

See here for a description:

http://rsb.info.nih.gov/ij/docs/guide/146-28.html#sub:Combine…

Best regards,

Andrea

On Aug 18, 2014, at 4:54 PM, Shanna Banman wrote:

> *****
> To join, leave or search the confocal microscopy listserv, go to:
> http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
> Post images on http://www.imgur.com and include the link in your posting.
> *****
>
> Does anyone know how make a montage of several time-lapse movies (.tif
> format, RGB, 512x512px, 166 frames) of live cells? I have six files and would
> like to combine them into one file that will play all videos at the same time in a
> tiled/montage-type format.
>
> THanks much!
Pariksheet Nanda Pariksheet Nanda
Reply | Threaded
Open this post in threaded view
|

Re: Movie/Multiple Stack Montage

In reply to this post by Shanna Banman
*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

On Mon, Aug 18, 2014 at 4:54 PM, Shanna Banman <[hidden email]> wrote:
>
> Does anyone know how make a montage of several time-lapse movies (.tif
> format, RGB, 512x512px, 166 frames) of live cells? I have six files and would
> like to combine them into one file that will play all videos at the same time in a
> tiled/montage-type format.

In ImageJ / FIJI, use Image > Stacks > Tools > Combine.


Pariksheet
Eric Shelden Eric Shelden
Reply | Threaded
Open this post in threaded view
|

Re: Movie/Multiple Stack Montage

In reply to this post by Shanna Banman
*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

You can write a short macro to do this in one step. Below is a brute force
macro that will do exactly (and only) what you want. You can tweak it if
you have different numbers of images, or want them in a different
arrangement.

macro "Montage Movie"
{
var inputs = 6;
var columns = 3;
var rows = 2;
var ImageWidth = 512;
var ImageHeight = 512;
var ImageDepth = 166;
newImage
("Output","8-bit",columns*ImageWidth,rows*ImageHeight,ImageDepth);
for (slice=1; slice<ImageDepth+1; slice++)
        {
        for (image=1; image<7; image++)
                {
                selectImage(image);
                setSlice(slice);
                run("Copy");
                selectImage("Output");
                setSlice(slice);
                if (image==1)
                makeRectangle(0,0,512,512);
                if (image==2)
                makeRectangle(512,0,512,512);
                if (image==3)
                makeRectangle(1024,0,512,512);
                if (image==4)
                makeRectangle(0,512,512,512);
                if (image==5)
                makeRectangle(512,512,512,512);
                if (image==6)
                makeRectangle(1024,512,512,512);
                run("Paste");
                }
        }
}
Shanna Banman Shanna Banman
Reply | Threaded
Open this post in threaded view
|

Re: Movie/Multiple Stack Montage

In reply to this post by Shanna Banman
*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Thank you so much everyone!! You've all certainly made my day!!

Cheers

Shanna