Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce709d5

Browse files
fix matchImagePoints, add py tests
1 parent18e7117 commitce709d5

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

‎modules/objdetect/include/opencv2/objdetect/aruco_board.hpp‎

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ class CV_EXPORTS_W_SIMPLE Board {
6262
*
6363
* @param detectedCorners List of detected marker corners of the board.
6464
* Board/GridBoard support std::vector<std::vector<Point2f>> or std::vector<Mat> for marker corners.
65-
* @param detectedIds List of identifiers for each marker.
66-
* Board/GridBoard support std::vector<int> or Mat.
65+
* CharucoBoard support std::vector<Point2f> or Mat for charuco corners.
66+
* @param detectedIds List of identifiers for each marker or charuco corner.
67+
* Board/GridBoard/CharucoBoard support std::vector<int> or Mat.
6768
* @param objPoints Vector of vectors of board marker points in the board coordinate space.
6869
* @param imgPoints Vector of vectors of the projections of board marker corner points.
6970
*/
@@ -142,19 +143,6 @@ class CV_EXPORTS_W_SIMPLE CharucoBoard : public Board {
142143
CV_WRAPfloatgetSquareLength()const;
143144
CV_WRAPfloatgetMarkerLength()const;
144145

145-
/** @brief Given a board configuration and a set of detected markers, returns the corresponding
146-
* image points and object points to call solvePnP()
147-
*
148-
* @param detectedCharuco List of detected charuco corners of the board.
149-
* CharucoBoard support std::vector<Point2f> or Mat for charuco corners.
150-
* @param detectedIds List of charuco identifiers for each corner.
151-
* CharucoBoard support std::vector<int> or Mat.
152-
* @param objPoints Vector of vectors of board marker points in the board coordinate space.
153-
* @param imgPoints Vector of vectors of the projections of board marker corner points.
154-
*/
155-
CV_WRAPvoidmatchImagePoints(InputArrayOfArrays detectedCharuco, InputArray detectedIds,
156-
OutputArray objPoints, OutputArray imgPoints)const;
157-
158146
/** @brief get CharucoBoard::chessboardCorners
159147
*/
160148
CV_WRAP std::vector<Point3f>getChessboardCorners()const;

‎modules/objdetect/src/aruco/aruco_board.cpp‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,6 @@ void CharucoBoardImpl::matchImagePoints(InputArrayOfArrays detectedCharuco, Inpu
392392
Mat(imgPnts).copyTo(imgPoints);
393393
}
394394

395-
voidCharucoBoard::matchImagePoints(InputArray detectedCharuco, InputArray detectedIds, OutputArray objPoints,
396-
OutputArray imgPoints)const {
397-
CV_Assert(this->impl);
398-
impl->matchImagePoints(detectedCharuco, detectedIds, objPoints, imgPoints);
399-
}
400-
401395
voidCharucoBoardImpl::generateImage(Size outSize, OutputArray img,int marginSize,int borderBits)const {
402396
CV_Assert(!outSize.empty());
403397
CV_Assert(marginSize >=0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp