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

ComfyUI Node: Recolor mask HSV space v4.7.3

Class Name

tri3d-recolor-mask

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 HSV space v4.7.3 Description

Facilitates image recoloring with mask-based precision for artists and designers.

Recolor mask HSV space v4.7.3:

The tri3d-recolor-mask node is designed to facilitate the recoloring of images by leveraging mask-based operations. This node is particularly useful for artists and designers who wish to apply color transformations to specific regions of an image while preserving the original color balance and texture in other areas. By using masks, the node allows for precise control over which parts of the image are affected by the recoloring process. The recoloring is achieved by adjusting the mean and standard deviation of the color channels within the masked areas, ensuring that the new colors blend seamlessly with the existing image. This method is beneficial for tasks such as color correction, artistic effects, and enhancing visual consistency across different image elements.

Recolor mask HSV space v4.7.3 Input Parameters:

image_input

This parameter represents the original image that you want to recolor. It serves as the base image upon which the recoloring operations will be applied. The image should be in a format that supports color channels, such as RGB.

mask_input

The mask input is a crucial parameter that defines the areas of the image to be recolored. It is a binary mask where the regions with a value greater than 127 are considered for recoloring. This allows for selective application of color changes, ensuring that only the desired parts of the image are affected.

factor_mean

This parameter influences the mean color value used in the recoloring process. By adjusting the factor_mean, you can control the overall brightness and color tone of the recolored areas. The default value is typically set to maintain the original mean, but it can be adjusted to achieve different artistic effects.

factor_sigma

Factor_sigma determines the standard deviation of the color distribution in the recolored areas. It affects the contrast and saturation of the colors applied. A higher value can lead to more vibrant and contrasting colors, while a lower value may result in softer and more muted tones.

Recolor mask HSV space v4.7.3 Output Parameters:

image_output

The output of the node is the recolored image, which retains the original image's structure but with the specified areas recolored according to the input parameters. This output is crucial for visualizing the effects of the recoloring process and can be used for further editing or as a final product.

Recolor mask HSV space v4.7.3 Usage Tips:

  • To achieve a natural-looking recolor, ensure that the mask accurately represents the areas you want to change. Use a high-quality mask to avoid unwanted color bleeding into other regions.
  • Experiment with different values for factor_mean and factor_sigma to find the perfect balance of color tone and contrast that suits your artistic vision.

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

Mask dimension mismatch

  • Explanation: This error occurs when the dimensions of the mask do not match the dimensions of the input image.
  • Solution: Ensure that the mask and the image have the same width and height before applying the recolor operation.

Invalid mask values

  • Explanation: The mask contains values outside the expected binary range, which can lead to unexpected results.
  • Solution: Verify that the mask is properly thresholded to contain only binary values (0 or 255) before using it in the node.

Recolor mask HSV 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.