Table of Contents

Method CreateDTFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CreateDTFilter(InputArray, double, double, EdgeAwareFiltersList, int)

Factory method, create instance of DTFilter and produce initialization routines.

public static DTFilter CreateDTFilter(InputArray guide, double sigmaSpatial, double sigmaColor, EdgeAwareFiltersList mode = EdgeAwareFiltersList.DTF_NC, int numIters = 3)

Parameters

guide InputArray

guided image (used to build transformed distance, which describes edge structure of guided image).

sigmaSpatial double

sigma_H parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter.

sigmaColor double

sigma_r parameter in the original article, it's similar to the sigma in the color space into bilateralFilter.

mode EdgeAwareFiltersList

one form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article.

numIters int

optional number of iterations used for filtering, 3 is quite enough.

Returns

DTFilter