[][src]Function opencv::ximgproc::weighted_median_filter

pub fn weighted_median_filter(
    joint: &dyn ToInputArray,
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    r: i32,
    sigma: f64,
    weight_type: i32,
    mask: &dyn ToInputArray
) -> Result<()>

Applies weighted median filter to an image.

For more details about this implementation, please see zhang2014100+

Parameters

  • joint: Joint 8-bit, 1-channel or 3-channel image.
  • src: Source 8-bit or floating-point, 1-channel or 3-channel image.
  • dst: Destination image.
  • r: Radius of filtering kernel, should be a positive integer.
  • sigma: Filter range standard deviation for the joint image.
  • weightType: weightType The type of weight definition, see WMFWeightType
  • mask: 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.

See also

medianBlur, jointBilateralFilter

C++ default parameters

  • sigma: 25.5
  • weight_type: WMF_EXP
  • mask: noArray()