getOptimalDFTSize 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
int getOptimalDFTSize(int vecsize) {
final p = calloc<ffi.Int>();
cvRun(() => ccore.cv_getOptimalDFTSize(vecsize, p, ffi.nullptr));
final rval = p.value;
calloc.free(p);
return rval;
}