bitwiseNOT function

Mat bitwiseNOT(
  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

Mat bitwiseNOT(InputArray src, {OutputArray? dst, InputArray? mask}) {
  dst ??= Mat.empty();
  mask == null
      ? cvRun(() => ccore.Mat_BitwiseNot(src.ref, dst!.ref))
      : cvRun(() => ccore.Mat_BitwiseNotWithMask(src.ref, dst!.ref, mask.ref));
  return dst;
}