compare method

  1. @override
double compare(
  1. InputArray hashOne,
  2. InputArray hashTwo
)
override

Compare compares the hash value between a and b using ColorMomentHash. For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5

Implementation

//
/// For further information, see:
/// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
@override
double compare(InputArray hashOne, InputArray hashTwo) {
  return using<double>((arena) {
    final p = arena<ffi.Double>();
    cvRun(() => ccontrib.colorMomentHashCompare(hashOne.ref, hashTwo.ref, p));
    return p.value;
  });
}