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
- low-exposure.jpg (−3 EV)
- medium-exposure.jpg
- high-exposure.jpg (+3 EV)
- hdr.tiff (WARNING: 43 MB big, floating-point TIFFs won't be displayed in most viewers)
- gamma.jpg (postprocessed image using ImageMagick:
convert hdr.tiff -gamma 3 -quality 98 gamma.jpg ) - mantiuk06.jpg (postprocessed image using Luminance HDR)
Dependencies
How to compile
(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
- hdrcompose.c (Version 0.2)
- hdrcompose.c (Version 0.1)
Changes
- 2011-11-27: Version 0.2
- New formula providing monotonic behavior for each pixel and input image (old formula contained an error)
- Load only one input image at once (saves memory)
- 2011-01-24: Version 0.1
- Initial release
