pub fn normalize_def(
src: &impl ToInputArray,
dst: &mut impl ToOutputArray,
alpha: f64,
beta: f64,
norm_type: i32,
dtype: i32,
) -> Result<()>
Expand description
Normalizes the norm or value range of an array.
§Parameters
- src: Input array.
- dst: Output array of the same size as src .
- 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 ( NORM_MINMAX , NORM_L2 , NORM_L1 or NORM_INF ).
- dtype: When negative, the output array has the same type as src; otherwise, it has the same number of channels as src and the depth =CV_MAT_DEPTH(dtype).
- mask: Optional operation mask.
- stream: Stream for the asynchronous version.
§See also
normalize
§Note
This alternative version of normalize function uses the following default values for its arguments:
- mask: noArray()
- stream: Stream::Null()