Class GuidedFilter
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Interface for realizations of Guided Filter.
public class GuidedFilter : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
GuidedFilter
- Implements
- Inherited Members
Constructors
GuidedFilter(nint)
Creates instance by raw pointer
protected GuidedFilter(nint p)
Parameters
pnint
Methods
Create(InputArray, int, double)
Factory method, create instance of GuidedFilter and produce initialization routines.
public static GuidedFilter Create(InputArray guide, int radius, double eps)
Parameters
guideInputArrayguided image (or array of images) with up to 3 channels, if it have more then 3 channels then only first 3 channels will be used.
radiusintradius of Guided Filter.
epsdoubleregularization term of Guided Filter. eps^2 is similar to the sigma in the color space into bilateralFilter.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Filter(InputArray, OutputArray, int)
Apply Guided Filter to the filtering image.
public virtual void Filter(InputArray src, OutputArray dst, int dDepth = -1)
Parameters
srcInputArrayfiltering image with any numbers of channels.
dstOutputArrayoutput image.
dDepthintoptional depth of the output image. dDepth can be set to -1, which will be equivalent to src.depth().