Login  Register

Re: Unique Image to Stack ?

Posted by Wayne Rasband on Sep 28, 2006; 2:35pm
URL: http://imagej.273.s1.nabble.com/Unique-Image-to-Stack-tp3701479p3701481.html

On Sep 28, 2006, at 4:48 AM, Christophe Leterrier wrote:

> Before I go on and write the macro to do that,
> Does anybody know if I can quickly use an image and expand it to a
> stack, let's say of 121 times this same image ?
> Seems silly, but it would be usefull for me because I want to overlay
> a fluorescent time-lapse (so, a stack) with a unique transmission
> image taken at the first time point (so, a unique image), and get a
> movie (so, a stack) of the overlay.
> SO I want to use RGB merge or RGB+Gray merge, but First I have to get
> my transmission image to a stack the dimension of my time-lapse
> fluorescent sequence...

Here is a macro that does this:

    n = getNumber("Stack Size:", 121);
    run("Copy");
    for (i=0; i<n-1; i++) {
        run("Add Slice");
        run("Paste");
     }

-wayne