Click or drag to resize

CvXImgProcWeightedMedianFilter Method

Applies weighted median filter to an image.

Namespace:  OpenCvSharp.XImgProc
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void WeightedMedianFilter(
	InputArray joint,
	InputArray src,
	OutputArray dst,
	int r,
	double sigma = 25.5,
	WMFWeightType weightType = WMFWeightType.EXP,
	Mat mask = null
)

Parameters

joint
Type: OpenCvSharpInputArray
Joint 8-bit, 1-channel or 3-channel image.
src
Type: OpenCvSharpInputArray
Source 8-bit or floating-point, 1-channel or 3-channel image.
dst
Type: OpenCvSharpOutputArray
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: OpenCvSharp.XImgProcWMFWeightType
The type of weight definition, see WMFWeightType
mask (Optional)
Type: OpenCvSharpMat
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.
Remarks
For more details about this implementation, please see @cite zhang2014100+
See Also