public static Normalize ( InputArray src, InputOutputArray dst, double alpha = 1, double beta, NormTypes normType = NormTypes.L2, int dtype = -1, InputArray mask = null ) : void | ||
src | InputArray | The source array |
dst | InputOutputArray | The destination array; will have the same size as src |
alpha | double | The norm value to normalize to or the lower range boundary /// in the case of range normalization |
beta | double | The upper range boundary in the case of range normalization; /// not used for norm normalization |
normType | NormTypes | The normalization type |
dtype | int | 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 | InputArray | The optional operation mask |
return | void |
public static void Normalize( InputArray src, InputOutputArray dst, double alpha=1, double beta=0,
NormTypes normType=NormTypes.L2, int dtype=-1, InputArray mask=null)
{
if (src == null)
throw new ArgumentNullException(nameof(src));
if (dst == null)
throw new ArgumentNullException(nameof(dst));
src.ThrowIfDisposed();
dst.ThrowIfNotReady();
NativeMethods.core_normalize(src.CvPtr, dst.CvPtr, alpha, beta, (int)normType, dtype, ToPtr(mask));
GC.KeepAlive(src);
dst.Fix();
}
#endregion