Class FastGlobalSmootherFilter
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Interface for implementations of Fast Global Smoother filter.
public class FastGlobalSmootherFilter : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
FastGlobalSmootherFilter
- Implements
- Inherited Members
Constructors
FastGlobalSmootherFilter(nint)
Creates instance by raw pointer
protected FastGlobalSmootherFilter(nint p)
Parameters
pnint
Methods
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
guideInputArrayimage serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels.
lambdadoubleparameter defining the amount of regularization
sigmaColordoubleparameter, that is similar to color space sigma in bilateralFilter.
lambdaAttenuationdoubleinternal 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.
numIterintnumber of iterations used for filtering, 3 is usually enough.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Filter(InputArray, OutputArray)
Apply smoothing operation to the source image.
public virtual void Filter(InputArray src, OutputArray dst)
Parameters
srcInputArraysource image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 4 channels.
dstOutputArraydestination image.