Skip to content
Snippets Groups Projects
Commit 182b80f0 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Correct rmse in dlt_reconstruct

parent 2c928f41
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment