Skip to content

Commit b407cf8

Browse files
author
AleksandrPanov
committed
move testCharucoCornersCollinear to CharucoBoard
1 parent 158b4f3 commit b407cf8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/aruco/include/opencv2/aruco.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ CV_EXPORTS_W bool estimatePoseCharucoBoard(InputArray charucoCorners, InputArray
5757
InputArray distCoeffs, InputOutputArray rvec,
5858
InputOutputArray tvec, bool useExtrinsicGuess = false);
5959

60+
/**
61+
@deprecated Use CharucoBoard::testCharucoCornersCollinear
62+
*/
63+
CV_EXPORTS_W bool testCharucoCornersCollinear(const Ptr<CharucoBoard> &board, InputArray charucoIds);
64+
65+
6066
}
6167
}
6268

modules/aruco/src/aruco.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@ bool estimatePoseCharucoBoard(InputArray charucoCorners, InputArray charucoIds,
5050
return board->estimateCharucoPose(charucoCorners, charucoIds, cameraMatrix, distCoeffs, rvec, tvec, useExtrinsicGuess);
5151
}
5252

53+
bool testCharucoCornersCollinear(const Ptr<CharucoBoard> &board, InputArray charucoIds) {
54+
return board->testCharucoCornersCollinear(charucoIds);
55+
}
56+
5357
}
5458
}

0 commit comments

Comments
 (0)