Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
navipy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier Bertrand
navipy
Commits
182b80f0
Commit
182b80f0
authored
6 years ago
by
Olivier Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Correct rmse in dlt_reconstruct
parent
2c928f41
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
navipy/arenatools/cam_dlt.py
+2
-2
2 additions, 2 deletions
navipy/arenatools/cam_dlt.py
with
2 additions
and
2 deletions
navipy/arenatools/cam_dlt.py
+
2
−
2
View file @
182b80f0
...
@@ -54,7 +54,7 @@ units are [u,v] i.e. camera coordinates or pixels
...
@@ -54,7 +54,7 @@ units are [u,v] i.e. camera coordinates or pixels
# compute ideal [u,v] for each camera
# compute ideal [u,v] for each camera
uv
=
m1
.
dot
(
xyz
.
loc
[
frame_i
,
[
'
x
'
,
'
y
'
,
'
z
'
]].
transpose
())
uv
=
m1
.
dot
(
xyz
.
loc
[
frame_i
,
[
'
x
'
,
'
y
'
,
'
z
'
]].
transpose
())
uv
=
uv
[:,
np
.
newaxis
]
# because m2 has size n,1
# compute the number of degrees of freedom in the reconstruction
# compute the number of degrees of freedom in the reconstruction
dof
=
m2
.
size
-
3
dof
=
m2
.
size
-
3
...
@@ -92,7 +92,7 @@ units are [u,v] i.e. camera coordinates or pixels
...
@@ -92,7 +92,7 @@ units are [u,v] i.e. camera coordinates or pixels
# compute ideal [u,v] for each camera
# compute ideal [u,v] for each camera
uv
=
m1
.
dot
(
xyz
.
loc
[
frame_i
,
[
'
x
'
,
'
y
'
]].
transpose
())
uv
=
m1
.
dot
(
xyz
.
loc
[
frame_i
,
[
'
x
'
,
'
y
'
]].
transpose
())
uv
=
uv
[:,
np
.
newaxis
]
# because m2 has size n,1
# compute the number of degrees of freedom in the reconstruction
# compute the number of degrees of freedom in the reconstruction
dof
=
m2
.
size
-
3
dof
=
m2
.
size
-
3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment