Image.normalizeQuantile Method¶
Module: Image
Definition¶
Normalizes a grayscale image based on quantiles in-place.
The function computes the pixel values at the specified quantiles, then normalizes the image
using the formula: (img - a) / (b - a), where a and b are the quantile values.
Results are clipped to [0, 1] and scaled back to [0, 255].
Note
Only grayscale 8-bit images are supported.
void normalizeQuantile(double lowQuantile, double highQuantile)
Parameters
lowQuantile doublein Lower quantile (0.0 to 1.0, e.g., 0.01 for 1st percentile).
highQuantile doublein Upper quantile (0.0 to 1.0, e.g., 0.99 for 99th percentile).
Exceptions
An error has occurred during Face Library execution.