compute method

  1. @override
Mat compute(
  1. InputArray inputArr, [
  2. OutputArray? outputArr
])
override

Compute computes hash of the input image using RadialVarianceHash. For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3

Implementation

//
/// For further information, see:
/// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
@override
Mat compute(InputArray inputArr, [OutputArray? outputArr]) {
  outputArr ??= Mat.empty();
  cvRun(
    () => ccontrib.cv_img_hash_radialVarianceHash_compute(
      inputArr.ref,
      outputArr!.ref,
      sigma,
      numOfAngleLine,
      ffi.nullptr,
    ),
  );
  return outputArr;
}