Class AutoWhiteBalanceFilterOptions
Namespace: Aspose.Imaging.ImageFilters.FilterOptions
Assembly: Aspose.Imaging.dll (25.12.0)
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.
public class AutoWhiteBalanceFilterOptions : FilterOptionsBaseInheritance
object ← FilterOptionsBase ← AutoWhiteBalanceFilterOptions
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
AutoWhiteBalanceFilterOptions(int, int, int, float, int)
Initializes a new instance of the Aspose.Imaging.ImageFilters.FilterOptions.AutoWhiteBalanceFilterOptions class.
public AutoWhiteBalanceFilterOptions(int lowPercentile = 3, int targetHighPercentile = 97, int targetValue = 255, float maxScale = 1.4, int protectedDarkOffset = 10)Parameters
lowPercentile int
The low percentile for black point, used for darks 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).
Properties
LowPercentile
The low percentile for black point, used for darks protection (default: 3).
public int LowPercentile { get; }Property Value
MaxScale
Gets the maximum scaling factor for each channel. Restricts the amplification of any channel to avoid excessive color shifts.
public float MaxScale { get; }Property Value
ProtectedDarkOffset
Offset from low percentile below which dark pixels are not stretched (protection).
public int ProtectedDarkOffset { get; }Property Value
TargetHighPercentile
Gets the target high percentile for contrast stretching. Determines which brightness percentile will be mapped to the target value.
public int TargetHighPercentile { get; }Property Value
TargetValue
Gets the target value for the high percentile. This value will be used as the white reference for contrast stretching.
public int TargetValue { get; }