bitwiseNOTAsync function

Future<Mat> bitwiseNOTAsync(
  1. InputArray src, {
  2. OutputArray? dst,
  3. InputArray? mask,
})

BitwiseNot inverts every bit of an array.

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

Implementation

Future<Mat> bitwiseNOTAsync(InputArray src, {OutputArray? dst, InputArray? mask}) async {
  dst ??= Mat.empty();
  return mask == null
      ? cvRunAsync0(
          (callback) => ccore.cv_bitwise_not(src.ref, dst!.ref, callback),
          (c) {
            return c.complete(dst);
          },
        )
      : cvRunAsync0(
          (callback) => ccore.cv_bitwise_not_1(src.ref, dst!.ref, mask.ref, callback),
          (c) {
            return c.complete(dst);
          },
        );
}