CharucoBoard.create constructor

CharucoBoard.create(
  1. (int, int) size,
  2. double squareLength,
  3. double markerLength,
  4. ArucoDictionary dictionary, {
  5. VecI32? ids,
})

Implementation

factory CharucoBoard.create(
  (int, int) size,
  double squareLength,
  double markerLength,
  ArucoDictionary dictionary, {
  VecI32? ids,
}) {
  final p = calloc<cvg.CharucoBoard>();
  final sz = size.cvd;
  cvRun(
    () => ids == null
        ? ccontrib.cv_aruco_charucoBoard_create_1(sz.ref, squareLength, markerLength, dictionary.ref, p)
        : ccontrib.cv_aruco_charucoBoard_create_2(
            sz.ref,
            squareLength,
            markerLength,
            dictionary.ref,
            ids.ref,
            p,
          ),
  );
  sz.dispose();
  return CharucoBoard._(p);
}