Image alignment with imgalt for stop motion astronomical animations

Check out the new site at https://rkblog.dev.

When photographing Sun with H-alpha solar telescope we can easily see prominences, but showing their movement with time may be hard as it's hard to align all images for a smooth animation. There is however an application for that called imgalt.

Installing imgalt

The application was published on astropolis.pl where you can download sources (for Linux) or MS Windows binary ready to run.

To compile it under Linux you will nee the boost library. For Debian/Ubuntu based distributions you will need libboost-dev, libboost-chrono-dev, libboost-system-dev and libboost-filesystem-dev. When you have all dependencies installed you can compile the source code with:

make -f Makefile.gcc

After which you will get ./imgalt binary ready to use.

In the case of MS Windows you can put images in the application folder and run it. It will generate new files under new names (BMP and TIFF files only).

As it's a command line application (no GUI) you can control it using a terminal. On Linux that's not a problem, while under Windows I use Total Commander to open the Windows terminal within given folder.

How it works

The algorithm is based on phase correlation and can align images quite efficiently so that animations won't wobble. It can operate on BMP and TIFF files and aside of executing it as is for aligning files withing the application folder we can use command line to control how the application works (input/output folders, cropping, subpixel alignment etc.). Just check ./imgalt --help for options.

When the frames are aligned we can make an animated GIF. I use convert application from ImageMagick software stack:

convert -delay 20 -loop 0 frame1.jpg frame2.jpg frame3.jpg result.gif

Parameters are as follow:

convert -delay SECONDS_DELAY -loop 0 INPUT FILES RESULT_FILENAME.gif

I often make the animation with additional reversed order frames so that it has a fluid continuous animation effect (frame list like 1, 2, 3, 4, 3, 2).

RkBlog

Astronomy and Astrophotography, 16 November 2014


Check out the new site at https://rkblog.dev.
Comment article
Comment article RkBlog main page Search RSS Contact