Visit ComfyUI Online for ready-to-use ComfyUI environment
Sophisticated tool for analyzing and extracting color tones from images, with advanced AI artist capabilities.
The LayerUtility: GetColorToneV2 node is a sophisticated tool designed to analyze and extract color tones from images, offering advanced capabilities for AI artists to enhance their creative projects. This node allows you to determine the dominant or average color tones within an image, providing flexibility in focusing on specific areas such as the entire image, the background, or the subject itself. It also includes options for background removal using various methods, which can be particularly useful for isolating subjects or enhancing specific elements within an image. By leveraging this node, you can gain insights into the color dynamics of your images, enabling more informed artistic decisions and refined visual outputs.
The image
parameter is the primary input for the node, representing the image from which color tones will be extracted. It is essential for the node's operation as it serves as the basis for all subsequent color analysis.
The mode
parameter determines the method of color extraction, offering options such as main_color
for identifying the dominant color and average
for calculating the average color tone. This choice impacts the type of color information you receive, allowing for tailored analysis based on your artistic needs.
The color_of
parameter specifies the area of the image to focus on for color extraction, with options including mask
, entire
, background
, and subject
. This parameter allows you to target specific parts of the image, enhancing the precision of the color analysis.
The remove_bkgd_method
parameter provides options for background removal, such as none
, BiRefNet
, and RMBG 1.4
. This feature is useful for isolating subjects or focusing on specific image elements by removing or altering the background.
The invert_mask
parameter is a boolean option that, when enabled, inverts the mask used in the analysis. This can be useful for reversing the focus area, such as switching from subject to background, and offers additional flexibility in color extraction.
The mask_grow
parameter is an integer that allows for the expansion or contraction of the mask, with a default value of 0 and a range from -999 to 999. This parameter provides control over the mask's size, enabling fine-tuning of the area considered for color analysis.
The mask
parameter is an optional input that allows you to provide a custom mask for the image. This can be used to define specific areas for color extraction, offering greater control over the analysis process.
The image
output returns the processed image, which may include modifications based on the selected parameters, such as background removal or mask application. This output allows you to visualize the changes made during the color extraction process.
The color_in_hex
output provides the extracted color tone in hexadecimal format, offering a precise and easily interpretable representation of the color information derived from the image.
The HSV color in list
output delivers the extracted color tone in HSV (Hue, Saturation, Value) format, presented as a list. This format is useful for understanding the color's properties in terms of its hue, saturation, and brightness.
The mask
output returns the mask used during the color extraction process, allowing you to review or reuse the mask for further image processing or analysis.
mode
settings to see how the dominant and average color tones differ in your images, providing insights into the overall color balance.remove_bkgd_method
to isolate subjects or backgrounds, enhancing the focus on specific elements within your image for more targeted color analysis.mask_grow
parameter to fine-tune the area of interest, especially when working with complex images where precise color extraction is crucial.image
parameter is not provided or is empty.mode
parameter.mode
parameter is set to either main_color
or average
.mask_grow
parameter is set outside the allowable range.mask_grow
value to be within the range of -999 to 999.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.