Skip to content

运用python实现的双边滤波器。此函数的缺点是比opencv的bilateralFilter函数运行速度慢,后续会对其进行修改,提升处理速度。本函数的优点是比opencv.bilateralFilter()函数的滤波效果好。本文参考了DuJunda(https://github.com/DuJunda/BilateralFilter/blob/master/BilateralFilter.py)的代码,在此表示感谢。此代码在其基础上实现了单通道和三通道图像的双边滤波,(DuJunda的代码不完善之处是不能处理单通道例如灰度图像)。

Notifications You must be signed in to change notification settings

MaximaMaSun/bialterral-filter-by-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

bialterral-filter-by-python

Bilateral filter implemented in python. The disadvantage of this function is that it runs slower than the bilateralFilter function of opencv. It will be modified later to improve the processing speed. The advantage of this function is that the filtering effect is better than that of the opencv.bilateralFilter() function. This article refers to DuJunda's code, thank you here. This code implements bilateral filtering of single-channel and three-channel images on its basis, (DuJunda's code is imperfect in that it cannot handle single-channel images such as grayscale images).

运用python实现的双边滤波器。此函数的缺点是比opencv的bilateralFilter函数运行速度慢,后续会对其进行修改,提升处理速度。本函数的优点是比opencv.bilateralFilter()函数的滤波效果好。本文参考了DuJunda https://github.com/DuJunda/BilateralFilter/blob/master/BilateralFilter.py 的代码,在此表示感谢。此代码在其基础上实现了单通道和三通道图像的双边滤波,(DuJunda的代码不完善之处是不能处理单通道例如灰度图像)。

处理速度Processing speed

My BilateralFilteredImage spends 16.087469577789307 seconds!

cv2 BilateralFilteredImage spends 0.04161238670349121 seconds!

About

运用python实现的双边滤波器。此函数的缺点是比opencv的bilateralFilter函数运行速度慢,后续会对其进行修改,提升处理速度。本函数的优点是比opencv.bilateralFilter()函数的滤波效果好。本文参考了DuJunda(https://github.com/DuJunda/BilateralFilter/blob/master/BilateralFilter.py)的代码,在此表示感谢。此代码在其基础上实现了单通道和三通道图像的双边滤波,(DuJunda的代码不完善之处是不能处理单通道例如灰度图像)。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%