max function

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

Max calculates per-element maximum 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#gacc40fa15eac0fb83f8ca70b7cc0b588d

Implementation

Mat max(InputArray src1, InputArray src2, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => ccore.Mat_Max(src1.ref, src2.ref, dst!.ref));
  return dst;
}