Posted by
Wayne Rasband on
Mar 02, 2009; 8:33pm
URL: http://imagej.273.s1.nabble.com/Save-As-Animated-Gif-for-Hyperstacks-tp3693485p3693487.html
On Mar 2, 2009, at 9:28 AM, Andy Puckett wrote:
> I'm using ImageJ to analyze a time-series of astronomical images (FITS
> files). I'm using Hyperstacks, because I need to be able to adjust the
> Brightness & Contrast settings of each slice separately. This has
> worked
> fine so far, but now I'd like to be able to Save As Animated Gif. The
> problem is that it seems to be applying the same B&C settings to all
> images,
> so it seems to be treating my Hyperstack as if it were a Stack.
>
> Does SAAG only work correctly on Stacks? Could it be made to work on
> Hyperstacks in a future update? (Please?)
You can save a multichannel stack as an animated gif in the 1.42k daily
build using this method:
1. Switch to "Color" or "Grayscale" mode using the Channels tool
2. Convert to RGB using Image>Type>RGB Color
3. Convert to 8-bit using Image>Type>8-bit Color or Image>Type>8-bit
4. Set the frame rate using Image>Stacks>Animation Options
5. Save as an animated gif using File>Save As>Gif
This also works for saving in AVI and QuickTime formats, where step (3)
can be omitted because it is not necessary to convert to 8-bits.
The number of channels must be equal to the number of images in the
stack, as it is in the 5 channel "Neuron" sample image. You can update
to the daily build using the Help>Update ImageJ command and selecting
"daily build" in the drop down menu.
-wayne