ComfyUI > Nodes > Jovimetrix Composition Nodes > FILTER MASK (JOV) 🤿

ComfyUI Node: FILTER MASK (JOV) 🤿

Class Name

FILTER MASK (JOV) 🤿

Category
JOVIMETRIX 🔺🟩🔵/COMPOSE
Author
amorano (Account age: 5221days)
Extension
Jovimetrix Composition Nodes
Latest Updated
2024-07-03
Github Stars
0.17K

How to Install Jovimetrix Composition Nodes

Install this extension via the ComfyUI Manager by searching for Jovimetrix Composition Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Jovimetrix Composition Nodes 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

FILTER MASK (JOV) 🤿 Description

Create color masks in images based on specific ranges with optional fuzziness for precise color selection in image processing tasks.

FILTER MASK (JOV) 🤿:

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.

FILTER MASK (JOV) 🤿 Input Parameters:

PIXEL_A

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.

START

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.

BOOLEAN

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.

END

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.

FLOAT

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.

MATTE

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.

FILTER MASK (JOV) 🤿 Output Parameters:

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.

FILTER MASK (JOV) 🤿 Usage Tips:

  • To isolate a specific object in an image, carefully choose the start and end color values that match the object's color.
  • Adjust the fuzziness factor to include slight variations in the object's color, ensuring a more accurate mask.
  • Use the matte parameter to set the desired background color for the masked areas, which can help in blending the mask with other images.

FILTER MASK (JOV) 🤿 Common Errors and Solutions:

"Invalid color range"

  • Explanation: The start and end color values are not within the acceptable range of 0 to 255. - Solution: Ensure that the RGB values for both the start and end parameters are within the range of 0 to 255.

"Image input not provided"

  • Explanation: The PIXEL_A parameter is missing or not correctly specified.
  • Solution: Provide a valid image input for the PIXEL_A parameter to process the mask.

"Fuzziness factor out of range"

  • Explanation: The fuzziness factor values are not within the range of 0 to 1.
  • Solution: Adjust the fuzziness factor values to be within the range of 0 to 1 for proper mask calculation.

FILTER MASK (JOV) 🤿 Related Nodes

Go back to the extension to check out more related nodes.
Jovimetrix Composition Nodes
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.