Ask Your Question

Calculate Translation-Rotation Matrix for RGBD-Kinect data

asked 2012-10-12 05:24:10 -0600

_dit gravatar image

Hi i captured with Kinect a box on the table. I colored the edge so i can project a binarized rgb image into a depth image. (see images below) As you can see there rgb and depth image are not equal.

Question: i want to select 4 corners on rgb image and 4 corners on depth image. is there any opencv function to calculate Translation/Rotation Matrix by using these informations?



image description


image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-10-12 07:49:42 -0600

Ben gravatar image

You can use findHomography() for this. It returns a transformation matrix H, which you can use as parameter for warpPerspective() to map the source image onto the destination image.

edit flag offensive delete link more

Question Tools


Asked: 2012-10-12 05:24:10 -0600

Seen: 1,385 times

Last updated: Oct 12 '12