getMean method

List<double> getMean()

Implementation

List<double> getMean() {
  return using<List<double>>((arena) {
    final ret = arena<ffi.Pointer<ffi.Double>>();
    final length = arena<ffi.Int>();
    cvRun(() => ccontrib.BlockMeanHash_GetMean(ref, ret, length));
    if (length.value == 0) return List<double>.empty();
    return List.generate(length.value, (i) => ret.value[i]);
  });
}