Flattr this!
 

hdrcompose

hdrcompose is a simple command line utility to create HDR images. Given multiple images of different exposure it calculates a high dynamic range floating-point TIFF image. Its monotonic behavior for each pixel and input image avoids artifacts often seen in images created by other algorithms.

This software creates HDR images only. Use Luminance HDR (formerly known as "qtpfsgui") or similar programs to convert the output of hdrcompose to JPEGs with compressed dynamic range.

Example images

Dependencies

How to compile

gcc -O3 -ffast-math -march=native -I/usr/local/include -L/usr/local/lib -lm -ltiff -o hdrcompose hdrcompose.c `MagickWand-config --cflags --cppflags --ldflags --libs`

(Replace /usr/local/include and /usr/local/lib as neccessary for libtiff.)

How to use

Usage:
hdrcompose <curve> <file1> <ev1> [<file2> <ev2> ...] <output_tiff_file>

Supported curves: "linear", "srgb", "adobe"
If you are unsure about which response curve to use, then try "srgb".

Example:
hdrcompose srgb short-exposure.jpg -3 medium-exposure.jpg 0 long-exposure.jpg 3 hdr.tiff

Download

Changes