Stacking images always has been a favorite topic for astro or timelapse photographers. In most cases computational photography opens complete new dimension to taking pictures and acquiring awesome results. There are countless commercial software packages with some advantages or limitations. My mind about simple tasks has always been on DIY side – I think it is not worth purchasing one when you can make it by yourself. Also besides building working tool you have a chance of learning something new.
There are two mostly used modes of stacking:
Others are not so popular, but also worth mentioning:
Different image set’s require different stacking modes. Result will probably require additional post processing. Below are few sample pictures made with Python script(s) provided below. To illustrate some examples I will be using images captured by stationary time-lapse cameras.
Brighten picture is perfect algorithm to make star trails visible.
Tip: by capturing individual frames don’t not to leave gaps between frames and use long exposure. Image on the right was combined from about 2500 frames.
Usually this mode is used to reduce image random noise. Naturally it averages everything, so there are rare cases when it is being used as noise reduction algorithm. But if light conditions are bad and ISO is boosted there are some scenes (landscape, forensic, etc) when it might be helpful.
Also averaging feature comes handy when you wish to clean picture from random objects like pedestrians or cars.
You wound not believe how much information can be revealed from dark areas.
This example is received from 43 DSLR frames. Animation is made by altering ration for each frame and stacking them into animated gif.
Python scripts use standard modules (fnmatch, numpy, PIL, tqdm) that can be installed with pip – for example:
pip install tqdm
Read more Here