VecPoint2f.fromMat constructor

VecPoint2f.fromMat(
  1. Mat mat
)

Implementation

factory VecPoint2f.fromMat(Mat mat) {
  final p = calloc<cvg.VecPoint2f>();
  cvRun(() => cffi.Mat_toVecPoint2f(mat.ref, p));
  return VecPoint2f.fromPointer(p);
}