fromVecAsync static method
Implementation
static Future<Mat> fromVecAsync(Vec vec) async {
if (vec is VecPoint) {
return cvRunAsync((callback) => cffi.Mat_NewFromVecPoint_Async(vec.ref, callback), matCompleter);
} else if (vec is VecPoint2f) {
return cvRunAsync((callback) => cffi.Mat_NewFromVecPoint2f_Async(vec.ref, callback), matCompleter);
} else if (vec is VecPoint3f) {
return cvRunAsync((callback) => cffi.Mat_NewFromVecPoint3f_Async(vec.ref, callback), matCompleter);
} else {
throw UnsupportedError("Unsupported Vec type ${vec.runtimeType}");
}
}