Documentation for LayerColor: BrightnessContrastV2 Node
Overview
The LayerColor: BrightnessContrastV2 node is a tool used within the ComfyUI framework, designed to perform image processing operations. This specific node focuses on adjusting the brightness, contrast, and saturation of images, enabling users to enhance or alter their visual appearance.
Functionality
The node applies enhancements to the input image by modifying three main attributes:
- Brightness: Adjusts the lightness or darkness of the image.
- Contrast: Enhances or reduces the distinction between light and dark regions.
- Saturation: Alters the intensity of the colors.
The node offers a way to control these parameters manually, giving users flexibility in terms of how much correction should be applied.
Inputs
The LayerColor: BrightnessContrastV2 node requires the following inputs:
- Image: The primary input, which is an image that you want to adjust.
- Brightness: A floating-point value to control the brightness level. It ranges from 0.0 to 3.0, with a default value of 1.0, where a value less than 1 darkens the image, and a value greater than 1 brightens it.
- Contrast: A floating-point value for contrast adjustment. It also ranges from 0.0 to 3.0, with a default value of 1.0, where values less than 1 decrease contrast, and values greater than 1 increase it.
- Saturation: A floating-point value to adjust color intensity, ranging from 0.0 to 3.0, with a default value of 1.0. Values below 1 desaturate the colors, and values above 1 enhance color saturation.
Outputs
The node produces:
- Image: An image that has been adjusted based on the input parameters for brightness, contrast, and saturation. This output can then be used further in different nodes within a ComfyUI workflow.
Usage in ComfyUI Workflows
In ComfyUI workflows, the LayerColor: BrightnessContrastV2 node is typically used in the image processing stage when you want to prepare an image for further analysis or enhance its visual features. Here’s how you might typically use it:
- Image Enhancement: If an image requires visual improvements, this node can be used to adjust its brightness, contrast, and saturation to achieve the desired look.
- Pre-Processing: Before applying additional image processing techniques, such as segmentation or feature extraction, adjusting the image's basic properties can improve the overall result.
- Artistic Effects: This node can be used creatively to stylize images by heavily altering brightness, contrast, and saturation for producing artistic images.
Special Features or Considerations
- It's essential to keep in mind the scalability of the input values; drastic adjustments can result in unnatural-looking images.
- The node is capable of processing batches of images, making it suitable for applications that require processing multiple images in one go.
- The node works with images that have an alpha channel (RGBA), ensuring transparency is preserved during processing.
With these capabilities, the LayerColor: BrightnessContrastV2 node is a versatile tool in the ComfyUI framework for users looking to perform basic yet effective image enhancements.