Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
f34a0a87
Commit
f34a0a87
authored
Jan 09, 2018
by
tobycollins
Committed by
Alexander Alekhin
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #10522 from tobycollins:issue10519
parent
c71dc78c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
calibration.cpp
modules/calib3d/src/calibration.cpp
+3
-1
No files found.
modules/calib3d/src/calibration.cpp
View file @
f34a0a87
...
...
@@ -1009,6 +1009,8 @@ CV_IMPL void cvFindExtrinsicCameraParams2( const CvMat* objectPoints,
CV_Assert
(
(
CV_MAT_DEPTH
(
tvec
->
type
)
==
CV_64F
||
CV_MAT_DEPTH
(
tvec
->
type
)
==
CV_32F
)
&&
(
tvec
->
rows
==
1
||
tvec
->
cols
==
1
)
&&
tvec
->
rows
*
tvec
->
cols
*
CV_MAT_CN
(
tvec
->
type
)
==
3
);
CV_Assert
((
count
>=
4
)
||
(
count
==
3
&&
useExtrinsicGuess
));
// it is unsafe to call LM optimisation without an extrinsic guess in the case of 3 points. This is because there is no guarantee that it will converge on the correct solution.
_mn
.
reset
(
cvCreateMat
(
1
,
count
,
CV_64FC2
));
_Mxy
.
reset
(
cvCreateMat
(
1
,
count
,
CV_64FC2
));
...
...
@@ -1033,7 +1035,7 @@ CV_IMPL void cvFindExtrinsicCameraParams2( const CvMat* objectPoints,
cvSVD
(
&
_MM
,
&
matW
,
0
,
&
matV
,
CV_SVD_MODIFY_A
+
CV_SVD_V_T
);
// initialize extrinsic parameters
if
(
W
[
2
]
/
W
[
1
]
<
1e-3
||
count
<
4
)
if
(
W
[
2
]
/
W
[
1
]
<
1e-3
)
{
// a planar structure case (all M's lie in the same plane)
double
tt
[
3
],
h
[
9
],
h1_norm
,
h2_norm
;
...
...
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