Visit ComfyUI Online for ready-to-use ComfyUI environment
Automatically adjusts image contrast for enhanced visual appeal and improved balance, clarity, and detail.
The JDC_AutoContrast node is designed to automatically adjust the contrast of an image, enhancing its visual appeal by making the dark areas darker and the light areas lighter. This node is particularly useful for improving the overall balance and clarity of an image without requiring manual adjustments. By leveraging the autocontrast method, it ensures that the full range of pixel values is utilized, which can significantly enhance the details and dynamic range of the image. This node is ideal for AI artists looking to quickly and effectively enhance their images with minimal effort.
This parameter represents the input image that you want to process. The image should be in a compatible format that the node can handle, typically an RGB image.
The cutoff
parameter specifies the percentage of the lightest and darkest pixels to be cut off from the histogram before computing the contrast. This helps in ignoring outliers that might skew the contrast adjustment. The value ranges from 0 to 100, with a default value of 2. A higher cutoff value will result in more extreme contrast adjustments, while a lower value will make the adjustment more subtle.
The min_value
parameter sets the minimum pixel value that should be considered during the contrast adjustment. If set to -1, this parameter is ignored. The value ranges from -1 to 255, with a default value of -1. Setting this to a specific value can help in preserving certain details in the image that might otherwise be lost during the contrast adjustment.
The output is the processed image with adjusted contrast. This image will have enhanced visual clarity and a more balanced distribution of pixel values, making it more visually appealing and detailed.
cutoff
value to ignore these extreme values and achieve a more balanced contrast adjustment.min_value
parameter to a specific value rather than leaving it at the default -1.TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
ValueError: cutoff must be between 0 and 100
cutoff
value is set outside the allowed range.cutoff
value to be within the range of 0 to 100.ValueError: min_value must be between -1 and 255
min_value
is set outside the allowed range.min_value
to be within the range of -1 to 255.© Copyright 2024 RunComfy. All Rights Reserved.