ComfyUI Node
cv2.ximgproc.guidedFilter
Raw wrapper of cv2.ximgproc.guidedFilter(guide, src, radius, eps, dDepth?, scale?). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'ximgproc' module. See the OpenCV documentation for details.
cv2.ximgproc.guidedFilter
- guide
- src
- result
◄radius0►
◄eps0.0000►
◄dDepthsame as input►
◄scale1.0000►
Categoryimage/CV/low-level/ximgproc
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| guide | COMFY_MATCHTYPE_V3 | guided image (or array of images) with up to 3 channels, if it have more then 3 channels then only first 3 channels will be used. 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 | filtering image with any numbers of 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. | |
| radius | INT | 0-2147483648–2147483647 | radius of Guided Filter. |
| eps | FLOAT | 0.0000-1e+38–1e+38 | regularization term of Guided Filter. ${eps}^2$ is similar to the sigma in the color space into bilateralFilter. |
| dDepthopt | COMBO | same as input | optional depth of the output image. |
| scaleopt | FLOAT | 1.0000-1e+38–1e+38 | subsample factor of Fast Guided Filter, use a scale less than 1 to speeds up computation with almost no visible degradation. (e.g. scale==0.5 shrinks the image by 2x inside the filter) Preset to the OpenCV default (1.0). |
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. |