bitwiseAND function
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(() => ccore.cv_bitwise_and(src1.ref, src2.ref, dst!.ref, ffi.nullptr))
: cvRun(() => ccore.cv_bitwise_and_1(src1.ref, src2.ref, dst!.ref, mask.ref, ffi.nullptr));
return dst;
}