blobFromImagesAsync function

Future<Mat> blobFromImagesAsync(
  1. VecMat images, {
  2. Mat? blob,
  3. double scalefactor = 1.0,
  4. (int, int) size = (0, 0),
  5. Scalar? mean,
  6. bool swapRB = false,
  7. bool crop = false,
  8. int ddepth = MatType.CV_32F,
})

Implementation

Future<Mat> blobFromImagesAsync(
  VecMat images, {
  Mat? blob,
  double scalefactor = 1.0,
  (int, int) size = (0, 0),
  Scalar? mean,
  bool swapRB = false,
  bool crop = false,
  int ddepth = MatType.CV_32F,
}) async {
  blob ??= Mat.empty();
  mean ??= Scalar.zeros;
  return cvRunAsync0(
    (callback) => cdnn.cv_dnn_blobFromImages(
      images.ref,
      blob!.ref,
      scalefactor,
      size.cvd.ref,
      mean!.ref,
      swapRB,
      crop,
      ddepth,
      callback,
    ),
    (c) {
      return c.complete(blob);
    },
  );
}