ComfyUI Node
cv2.fastNlMeansDenoisingColored
Raw wrapper of cv2.fastNlMeansDenoisingColored(src, h?, hColor?, templateWindowSize?, searchWindowSize?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.fastNlMeansDenoisingColored
- src
- result
◄h3.0000►
◄hColor3.0000►
◄templateWindowSize7►
◄searchWindowSize21►
Categoryimage/CV/low-level/cv2 F
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| src | COMFY_MATCHTYPE_V3 | Input 8-bit 3-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 for luminance component. Bigger h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise Preset to the OpenCV default (3.0). |
| hColoropt | FLOAT | 3.0000-1e+38–1e+38 | 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 The function converts image to CIELAB colorspace and then separately denoise L and AB components with given h parameters using fastNlMeansDenoising function. 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. |