Table of Contents

Method DTFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DTFilter(InputArray, InputArray, OutputArray, double, double, EdgeAwareFiltersList, 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 static void DTFilter(InputArray guide, InputArray src, OutputArray dst, double sigmaSpatial, double sigmaColor, EdgeAwareFiltersList mode = EdgeAwareFiltersList.DTF_NC, int numIters = 3)

Parameters

guide InputArray

guided image (also called as joint image) with unsigned 8-bit or floating-point 32-bit depth and up to 4 channels.

src InputArray

filtering image with unsigned 8-bit or floating-point 32-bit depth and up to 4 channels.

dst OutputArray

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