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.
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
int |
getLowPercentile()
The low percentile for black point, used for dark protection (default: 3).
|
float |
getMaxScale()
Gets the maximum scaling factor for each channel.
|
int |
getProtectedDarkOffset()
Offset from low percentile below which dark pixels are not stretched (protection).
|
int |
getTargetHighPercentile()
Gets the target high percentile for contrast stretching.
|
int |
getTargetValue()
Gets the target value for the high percentile.
|
public AutoWhiteBalanceFilterOptions()
public AutoWhiteBalanceFilterOptions(int lowPercentile)
public AutoWhiteBalanceFilterOptions(int lowPercentile,
int targetHighPercentile)
public AutoWhiteBalanceFilterOptions(int lowPercentile,
int targetHighPercentile,
int targetValue)
public AutoWhiteBalanceFilterOptions(int lowPercentile,
int targetHighPercentile,
int targetValue,
float maxScale)
public AutoWhiteBalanceFilterOptions(int lowPercentile,
int targetHighPercentile,
int targetValue,
float maxScale,
int protectedDarkOffset)
Initializes a new instance of the AutoWhiteBalanceFilterOptions class.
lowPercentile - The low percentile for black point, used for dark protection (default: 3).targetHighPercentile - The target high percentile for contrast stretching (default 97).targetValue - The target value for the high percentile (default 255).maxScale - The maximum scaling factor for each channel (default 1.4f).protectedDarkOffset - Offset from low percentile below which dark pixels are not stretched (protection).public final int getTargetHighPercentile()
Gets the target high percentile for contrast stretching. Determines which brightness percentile will be mapped to the target value.
public final int getTargetValue()
Gets the target value for the high percentile. This value will be used as the white reference for contrast stretching.
public final float getMaxScale()
Gets the maximum scaling factor for each channel. Restricts the amplification of any channel to avoid excessive color shifts.
public final int getLowPercentile()
The low percentile for black point, used for dark protection (default: 3).
public final int getProtectedDarkOffset()
Offset from low percentile below which dark pixels are not stretched (protection).
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.