Class FastBilateralSolverFilter
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Interface for implementations of Fast Bilateral Solver.
public class FastBilateralSolverFilter : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
FastBilateralSolverFilter
- Implements
- Inherited Members
Constructors
FastBilateralSolverFilter(nint)
Creates instance by raw pointer
protected FastBilateralSolverFilter(nint p)
Parameters
pnint
Methods
Create(InputArray, double, double, double, double, int, double)
Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.
public static FastBilateralSolverFilter Create(InputArray guide, double sigmaSpatial, double sigmaLuma, double sigmaChroma, double lambda = 128, int numIter = 25, double maxTol = 1E-05)
Parameters
guideInputArrayimage serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels.
sigmaSpatialdoubleparameter, that is similar to spatial space sigma (bandwidth) in bilateralFilter.
sigmaLumadoubleparameter, that is similar to luma space sigma (bandwidth) in bilateralFilter.
sigmaChromadoubleparameter, that is similar to chroma space sigma (bandwidth) in bilateralFilter.
lambdadoublesmoothness strength parameter for solver.
numIterintnumber of iterations used for solver, 25 is usually enough.
maxToldoubleconvergence tolerance used for solver.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Filter(InputArray, InputArray, OutputArray)
Apply smoothing operation to the source image.
public virtual void Filter(InputArray src, InputArray confidence, OutputArray dst)
Parameters
srcInputArraysource image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 3 channels.
confidenceInputArrayconfidence image with unsigned 8-bit or floating-point 32-bit confidence and 1 channel.
dstOutputArraydestination image.