[][src]Function opencv::photo::fast_nl_means_denoising_colored_1

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

Modification of fastNlMeansDenoising function for colored images

Parameters

  • src: Input 8-bit 3-channel image.
  • dst: Output image with the same size and type as src .
  • h_luminance: 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
  • photo_render: float The same as h but for color components. For most images value equals 10 will be enough to remove colored noise and do not distort colors
  • 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.

The function converts image to CIELAB colorspace and then separately denoise L and AB components with given h parameters using FastNonLocalMeansDenoising::simpleMethod function.

See also

fastNlMeansDenoisingColored

C++ default parameters

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