getOptimalDFTSize function

int getOptimalDFTSize(
  1. int vecsize
)

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) {
  return cvRunArena<int>((arena) {
    final p = arena<ffi.Int>();
    cvRun(() => ccore.Mat_GetOptimalDFTSize(vecsize, p));
    return p.value;
  });
}