Auto Contrast
This function block applies automatic contrast adjustments to images using a histogram clipping algorithm. The goal is to enhance the visibility of features within the image.
π₯ Inputs
Image Any
The input image that you want to enhance through contrast adjustment.
π€ Outputs
Image Any
The output image with adjusted contrast.
πΉοΈ Controls
Threshold
A slider control that allows you to set the percentage of histogram clipping to apply. This value determines how much of the histogram's tails are clipped to increase contrast.
π¨ Features
Automatic Adjustment
This block automatically adjusts image contrast based on the histogram data, enhancing image features without manual intervention.
Histogram Clipping
The algorithm calculates the minimum and maximum grayscale values to clip, allowing greater detail in the remaining image data.
π Usage Instructions
Connect Input: Link a source image to the
Image Any
input.Set Threshold: Use the
Threshold
slider to adjust the histogram clipping percentage. A typical range is between 1 and 99.Evaluate: Run the block to apply the contrast adjustment and get the enhanced output image.
π Evaluation
Upon evaluation, this function block processes the input image and enhances its contrast based on the set threshold, outputting the adjusted image.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated