Nodes/comfyui_cv/cv2.watershed
ComfyUI Node

cv2.watershed

Raw wrapper of cv2.watershed(image, markers). 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.watershed
  • image
  • markers
  • nparray
Categoryimage/CV/low-level/cv2 W

Inputs (2)

NameTypeDefaultDescription
imageNPARRAY,IMAGE,MASKInput 8-bit 3-channel image. 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.
markersNPARRAY,IMAGE,MASKInput/output 32-bit single-channel image (map) of markers. It should have the same size as image . 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.

Outputs (1)

NameTypeDescription
nparrayNPARRAY