setIdentity function

Mat setIdentity(
  1. InputOutputArray mtx, {
  2. double s = 1,
})

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, {double s = 1}) {
  cvRun(() => ccore.Mat_SetIdentity(mtx.ref, s));
  return mtx;
}