Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.ip.stereo
Commits
04445059
Commit
04445059
authored
Jul 23, 2021
by
Vincent POLLET
Browse files
Bugfix: write relative translation and rotation of reference camera too
parent
e713b4a2
Pipeline
#52625
passed with stages
in 16 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/ip/stereo/calibration.py
View file @
04445059
...
@@ -849,6 +849,10 @@ def main():
...
@@ -849,6 +849,10 @@ def main():
print
(
"Rotation
\n
{}
\n
Translation
\n
{}
\n
"
.
format
(
R
,
T
.
T
))
print
(
"Rotation
\n
{}
\n
Translation
\n
{}
\n
"
.
format
(
R
,
T
.
T
))
print
(
"Reprojection error
\n
{}
\n
"
.
format
(
err
))
print
(
"Reprojection error
\n
{}
\n
"
.
format
(
err
))
# add extrinsic parameters for reference camera so it is written in config
calibration
[
reference
][
"relative_rotation"
]
=
np
.
eye
(
3
)
calibration
[
reference
][
"relative_translation"
]
=
np
.
zeros
(
shape
=
(
3
,))
# Write results in format of calibration file
# Write results in format of calibration file
if
args
.
output_file
is
not
None
:
if
args
.
output_file
is
not
None
:
data
=
{}
data
=
{}
...
...
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