Class FastGlobalSmootherFilter
Interface for implementations of Fast Global Smoother filter.
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc
Assembly: OpenCvSharp.dll
Syntax
public class FastGlobalSmootherFilter : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceFastGlobalSmootherFilter(IntPtr)
Creates instance by raw pointer
Declaration
protected FastGlobalSmootherFilter(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCreate(InputArray, Double, Double, Double, Int32)
Factory method, create instance of FastGlobalSmootherFilter and execute the initialization routines.
Declaration
public static FastGlobalSmootherFilter Create(InputArray guide, double lambda, double sigmaColor, double lambdaAttenuation = 0.25, int numIter = 3)
Parameters
Type | Name | Description |
---|---|---|
InputArray | guide | image serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels. |
System.Double | lambda | parameter defining the amount of regularization |
System.Double | sigmaColor | parameter, that is similar to color space sigma in bilateralFilter. |
System.Double | lambdaAttenuation | 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. |
System.Int32 | numIter | number of iterations used for filtering, 3 is usually enough. |
Returns
Type | Description |
---|---|
FastGlobalSmootherFilter |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceFilter(InputArray, OutputArray)
Apply smoothing operation to the source image.
Declaration
public virtual void Filter(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | source image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 4 channels. |
OutputArray | dst | destination image. |