Commit 04445059 authored by Vincent POLLET's avatar 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
......@@ -849,6 +849,10 @@ def main():
print("Rotation \n {} \nTranslation \n {} \n".format(R, T.T))
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
if args.output_file is not None:
data = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment