findChessboardCornersSB function

(bool, VecPoint2f) findChessboardCornersSB(
  1. InputArray image,
  2. (int, int) patternSize, {
  3. int flags = 0,
  4. VecPoint2f? corners,
})

Implementation

(bool, VecPoint2f corners) findChessboardCornersSB(
  InputArray image,
  (int, int) patternSize, {
  int flags = 0,
  VecPoint2f? corners,
}) {
  final pCorners = calloc<cvg.VecPoint2f>();
  final p = calloc<ffi.Bool>();
  cvRun(
    () => ccalib3d.cv_findChessboardCornersSB(
      image.ref,
      patternSize.toSize().ref,
      pCorners,
      flags,
      p,
      ffi.nullptr,
    ),
  );
  final rval = p.value;
  calloc.free(p);
  return (rval, VecPoint2f.fromPointer(pCorners));
}