Re: pngs to avi (making a stack) programatically
Posted by
the6e on
Jun 19, 2008; 5:19am
URL: http://imagej.273.s1.nabble.com/pngs-to-avi-making-a-stack-programatically-tp3695832p3695835.html
Wayne Rasband wrote
> steps in the gui
> ---------------
> 1. open all your images in ImageJ. Make sure they are sequentially
> named in
> an order (like 001, 002,... etc)
> 2. make a stack of your images by (Image/stacks/convert images to
> stack)
> 3. save stack as AVI (fle/save/AVI)
>
> Im trying to make an avi from a LARGE set of png images. I know
> how to do
> this from the gui, however I have a few questions that I hoped someone
> knowledgable could answer for me...
>
> questions
> ---------
> 1. Can this be achieved without the gui? (im new to Imagej)
>
> 2. I was curious if there was a size limitation to the stack of
> images? I
> thought I may have read somewhere that it maxes out at 1.7
> gigabytes, but Im
> not sure if that makes sense.
>
> 3. How would I convert png image files into a stack programatically?
A folder of images can be converted to an AVI using two commands. Use
File>Import>Image Sequence to open the images as a stack and
File>Save As>AVI to save it. There is no limit to the size of the
stack if you enable "Use Virtual Stack" in the Import>Image Sequence
dialog. To create a macro, run these commands with the recorder
(Plugins>Macros>Record) running. Save the macro in the macros folder
as convert.txt and run it from the command line using something like:
java -jar ij.jar -batch convert
-wayne
Thanks! Totally awesome