compare function
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(() => ccore.cv_compare(src1.ref, src2.ref, dst!.ref, cmpop, ffi.nullptr));
return dst;
}