AdaptiveWhiteStretchFilterOptions Class

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

NameDescription
AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale)Initializes a new instance of the AdaptiveWhiteStretchFilter class.

Properties

NameTypeAccessDescription
high_percentileintrGets the upper percentile for white point calculation.
Pixel values above this percentile are considered as white during stretching.
is_grayscaleboolrGets a value indicating whether the filter operates in grayscale mode.
low_percentileintrGets the lower percentile for black point calculation.
Pixel values below this percentile are considered as black during stretching.
max_scalefloatrGets the maximum allowed brightness scale.
The actual stretching will not exceed this factor, to avoid over-brightening.
target_whiteintrGets 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:

ParameterTypeDescription
is_grayscaleboolIndicates whether the filter should operate in grayscale mode.
low_percentileintLower percentile for black point (e.g. 10).
high_percentileintUpper percentile for white point (e.g. 90).
target_whiteintTarget white value (e.g. 240).
max_scalefloatMaximum allowed brightness scale (e.g. 1.7).