EasyUse/Logicgenerated

Is Mask Empty(isMaskEmpty)

The Is Mask Empty node is a small logic utility that checks whether an input mask contains any actual masked area.

is Mask Empty

mask
boolean
Easy Use

The Is Mask Empty node is a small logic utility that checks whether an input mask contains any actual masked area. It returns a boolean result that can be used to branch or gate other parts of a workflow.

Inputs

mask

  • mask (MASK, required): The mask to test. Any mask output from a segmentation, detection, or masking node can be passed directly into this input.

Outputs

  • BOOLEAN: Returns True when the mask is empty, and False when the mask is non-empty. An empty mask is one with no non-zero pixels, i.e. a fully black mask with no selected region.

Usage Notes

  • Use this node after nodes that generate masks to check whether anything was actually detected or selected.
  • A common pattern is to feed the boolean result into a switch, conditional, or routing node to skip further processing when no mask exists.
  • This node is located in the EasyUse/Logic category and has no configuration options beyond the required mask input.

Comments

Sign in with GitHub to join the discussion.

Loading comments…