setIdentity 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
Mat setIdentity(InputOutputArray mtx, {Scalar? s}) {
s ??= Scalar.all(1.0);
cvRun(() => ccore.cv_setIdentity(mtx.ref, s!.ref, ffi.nullptr));
return mtx;
}