compare function

Mat compare(
  1. InputArray src1,
  2. InputArray src2,
  3. int cmpop, {
  4. OutputArray? dst,
})

Compare performs the per-element comparison of two arrays or an array and scalar value.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97

Implementation

Mat compare(InputArray src1, InputArray src2, int cmpop, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_Compare(src1.ref, src2.ref, dst!.ref, cmpop));
  return dst;
}