Cleaned up adaptive bilateral filtering, added support for gaussian interpolation, updated sample and docs
This commit is contained in:

committed by
Andrey Pavlenko

parent
370235c07b
commit
a1de91a4fd
@@ -553,11 +553,12 @@ namespace cv
|
||||
CV_EXPORTS void bilateralFilter(const oclMat& src, oclMat& dst, int d, double sigmaColor, double sigmaSpace, int borderType=BORDER_DEFAULT);
|
||||
|
||||
//! Applies an adaptive bilateral filter to the input image
|
||||
// This is not truly a bilateral filter. Instead of using user provided fixed parameters,
|
||||
// the function calculates a constant at each window based on local standard deviation,
|
||||
// and use this constant to do filtering.
|
||||
// Unlike the usual bilateral filter that uses fixed value for sigmaColor,
|
||||
// the adaptive version calculates the local variance in he ksize neighborhood
|
||||
// and use this as sigmaColor, for the value filtering. However, the local standard deviation is
|
||||
// clamped to the maxSigmaColor.
|
||||
// supports 8UC1, 8UC3
|
||||
CV_EXPORTS void adaptiveBilateralFilter(const oclMat& src, oclMat& dst, Size ksize, double sigmaSpace, Point anchor = Point(-1, -1), int borderType=BORDER_DEFAULT);
|
||||
CV_EXPORTS void adaptiveBilateralFilter(const oclMat& src, oclMat& dst, Size ksize, double sigmaSpace, double maxSigmaColor=20.0, Point anchor = Point(-1, -1), int borderType=BORDER_DEFAULT);
|
||||
|
||||
//! computes exponent of each matrix element (dst = e**src)
|
||||
// supports only CV_32FC1, CV_64FC1 type
|
||||
|
Reference in New Issue
Block a user