compute method

Scalar compute(
  1. Mat cmpImgs
)

Computes MSE for reference images supplied in class constructor and provided comparison images.

https://docs.opencv.org/4.x/d7/d80/classcv_1_1quality_1_1QualityMSE.html#a82ba740a06f48562a08517079712218c

Implementation

Scalar compute(Mat cmpImgs) {
  final p = calloc<cvg.Scalar>();
  cvRun(() => ccontrib.cv_quality_QualityMSE_compute(ref, cmpImgs.ref, p, ffi.nullptr));
  return Scalar.fromPointer(p);
}