compareAsync method

  1. @override
Future<double> compareAsync(
  1. InputArray hashOne,
  2. InputArray hashTwo
)
override

Implementation

@override
Future<double> compareAsync(InputArray hashOne, InputArray hashTwo) async {
  final p = calloc<ffi.Double>();
  return cvRunAsync0(
    (callback) => ccontrib.cv_img_hash_radialVarianceHash_compare(
      hashOne.ref,
      hashTwo.ref,
      sigma,
      numOfAngleLine,
      p,
      callback,
    ),
    (c) {
      final rval = p.value;
      calloc.free(p);
      return c.complete(rval);
    },
  );
}