Class DTFilter
Interface for realizations of Domain Transform filter.
public class DTFilter : UnmanagedObject, IDisposable
- Inheritance
-
DTFilter
- Implements
- Inherited Members
Constructors
DTFilter(IInputArray, double, double, Mode, int)
Create instance of DTFilter and produce initialization routines.
public DTFilter(IInputArray guide, double sigmaSpatial, double sigmaColor, DTFilter.Mode mode = Mode.NC, int numIters = 3)
Parameters
guide
IInputArrayGuided image (used to build transformed distance, which describes edge structure of guided image).
sigmaSpatial
doubleParameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter.
sigmaColor
doubleParameter in the original article, it's similar to the sigma in the color space into bilateralFilter.
mode
DTFilter.ModeOne form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article.
numIters
intOptional number of iterations used for filtering, 3 is quite enough.
Methods
DisposeObject()
Release the unmanaged memory associated with this object
protected override void DisposeObject()
Filter(IInputArray, IOutputArray, DepthType)
Produce domain transform filtering operation on source image.
public void Filter(IInputArray src, IOutputArray dst, DepthType dDepth = DepthType.Default)
Parameters
src
IInputArrayFiltering image with unsigned 8-bit or floating-point 32-bit depth and up to 4 channels.
dst
IOutputArrayDestination image.
dDepth
DepthTypeOptional depth of the output image. dDepth can be set to Default, which will be equivalent to src.depth().