This example demonstrates how to generate a High Dynamic Range (HDR) image and a tone‑mapped LDR output using the peak::icv library.
It covers:
- Loading calibration images with multiple exposure times
- Estimating a camera response curve
- Processing captured images into an HDR composite
- Applying tone mapping to produce a viewable LDR result
- Saving HDR and LDR images with timestamped filenames
The HDR output image is a tiff floating point image, which cannot be trivially displayed by most viewers.
The LDR output image is a tone mapped integer image:

As you can see there are some black spots throughout the right side of the image. Those are only visible as black in the tone mapped image. This is an effect due to over exposure in the input images.
For detailed information about HDR processing, response curves, and tone mapping, have a look at this Guide provided in the library documentation.