Table of Contents

Method Create

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Create(InputArray, double, double, double, int)

Factory method, create instance of FastGlobalSmootherFilter and execute the initialization routines.

public static FastGlobalSmootherFilter Create(InputArray guide, double lambda, double sigmaColor, double lambdaAttenuation = 0.25, int numIter = 3)

Parameters

guide InputArray

image serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels.

lambda double

parameter defining the amount of regularization

sigmaColor double

parameter, that is similar to color space sigma in bilateralFilter.

lambdaAttenuation double

internal parameter, defining how much lambda decreases after each iteration. Normally, it should be 0.25. Setting it to 1.0 may lead to streaking artifacts.

numIter int

number of iterations used for filtering, 3 is usually enough.

Returns

FastGlobalSmootherFilter