Table of Contents

Method FastNlMeansDenoisingColored

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FastNlMeansDenoisingColored(InputArray, OutputArray, float, float, int, int)

Modification of fastNlMeansDenoising function for colored images

public static void FastNlMeansDenoisingColored(InputArray src, OutputArray dst, float h = 3, float hColor = 3, int templateWindowSize = 7, int searchWindowSize = 21)

Parameters

src InputArray

Input 8-bit 3-channel image.

dst OutputArray

Output image with the same size and type as src.

h float

Parameter regulating filter strength for luminance component. Bigger h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise

hColor float

The same as h but for color components. For most images value equals 10 will be enought to remove colored noise and do not distort colors

templateWindowSize int

Size in pixels of the template patch that is used to compute weights. Should be odd. Recommended value 7 pixels

searchWindowSize int

Size in pixels of the window that is used to compute weighted average for given pixel. Should be odd. Affect performance linearly: greater searchWindowsSize - greater denoising time. Recommended value 21 pixels