Skip to content

Commit 81753ec

Browse files
author
AleksandrPanov
committed
fixes naming
1 parent 4e8bb4f commit 81753ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/aruco/test/test_aruco_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static inline void projectMarker(Mat& img, Ptr<aruco::Board> board, int markerIn
7272
vector<Point2f> corners;
7373

7474
// get max coordinate of board
75-
Point3f maxCoord = board->getRightBottomBorder();
75+
Point3f maxCoord = board->getRightBottomCorner();
7676
// copy objPoints
7777
vector<Point3f> objPoints = board->getObjPoints()[markerIndex];
7878
// move the marker to the origin

modules/aruco/test/test_boarddetection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void CV_ArucoBoardPose::run(int) {
111111
estimatePoseBoard(corners, ids, board, cameraMatrix, distCoeffs, rvec, tvec);
112112

113113
// check axes
114-
vector<Point2f> axes = getAxis(cameraMatrix, distCoeffs, rvec, tvec, gridboard->getRightBottomBorder().x);
114+
vector<Point2f> axes = getAxis(cameraMatrix, distCoeffs, rvec, tvec, gridboard->getRightBottomCorner().x);
115115
vector<Point2f> topLeft = getMarkerById(gridboard->getIds()[0], corners, ids);
116116
ASSERT_NEAR(topLeft[0].x, axes[0].x, 2.f);
117117
ASSERT_NEAR(topLeft[0].y, axes[0].y, 2.f);

modules/aruco/test/test_charucodetection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void CV_CharucoDetection::run(int) {
189189
vector<Point3f> copyChessboardCorners = board->getChessboardCorners();
190190
// move copyChessboardCorners points
191191
for (size_t i = 0; i < copyChessboardCorners.size(); i++)
192-
copyChessboardCorners[i] -= board->getRightBottomBorder() / 2.f;
192+
copyChessboardCorners[i] -= board->getRightBottomCorner() / 2.f;
193193
projectPoints(copyChessboardCorners, rvec, tvec, cameraMatrix, distCoeffs,
194194
projectedCharucoCorners);
195195

@@ -419,7 +419,7 @@ void CV_CharucoDiamondDetection::run(int) {
419419
vector<Point3f> copyChessboardCorners = board->getChessboardCorners();
420420
// move copyChessboardCorners points
421421
for (size_t i = 0; i < copyChessboardCorners.size(); i++)
422-
copyChessboardCorners[i] -= board->getRightBottomBorder() / 2.f;
422+
copyChessboardCorners[i] -= board->getRightBottomCorner() / 2.f;
423423

424424
projectPoints(copyChessboardCorners, rvec, tvec, cameraMatrix, distCoeffs,
425425
projectedDiamondCorners);

0 commit comments

Comments
 (0)