Personal tools
You are here: Home cmgui Wiki Making movies with ImageJ
Views

Making movies with ImageJ

last edited 5 years ago by dcowan

ImageJ can read in a number of image formats and has a graphical user interface (for those who don't like mpeg2enc). However in saving a movie it can only build .AVI files (unless you're using a plugin).

To make a movie using ImageJ:

  1. save your images in a folder:

    • if your script saves file names without space-filling 0's (e.g. Image1.jpg, Image2.jpg ...., Image10.jpg, ...., Image112.jpg) you can simply rename them using the 'rename' command.

    • the following will convert them all to 3-digit numbers:

      > rename Image Image0 Image?.jpg
      
      > rename Image Image0 Image??.jpg
      
  2. open ImageJ:

    • if you don't have it, download from http://rsb.info.nih.gov/ij/
    • the linux version is quite big (25mb) because it contains Java runtime stuff.
    • in other OS's, the binary files are typically below (<2mb) (no I'm not lobbying for Windows!)
  3. open the images in ImageJ:

    • click on File>Import>Image Sequence...
    • just click on any of the file names that appear in a list
    • in the dialogue that appears, fill in the box for "File Name Contains" if your directory contains more than just the images
    • The image size can be arbitrary but it doesn't like compressed Tiff files (requires a separate plugin to do this).
  4. to make sure everything's ok, check the opened stack by pressing

    • real time animation through the stack should start. you can stop this by pressing esc or again. you can also move backwards and forwards by , (<) and . (>) keys.
  5. save the AVI file by clicking File>Save as...>AVI

    • enjoy

Contributing to this site

Please add to the wiki any relevant information that you think might be useful to other users of this website. For example, you might like to contribute your experiences, questions and answers.

You are encouraged to contribute to this site regardless of your level of experience. Contributions are welcomed from new and regular visitors.

If you ask a question and receive an answer from a developer you should record it in the wiki. This information is extremely useful and can help other users overcome the same problem.

See how to add and edit pages for more information.