Nodes/comfyui_cv/cv2.ximgproc.fastGlobalSmootherFilter
ComfyUI Node

cv2.ximgproc.fastGlobalSmootherFilter

Raw wrapper of cv2.ximgproc.fastGlobalSmootherFilter(guide, src, lambda_, sigma_color, lambda_attenuation?, num_iter?). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'ximgproc' module. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.ximgproc.fastGlobalSmootherFilter
  • guide
  • src
  • result
lambda_0.0000
sigma_color0.0000
lambda_attenuation0.2500
num_iter3
Categoryimage/CV/low-level/ximgproc

Inputs (6)

NameTypeDefaultDescription
guideCOMFY_MATCHTYPE_V3image serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels. 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.
srcNPARRAY,IMAGE,MASKsource image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 4 channels. 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.
lambda_FLOAT0.0000-1e+38–1e+38 - - -
sigma_colorFLOAT0.0000-1e+38–1e+38parameter, that is similar to color space sigma in bilateralFilter.
lambda_attenuationoptFLOAT0.2500-1e+38–1e+38internal parameter, defining how much lambda decreases after each iteration. Normally, it should be 0.25. Setting it to 1.0 may lead to streaking artifacts. Preset to the OpenCV default (0.25).
num_iteroptINT3-2147483648–2147483647number of iterations used for filtering, 3 is usually enough. Preset to the OpenCV default (3).

Outputs (1)

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