andyzeng / tsdf-fusion

Fuse multiple depth frames into a TSDF voxel volume.
http://andyzeng.github.io/
BSD 2-Clause "Simplified" License
734 stars 134 forks source link

Format of pose.txt #17

Open HaiDang2001VN opened 6 years ago

HaiDang2001VN commented 6 years ago

@andyzeng Sorry but could you please specify the format of camera poses in the data you use in demo code? Because there're just 6 numbers in 6DoF format of pose or 7 numbers as in TUM RGB-D Trajectories Dataset but you have up to 16 params here (I noticed that 4 last ones is the same for all). And I saw that most repos use 6DoF as camera poses, so if you have time then you can mark this as Pull request. Thanks in advance!

andyzeng commented 6 years ago

Each pose.txt holds a 4x4 rigid transformation matrix, which consists of a 3x3 rotation matrix and a 3x1 translation vector:

r11, r12, r13, tx r21, r22, r23, ty r31, r32, r33, tz 0, 0, 0, 1

The 3x3 rotation matrix can be converted to and from 3 numbers (e.g. euler angles, axis angle representation) or 4 numbers (e.g. quaternions like the TUM dataset).

HaiDang2001VN commented 6 years ago

Thanks for your detailed explanation! @andyzeng