ComfyUI  >  Nodes  >  WAS Node Suite >  Image Select Color

ComfyUI Node: Image Select Color

Class Name

Image Select Color

Category
WAS Suite/Image/Process
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for  WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Select Color Description

Isolate and highlight specific colors in images by selecting pixels within defined color range, creating new image with selected colors emphasized.

Image Select Color:

The Image Select Color node is designed to help you isolate and highlight specific colors within an image. By specifying a target color and a variance range, this node scans through the image and selects pixels that fall within the defined color range. The result is a new image where only the selected colors are visible, and all other colors are set to black. This can be particularly useful for tasks such as color-based segmentation, creating masks for further image processing, or simply emphasizing certain colors in your artwork.

Image Select Color Input Parameters:

image

This parameter takes the input image that you want to process. The image should be in a format that can be converted to RGB mode for accurate color selection.

red

This parameter specifies the red component of the target color you want to select. The value ranges from 0 to 255, with a default value of 255. Adjusting this value will change the target red color for selection.

green

This parameter specifies the green component of the target color you want to select. The value ranges from 0 to 255, with a default value of 255. Adjusting this value will change the target green color for selection.

blue

This parameter specifies the blue component of the target color you want to select. The value ranges from 0 to 255, with a default value of 255. Adjusting this value will change the target blue color for selection.

variance

This parameter defines the allowable variance range for each color component (red, green, blue) when selecting pixels. The value ranges from 0 to 255, with a default value of 10. A higher variance allows for a broader range of colors to be selected, while a lower variance makes the selection more precise.

Image Select Color Output Parameters:

selected_color

This output parameter provides the resulting image where only the pixels within the specified color range are visible. All other pixels are set to black. This image can be used for further processing or as a mask in other image editing tasks.

Image Select Color Usage Tips:

  • To isolate a specific color in an image, start with the default red, green, and blue values and adjust the variance to see how it affects the selection.
  • Use a lower variance for more precise color selection, especially if the target color is distinct and not blended with other colors.
  • Experiment with different target colors by adjusting the red, green, and blue parameters to see how the node performs with various color ranges.

Image Select Color Common Errors and Solutions:

Image mode not supported

  • Explanation: The input image is not in a mode that can be converted to RGB.
  • Solution: Ensure that the input image is in a format that can be converted to RGB mode, such as JPEG or PNG.

Invalid color range

  • Explanation: The specified red, green, or blue values are outside the allowable range of 0 to 255. - Solution: Check and adjust the red, green, and blue values to ensure they are within the 0 to 255 range.

Variance too high

  • Explanation: The variance value is set too high, causing too many colors to be selected.
  • Solution: Reduce the variance value to make the color selection more precise and limit the range of selected colors.

Image Select Color Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.