DocumentImage.normalizeQuantileTo Method¶
Module: DocumentImage
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, DocumentImage dstDocumentImage)
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).
dstDocumentImage DocumentImagein The destination Image that receives the normalized image.
Exceptions
An error has occurred during Document Library execution.