This project is an implementation of a fast bilateral filter for contrast reduction (which can be used to display HDR images). The technique implemented is discussed in [1]. For a complete project desription refer [2]. Broadly the steps involved are:
- Implementation of a bilateral filter
- Downsampling in spatial and intensity domains
- Tone mapping using the bilateral filter by using detail and base components of the image
To compute the response of the bilateral filter run using,
python run_bf.py --imagepath PATH_TO_IMAGE
To perform contrast reduction on an image run,
python run_bf_tonemap.py --imagepath PATH_TO_IMAGE
Fig.1 - (Left) Original Image (Right) Filtered Image
Fig.2 - (Left) Original Image (Right) Filtered Image
Fig.3 - (Left) Original Image (Right) Filtered Image
[1] Frédo Durand, Julie Dorsey - Fast Bilateral Filtering for the Display of High-Dynamic-Range
[2] Deepankar C. - Bilateral Filter for Contrast Reduction