Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate various image histograms for AI artists to analyze color distribution and luminosity, supporting RGB, color channel, and luminosity histograms.
The image_histograms_node_compact
is a powerful tool designed to generate various types of histograms from images, providing a visual representation of the distribution of pixel intensities. This node is particularly useful for AI artists who want to analyze and understand the color composition and luminosity of their images. By converting images into histograms, you can gain insights into the balance of colors and the overall brightness, which can be crucial for tasks such as image enhancement, color correction, and artistic effects. The node supports multiple histogram types, including RGB histograms with filled areas or lines, individual color channel histograms, and luminosity histograms, offering flexibility to suit different analytical needs.
The image
parameter expects a tensor representing the image you want to analyze. This image is converted into a histogram based on the selected histogram type. The image should be in RGB format and properly preprocessed to ensure accurate histogram generation.
The histogram_type
parameter allows you to choose the type of histogram to generate. Options include "RGB Histogram Filled," "RGB Histogram Lines," "Red Channel," "Green Channel," "Blue Channel," and "Luminosity." Each option provides a different perspective on the image's color distribution or brightness. The default value is "RGB Histogram Filled."
The histogram_size
parameter determines the resolution of the histogram image. Options include "small," "medium," and "large," which correspond to different DPI (dots per inch) settings: 50, 100, and 150, respectively. The default value is "medium." Higher DPI values result in more detailed histograms but may take longer to generate.
The preview
parameter is a boolean that, when set to True
, allows you to preview the generated histogram. This can be useful for quickly checking the results without saving the histogram image. The default value is True
.
The display
parameter specifies whether to display the original image or the histogram in the preview. Options include "original" and "histogram." The default value is "histogram."
The prompt
parameter is an optional string that can be used to add a custom prompt or description to the saved histogram image. This can be useful for documentation or organizational purposes.
The extra_pnginfo
parameter allows you to include additional metadata in the saved histogram image. This can be useful for embedding extra information about the image or the histogram generation process.
The ui
output parameter provides a dictionary containing information about the generated histogram image, including the filename and subfolder where the image is saved. This information can be used to locate and view the histogram image.
The result
output parameter returns a tuple containing the original image tensor and the generated histogram tensor. This allows you to further process or analyze the original image and its corresponding histogram within your workflow.
histogram_size
parameter based on your needs; use "small" for quick previews and "large" for detailed analysis.histogram_type
parameter and ensure it is set to one of the supported options: "RGB Histogram Filled," "RGB Histogram Lines," "Red Channel," "Green Channel," "Blue Channel," or "Luminosity."histogram_size
parameter is set to an unsupported value, resulting in an invalid DPI setting.histogram_size
parameter is set to "small," "medium," or "large" to correspond to valid DPI values.display
parameter is set to an unsupported value.display
parameter is set to either "original" or "histogram" for valid preview options.© Copyright 2024 RunComfy. All Rights Reserved.