Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
ca7953ad
Commit
ca7953ad
authored
Jan 25, 2017
by
Alexander Alekhin
Committed by
GitHub
Jan 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #969 from paroj:boardguess
aruco: let solvePnP allocate rvec and tvec
parents
933f53e4
619e197c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
aruco.cpp
modules/aruco/src/aruco.cpp
+0
-7
charuco.cpp
modules/aruco/src/charuco.cpp
+0
-7
No files found.
modules/aruco/src/aruco.cpp
View file @
ca7953ad
...
...
@@ -1250,13 +1250,6 @@ int estimatePoseBoard(InputArrayOfArrays _corners, InputArray _ids, const Ptr<Bo
if
(
objPoints
.
total
()
==
0
)
// 0 of the detected markers in board
return
0
;
if
(
_rvec
.
empty
()
||
_tvec
.
empty
())
{
_rvec
.
create
(
3
,
1
,
CV_64FC1
);
_tvec
.
create
(
3
,
1
,
CV_64FC1
);
useExtrinsicGuess
=
false
;
}
solvePnP
(
objPoints
,
imgPoints
,
_cameraMatrix
,
_distCoeffs
,
_rvec
,
_tvec
,
useExtrinsicGuess
);
// divide by four since all the four corners are concatenated in the array for each marker
...
...
modules/aruco/src/charuco.cpp
View file @
ca7953ad
...
...
@@ -674,13 +674,6 @@ bool estimatePoseCharucoBoard(InputArray _charucoCorners, InputArray _charucoIds
// points need to be in different lines, check if detected points are enough
if
(
!
_arePointsEnoughForPoseEstimation
(
objPoints
))
return
false
;
if
(
_rvec
.
empty
()
||
_tvec
.
empty
())
{
_rvec
.
create
(
3
,
1
,
CV_64FC1
);
_tvec
.
create
(
3
,
1
,
CV_64FC1
);
useExtrinsicGuess
=
false
;
}
solvePnP
(
objPoints
,
_charucoCorners
,
_cameraMatrix
,
_distCoeffs
,
_rvec
,
_tvec
,
useExtrinsicGuess
);
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment