setIdentityAsync function

Future<Mat> setIdentityAsync(
  1. InputOutputArray mtx, {
  2. Scalar? s,
})

SetIdentity initializes a scaled identity matrix. For further details, please see:

https://docs.opencv.org/master/d2/de8/group__core__array.html#ga388d7575224a4a277ceb98ccaa327c99

Implementation

Future<Mat> setIdentityAsync(InputOutputArray mtx, {Scalar? s}) async => cvRunAsync0(
      (callback) => ccore.core_SetIdentity_Async(mtx.ref, s?.ref ?? Scalar.all(1).ref, callback),
      (c) => c.complete(mtx),
    );