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
guideInputArrayguided image (also called as joint image) with unsigned 8-bit or floating-point 32-bit depth and up to 4 channels.
srcInputArrayfiltering image with unsigned 8-bit or floating-point 32-bit depth and up to 4 channels.
dstOutputArraydestination 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.