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.
cv2.ximgproc.dtFilter
- guide
- src
- result
◄sigmaSpatial0.0000►
◄sigmaColor0.0000►
◄modeDTF_NC►
◄numIters3►
Categoryimage/CV/low-level/ximgproc
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| guide | COMFY_MATCHTYPE_V3 | guided 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. | |
| src | NPARRAY,IMAGE,MASK | filtering 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. | |
| sigmaSpatial | FLOAT | 0.0000-1e+38–1e+38 | ${\sigma}_H$ parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter. |
| sigmaColor | FLOAT | 0.0000-1e+38–1e+38 | ${\sigma}_r$ parameter in the original article, it's similar to the sigma in the color space into bilateralFilter. |
| modeopt | COMBO | DTF_NC | one form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article. |
| numItersopt | INT | 3-2147483648–2147483647 | optional number of iterations used for filtering, 3 is quite 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. |