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

ComfyUI Node: Recolor mask LAB space manual v4.7.3

Class Name

tri3d-recolor-mask-LAB_space_manual

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

Facilitates LAB color space image recoloring with precise adjustments using masks for selective color changes.

Recolor mask LAB space manual v4.7.3:

The tri3d-recolor-mask-LAB_space_manual node is designed to facilitate the recoloring of images using the LAB color space, which separates the lightness (L) from the color components (A and B). This node is particularly useful for tasks that require precise color adjustments and transformations, as the LAB color space is known for its ability to represent colors in a way that is more aligned with human vision. By utilizing a mask, this node allows you to selectively apply color changes to specific areas of an image, providing greater control over the final output. This can be especially beneficial in artistic applications where maintaining the integrity of certain image regions while altering others is crucial. The node's primary function is to adjust the mean and standard deviation of the LAB channels within the masked area, enabling nuanced color modifications that can enhance the visual appeal of your artwork.

Recolor mask LAB space manual v4.7.3 Input Parameters:

image_reference

This parameter represents the reference image from which the color characteristics will be extracted. It serves as the baseline for the recoloring process, providing the LAB values that will be applied to the target image. The quality and color balance of this image directly impact the recoloring results.

image_mask_reference

The mask for the reference image specifies the areas from which color information should be sampled. This mask ensures that only the desired regions of the reference image contribute to the recoloring process, allowing for targeted color adjustments.

image_recolor

This is the target image that will undergo the recoloring process. The LAB values from the reference image will be applied to this image, altering its color characteristics according to the specified parameters.

image_mask_recolor

The mask for the target image defines the regions where the recoloring will be applied. By using this mask, you can control which parts of the image are affected by the color transformation, preserving the original colors in unmasked areas.

factor_mean_L

This parameter adjusts the mean value of the L (lightness) channel in the LAB color space. It influences the overall brightness of the recolored areas, allowing you to make them lighter or darker as needed.

factor_sigma_L

This parameter modifies the standard deviation of the L channel, affecting the contrast within the recolored regions. A higher value increases contrast, while a lower value reduces it.

factor_mean_A

This parameter adjusts the mean value of the A channel, which represents the green-red color component. It allows you to shift the color balance towards green or red in the recolored areas.

factor_sigma_A

This parameter modifies the standard deviation of the A channel, influencing the saturation of the green-red component. Adjusting this value can make the colors more or less vivid.

factor_mean_B

This parameter adjusts the mean value of the B channel, which represents the blue-yellow color component. It enables you to shift the color balance towards blue or yellow in the recolored areas.

factor_sigma_B

This parameter modifies the standard deviation of the B channel, affecting the saturation of the blue-yellow component. By adjusting this value, you can control the intensity of these colors in the recolored regions.

Recolor mask LAB space manual v4.7.3 Output Parameters:

recolored_image

The output is the recolored image, which has undergone the LAB-based color transformation. This image reflects the adjustments made according to the input parameters, with the specified regions altered in terms of lightness and color balance.

Recolor mask LAB space manual v4.7.3 Usage Tips:

  • Ensure that the masks used for both the reference and target images are accurately defined to achieve precise recoloring results. This will help maintain the integrity of the areas you wish to preserve.
  • Experiment with different mean and standard deviation values for the LAB channels to achieve the desired color effect. Small adjustments can lead to significant changes in the visual outcome.

Recolor mask LAB space manual v4.7.3 Common Errors and Solutions:

"Mask size mismatch"

  • Explanation: This error occurs when the mask dimensions do not match the image dimensions, leading to an inability to apply the mask correctly.
  • Solution: Ensure that the mask and image have the same dimensions before applying the recoloring process.

"Invalid LAB values"

  • Explanation: This error indicates that the LAB values are out of the acceptable range, which can happen if the input parameters are set incorrectly.
  • Solution: Verify that the mean and standard deviation values for the LAB channels are within a reasonable range to prevent color distortion.

Recolor mask LAB space manual 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.