cornerSubPix function

VecPoint2f cornerSubPix(
  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

VecPoint2f cornerSubPix(
  InputArray image,
  VecPoint2f corners,
  (int, int) winSize,
  (int, int) zeroZone, [
  (int, int, double) criteria = (TERM_COUNT + TERM_EPS, 30, 1e-4),
]) {
  final size = winSize.cvd;
  final zone = zeroZone.cvd;
  final c = criteria.toTermCriteria();
  cvRun(() => cimgproc.CornerSubPix(image.ref, corners.ref, size.ref, zone.ref, c.ref));
  return corners;
}