pub fn normalize(
src: &GMat,
alpha: f64,
beta: f64,
norm_type: i32,
ddepth: i32
) -> Result<GMat>
Expand description
Normalizes the norm or value range of an array.
The function normalizes scale and shift the input array elements so that
(where p=Inf, 1 or 2) when normType=NORM_INF, NORM_L1, or NORM_L2, respectively; or so that
when normType=NORM_MINMAX (for dense arrays only).
Note: Function textual ID is “org.opencv.core.normalize”
Parameters
- src: input array.
- alpha: norm value to normalize to or the lower range boundary in case of the range normalization.
- beta: upper range boundary in case of the range normalization; it is not used for the norm normalization.
- norm_type: normalization type (see cv::NormTypes).
- ddepth: when negative, the output array has the same type as src; otherwise, it has the same number of channels as src and the depth =ddepth.
See also
norm, Mat::convertTo
C++ default parameters
- ddepth: -1