[ros-users] How do I get 2D depth map from 3D point cloud?

Chriss Lei lei.chriss at gmail.com
Wed May 19 08:01:41 UTC 2010


Hello.
I just reviewed the stereo_image_proc tutorial and image_pipeline/Camera
info webpage and there's something I'm unclear with.

I understand I get 3D point cloud from stereo_image_proc with respect to
left imager optical frame.
Now, I'm interested in getting 2D depth map with pixel values set equal to
depth of the point cloud. (No. I do NOT want disparity map.)

Only way I can think of doing this is multiply K from left/camera_info
sensor_msgs with the vector [X/Z, Y/Z, 1] from the point cloud and set the
pixel value to Z.
Is there another transform or parameter I need to introduce?
Or even better, is there a ROS implementation of this functionality already?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20100519/d7073b25/attachment-0002.html>


More information about the ros-users mailing list