Class DTFilter
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Interface for realizations of Domain Transform filter.
public class DTFilter : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
DTFilter
- Implements
- Inherited Members
Constructors
DTFilter(nint)
Creates instance by raw pointer
protected DTFilter(nint p)
Parameters
pnint
Methods
Create(InputArray, double, double, EdgeAwareFiltersList, int)
Factory method, create instance of DTFilter and produce initialization routines.
public static DTFilter Create(InputArray guide, double sigmaSpatial, double sigmaColor, EdgeAwareFiltersList mode = EdgeAwareFiltersList.DTF_NC, int numIters = 3)
Parameters
guideInputArrayguided image (used to build transformed distance, which describes edge structure of guided image).
sigmaSpatialdoublesigma_H parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter.
sigmaColordoublesigma_r parameter in the original article, it's similar to the sigma in the color space into bilateralFilter.
modeEdgeAwareFiltersListone form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article.
numItersintoptional number of iterations used for filtering, 3 is quite enough.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Filter(InputArray, OutputArray, int)
Simple one-line Domain Transform filter call. If you have multiple images to filter with the same guided image then use DTFilter interface to avoid extra computations on initialization stage.
public virtual void Filter(InputArray src, OutputArray dst, int dDepth = -1)
Parameters
srcInputArraydstOutputArraydDepthint