findChessboardCornersSB function

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

Finds the positions of internal corners of the chessboard using a sector based approach.

https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html#gadc5bcb05cb21cf1e50963df26986d7c9

Implementation

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