Class DTFilter
Interface for realizations of Domain Transform filter.
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc
Assembly: OpenCvSharp.dll
Syntax
public class DTFilter : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceDTFilter(IntPtr)
Creates instance by raw pointer
Declaration
protected DTFilter(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCreate(InputArray, Double, Double, EdgeAwareFiltersList, Int32)
Factory method, create instance of DTFilter and produce initialization routines.
Declaration
public static DTFilter Create(InputArray guide, double sigmaSpatial, double sigmaColor, EdgeAwareFiltersList mode = EdgeAwareFiltersList.DTF_NC, int numIters = 3)
Parameters
Type | Name | Description |
---|---|---|
InputArray | guide | guided image (used to build transformed distance, which describes edge structure of guided image). |
System.Double | sigmaSpatial | sigma_H parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter. |
System.Double | sigmaColor | sigma_r parameter in the original article, it's similar to the sigma in the color space into bilateralFilter. |
EdgeAwareFiltersList | mode | one form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article. |
System.Int32 | numIters | optional number of iterations used for filtering, 3 is quite enough. |
Returns
Type | Description |
---|---|
DTFilter |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceFilter(InputArray, OutputArray, Int32)
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.
Declaration
public virtual void Filter(InputArray src, OutputArray dst, int dDepth = -1)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | |
OutputArray | dst | |
System.Int32 | dDepth |