merging images which containes different number of stacks

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

merging images which containes different number of stacks

neuro
Hello everybody,
I have a question regarding merging channels.
I have an image in green channel with 2007 stacks (Actually this is a time
lapse)
Another image is in blue channel with only 1 stack (1 image). I would like
to merge them via image j but I can not due to the fact that the number of
images is not in the same amount. How can I  solve this problem?
Thanks in advance



--
Sent from: http://imagej.1557.x6.nabble.com/

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

Re: merging images which containes different number of stacks

Straub, Volko A. (Dr.)
Add additional slices to your stack with just 1 image and copy the image so that it matches the total number of slices in the larger stack (probably best done via a small macro for that many slices). You can then merge the two stacks.

Alternatively, add the single image as an overlay to the time series stack.

Which one is more appropriate probably depends on the type of image/what you try to show.

Hope this helps,
Volko

-----Original Message-----
From: neuro [mailto:[hidden email]]
Sent: 05 December 2018 16:48
To: [hidden email]
Subject: merging images which containes different number of stacks

Hello everybody,
I have a question regarding merging channels.
I have an image in green channel with 2007 stacks (Actually this is a time
lapse)
Another image is in blue channel with only 1 stack (1 image). I would like to merge them via image j but I can not due to the fact that the number of images is not in the same amount. How can I  solve this problem?
Thanks in advance



--
Sent from: http://imagej.1557.x6.nabble.com/

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

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

Re: merging images which containes different number of stacks

Michael Schmid
In reply to this post by neuro
Hi Neuro,

in today's daily build (available via Help>Update ImageJ), Wayne has
added the possibility to convert a single images to a stack:
Also single images have a 'Depth (images)' field in Image>Adjust>Slices.
You can set it to the desired number of slices; all slices will contain
the same image.

Then, you can create a composite image from two stacks. Here is a macro
example:


   run("T1 Head (2.4M, 16-bits)");
   n = nSlices();
   run("Duplicate...", "slice");
   run("Gaussian Blur...", "sigma=2");
   // We now have a single image of the same size
   width = getWidth();
   height = getHeight();
   run("Size...", "width=&width height=&height depth=&n
interpolation=None");
   // The single image is expanded to a stack now
   run("Merge Channels...", "c1=t1-head.tif c2=t1-head-1.tif create");



Michael
________________________________________________________________
On 05.12.18 17:48, neuro wrote:
> Hello everybody,
> I have a question regarding merging channels.
> I have an image in green channel with 2007 stacks (Actually this is a time
> lapse)
> Another image is in blue channel with only 1 stack (1 image). I would like
> to merge them via image j but I can not due to the fact that the number of
> images is not in the same amount. How can I  solve this problem?
> Thanks in advance

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