Image.normalizeQuantileTo Method

Module: Image

Definition

Normalizes a grayscale image based on quantiles.

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 normalizeQuantileTo(double lowQuantile, double highQuantile, Image dstImage)

Parameters

lowQuantile double
in Lower quantile (0.0 to 1.0, e.g., 0.01 for 1st percentile).

highQuantile double
in Upper quantile (0.0 to 1.0, e.g., 0.99 for 99th percentile).

dstImage Image
in The destination Image that receives the normalized image.

Exceptions

An error has occurred during Face Library execution.