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
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static void Normalize(
InputArray src,
InputOutputArray dst,
double alpha = 1,
double beta = 0,
NormTypes normType = NormTypes.L2,
int dtype = -1,
InputArray mask = null
)
Public Shared Sub Normalize (
src As InputArray,
dst As InputOutputArray,
Optional alpha As Double = 1,
Optional beta As Double = 0,
Optional normType As NormTypes = NormTypes.L2,
Optional dtype As Integer = -1,
Optional mask As InputArray = Nothing
)
public:
static void Normalize(
InputArray^ src,
InputOutputArray^ dst,
double alpha = 1,
double beta = 0,
NormTypes normType = NormTypes::L2,
int dtype = -1,
InputArray^ mask = nullptr
)
static member Normalize :
src : InputArray *
dst : InputOutputArray *
?alpha : float *
?beta : float *
?normType : NormTypes *
?dtype : int *
?mask : InputArray
(* Defaults:
let _alpha = defaultArg alpha 1
let _beta = defaultArg beta 0
let _normType = defaultArg normType NormTypes.L2
let _dtype = defaultArg dtype -1
let _mask = defaultArg mask null
*)
-> unit
OpenCvSharp.Cv2.Normalize = function(src, dst, alpha, beta, normType, dtype, mask);
Parameters
- src
- Type: OpenCvSharpInputArray
The source array - dst
- Type: OpenCvSharpInputOutputArray
The destination array; will have the same size as src - alpha (Optional)
- Type: SystemDouble
The norm value to normalize to or the lower range boundary
in the case of range normalization - beta (Optional)
- Type: SystemDouble
The upper range boundary in the case of range normalization;
not used for norm normalization - normType (Optional)
- Type: OpenCvSharpNormTypes
The normalization type - dtype (Optional)
- Type: SystemInt32
When 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) - mask (Optional)
- Type: OpenCvSharpInputArray
The optional operation mask
See Also