Method Normalize
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Normalize(InputArray, InputOutputArray, double, double, NormTypes, int, InputArray)
scales and shifts array elements so that either the specified norm (alpha) or the minimum (alpha) and maximum (beta) array values get the specified values
public static void Normalize(InputArray src, InputOutputArray dst, double alpha = 1, double beta = 0, NormTypes normType = NormTypes.L2, int dtype = -1, InputArray mask = default)
Parameters
srcInputArrayThe source array
dstInputOutputArrayThe destination array; will have the same size as src
alphadoubleThe norm value to normalize to or the lower range boundary in the case of range normalization
betadoubleThe upper range boundary in the case of range normalization; not used for norm normalization
normTypeNormTypesThe normalization type
dtypeintWhen the parameter is negative, the destination array will have the same type as src, otherwise it will have the same number of channels as src and the depth =CV_MAT_DEPTH(rtype)
maskInputArrayThe optional operation mask