AdaptiveWhiteStretchFilterOptions 类

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描述
AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale)初始化 AdaptiveWhiteStretchFilter 类的新实例。

Properties

NameTypeAccess描述
high_percentileintr获取用于白点计算的上限百分位。
拉伸过程中,高于此百分位的像素值被视为白色。
is_grayscaleboolr获取一个值,指示过滤器是否在灰度模式下运行。
low_percentileintr获取用于黑点计算的下限百分位。
拉伸过程中,低于此百分位的像素值被视为黑色。
max_scalefloatr获取允许的最大亮度比例。
实际拉伸不会超过此因子,以避免过度增亮。
target_whiteintr获取拉伸目标的白色值。

Constructor: AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale)

 AdaptiveWhiteStretchFilterOptions(is_grayscale, low_percentile, high_percentile, target_white, max_scale) 

初始化 AdaptiveWhiteStretchFilter 类的新实例。

Parameters:

参数TypeDescription
is_grayscalebool指示过滤器是否应在灰度模式下运行。
low_percentileint黑点的下限百分位(例如 10)。
high_percentileint白点的上限百分位(例如 90)。
target_whiteint目标白色值(例如 240)。
max_scalefloat允许的最大亮度比例(例如 1.7)。