ComfyUI Node: Image Luminance

Class Name

ImageLuminanceDetector

Category
ControlNet Preprocessors/Recolor
Author
Fannovel16 (Account age: 3127days)
Extension
ComfyUI's ControlNet Auxiliary Preprocessors
Latest Updated
2024-06-18
Github Stars
1.57K

How to Install ComfyUI's ControlNet Auxiliary Preprocessors

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

Run ComfyUI Online

Image Luminance Description

Analyze and process image luminance levels for enhancing contrast and segmentation in computer vision applications.

Image Luminance:

The ImageLuminanceDetector node is designed to analyze and process the luminance (brightness) levels of an input image. This node is particularly useful for tasks that require an understanding of the light intensity distribution within an image, such as enhancing image contrast, performing image segmentation based on brightness, or preparing images for further processing in computer vision applications. By focusing on the luminance aspect, this node helps in isolating and manipulating the brightness information, which can be crucial for various artistic and technical purposes. The node leverages advanced algorithms to accurately detect and adjust luminance, ensuring high-quality output that can be used in a wide range of AI art and image processing workflows.

Image Luminance Input Parameters:

gamma_correction

The gamma_correction parameter allows you to adjust the gamma value applied to the image during luminance detection. Gamma correction is a nonlinear operation used to encode and decode luminance or tristimulus values in image processing. Adjusting this parameter can help in enhancing or dimming the brightness of the image. The default value is 1.0, which means no gamma correction is applied. The minimum value is 0.1, and the maximum value is 2.0, with a step size of 0.001. Lower values will make the image appear darker, while higher values will make it appear brighter.

Image Luminance Output Parameters:

IMAGE

The output parameter IMAGE represents the processed image with adjusted luminance levels. This output is crucial for further image processing tasks where brightness information is essential. The processed image can be used for various applications, including image enhancement, segmentation, and preparation for machine learning models. The output ensures that the luminance information is accurately represented, providing a high-quality image that meets the requirements of subsequent processing steps.

Image Luminance Usage Tips:

  • To achieve optimal brightness adjustment, start with the default gamma correction value of 1.0 and gradually adjust it to see the effect on the image.
  • Use lower gamma correction values to enhance details in darker areas of the image, and higher values to bring out details in brighter areas.

Image Luminance Common Errors and Solutions:

ValueError: Gamma correction value out of range

  • Explanation: This error occurs when the gamma correction value provided is outside the allowed range of 0.1 to 2.0.
  • Solution: Ensure that the gamma correction value is within the specified range. Adjust the value to be between 0.1 and 2.0.

TypeError: Invalid input image format

  • Explanation: This error occurs when the input image is not in a supported format.
  • Solution: Verify that the input image is in a valid format such as JPEG, PNG, or BMP. Convert the image to a supported format if necessary.

Image Luminance Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI's ControlNet Auxiliary Preprocessors
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.