Visit ComfyUI Online for ready-to-use ComfyUI environment
Create image masks based on HSV color space thresholds for color isolation and manipulation.
The HSVThresholdMask node is designed to create a mask from an image based on specified thresholds in the HSV (Hue, Saturation, Value) color space. This node is particularly useful for isolating specific colors or intensity ranges within an image, allowing you to focus on or manipulate certain parts of the image based on their color properties. By converting the image to the HSV color space, the node can apply thresholds to the hue, saturation, or value channels, generating a binary mask that highlights the areas of the image that fall within the specified thresholds. This can be beneficial for tasks such as color-based segmentation, object detection, or any scenario where color properties are a key factor.
This parameter expects an image tensor in the format of a 4D tensor (batch_size, height, width, channels). The image will be processed to generate the mask based on the specified HSV thresholds.
This parameter sets the lower bound of the threshold for the selected HSV channel. It is a float value ranging from 0 to 1, with a default value of 0.2. Adjusting this value will determine the minimum value of the HSV channel that will be included in the mask.
This parameter sets the upper bound of the threshold for the selected HSV channel. It is a float value ranging from 0 to 1, with a default value of 0.7. Adjusting this value will determine the maximum value of the HSV channel that will be included in the mask.
This parameter specifies which HSV channel to apply the threshold to. It can be one of the following options: "hue", "saturation", or "value". Selecting the appropriate channel will determine which aspect of the color space the thresholds will be applied to.
The output is a binary mask image where the pixels that fall within the specified HSV thresholds are highlighted. This mask can be used for further image processing tasks, such as segmentation or object detection.
© Copyright 2024 RunComfy. All Rights Reserved.