Table of Contents

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

p nint

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

guide InputArray

guided 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.

radius int

radius of Guided Filter.

eps double

regularization term of Guided Filter. eps^2 is similar to the sigma in the color space into bilateralFilter.

Returns

GuidedFilter

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

src InputArray

filtering image with any numbers of channels.

dst OutputArray

output image.

dDepth int

optional depth of the output image. dDepth can be set to -1, which will be equivalent to src.depth().