VecPoint.fromMat constructor

VecPoint.fromMat(
  1. Mat mat
)

Implementation

factory VecPoint.fromMat(Mat mat) {
  final p = calloc<cvg.VecPoint>();
  cvRun(() => ccore.cv_Mat_toVecPoint(mat.ref, p, ffi.nullptr));
  return VecPoint.fromPointer(p);
}