Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate masks from image color channels for precise segmentation and manipulation in AI art projects.
The MaskFromRGBCMYBW+
node is designed to generate masks from an image based on specific color channels, including Red, Green, Blue, Cyan, Magenta, Yellow, Black, and White. This node is particularly useful for isolating and manipulating specific color regions within an image, allowing you to create detailed and precise masks for various artistic and compositional purposes. By leveraging this node, you can easily extract and work with different color components, enhancing your ability to perform color-based segmentation and masking tasks in your AI art projects.
The image
parameter represents the input image from which the masks will be generated. This image should be in a format that the node can process, typically a multi-channel image where each channel corresponds to a color component (e.g., RGB).
The threshold_r
parameter sets the threshold for the red channel. It determines the sensitivity of the mask generation for the red color component. The value ranges from 0.0 to 1.0, with a default value that typically balances between inclusivity and exclusivity of the red color.
The threshold_g
parameter sets the threshold for the green channel. Similar to threshold_r
, it controls the sensitivity for the green color component. The value ranges from 0.0 to 1.0, allowing you to fine-tune the mask generation for green hues.
The threshold_b
parameter sets the threshold for the blue channel. It adjusts the sensitivity for the blue color component, with a value range from 0.0 to 1.0. This parameter helps in isolating blue regions within the image for mask creation.
The red
output parameter provides a mask where the red color component meets the specified threshold criteria. This mask highlights areas in the image that are predominantly red.
The green
output parameter generates a mask for regions where the green color component meets the threshold criteria. This mask isolates green areas within the image.
The blue
output parameter produces a mask for areas where the blue color component meets the threshold criteria, highlighting blue regions in the image.
The cyan
output parameter creates a mask for regions where the cyan color component (a combination of green and blue) meets the threshold criteria.
The magenta
output parameter generates a mask for areas where the magenta color component (a combination of red and blue) meets the threshold criteria.
The yellow
output parameter provides a mask for regions where the yellow color component (a combination of red and green) meets the threshold criteria.
The black
output parameter produces a mask for areas where the black color component (low values in all RGB channels) meets the threshold criteria.
The white
output parameter generates a mask for regions where the white color component (high values in all RGB channels) meets the threshold criteria.
threshold_r
, threshold_g
, and threshold_b
parameters to fine-tune the sensitivity of the masks for each color component. Lower thresholds will include more pixels in the mask, while higher thresholds will be more selective.threshold_r
, threshold_g
, or threshold_b
) is set outside the acceptable range of 0.0 to 1.0.© Copyright 2024 RunComfy. All Rights Reserved.