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
2311504c
Commit
2311504c
authored
Feb 25, 2015
by
Dmitry-Me
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce variables scope
parent
bdb088dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dls.h
modules/calib3d/src/dls.h
+3
-3
No files found.
modules/calib3d/src/dls.h
View file @
2311504c
...
...
@@ -504,7 +504,7 @@ private:
H
[
n1
][
n1
-
1
]
=
0
.
0
;
H
[
n1
][
n1
]
=
1
.
0
;
for
(
int
i
=
n1
-
2
;
i
>=
0
;
i
--
)
{
double
ra
,
sa
,
vr
,
vi
;
double
ra
,
sa
;
ra
=
0
.
0
;
sa
=
0
.
0
;
for
(
int
j
=
l
;
j
<=
n1
;
j
++
)
{
...
...
@@ -529,8 +529,8 @@ private:
x
=
H
[
i
][
i
+
1
];
y
=
H
[
i
+
1
][
i
];
vr
=
(
d
[
i
]
-
p
)
*
(
d
[
i
]
-
p
)
+
e
[
i
]
*
e
[
i
]
-
q
*
q
;
vi
=
(
d
[
i
]
-
p
)
*
2
.
0
*
q
;
double
vr
=
(
d
[
i
]
-
p
)
*
(
d
[
i
]
-
p
)
+
e
[
i
]
*
e
[
i
]
-
q
*
q
;
double
vi
=
(
d
[
i
]
-
p
)
*
2
.
0
*
q
;
if
(
vr
==
0
.
0
&&
vi
==
0
.
0
)
{
vr
=
eps
*
norm
*
(
std
::
abs
(
w
)
+
std
::
abs
(
q
)
+
std
::
abs
(
x
)
+
std
::
abs
(
y
)
+
std
::
abs
(
z
));
...
...
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