RGB (640*480) + Depth Image to Real World Kinect [closed]
Hello, I'm looking for an easy way to Convert kinect RGB and depth values to XYZ coordinates in ROS. My goal is a function with an input of: RGB and depth values of each point of my object, and output of: x,y and z values of each point.
Does anyone have an idea for that ?
Why don't you use point clouds?
Because, I recognize my object with colour in openCV in a RGB image, that's my problem. And I think I couldn't do that with a pointCloud
You can use pin-hole camera model to get x and y co-ordinates if you manage to get z co-ordinate (either using disparity image or something else).
Thanks! Works Great !
Hi Hugo, can you please tell me how to get z coordinate? I have u,v from RGB image and I have Depth image . but I don't know what to do now.
I want to get exact coordinates of my specific object. I'm subscribing /camera/rgb/image_color and /camera/depth/image_raw. I have u,v pixel coordinate from RGB image. i followed this http://nicolas.burrus.name/index.php/.. . . but couldn't.