Nodes/comfyui_cv/Mask → CV Array
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).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
Mask → CV Array
  • mask
  • nparray
dtypeuint8 (0-255)
batch_index0
Categoryimage/CV/low-level

Inputs (3)

NameTypeDefaultDescription
maskMASKMASK to convert. One frame is taken (see batch_index).
dtypeCOMBOuint8 (0-255)uint8 for most cv2 functions; float32 (0-1) to preserve fractional mask values for downstream float math.
batch_indexINT00–4095Which mask of the batch to convert. Clamped to the batch size.

Outputs (1)

NameTypeDescription
nparrayNPARRAY