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.
cv2.watershed
- image
- markers
- nparray
Categoryimage/CV/low-level/cv2 W
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | NPARRAY,IMAGE,MASK | Input 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. | |
| markers | NPARRAY,IMAGE,MASK | Input/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)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |