normalizeAsync function

Future<Mat> normalizeAsync(
  1. InputArray src,
  2. InputOutputArray dst, {
  3. double alpha = 1,
  4. double beta = 0,
  5. int normType = NORM_L2,
  6. int dtype = -1,
  7. InputArray? mask,
})

Normalize normalizes the norm or value range of an array.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga87eef7ee3970f86906d69a92cbf064bd

Implementation

Future<Mat> normalizeAsync(
  InputArray src,
  InputOutputArray dst, {
  double alpha = 1,
  double beta = 0,
  int normType = NORM_L2,
  int dtype = -1,
  InputArray? mask,
}) async =>
    cvRunAsync0(
      (callback) => mask == null
          ? cffi.core_Normalize_Async(src.ref, dst.ref, alpha, beta, normType, dtype, callback)
          : cffi.core_Normalize_Mask_Async(
              src.ref,
              dst.ref,
              alpha,
              beta,
              normType,
              dtype,
              mask.ref,
              callback,
            ),
      (c) => c.complete(dst),
    );