getRectSubPixAsync function
Future<Mat>
getRectSubPixAsync(
- InputArray image,
- (int, int) patchSize,
- Point2f center, {
- OutputArray? patch,
- int patchType = -1,
GetRectSubPix retrieves a pixel rectangle from an image with sub-pixel accuracy.
For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#ga77576d06075c1a4b6ba1a608850cd614
Implementation
Future<Mat> getRectSubPixAsync(
InputArray image,
(int, int) patchSize,
Point2f center, {
OutputArray? patch,
int patchType = -1,
}) {
patch ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_getRectSubPix(image.ref, patchSize.cvd.ref, center.ref, patch!.ref, callback),
(c) {
return c.complete(patch);
},
);
}