| CvXImgProcDTFilter Method |
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.
Namespace:
OpenCvSharp.XImgProc
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void DTFilter(
InputArray guide,
InputArray src,
OutputArray dst,
double sigmaSpatial,
double sigmaColor,
EdgeAwareFiltersList mode = EdgeAwareFiltersList.DTF_NC,
int numIters = 3
)
Public Shared Sub DTFilter (
guide As InputArray,
src As InputArray,
dst As OutputArray,
sigmaSpatial As Double,
sigmaColor As Double,
Optional mode As EdgeAwareFiltersList = EdgeAwareFiltersList.DTF_NC,
Optional numIters As Integer = 3
)
public:
static void DTFilter(
InputArray^ guide,
InputArray^ src,
OutputArray^ dst,
double sigmaSpatial,
double sigmaColor,
EdgeAwareFiltersList mode = EdgeAwareFiltersList::DTF_NC,
int numIters = 3
)
static member DTFilter :
guide : InputArray *
src : InputArray *
dst : OutputArray *
sigmaSpatial : float *
sigmaColor : float *
?mode : EdgeAwareFiltersList *
?numIters : int
(* Defaults:
let _mode = defaultArg mode EdgeAwareFiltersList.DTF_NC
let _numIters = defaultArg numIters 3
*)
-> unit
Parameters
- guide
- Type: OpenCvSharpInputArray
guided image (also called as joint image) with unsigned 8-bit or floating-point 32-bit
depth and up to 4 channels. - src
- Type: OpenCvSharpInputArray
filtering image with unsigned 8-bit or floating-point 32-bit depth and up to 4 channels. - dst
- Type: OpenCvSharpOutputArray
destination image - sigmaSpatial
- Type: SystemDouble
sigma_H parameter in the original article, it's similar to the sigma in the
coordinate space into bilateralFilter. - sigmaColor
- Type: SystemDouble
sigma_r parameter in the original article, it's similar to the sigma in the
color space into bilateralFilter. - mode (Optional)
- Type: OpenCvSharp.XImgProcEdgeAwareFiltersList
one form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for
filtering 2D signals in the article. - numIters (Optional)
- Type: SystemInt32
optional number of iterations used for filtering, 3 is quite enough.
See Also