setIdentityAsync function
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 {
s ??= Scalar.all(1.0);
return cvRunAsync0(
(callback) => ccore.cv_setIdentity(mtx.ref, s!.ref, callback),
(c) {
return c.complete(mtx);
},
);
}