-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera pose to src_view_mtx #8
Comments
Hi @liuxiaoyu1104 , Thank you for your interest. First of all, let me clarify that I have never used Droid-SLAM before and I'm not going to say anything specific to it. In any case, assuming you meant src_view_mtx in the README example, the variable is to specify the source camera pose from which the reference input image was taken. Then, you also need to set the target camera pose(tar_view_mtx) to calculate the relative camera pose(rel_view_mtx), which is then input to the GenWarp model as a condition. |
Thank you for your reply. These are my two RT matrices, which I use as src_view_mtx and tar_view_mtx: |
You don't need to have your view matrices matched to the ones returned from camera_lookat function. The function is only a helper to create a view matrix with a predetermined coordinate system. Like I said, all you need is the relative camera pose. Did you try GenWarp with your matrices already? How was the resulting image? It's not even a problem before actually trying to generate a sample yet. |
Similar question. How to convert opencv camera to GenWarp coordinates? |
If I have a camera pose from Droid-SLAM in the format 'timestamp tx ty tz qx qy qz qw', how do I get src_view_mtx? Besides converting the quaternion(qx qy qz qw) to a rotation matrix and combining it with the translation vector(tx ty tz) to form the RT matrix, is there anything else I need to do?
The text was updated successfully, but these errors were encountered: