Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Latest commit

 

History

History
18 lines (11 loc) · 702 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 702 Bytes

bilateral-filter

Bilateral filter implemented in Python 2, using the pypng library

The Python file main.py can process an image as specified on the command line e.g.

$ python2 main.py path_to_image.png 3 5 500 path_to_write_filtered_image_to.png
  • the first number (3) is the size of the filter to be applied (in this case 3x3)
  • the second number (5) is the standard deviation for the distance Gaussian function
  • the third number (500) is the standard deviation for the intensity difference Gaussian function

The script can be run from within an interactive shell by

$ python2 -i main.py

More information about the implementation can be found in report.pdf