ComfyUI Node
Mask → CV Array
Converts a ComfyUI MASK to a raw single-channel ndarray (NPARRAY). Output can be uint8 (0-255) or float32 (0-1).
Mask → CV Array
- mask
- nparray
◄dtypeuint8 (0-255)►
◄batch_index0►
Categoryimage/CV/low-level
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | MASK to convert. One frame is taken (see batch_index). | |
| dtype | COMBO | uint8 (0-255) | uint8 for most cv2 functions; float32 (0-1) to preserve fractional mask values for downstream float math. |
| batch_index | INT | 00–4095 | Which mask of the batch to convert. Clamped to the batch size. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |