Table of Contents

Method FastBilateralSolverFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FastBilateralSolverFilter(InputArray, InputArray, InputArray, OutputArray, double, double, double, double, int, double)

Simple one-line Fast Bilateral Solver filter call. If you have multiple images to filter with the same guide then use FastBilateralSolverFilter interface to avoid extra computations.

public static void FastBilateralSolverFilter(InputArray guide, InputArray src, InputArray confidence, OutputArray dst, double sigmaSpatial = 8, double sigmaLuma = 8, double sigmaChroma = 8, 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.

src InputArray

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

confidence InputArray

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

dst OutputArray

destination image.

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.