ComfyUI Node
cv2.fastNlMeansDenoising
Raw wrapper of cv2.fastNlMeansDenoising(src, h?, templateWindowSize?, searchWindowSize?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.fastNlMeansDenoising
- src
- result
◄h3.0000►
◄templateWindowSize7►
◄searchWindowSize21►
Categoryimage/CV/low-level/cv2 F
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| src | COMFY_MATCHTYPE_V3 | Input 8-bit 1-channel, 2-channel, 3-channel or 4-channel image. The image output(s) echo this input's format. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| hopt | FLOAT | 3.0000-1e+38–1e+38 | 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 This function expected to be applied to grayscale images. For colored images look at fastNlMeansDenoisingColored. Advanced usage of this functions can be manual denoising of colored image in different colorspaces. Such approach is used in fastNlMeansDenoisingColored by converting image to CIELAB colorspace and then separately denoise L and AB components with different h parameter. Preset to the OpenCV default (3.0). |
| templateWindowSizeopt | INT | 7-2147483648–2147483647 | Size in pixels of the template patch that is used to compute weights. Should be odd. Recommended value 7 pixels Preset to the OpenCV default (7). |
| searchWindowSizeopt | INT | 21-2147483648–2147483647 | 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 Preset to the OpenCV default (21). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |