Nodes/comfyui_cv/cv2.ximgproc.dtFilter
ComfyUI Node

cv2.ximgproc.dtFilter

Raw wrapper of cv2.ximgproc.dtFilter(guide, src, sigmaSpatial, sigmaColor, mode?, numIters?). 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.dtFilter
  • guide
  • src
  • result
sigmaSpatial0.0000
sigmaColor0.0000
modeDTF_NC
numIters3
Categoryimage/CV/low-level/ximgproc

Inputs (6)

NameTypeDefaultDescription
guideCOMFY_MATCHTYPE_V3guided image (also called as joint image) with unsigned 8-bit or floating-point 32-bit depth and up to 4 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,MASKfiltering image with unsigned 8-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.
sigmaSpatialFLOAT0.0000-1e+38–1e+38${\sigma}_H$ parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter.
sigmaColorFLOAT0.0000-1e+38–1e+38${\sigma}_r$ parameter in the original article, it's similar to the sigma in the color space into bilateralFilter.
modeoptCOMBODTF_NCone form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article.
numItersoptINT3-2147483648–2147483647optional number of iterations used for filtering, 3 is quite 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.