goodFeaturesToTrackAsync function
Future<VecPoint2f>
goodFeaturesToTrackAsync(
- InputArray image,
- int maxCorners,
- double qualityLevel,
- double minDistance, {
- VecPoint2f? corners,
- InputArray? mask,
- int blockSize = 3,
- int? gradientSize,
- bool useHarrisDetector = false,
- double k = 0.04,
GoodFeaturesToTrack determines strong corners on an image. The function finds the most prominent corners in the image or in the specified image region.
For further details, please see: https:///docs.opencv.org/master/dd/d1a/group__imgproc__feature.html#ga1d6bb77486c8f92d79c8793ad995d541
Implementation
Future<VecPoint2f> goodFeaturesToTrackAsync(
InputArray image,
int maxCorners,
double qualityLevel,
double minDistance, {
VecPoint2f? corners,
InputArray? mask,
int blockSize = 3,
int? gradientSize,
bool useHarrisDetector = false,
double k = 0.04,
}) {
final pCorners = corners?.ptr ?? calloc<cvg.VecPoint2f>();
mask ??= Mat.empty();
if (gradientSize == null) {
return cvRunAsync0(
(callback) => cimgproc.cv_goodFeaturesToTrack(
image.ref,
pCorners,
maxCorners,
qualityLevel,
minDistance,
mask!.ref,
blockSize,
useHarrisDetector,
k,
callback,
),
(c) {
return c.complete(corners ?? VecPoint2f.fromPointer(pCorners));
},
);
}
return cvRunAsync0(
(callback) => cimgproc.cv_goodFeaturesToTrack_1(
image.ref,
pCorners,
maxCorners,
qualityLevel,
minDistance,
mask!.ref,
blockSize,
gradientSize,
useHarrisDetector,
k,
callback,
),
(c) {
return c.complete(corners ?? VecPoint2f.fromPointer(pCorners));
},
);
}