Nodes/comfyui_cv/cv2.fastNlMeansDenoisingColored
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.fastNlMeansDenoisingColored
  • src
  • result
h3.0000
hColor3.0000
templateWindowSize7
searchWindowSize21
Categoryimage/CV/low-level/cv2 F

Inputs (5)

NameTypeDefaultDescription
srcCOMFY_MATCHTYPE_V3Input 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.
hoptFLOAT3.0000-1e+38–1e+38Parameter 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).
hColoroptFLOAT3.0000-1e+38–1e+38The 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).
templateWindowSizeoptINT7-2147483648–2147483647Size 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).
searchWindowSizeoptINT21-2147483648–2147483647Size 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)

NameTypeDescription
resultCOMFY_MATCHTYPE_V3Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY.