Class FastBilateralSolverFilter
Interface for implementations of Fast Bilateral Solver.
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc
Assembly: OpenCvSharp.dll
Syntax
public class FastBilateralSolverFilter : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceFastBilateralSolverFilter(IntPtr)
Creates instance by raw pointer
Declaration
protected FastBilateralSolverFilter(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCreate(InputArray, Double, Double, Double, Double, Int32, Double)
Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.
Declaration
public static FastBilateralSolverFilter Create(InputArray guide, double sigmaSpatial, double sigmaLuma, double sigmaChroma, double lambda = 128, int numIter = 25, double maxTol = 1E-05)
Parameters
Type | Name | Description |
---|---|---|
InputArray | guide | image serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels. |
System.Double | sigmaSpatial | parameter, that is similar to spatial space sigma (bandwidth) in bilateralFilter. |
System.Double | sigmaLuma | parameter, that is similar to luma space sigma (bandwidth) in bilateralFilter. |
System.Double | sigmaChroma | parameter, that is similar to chroma space sigma (bandwidth) in bilateralFilter. |
System.Double | lambda | smoothness strength parameter for solver. |
System.Int32 | numIter | number of iterations used for solver, 25 is usually enough. |
System.Double | maxTol | convergence tolerance used for solver. |
Returns
Type | Description |
---|---|
FastBilateralSolverFilter |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceFilter(InputArray, InputArray, OutputArray)
Apply smoothing operation to the source image.
Declaration
public virtual void Filter(InputArray src, InputArray confidence, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | source image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 3 channels. |
InputArray | confidence | confidence image with unsigned 8-bit or floating-point 32-bit confidence and 1 channel. |
OutputArray | dst | destination image. |