[][src]Function opencv::cudafilters::create_median_filter

pub fn create_median_filter(
    src_type: i32,
    window_size: i32,
    partition: i32
) -> Result<Ptr<dyn Filter>>

Performs median filtering for each point of the source image.

Parameters

  • srcType: type of of source image. Only CV_8UC1 images are supported for now.
  • windowSize: Size of the kernerl used for the filtering. Uses a (windowSize x windowSize) filter.
  • partition: Specifies the parallel granularity of the workload. This parameter should be used GPU experts when optimizing performance.

Outputs an image that has been filtered using a median-filtering formulation.

Details on this algorithm can be found in: Green, O., 2017. "Efficient scalable median filtering using histogram-based operations", IEEE Transactions on Image Processing, 27(5), pp.2217-2228.

C++ default parameters

  • partition: 128