Get RGB pixel coordinate in depth cloud
Hi there! I'm using pcl point cloud to show depth information obtained with kinect. I'd like to identify rbg points (pixels) on the depth map (for example eye balls). How can i obtain real world coordinate (x,y,z) from the RGB pixel (u,v)? I've found this istructions:
cloud(right_eye.x,right_eye.y).x
cloud(right_eye.x,right_eye.y).y
cloud(right_eye.x,right_eye.y).z
where cloud is defined as:
pcl::PointCloud<pcl::PointXYZ> cloud
But the result is not correct, i mean rgb points are not fitted on the depth map.
Hello, now i have the same problem. Would you help me to get the coordinate? Thank you :)