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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.bilateralFilter
  • src
  • result
d0
sigmaColor0.0000
sigmaSpace0.0000
borderTypeBORDER_DEFAULT
Categoryimage/CV/low-level/cv2 B

Inputs (5)

NameTypeDefaultDescription
srcCOMFY_MATCHTYPE_V3Source 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.
dINT0-2147483648–2147483647Diameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace.
sigmaColorFLOAT0.0000-1e+38–1e+38Filter 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.
sigmaSpaceFLOAT0.0000-1e+38–1e+38Filter 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.
borderTypeoptCOMBOBORDER_DEFAULTborder mode used to extrapolate pixels outside of the image, see #BorderTypes

Outputs (1)

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