Table of Contents

Class FastBilateralSolverFilter

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Interface for implementations of Fast Bilateral Solver.

public class FastBilateralSolverFilter : Algorithm, IDisposable
Inheritance
FastBilateralSolverFilter
Implements
Inherited Members

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

guide InputArray

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

sigmaSpatial double

parameter, that is similar to spatial space sigma (bandwidth) in bilateralFilter.

sigmaLuma double

parameter, that is similar to luma space sigma (bandwidth) in bilateralFilter.

sigmaChroma double

parameter, that is similar to chroma space sigma (bandwidth) in bilateralFilter.

lambda double

smoothness strength parameter for solver.

numIter int

number of iterations used for solver, 25 is usually enough.

maxTol double

convergence tolerance used for solver.

Returns

FastBilateralSolverFilter

Filter(InputArray, InputArray, OutputArray)

Apply smoothing operation to the source image.

public virtual void Filter(InputArray src, InputArray confidence, OutputArray dst)

Parameters

src InputArray

source image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 3 channels.

confidence InputArray

confidence image with unsigned 8-bit or floating-point 32-bit confidence and 1 channel.

dst OutputArray

destination image.