Hierarchical-Localization icon indicating copy to clipboard operation
Hierarchical-Localization copied to clipboard

Visualizing the model via prior poses rotates poses

Open famfa693 opened this issue 2 years ago • 1 comments

Hi, Thanks for your amazing work!

I generated an empty model using prior poses and triangulated the points to construct the SFM model. The issue is that when I plot the camera poses of reconstructed model via scatter plot, the correct trajectory is shown. However, when I use "viz_3d.plot_reconstruction" or "viz_3d.plot_camera_colmap" functions the trajectory is no longer shown correctly. I have there questions here:

  1. Will this effect on the localization results?
  2. How can I plot the correct trajectory of the model?
  3. Do I need to rotate the ground truth poses before generating the SFM model?

Thanks so much in advance for your help!

Screen Shot 2022-09-12 at 11 55 25 AM Screen Shot 2022-09-12 at 11 56 55 AM

famfa693 avatar Sep 12 '22 19:09 famfa693

In COLMAP models, camera poses are expected to transform from world to camera coordinates. You likely assumed the opposite. This will yield an incorrect 3D model.

sarlinpe avatar Sep 13 '22 06:09 sarlinpe

Thanks! That resolved the issue.

famfa693 avatar Aug 10 '23 01:08 famfa693