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
guideInputArrayimage serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels.
srcInputArraysource image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 4 channels.
confidenceInputArrayconfidence image with unsigned 8-bit or floating-point 32-bit confidence and 1 channel.
dstOutputArraydestination image.
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.