Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply Color Look-Up Table (CLUT) for color transformations, visual styles, and gamma correction in images.
The HaldCLUT node is designed to apply a Color Look-Up Table (CLUT) to an image, transforming its colors based on a predefined mapping. This process is particularly useful for achieving specific visual styles or color grading effects, such as those seen in film and photography. By using a HaldCLUT, you can quickly and easily apply complex color transformations to your images, enhancing their aesthetic appeal or matching a particular visual theme. The node also offers an optional gamma correction feature, which can adjust the image's brightness and contrast to better suit the applied CLUT. This makes the HaldCLUT node a powerful tool for AI artists looking to fine-tune the color profiles of their generated images.
This parameter accepts the input image that you want to transform using the HaldCLUT. The image should be in a compatible format, typically provided as a tensor. The input image serves as the base upon which the color transformations will be applied.
This parameter allows you to select the specific HaldCLUT file to be used for the color transformation. The available options are dynamically generated from the files present in the system, and you can choose from a list of predefined CLUTs. Each CLUT file represents a different color mapping, and selecting a different one will result in a different color transformation of the input image.
This parameter determines whether gamma correction should be applied to the input image before the HaldCLUT is applied. It accepts two options: True
or False
. When set to True
, the image will undergo gamma correction with a gamma value of 1.0/2.2, which can help in achieving more accurate color transformations. When set to False
, no gamma correction will be applied.
The output parameter is the transformed image, which has undergone the color mapping defined by the selected HaldCLUT. The resulting image will have its colors adjusted according to the CLUT, and if gamma correction was enabled, the brightness and contrast will also be modified. This output image is typically returned as a tensor, ready for further processing or display.
True
or False
. If you need to apply a specific gamma value, modify the code to accept and validate custom gamma values.© Copyright 2024 RunComfy. All Rights Reserved.