XImgprocInvokeWeightedMedianFilter Method |
http://www.emgu.com
Applies weighted median filter to an image.
Namespace:
Emgu.CV.XImgproc
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic static void WeightedMedianFilter(
IInputArray joint,
IInputArray src,
IOutputArray dst,
int r,
double sigma = 25.5,
WMFWeightType weightType = WMFWeightType.Exp,
Mat mask = null
)
Public Shared Sub WeightedMedianFilter (
joint As IInputArray,
src As IInputArray,
dst As IOutputArray,
r As Integer,
Optional sigma As Double = 25.5,
Optional weightType As WMFWeightType = WMFWeightType.Exp,
Optional mask As Mat = Nothing
)
public:
static void WeightedMedianFilter(
IInputArray^ joint,
IInputArray^ src,
IOutputArray^ dst,
int r,
double sigma = 25.5,
WMFWeightType weightType = WMFWeightType::Exp,
Mat^ mask = nullptr
)
static member WeightedMedianFilter :
joint : IInputArray *
src : IInputArray *
dst : IOutputArray *
r : int *
?sigma : float *
?weightType : WMFWeightType *
?mask : Mat
(* Defaults:
let _sigma = defaultArg sigma 25.5
let _weightType = defaultArg weightType WMFWeightType.Exp
let _mask = defaultArg mask null
*)
-> unit
Parameters
- joint
- Type: Emgu.CVIInputArray
Joint 8-bit, 1-channel or 3-channel image. - src
- Type: Emgu.CVIInputArray
Source 8-bit or floating-point, 1-channel or 3-channel image. - dst
- Type: Emgu.CVIOutputArray
Destination image. - r
- Type: SystemInt32
Radius of filtering kernel, should be a positive integer. - sigma (Optional)
- Type: SystemDouble
Filter range standard deviation for the joint image. - weightType (Optional)
- Type: Emgu.CV.XImgprocWMFWeightType
The type of weight definition - mask (Optional)
- Type: Emgu.CVMat
A 0-1 mask that has the same size with I. This mask is used to ignore the effect of some pixels. If the pixel value on mask is 0, the pixel will be ignored when maintaining the joint-histogram. This is useful for applications like optical flow occlusion handling.
RemarksFor more details about this implementation, please see: Qi Zhang, Li Xu, and Jiaya Jia. 100+ times faster weighted median filter (wmf). In Computer Vision and Pattern Recognition (CVPR), 2014 IEEE Conference on, pages 2830–2837. IEEE, 2014.
See Also