Automatically brighten dark areas in high dynamic range images
This code shows how to automatically brighten the darker areas of high dynamic range images.
To compile (tested on macOS and Ubuntu) just type
% make
To test it
% make test
This image processing method is related to Homomorphic Image Processing but avoids the use of log space processing.
Homomorphic Filtering - wikipedia
Homomorphic Filtering - faadooengineers
This method is used in my photo painting app for iOS called "PhotoViva"
The image blurring is implemented by resizing an image to a small size and then resizing it big again.
This process can be implemented in OpenGL using shaders to automatically correct rendered images in real-time.
Enlighten sees images like your eyes see the world.
Credits: Uses https://github.com/nothings/stb to read, write and resize images.