ComfyUI Node
cv2.bilateralFilter
Raw wrapper of cv2.bilateralFilter(src, d, sigmaColor, sigmaSpace, borderType?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.bilateralFilter
- src
- result
◄d0►
◄sigmaColor0.0000►
◄sigmaSpace0.0000►
◄borderTypeBORDER_DEFAULT►
Categoryimage/CV/low-level/cv2 B
Inputs (5)
| 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. | |
| d | INT | 0-2147483648–2147483647 | Diameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace. |
| sigmaColor | FLOAT | 0.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. |
| sigmaSpace | FLOAT | 0.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. |
| borderTypeopt | COMBO | BORDER_DEFAULT | border mode used to extrapolate pixels outside of the image, see #BorderTypes |
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. |