ComfyUI Node
cv2.ximgproc.rollingGuidanceFilter
Raw wrapper of cv2.ximgproc.rollingGuidanceFilter(src, d?, sigmaColor?, sigmaSpace?, numOfIter?, borderType?). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'ximgproc' module. See the OpenCV documentation for details.
cv2.ximgproc.rollingGuidanceFilter
- src
- result
◄d-1►
◄sigmaColor25.0000►
◄sigmaSpace3.0000►
◄numOfIter4►
◄borderTypeBORDER_DEFAULT►
Categoryimage/CV/low-level/ximgproc
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| src | COMFY_MATCHTYPE_V3 | Source 8-bit or floating-point, 1-channel or 3-channel image. 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. | |
| dopt | INT | -1-2147483648–2147483647 | Diameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace . Preset to the OpenCV default (-1). |
| sigmaColoropt | FLOAT | 25.0000-1e+38–1e+38 | Filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood (see sigmaSpace ) will be mixed together, resulting in larger areas of semi-equal color. Preset to the OpenCV default (25.0). |
| sigmaSpaceopt | FLOAT | 3.0000-1e+38–1e+38 | Filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigmaColor ). When d>0 , it specifies the neighborhood size regardless of sigmaSpace . Otherwise, d is proportional to sigmaSpace . Preset to the OpenCV default (3.0). |
| numOfIteropt | INT | 4-2147483648–2147483647 | Number of iterations of joint edge-preserving filtering applied on the source image. Preset to the OpenCV default (4). |
| borderTypeopt | COMBO | BORDER_DEFAULT | - - - |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |