bitwiseOR function

Mat bitwiseOR(
  1. InputArray src1,
  2. InputArray src2, {
  3. OutputArray? dst,
  4. InputArray? mask,
})

BitwiseOr calculates the per-element bit-wise disjunction 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#gab85523db362a4e26ff0c703793a719b4

Implementation

Mat bitwiseOR(
  InputArray src1,
  InputArray src2, {
  OutputArray? dst,
  InputArray? mask,
}) {
  dst ??= Mat.empty();
  mask == null
      ? cvRun(() => ccore.Mat_BitwiseOr(src1.ref, src2.ref, dst!.ref))
      : cvRun(() => ccore.Mat_BitwiseOrWithMask(src1.ref, src2.ref, dst!.ref, mask.ref));
  return dst;
}