Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image intensity distribution by rescaling histogram to specified range for enhanced visual quality and consistency.
The tri3d-simple_rescale_histogram
node is designed to adjust the intensity distribution of an image layer by rescaling its histogram to fit within specified minimum and maximum values. This process is particularly useful in image processing tasks where you want to enhance the contrast or normalize the brightness levels across different images. By rescaling the histogram, this node ensures that the pixel values are spread more evenly across the desired range, which can improve the visual quality and consistency of the images. This node is beneficial for artists and designers who need to maintain uniformity in image appearance, especially when dealing with multiple images that need to be visually coherent.
This parameter represents the input image data that you want to rescale. It is typically a 2D array of pixel intensity values. The function of this parameter is to provide the raw data that will be transformed by the rescaling process. The values in this array are expected to be in a format that can be processed by the node, usually as floating-point numbers.
This parameter specifies the minimum value of the rescaled histogram. It determines the lower bound of the intensity range that the output image will have. By setting this value, you control the darkest point in the rescaled image, which can affect the overall contrast and appearance.
This parameter defines the maximum value of the rescaled histogram. It sets the upper bound of the intensity range for the output image. Adjusting this value allows you to control the brightest point in the rescaled image, influencing the image's contrast and brightness.
This parameter indicates the lower limit of the original histogram that you want to map to the new range. It is used to identify the starting point of the intensity values in the input image that will be rescaled. This helps in focusing the rescaling process on a specific portion of the original histogram.
This parameter represents the upper limit of the original histogram that you want to map to the new range. It marks the endpoint of the intensity values in the input image that will be rescaled. By setting this value, you can control which part of the original histogram is stretched or compressed to fit the new range.
The output parameter y
is the rescaled image data, which is a 2D array of pixel intensity values. This array represents the transformed image where the original histogram has been adjusted to fit within the specified minimum and maximum values. The rescaled image will have enhanced contrast and brightness levels, making it more visually appealing and consistent with other images processed in a similar manner.
y1
and y2
values to find the optimal contrast and brightness settings for your specific image processing needs.x2
and x1
is zero, leading to a division by zero during the rescaling process.x1
and x2
are set to different values to avoid division by zero. Adjust these parameters to cover the desired range of the original histogram.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.