ComfyUI > Nodes > tri3d-comfyui-nodes > Recolor mask RGB space v4.7.3

ComfyUI Node: Recolor mask RGB space v4.7.3

Class Name

tri3d-recolor-mask-RGB_space

Category
TRI3D
Author
TRI3D-LC (Account age: 770days)
Extension
tri3d-comfyui-nodes
Latest Updated
2025-05-21
Github Stars
0.03K

How to Install tri3d-comfyui-nodes

Install this extension via the ComfyUI Manager by searching for tri3d-comfyui-nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter tri3d-comfyui-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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Recolor mask RGB space v4.7.3 Description

Facilitates selective image recoloring with RGB mask for precise color adjustments in digital art.

Recolor mask RGB space v4.7.3:

The tri3d-recolor-mask-RGB_space node is designed to facilitate the recoloring of specific regions within an image using a mask in the RGB color space. This node is particularly useful for artists and designers who wish to apply color transformations to selected areas of an image while preserving the original colors in unmasked regions. By leveraging the RGB color space, the node allows for intuitive color adjustments that align with the way colors are typically represented in digital images. The primary goal of this node is to enable precise and controlled color modifications, enhancing the creative possibilities for image editing and artistic expression.

Recolor mask RGB space v4.7.3 Input Parameters:

image_input

The image_input parameter represents the original image that you want to recolor. This image serves as the base for applying the mask and subsequent color transformations. The quality and resolution of this image can impact the final output, so it is advisable to use high-quality images for the best results.

mask_input

The mask_input parameter is a binary mask that defines the areas of the image to be recolored. Pixels with a value greater than 127 in the mask are considered part of the region to be recolored, while others remain unchanged. This mask allows for selective recoloring, enabling you to target specific parts of the image for color adjustments.

factor_mean

The factor_mean parameter is a numerical value that influences the mean color adjustment applied to the masked region. It determines how much the average color of the selected area will shift, allowing for subtle or dramatic changes in hue and tone. Adjusting this factor can help achieve the desired color balance in the recolored region.

factor_sigma

The factor_sigma parameter controls the standard deviation of the color distribution in the masked region. By modifying this value, you can affect the contrast and saturation of the recolored area, making it more vibrant or muted. This parameter is crucial for fine-tuning the visual impact of the recoloring process.

Recolor mask RGB space v4.7.3 Output Parameters:

image_original

The image_original output is the final recolored image, where the specified regions have been adjusted according to the input parameters. This output retains the original colors in unmasked areas while applying the desired color transformations to the masked regions. The result is a seamlessly integrated image that reflects the intended artistic modifications.

Recolor mask RGB space v4.7.3 Usage Tips:

  • Ensure that your mask accurately represents the areas you wish to recolor to achieve precise results.
  • Experiment with different factor_mean and factor_sigma values to find the perfect balance for your artistic vision.

Recolor mask RGB space v4.7.3 Common Errors and Solutions:

Mask not applied correctly

  • Explanation: The mask may not be properly defined, leading to incorrect areas being recolored.
  • Solution: Verify that the mask is a binary image with clear distinctions between masked and unmasked regions.

Colors appear unnatural

  • Explanation: The factor_mean or factor_sigma values might be set too high or too low, causing unrealistic color shifts.
  • Solution: Adjust the factor_mean and factor_sigma parameters incrementally to achieve a more natural look.

Recolor mask RGB space v4.7.3 Related Nodes

Go back to the extension to check out more related nodes.
tri3d-comfyui-nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.