Note: The user "Titaniumtown" is now the primary maintainer of this repository; if you need to contact the owner contact "Titaniumtown".
Original Document on the subject (by Timothy Brooks): http://timothybrooks.com/tech/hdr-plus
- Install libraw, libpng, and libjpeg.¹
- Download and compile llvm 3.9
- Install or compile the latest version Halide
- Go the folder you have the hdr-plus code in.
- From the project root directory, run the following commands:
mkdir build
cmake -DHALIDE_DISTRIB_DIR=/home/ivar/downloads/Halide-build -S . -B ./build/
cd build
make -j8
There are three zip files with examples of the HDR+ algorithm at: http://www.gardling.com/hdr_plus
Usage: ./hdrplus [-c comp -g gain (optional)] dir_path out_img raw_img1 raw_img2 [...]
The -c and -g flags change the amount of dynamic range compression and gain respectively. Although they are optional because they both have default values.
¹Also to install libraw, libpng, and libjpeg on macOS run brew install libraw libpng libjpeg
(cmake -DHALIDE_DISTRIB_DIR=/home/ivar/downloads/Halide-build -S . -B ./build/ && make -C ./build -j8) ./build/hdrplus ./test/ test.png 0.raw 1.raw