Color To Mask (UTK)
ColorToMask_UTK
Converts chosen RGB value to a mask based on color distance. The node calculates the Euclidean distance between each pixel's color and the target RGB color. Pixels within the threshold distance are included in the mask (white), while others are excluded (black). With batch inputs, the **per_batch** parameter controls the number of images processed at once for memory efficiency. Parameters: - RGB values: Target color to match (0-255) - Threshold: Maximum color distance for inclusion (0-255) - Invert: Flip the mask (exclude matching colors instead) - Per batch: Number of images to process simultaneously
Pack: ComfyUI-UniversalToolkit
custom_nodes.ComfyUI-UniversalToolkit
Inputs (7)
Outputs (1)
| Name | Type |
|---|---|
| mask | MASK |