compare method

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

Compare compares the hash value between a and b using RadialVarianceHash. 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.radialVarianceHashCompare(
        hashOne.ref,
        hashTwo.ref,
        sigma,
        numOfAngleLine,
        p,
      ),
    );
    return p.value;
  });
}