OpenCvSharp.Cv2.BilateralFilter C# (CSharp) Method

BilateralFilter() public static method

Applies bilateral filter to the image
public static BilateralFilter ( InputArray src, OutputArray dst, int d, double sigmaColor, double sigmaSpace, BorderTypes borderType = BorderTypes.Default ) : void
src InputArray The source 8-bit or floating-point, 1-channel or 3-channel image
dst OutputArray The destination image; will have the same size and the same type as src
d int The diameter of each pixel neighborhood, that is used during filtering. /// If it is non-positive, it's computed from sigmaSpace
sigmaColor double Filter sigma in the color space. /// Larger value of the parameter means that farther colors within the pixel neighborhood /// will be mixed together, resulting in larger areas of semi-equal color
sigmaSpace double Filter sigma in the coordinate space. /// Larger value of the parameter means that farther pixels will influence each other /// (as long as their colors are close enough; see sigmaColor). Then d>0 , it specifies /// the neighborhood size regardless of sigmaSpace, otherwise d is proportional to sigmaSpace
borderType BorderTypes
return void
        public static void BilateralFilter(InputArray src, OutputArray dst, int d, double sigmaColor,
            double sigmaSpace, BorderTypes borderType = BorderTypes.Default)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            NativeMethods.imgproc_bilateralFilter(src.CvPtr, dst.CvPtr, d, sigmaColor, sigmaSpace, (int)borderType);
            GC.KeepAlive(src);
            dst.Fix();
        }
        #endregion
Cv2