bitwiseNOT function
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.cv_bitwise_not(src.ref, dst!.ref, ffi.nullptr))
: cvRun(() => ccore.cv_bitwise_not_1(src.ref, dst!.ref, mask.ref, ffi.nullptr));
return dst;
}