compare method
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) {
final p = calloc<ffi.Double>();
cvRun(
() => ccontrib.cv_img_hash_radialVarianceHash_compare(
hashOne.ref,
hashTwo.ref,
sigma,
numOfAngleLine,
p,
ffi.nullptr,
),
);
final rval = p.value;
calloc.free(p);
return rval;
}