cornerSubPixAsync function

Future<VecPoint2f> cornerSubPixAsync(
  1. InputArray image,
  2. VecPoint2f corners,
  3. (int, int) winSize,
  4. (int, int) zeroZone, [
  5. (int, int, double) criteria = (TERM_COUNT + TERM_EPS, 30, 1e-4),
])

CornerSubPix Refines the corner locations. The function iterates to find the sub-pixel accurate location of corners or radial saddle points.

For further details, please see: https:///docs.opencv.org/master/dd/d1a/group__imgproc__feature.html#ga354e0d7c86d0d9da75de9b9701a9a87e

Implementation

Future<VecPoint2f> cornerSubPixAsync(
  InputArray image,
  VecPoint2f corners,
  (int, int) winSize,
  (int, int) zeroZone, [
  (int, int, double) criteria = (TERM_COUNT + TERM_EPS, 30, 1e-4),
]) async =>
    cvRunAsync0(
      (callback) => cimgproc.CornerSubPix_Async(
        image.ref,
        corners.ref,
        winSize.cvd.ref,
        zeroZone.cvd.ref,
        criteria.cvd.ref,
        callback,
      ),
      (completer) => completer.complete(corners),
    );