bitwiseANDAsync function

Future<Mat> bitwiseANDAsync(
  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

Future<Mat> bitwiseANDAsync(InputArray src1, InputArray src2, {OutputArray? dst, InputArray? mask}) async {
  dst ??= Mat.empty();
  return mask == null
      ? cvRunAsync0((callback) => ccore.cv_bitwise_and(src1.ref, src2.ref, dst!.ref, callback), (c) {
          return c.complete(dst);
        })
      : cvRunAsync0((callback) => ccore.cv_bitwise_and_1(src1.ref, src2.ref, dst!.ref, mask.ref, callback), (
          c,
        ) {
          return c.complete(dst);
        });
}