goodFeaturesToTrackAsync function
Future<VecPoint2f>
goodFeaturesToTrackAsync(
- InputArray image,
- int maxCorners,
- double qualityLevel,
- double minDistance, {
- 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, {
InputArray? mask,
int blockSize = 3,
int? gradientSize,
bool useHarrisDetector = false,
double k = 0.04,
}) async =>
gradientSize == null
? cvRunAsync(
(callback) => cffi.GoodFeaturesToTrack_Async(
image.ref,
maxCorners,
qualityLevel,
minDistance,
mask?.ref ?? Mat.empty().ref,
blockSize,
useHarrisDetector,
k,
callback,
),
vecPoint2fCompleter,
)
: cvRunAsync(
(callback) => cffi.GoodFeaturesToTrackWithGradient_Async(
image.ref,
maxCorners,
qualityLevel,
minDistance,
mask?.ref ?? Mat.empty().ref,
blockSize,
gradientSize,
useHarrisDetector,
k,
callback,
),
vecPoint2fCompleter,
);