Skip to content

deepankarc/bilateral-filter-contrast-reduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bilateral Filter for Contrast Reduction

HDR Imaging

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:

  1. Implementation of a bilateral filter
  2. Downsampling in spatial and intensity domains
  3. Tone mapping using the bilateral filter by using detail and base components of the image

Usage

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

Results

Bilateral Filtering

(Left) Original Image (Right) Filtered Image

                                 Fig.1 - (Left) Original Image (Right) Filtered Image 

Contrast Reduction

(Left) Original Image (Right) Filtered Image

                                 Fig.2 - (Left) Original Image (Right) Filtered Image 

(Left) Original Image (Right) Filtered Image

                                 Fig.3 - (Left) Original Image (Right) Filtered Image 

References

[1] Frédo Durand, Julie Dorsey - Fast Bilateral Filtering for the Display of High-Dynamic-Range
[2] Deepankar C. - Bilateral Filter for Contrast Reduction

About

Fast bilateral filter for contrast reduction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages