Targa averager v1.1



NOTE: This project is very old, unsupported and obsolete.
Nowadays you can do this with widely-used existing tools such as ImageMagick.


Download ANSI C source code and DOS executable.

Updated 12.8.98: Fixed bug that made the program crash (specially in Linux and sometimes in other platforms).

Averaging images is useful for adding motion blur to the image. This program is mainly intended for averaging Povray-generated animation frames in uncompressed 24-bit true color TGA format.
You can also make focal blur with the program.

The program can take several TGA files and calculate their average, addition or difference to one or several output files.

There are several possibilities to use the program. They are listed here:

- A single input file, an operand file and an output file:
The first two files are averaged and the result is stored in the output file.

- Multiple input files and an output file:
All the input files are averaged together and the result is stored in the output file.

- Multiple input files, an operand file and multiple output files:
The input files are averaged one by one with the operand file and the resulting files are stored in the output files.

- Multiple input files and multiple output files:
The first input file is averaged with the second input file and the result is stored in the first output file. Then the second input file is averaged with the third input file and the result is stored in the second output file, and so on. There will be one output file less than input files.

The last feature in conjunction with the addition and difference options allows making delta frames (see average.txt for more details).

Input files can be specified in the command line or in a filename list.

As an example, let's see three Povray-rendered images:



and the result after averaging them:

See also a motion blurred image made averaging Povray images: Takeoff.jpg.