VecPoint.fromMat constructor

VecPoint.fromMat(
  1. Mat mat
)

Implementation

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