bitwiseAND function

Mat bitwiseAND(
  1. InputArray src1,
  2. InputArray src2, {
  3. OutputArray? dst,
  4. InputArray? mask,
})

BitwiseAnd computes bitwise conjunction of the two arrays (dst = src1 & src2). Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.

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

Implementation

Mat bitwiseAND(
  InputArray src1,
  InputArray src2, {
  OutputArray? dst,
  InputArray? mask,
}) {
  dst ??= Mat.empty();
  mask == null
      ? cvRun(() => cffi.Mat_BitwiseAnd(src1.ref, src2.ref, dst!.ref))
      : cvRun(() => cffi.Mat_BitwiseAndWithMask(src1.ref, src2.ref, dst!.ref, mask.ref));
  return dst;
}