checkRangeAsync function
Future<(bool, Point)>
checkRangeAsync(
- 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
Future<(bool, Point)> checkRangeAsync(
InputArray a, {
bool quiet = true,
double minVal = -CV_F64_MAX,
double maxVal = CV_F64_MAX,
}) async {
final pos = calloc<cvg.CvPoint>();
final pRval = calloc<ffi.Bool>();
return cvRunAsync0(
(callback) => ccore.cv_checkRange(a.ref, quiet, pos, minVal, maxVal, pRval, callback),
(c) {
final rval = pRval.value;
calloc.free(pRval);
return c.complete((rval, Point.fromPointer(pos)));
},
);
}