jameshiew / coursework-bilateral-filter

Bilateral filter implemented in Python 2, using the pypng library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Bilateral filter implemented in Python 2, using the pypng library.


Languages

Language:Python 100.0%