checkRange function
(bool, Point)
checkRange(
- InputArray a, {
- bool quiet = true,
- double minVal = -CV_F64_MAX,
- double maxVal = CV_F64_MAX,
CheckRange checks every element of an input array for invalid values.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga2bd19d89cae59361416736f87e3c7a64
Implementation
(bool, Point) checkRange(
InputArray a, {
bool quiet = true,
double minVal = -CV_F64_MAX,
double maxVal = CV_F64_MAX,
}) {
final pos = calloc<cvg.CvPoint>();
final pRval = calloc<ffi.Bool>();
cvRun(() => ccore.cv_checkRange(a.ref, quiet, pos, minVal, maxVal, pRval, ffi.nullptr));
final rval = pRval.value;
calloc.free(pRval);
return (rval, Point.fromPointer(pos));
}