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
59806133
Commit
59806133
authored
Jul 25, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
5f54a22d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dls.cpp
modules/calib3d/src/dls.cpp
+4
-4
No files found.
modules/calib3d/src/dls.cpp
View file @
59806133
...
...
@@ -245,13 +245,13 @@ void dls::run_kernel(const cv::Mat& pp)
// check that the points are infront of the center of perspectivity
for
(
int
k
=
0
;
k
<
sols
.
cols
;
++
k
)
{
cv
::
Mat
cam_points
=
C_est
[
k
]
*
pp
+
cv
::
repeat
(
t_est
[
k
],
1
,
pp
.
cols
);
// OK
cv
::
Mat
cam_points
=
C_est
[
k
]
*
pp
+
cv
::
repeat
(
t_est
[
k
],
1
,
pp
.
cols
);
cv
::
Mat
cam_points_k
=
cam_points
.
row
(
2
);
if
(
is_empty
(
&
cam_points_k
))
// OK
if
(
is_empty
(
&
cam_points_k
))
{
cv
::
Mat
C_valid
=
C_est
[
k
],
t_valid
=
t_est
[
k
];
// OK
double
cost_valid
=
cost
[
k
];
// OK
cv
::
Mat
C_valid
=
C_est
[
k
],
t_valid
=
t_est
[
k
];
double
cost_valid
=
cost
[
k
];
C_est_
.
push_back
(
C_valid
);
t_est_
.
push_back
(
t_valid
);
...
...
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