AdaptiveWhiteStretchFilterOptions Class
Contents
[
Hide
]Summary: Provides options for configuring the Adaptive White Stretch filter.
Allows customization of histogram stretch parameters to enhance the white level
and improve the readability of faint-text or low-contrast document images.
Module: aspose.imaging.imagefilters.filteroptions
Full Name: aspose.imaging.imagefilters.filteroptions.AdaptiveWhiteStretchFilterOptions
Inheritance: FilterOptionsBase
Constructors
Name | Description |
---|---|
AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale) | Initializes a new instance of the AdaptiveWhiteStretchFilter class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
high_percentile | int | r | Gets the upper percentile for white point calculation. Pixel values above this percentile are considered as white during stretching. |
is_grayscale | bool | r | Gets a value indicating whether the filter operates in grayscale mode. |
low_percentile | int | r | Gets the lower percentile for black point calculation. Pixel values below this percentile are considered as black during stretching. |
max_scale | float | r | Gets the maximum allowed brightness scale. The actual stretching will not exceed this factor, to avoid over-brightening. |
target_white | int | r | Gets the target white value the stretch aims to achieve. |
Constructor: AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale)
AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale)
Initializes a new instance of the AdaptiveWhiteStretchFilter class.
Parameters:
Parameter | Type | Description |
---|---|---|
is_grayscale | bool | Indicates whether the filter should operate in grayscale mode. |
low_percentile | int | Lower percentile for black point (e.g. 10). |
high_percentile | int | Upper percentile for white point (e.g. 90). |
target_white | int | Target white value (e.g. 240). |
max_scale | float | Maximum allowed brightness scale (e.g. 1.7). |