[][src]Function opencv::photo::fast_nl_means_denoising_1

pub fn fast_nl_means_denoising_1(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    h: f32,
    search_window: i32,
    block_size: i32,
    stream: &mut Stream
) -> Result<()>

Perform image denoising using Non-local Means Denoising algorithm http://www.ipol.im/pub/algo/bcm_non_local_means_denoising with several computational optimizations. Noise expected to be a gaussian white noise

Parameters

  • src: Input 8-bit 1-channel, 2-channel or 3-channel image.
  • dst: Output image with the same size and type as src .
  • h: Parameter regulating filter strength. Big h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise
  • search_window: Size in pixels of the window that is used to compute weighted average for given pixel. Should be odd. Affect performance linearly: greater search_window - greater denoising time. Recommended value 21 pixels
  • block_size: Size in pixels of the template patch that is used to compute weights. Should be odd. Recommended value 7 pixels
  • stream: Stream for the asynchronous invocations.

This function expected to be applied to grayscale images. For colored images look at FastNonLocalMeansDenoising::labMethod.

See also

fastNlMeansDenoising

C++ default parameters

  • search_window: 21
  • block_size: 7
  • stream: Stream::Null()