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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.ximgproc.guidedFilter
  • guide
  • src
  • result
radius0
eps0.0000
dDepthsame as input
scale1.0000
Categoryimage/CV/low-level/ximgproc

Inputs (6)

NameTypeDefaultDescription
guideCOMFY_MATCHTYPE_V3guided 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.
srcNPARRAY,IMAGE,MASKfiltering 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.
radiusINT0-2147483648–2147483647radius of Guided Filter.
epsFLOAT0.0000-1e+38–1e+38regularization term of Guided Filter. ${eps}^2$ is similar to the sigma in the color space into bilateralFilter.
dDepthoptCOMBOsame as inputoptional depth of the output image.
scaleoptFLOAT1.0000-1e+38–1e+38subsample 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)

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