inRange function

Mat inRange(
  1. InputArray src,
  2. InputArray lowerb,
  3. InputArray upperb, {
  4. OutputArray? dst,
})

InRange checks if array elements lie between the elements of two Mat arrays.

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

Implementation

Mat inRange(
  InputArray src,
  InputArray lowerb,
  InputArray upperb, {
  OutputArray? dst,
}) {
  dst ??= Mat.empty();
  cvRun(() => ccore.cv_inRange(src.ref, lowerb.ref, upperb.ref, dst!.ref, ffi.nullptr));
  return dst;
}