image-hdr

This is a rust library which implements the HDR merging algorithm for camera images taken with different exposure times (or with bracketing). It uses the algorithms described in https://www.cl.cam.ac.uk/research/rainbow/projects/noise-aware-merging/2020-ppne-mle.pdf, and uses "Poisson Photon Noise Estimator" equations to estimate final radiances at each pixel position.

Current State

The library is still in early stages of development, but aims to provide a crate that can handle all HDR merging needs. Towards that end, the following todos are the top priority:

Dependencies

Usage

``` let paths = vec!["src/image1.tif", "src/image2.tif", "src/image3.tif"]; let hdrmerge = imagehdr::hdrmergeimages(paths); let stretched = applyhistogramstretch(&fusion);

stretched .torgba16() .save(format!("src/hdrmerged.tiff")) .unwrap(); ```

Contributing

Bug reports and pull requests welcome at https://github.com/anshap1719/image-hdr

Citations