OutPut camera-pose

1,063 views
Skip to first unread message

松本慶太

unread,
May 7, 2021, 3:23:16 AM5/7/21
to COLMAP
I estimated camera-pose with COLMAP function.
And I got images.txt noted following link.
What are the units of these parameters of the translation vector? 
I'm assuming it's in pixel units, is that correct?
Also, it seems that the estimated translation vector is not a unit vector. Can I assume that the scale estimation is also done at the same time?

Wayne Cochran

unread,
May 7, 2021, 9:01:08 AM5/7/21
to COLMAP
The camera rotation R is given as normalized quaternion (qw qx qy qw) and the translation
t is a 3D point (tx, ty, tz) that is typically in colmap's normalized 3D coordinate system where
all the point coordinates lie in the range -10 < x,y,z < +10.   

Colmap uses Eigen to convert to matrix form:

Eigen::Quaterniond q = Eigen::Quaterniond(qw, qx, qy, qz);

Eigen::Matrix3d R = q.normalized().toRotationMatrix();

Eigen::Vector3d t(tx, ty, tz);


If you want to retrieve the position of the camera C you can solve the following

RC + t = 0

thus

  C = -R^T t

which will be in colmap's normalized units (not pixels). 

Johannes Schönberger

unread,
May 8, 2021, 5:36:43 AM5/8/21
to col...@googlegroups.com
SfM reconstructions do not have scale. The scale does not have a unit but it is roughly scaled to the range [-10, 10] for numerical stability reasons.
--
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.

松本慶太

unread,
May 9, 2021, 9:59:41 PM5/9/21
to COLMAP
Thanks to both of you.
It has been helpful.


2021年5月8日土曜日 18:36:43 UTC+9 Johannes Schönberger:

Adam Polak

unread,
Jan 16, 2022, 6:57:29 PM1/16/22
to COLMAP
Sorry to resurrect this thread but I was wonder if it was possible to find the rotation of the camera poses once you find the camera center? (the center being found using C = -R^T t)

If my question is unclear I made a diagram to help explain: https://github.com/colmap/colmap/issues/1376#issuecomment-1013938947
Reply all
Reply to author
Forward
0 new messages