Extrinsic matrix: E = [R|t], which I believe we can express as 3x4 matrix composed of a 3x3 rotation matrix and 3x1 translation vector:
r1,1 r1,2 r1,3 | t1
r2,1 r2,2 r2,3 | t2
r3,1 r3,2 r3,3 | t3
Intrinsic matrix:
Matrix composed of focal length (α), principal point (υ):
extrinsic output
0.970263 0.00747983 0.241939 -191.02
-0.0147429 0.999493 0.0282234 3.2883
-0.241605 -0.030951 0.969881 22.5401
0.0 0.0 0.0 1.0
intrinsic output
2892.33 0 823.205
0 2892.33 619.071
0 0 1
Hi,
This is the right approach, but you have a bug in your script. The last column of your rotation matrix must be index with 2 instead of 1.
I also suggest to use FocalLengthX() and FocalLengthY() instead of FocalLength(), because some camera models support different focal lengths in X and Y. Also note that with this code you are not exporting distortion parameters.
Cheers,
Johannes
From: <col...@googlegroups.com> on behalf of <kevi...@insightdigital.org>
Reply-To: <col...@googlegroups.com>
Date: Sunday, October 14, 2018 at 5:23 AM
To: COLMAP <col...@googlegroups.com>
Subject: [COLMAP] Writing images' camera extrinsics as [R|t]
I'd like to export a sparse reconstruction, writing each participating image in the following form:
r1,1 r1,2 r1,3 | t1
r2,1 r2,2 r2,3 | t2
r3,1 r3,2 r3,3 | t3
--
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/aaa10bc1-1c0a-424f-80ac-211b49ef7756%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.