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.
cv2.ximgproc.fastGlobalSmootherFilter
- guide
- src
- result
◄lambda_0.0000►
◄sigma_color0.0000►
◄lambda_attenuation0.2500►
◄num_iter3►
Categoryimage/CV/low-level/ximgproc
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| guide | COMFY_MATCHTYPE_V3 | image 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. | |
| src | NPARRAY,IMAGE,MASK | source 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_ | FLOAT | 0.0000-1e+38–1e+38 | - - - |
| sigma_color | FLOAT | 0.0000-1e+38–1e+38 | parameter, that is similar to color space sigma in bilateralFilter. |
| lambda_attenuationopt | FLOAT | 0.2500-1e+38–1e+38 | internal 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_iteropt | INT | 3-2147483648–2147483647 | number of iterations used for filtering, 3 is usually enough. Preset to the OpenCV default (3). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'guide' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |