SLIDE 16
- L. Iocchi - Human-Robot Interaction
31
Image-to-world Conversion
⋅
u = , : homogeneous vector of pixel in image coordinates. P : perspective projection matrix. M = , , : homogeneous vector of real world coordinates. Camera model:
:
, 0, , , , 0,0,1 /camera/depth/camera_info /camera/rgb/camera_info
- L. Iocchi - Human-Robot Interaction
32
Image-to-world Conversion
Using the depth camera intrinsics, each pixel (x_d,y_d) of the depth camera can be projected to metric 3D space using the following formula: P3D.x = (x_d - cx_d) * depth(x_d,y_d) / fx_d P3D.y = (y_d - cy_d) * depth(x_d,y_d) / fy_d P3D.z = depth(x_d,y_d) with fx_d, fy_d, cx_d and cy_d the intrinsics of the depth camera. We can then re-project each 3D point on the color image and get its color: P3D' = R.P3D + T P2D_rgb.x = (P3D'.x * fx_rgb / P3D'.z) + cx_rgb P2D_rgb.y = (P3D'.y * fy_rgb / P3D'.z) + cy_rgb with R and T the rotation and translation parameters estimated during the stereo calibration.