AutoWhiteBalanceFilterOptions

Inheritance: java.lang.Object, com.aspose.imaging.imagefilters.filteroptions.FilterOptionsBase

public class AutoWhiteBalanceFilterOptions extends FilterOptionsBase

Provides configuration options for the Auto White Balance filter. Allows tuning of contrast stretching parameters and channel scaling to improve the appearance of digital images.

Constructors

ConstructorDescription
AutoWhiteBalanceFilterOptions()
AutoWhiteBalanceFilterOptions(int lowPercentile)
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile)
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue)
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale)
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale, int protectedDarkOffset)Initializes a new instance of the AutoWhiteBalanceFilterOptions class.

Methods

MethodDescription
getTargetHighPercentile()Gets the target high percentile for contrast stretching.
getTargetValue()Gets the target value for the high percentile.
getMaxScale()Gets the maximum scaling factor for each channel.
getLowPercentile()The low percentile for black point, used for dark protection (default: 3).
getProtectedDarkOffset()Offset from low percentile below which dark pixels are not stretched (protection).

AutoWhiteBalanceFilterOptions()

public AutoWhiteBalanceFilterOptions()

AutoWhiteBalanceFilterOptions(int lowPercentile)

public AutoWhiteBalanceFilterOptions(int lowPercentile)

Parameters:

ParameterTypeDescription
lowPercentileint

AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile)

public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile)

Parameters:

ParameterTypeDescription
lowPercentileint
targetHighPercentileint

AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue)

public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue)

Parameters:

ParameterTypeDescription
lowPercentileint
targetHighPercentileint
targetValueint

AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale)

public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale)

Parameters:

ParameterTypeDescription
lowPercentileint
targetHighPercentileint
targetValueint
maxScalefloat

AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale, int protectedDarkOffset)

public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale, int protectedDarkOffset)

Initializes a new instance of the AutoWhiteBalanceFilterOptions class.

Parameters:

ParameterTypeDescription
lowPercentileintThe low percentile for black point, used for dark protection (default: 3).
targetHighPercentileintThe target high percentile for contrast stretching (default 97).
targetValueintThe target value for the high percentile (default 255).
maxScalefloatThe maximum scaling factor for each channel (default 1.4f).
protectedDarkOffsetintOffset from low percentile below which dark pixels are not stretched (protection).

getTargetHighPercentile()

public final int getTargetHighPercentile()

Gets the target high percentile for contrast stretching. Determines which brightness percentile will be mapped to the target value.

Returns: int - the target high percentile for contrast stretching.

getTargetValue()

public final int getTargetValue()

Gets the target value for the high percentile. This value will be used as the white reference for contrast stretching.

Returns: int - the target value for the high percentile.

getMaxScale()

public final float getMaxScale()

Gets the maximum scaling factor for each channel. Restricts the amplification of any channel to avoid excessive color shifts.

Returns: float - the maximum scaling factor for each channel.

getLowPercentile()

public final int getLowPercentile()

The low percentile for black point, used for dark protection (default: 3).

Returns: int

getProtectedDarkOffset()

public final int getProtectedDarkOffset()

Offset from low percentile below which dark pixels are not stretched (protection).

Returns: int