Visit ComfyUI Online for ready-to-use ComfyUI environment
Extracts color samples from RGB image, converts to HSV for AI color analysis, grading, and segmentation with reproducible sampling.
The SampleColorHSV
node is designed to extract a representative set of color samples from an RGB image and convert them into the HSV color space. This node is particularly useful for AI artists who need to analyze and manipulate colors within an image. By sampling a specified number of pixels from the image and converting these samples to HSV, you can gain insights into the color distribution and characteristics of the image. This can be beneficial for tasks such as color grading, palette extraction, and image segmentation. The node ensures that the sampling process is both random and reproducible by allowing you to set a seed for the random number generator.
This parameter expects an image in RGB format. The image serves as the source from which color samples will be extracted. The quality and content of the image directly impact the resulting HSV samples, as the node will randomly select pixels from this image to analyze.
This integer parameter determines the number of pixels to sample from the RGB image. The default value is 1000, with a minimum of 1 and a maximum of 65536 (256 * 256). A larger sample size provides a more comprehensive representation of the image's color distribution but requires more computational resources.
This integer parameter sets the seed for the random number generator used in the sampling process. The default value is 0, with a minimum of 0 and a maximum value determined by the system's maximum integer size. Setting a specific seed ensures that the sampling process is reproducible, allowing you to obtain the same set of samples each time you run the node with the same seed.
The output is an object containing the sampled pixels converted to the HSV color space. This object provides a structured way to access and analyze the HSV values of the sampled pixels, enabling further color-based operations and analyses.
sample_size
parameter, especially for images with a high level of detail or color variation.sampling_seed
parameter to ensure reproducibility in your experiments. This is particularly useful when you need to compare results across different runs or share your workflow with others.rgb_image
parameter is in RGB format. Convert the image to RGB if it is in a different format.sample_size
parameter is set to a value outside the allowed range.sample_size
parameter to be within the range of 1 to 65536.sampling_seed
parameter is set to a value outside the allowed range.sampling_seed
parameter is set to a value between 0 and the system's maximum integer size.© Copyright 2024 RunComfy. All Rights Reserved.