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
12e6efc6
Commit
12e6efc6
authored
Jun 17, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4123 from rajithr:patch-1
parents
01c3ed61
510dec49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
upnp.cpp
modules/calib3d/src/upnp.cpp
+11
-1
No files found.
modules/calib3d/src/upnp.cpp
View file @
12e6efc6
...
...
@@ -114,6 +114,7 @@ double upnp::compute_pose(Mat& R, Mat& t)
SVD
::
compute
(
MtM
,
D
,
Ut
,
Vt
,
SVD
::
MODIFY_A
|
SVD
::
FULL_UV
);
Mat
(
Ut
.
t
()).
copyTo
(
Ut
);
M
->
release
();
delete
M
;
double
l_6x12
[
6
*
12
],
rho
[
6
];
Mat
L_6x12
=
Mat
(
6
,
12
,
CV_64F
,
l_6x12
);
...
...
@@ -589,7 +590,16 @@ void upnp::gauss_newton(const Mat * L_6x12, const Mat * Rho, double betas[4], do
}
if
(
f
[
0
]
<
0
)
f
[
0
]
=
-
f
[
0
];
fu
=
fv
=
f
[
0
];
fu
=
fv
=
f
[
0
];
A
->
release
();
delete
A
;
B
->
release
();
delete
B
;
X
->
release
();
delete
X
;
}
...
...
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