项目作者: OzgurBagci

项目描述 :
Fast Approximation of Bilateral Filter Implementation in Pure Python and Comparison with OpenCV and scikit-image Bilateral Implementations
高级语言: Python
项目地址: git://github.com/OzgurBagci/fastbilateral.git
创建时间: 2018-07-08T08:01:57Z
项目社区:https://github.com/OzgurBagci/fastbilateral

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Fast Bilateral

This is a Fast Bilateral Filter Approximation inspired by an academic paper.

Development Plan

Hopefully I will:

  • Rewrite this implementation using C/C++ for computatively intensive parts.
  • Refactor utility scripts for better performance.
  • Replace the test runner to be more general purpose with a better interface.

I plan to implement above improvements until end of 2021 (Edit: postponed due to busyness).

Refrences

This code highly inspired by:

  1. [1] https://gist.github.com/ginrou/02e945562607fad170a1#file-fastbilateral-hpp
  2. [2] https://gist.github.com/jackdoerner/b81ad881c4064470d3c0#file-bilateral_approximation-py
  3. [3] https://github.com/KirillLykov/cvision-algorithms/blob/master/src/fastBilateralFilter.m
  4. [4] http://people.csail.mit.edu/jiawen/software/bilateralFilter.m

How to Use

  1. Information of functions provided in script functions. If you want to use a standartized version use:
  2. python3 runner.py
  3. and type filenames with locations. Type '!-end-!' to end giving inputs. At least 2 images are needed.
  4. This method adds Random Gaussian Noise to images and processed with Bilateral Filter Implementations.
  5. To reduce resolution of images before processing:
  6. python3 lowerres.py
  7. Inputs work exactly as runner.py.

More Information

Refer to The Report, The Fast Approximation. For more information a paper is provided in The Report.

Some Notes

  • There is no strict memory managment in ‘runner.py’ as it is just a testing script.
  • The picked configurations are explaned in The Report.
  • For more information contact one of the emails provided in ‘fastbilateralapprox.py’.