How to extract x,y,z of camera from COLMAP?

1,631 views
Skip to first unread message

siddarth...@gmail.com

unread,
May 10, 2017, 8:27:00 PM5/10/17
to COLMAP
Hi,

I'd like to extract the 3d coordinates of each camera and compare them to some pre-existing approximate camera locations I have as a sanity check. I was under the impression that the translation vector was what I needed, but the results I'm getting are incorrect so this doesn't seem to be the case. Furthermore, I used the colmap gui to verify my claim - the translation vectors of two cameras which are located on different sides of the origin have the same signs ie (+x,-y,+z). I can provide more details if necessary.

How should I be converting the parameters of each camera to x,y,z coordinates?

Johannes Schönberger

unread,
May 10, 2017, 8:48:05 PM5/10/17
to col...@googlegroups.com
Converting the quaternion to a 3x3 rotation matrix, the camera center is given by ``-R^t * T``, where R^t is the inverse/transpose and T the translation vector. More info is here: https://colmap.github.io/format.html#images-txt

Cheers,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/5832bfac-2756-48c1-8767-37495d0ed7fc%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages