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
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
lowPercentile | int |
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile)
public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile)
Parameters:
Parameter | Type | Description |
---|---|---|
lowPercentile | int | |
targetHighPercentile | int |
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue)
public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue)
Parameters:
Parameter | Type | Description |
---|---|---|
lowPercentile | int | |
targetHighPercentile | int | |
targetValue | int |
AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale)
public AutoWhiteBalanceFilterOptions(int lowPercentile, int targetHighPercentile, int targetValue, float maxScale)
Parameters:
Parameter | Type | Description |
---|---|---|
lowPercentile | int | |
targetHighPercentile | int | |
targetValue | int | |
maxScale | float |
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:
Parameter | Type | Description |
---|---|---|
lowPercentile | int | The low percentile for black point, used for dark protection (default: 3). |
targetHighPercentile | int | The target high percentile for contrast stretching (default 97). |
targetValue | int | The target value for the high percentile (default 255). |
maxScale | float | The maximum scaling factor for each channel (default 1.4f). |
protectedDarkOffset | int | Offset 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