Implement Drago's adaptive logarithmic tone mapping, a technique used in tone mapping to preserve details in high dynamic range images. This method extends traditional logarithmic tone mapping by adapting the base of the logarithm based on local luminance.
The goal is to map high dynamic range images to lower dynamic ranges while preserving details, which is crucial in computational photography. The logarithmic tone mapping approach is based on the idea that human perception of light is logarithmic, and can be represented by the equation Ld=logb(1+Lmax)logb(1+L), where L is the luminance and b is the adaptive base.
Here are the key steps:
This technique is widely used in high dynamic range imaging applications.
HDR image
Tone mapped LDR
Adaptive log base improves local contrast