camera pose rotation to local rotation for an object

asked 2020-09-02 05:05:44 -0600

JT3D gravatar image

Suppose I have the pose of an object in a 4 x 4 matrix (has translation and rotation information) but it's with respect to my camera frame Suppose I also have the intrinsic calibration off the camera that was used to find the pose of the object

Now I want to get the object rotation but in it's local coordinate system not in the camera frame coordinate system

What is the math to perform this transformation?

I have a feeling this is pretty easy to do but I just can't get my head around it. Is it something like the inverse of the camera intrinsic multiplied by 4 x 4 pose information?

edit retag flag offensive close merge delete

Comments

Have a look at this (1.2.3 Homogeneous Transformations).

Eduardo gravatar imageEduardo ( 2020-09-02 06:31:27 -0600 )edit

Sorry - I missed your comment so only seeing now. I had a read of the section you referred too but I'm struggling to make sense of it. I kind of understand it at a high level but not sure how to translate it to code. Would you be able to expand a little by way of a simple example - even some psuedo code would be really helpful? Thanks

JT3D gravatar imageJT3D ( 2020-09-07 11:33:17 -0600 )edit

When you have a 4x4 homogeneous transformation matrix that transforms a point expressed in frame B into the frame A, the inverse transformation is done using equation (1.11).

Eduardo gravatar imageEduardo ( 2020-09-10 05:01:24 -0600 )edit