Mask To Float
Mask To Float
Converts a batch of masks into a list of float values. Each mask in the batch is converted to a single float value by calculating the mean of all pixel values in that mask. Works with individual masks or batches of masks. Input a mask (single or batch), and the output floats will be a list containing one float value per mask, representing the average intensity of each mask. Useful for converting mask data into weights for animation or other float-based operations.
Pack: ComfyUI_Yvann-Nodes
custom_nodes.ComfyUI_Yvann-Nodes
Inputs (1)
| Name | Type | Required |
|---|---|---|
| mask | MASK | required |
Outputs (1)
| Name | Type |
|---|---|
| floats | FLOATS |