getOptimalDFTSizeAsync function
GetOptimalDFTSize returns the optimal Discrete Fourier Transform (DFT) size for a given vector size.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299
Implementation
Future<int> getOptimalDFTSizeAsync(int vecsize) async {
final p = calloc<ffi.Int>();
return cvRunAsync0(
(callback) => ccore.cv_getOptimalDFTSize(vecsize, p, callback),
(c) {
final rval = p.value;
calloc.free(p);
return c.complete(rval);
},
);
}