Skip to content

Commit 86fc959

Browse files
author
AleksandrPanov
committed
renaming draw
1 parent 774a91a commit 86fc959

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

modules/aruco/include/opencv2/aruco.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ CV_EXPORTS_W void estimatePoseSingleMarkers(InputArrayOfArrays corners, float ma
140140
const Ptr<EstimateParameters>& estimateParameters = makePtr<EstimateParameters>());
141141

142142

143-
/** @deprecated Use CharucoBoard::testCharucoCornersCollinear
143+
/** @deprecated Use CharucoBoard::checkCharucoCornersCollinear
144144
*/
145145
CV_EXPORTS_W bool testCharucoCornersCollinear(const Ptr<CharucoBoard> &board, InputArray charucoIds);
146146

modules/aruco/misc/python/test/test_aruco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_aruco_detect_markers(self):
1717
id = 2
1818
marker_size = 100
1919
offset = 10
20-
img_marker = cv.aruco.drawMarker(aruco_dict, id, marker_size, aruco_params.markerBorderBits)
20+
img_marker = cv.aruco.generateImageMarker(aruco_dict, id, marker_size, aruco_params.markerBorderBits)
2121
img_marker = np.pad(img_marker, pad_width=offset, mode='constant', constant_values=255)
2222
gold_corners = np.array([[offset, offset],[marker_size+offset-1.0,offset],
2323
[marker_size+offset-1.0,marker_size+offset-1.0],

modules/aruco/perf/perf_aruco.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class MarkerPainter
9090

9191
// canonical image
9292
const int markerSizePixels = static_cast<int>(imgMarkerSize/sqrt(2.f));
93-
aruco::drawMarker(dictionary, id, markerSizePixels, img, parameters.markerBorderBits);
93+
aruco::generateImageMarker(dictionary, id, markerSizePixels, img, parameters.markerBorderBits);
9494

9595
// get rvec and tvec for the perspective
9696
const double distance = 0.1;

modules/aruco/samples/create_board.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ int main(int argc, char *argv[]) {
120120

121121
// show created board
122122
Mat boardImage;
123-
board->draw(imageSize, boardImage, margins, borderBits);
123+
board->generateImage(imageSize, boardImage, margins, borderBits);
124124

125125
if(showImage) {
126126
imshow("board", boardImage);

modules/aruco/samples/create_board_charuco.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ int main(int argc, char *argv[]) {
120120

121121
// show created board
122122
Mat boardImage;
123-
board->draw(imageSize, boardImage, margins, borderBits);
123+
board->generateImage(imageSize, boardImage, margins, borderBits);
124124

125125
if(showImage) {
126126
imshow("board", boardImage);

modules/aruco/samples/create_marker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int main(int argc, char *argv[]) {
103103
}
104104

105105
Mat markerImg;
106-
aruco::drawMarker(dictionary, markerId, markerSize, markerImg, borderBits);
106+
aruco::generateImageMarker(dictionary, markerId, markerSize, markerImg, borderBits);
107107

108108
if(showImage) {
109109
imshow("marker", markerImg);

modules/aruco/samples/tutorial_charuco_create_detect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static inline void createBoard()
1717
//! [createBoard]
1818
cv::Ptr<cv::aruco::CharucoBoard> board = cv::aruco::CharucoBoard::create(5, 7, 0.04f, 0.02f, dictionary);
1919
cv::Mat boardImage;
20-
board->draw(cv::Size(600, 500), boardImage, 10, 1);
20+
board->generateImage(cv::Size(600, 500), boardImage, 10, 1);
2121
//! [createBoard]
2222
cv::imwrite("BoardImage.jpg", boardImage);
2323
}

modules/aruco/src/aruco.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void refineDetectedMarkers(InputArray _image, const Ptr<Board> &_board,
3131
}
3232

3333
void drawPlanarBoard(const Ptr<Board> &board, Size outSize, const _OutputArray &img, int marginSize, int borderBits) {
34-
board->draw(outSize, img, marginSize, borderBits);
34+
board->generateImage(outSize, img, marginSize, borderBits);
3535
}
3636

3737
void getBoardObjectAndImagePoints(const Ptr<Board> &board, InputArrayOfArrays detectedCorners, InputArray detectedIds,
@@ -120,7 +120,7 @@ bool estimatePoseCharucoBoard(InputArray charucoCorners, InputArray charucoIds,
120120
}
121121

122122
bool testCharucoCornersCollinear(const Ptr<CharucoBoard> &board, InputArray charucoIds) {
123-
return board->testCharucoCornersCollinear(charucoIds);
123+
return board->checkCharucoCornersCollinear(charucoIds);
124124
}
125125

126126
/**

modules/aruco/src/charuco.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ void drawCharucoDiamond(const Ptr<Dictionary> &dictionary, Vec4i ids, int square
497497
// create a charuco board similar to a charuco marker and print it
498498
Ptr<CharucoBoard> board = CharucoBoard::create(3, 3, (float)squareLength, (float)markerLength, *dictionary, tmpIds);
499499
Size outSize(3 * squareLength + 2 * marginSize, 3 * squareLength + 2 * marginSize);
500-
board->draw(outSize, _img, marginSize, borderBits);
500+
board->generateImage(outSize, _img, marginSize, borderBits);
501501
}
502502

503503

modules/aruco/test/test_aruco_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static inline void projectMarker(Mat& img, Ptr<aruco::Board> board, int markerIn
6565
// canonical image
6666
Mat markerImg;
6767
const int markerSizePixels = 100;
68-
aruco::drawMarker(board->getDictionary(), board->getIds()[markerIndex], markerSizePixels, markerImg, markerBorder);
68+
aruco::generateImageMarker(board->getDictionary(), board->getIds()[markerIndex], markerSizePixels, markerImg, markerBorder);
6969

7070
// projected corners
7171
Mat distCoeffs(5, 1, CV_64FC1, Scalar::all(0));

0 commit comments

Comments
 (0)