GMat.fromMat constructor

GMat.fromMat(
  1. Mat mat
)

Implementation

factory GMat.fromMat(Mat mat) {
  final p = calloc<cvg.GMat>();
  cvRun(() => cgapi.gapi_GMat_New_FromMat(mat.ref, p));
  return GMat.fromPointer(p);
}