colmap / pycolmap

Python bindings for COLMAP
BSD 3-Clause "New" or "Revised" License
858 stars 125 forks source link

`'pycolmap.Image' object has no attribute 'rotmat'` #246

Closed vitalii-p closed 5 months ago

vitalii-p commented 5 months ago

In hloc I got an error during visualization (viz_3d.plot_reconstruction)

'pycolmap.Image' object has no attribute 'rotmat'

Could you suggest how to fix this issue? How can I get rotation matrix or quaternion from Image object?

vitalii-p commented 5 months ago

Seems like here it is

image.cam_from_world.rotation.matrix().real

sarlinpe commented 5 months ago

This is being is fixed in https://github.com/cvg/Hierarchical-Localization/pull/353 following recent updates to pycolmap.

sarlinpe commented 5 months ago

https://github.com/cvg/Hierarchical-Localization/pull/353 has been merged.