transform 2 point clouds (2 cameras) to same origin [closed]

asked 2015-09-17 07:06:13 -0600

Dezintegrator gravatar image

Hello, I get camera pos matrix K(4x4) = [R|t]; last row = [0,0,0,1] I don't understand how convert point cloud from camera coor. system to world coor. system?

I just apply my camera pos matrix to cloud. But I think it is wrong.
pcl::transformPointCloud (*cloud, *transformed_cloud2, K);

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-27 08:54:34.913906

Comments

You have your camera pose matrix:

cMo = (r11 r12 r13 tx
       r21 r22 r23 ty
       r31 r32 r33 tz
       0    0   0  1).

You have pt_in_camera_coord = cMo * pt_in_object_coord.

You want to know pt_in_object_coord: pt_in_object_coord = (cMo)^1 * pt_in_camera_coord.

Eduardo gravatar imageEduardo ( 2015-09-18 04:49:08 -0600 )edit