Visit ComfyUI Online for ready-to-use ComfyUI environment
Create color masks in images based on specific ranges with optional fuzziness for precise color selection in image processing tasks.
The FILTER MASK (JOV) 🤿 node is designed to create masks based on specific color ranges within an image. By specifying the start and end values of the color range, along with an optional fuzziness factor, you can precisely define the range of colors to be included in the mask. This node is particularly useful for tasks such as object isolation, background removal, or targeted color adjustments, allowing for detailed and accurate image processing.
This parameter accepts any type of image input. It represents the image on which the color-based mask will be applied. The image can be in various formats, and the node will process it to create the mask based on the specified color range.
This parameter defines the starting color value for the mask range. It is a vector of three integers representing the RGB values. The default value is (128, 128, 128), with a minimum of 0 and a maximum of 255. This parameter sets the lower bound of the color range to be included in the mask.
This boolean parameter determines whether to use an end point when calculating the filter range. If set to True, the node will consider both the start and end values to define the color range. The default value is False.
This parameter defines the ending color value for the mask range. It is a vector of three integers representing the RGB values. The default value is (128, 128, 128), with a minimum of 0 and a maximum of 255. This parameter sets the upper bound of the color range to be included in the mask.
This parameter specifies the fuzziness factor to extend the start and end ranges. It is a vector of three floats, with each value ranging from 0 to 1. The default value is (0.5, 0.5, 0.5). This factor allows for a more flexible and inclusive color range by adding a margin around the specified start and end values.
This parameter defines the matte color to be applied to the masked areas. It is a vector of four integers representing the RGBA values. The default value is (0, 0, 0, 255), with a step of 1. This parameter sets the color and transparency of the areas outside the mask.
The output is a mask image where the specified color range is highlighted. This mask can be used for further image processing tasks such as object isolation or background removal. The mask is a binary image where the areas within the specified color range are marked.
© Copyright 2024 RunComfy. All Rights Reserved.