Reputation: 103
I am working with a depth camera. The camera outputs a depth map which is 500x500 array. Each of the elements in this array represent the depth from the camera.
Now I convert this depth map to a pointcloud using open3d library. I know that each of these point have an x,y and z coordinate. I want to know out of these three, which one represent the depth from the camera? Also, are the x and y cooridnates here are in camera frame?
Upvotes: 0
Views: 324
Reputation: 139
The depth map would provide the depth as the value indexed at [u,v] in the map, based on what is rendered in the depth image.
A point in the point cloud would be:
(u,v,depth[u+v*depth.w])
According to Open3D documentation the Z value represents the depth as a value of the equation (d/depth_scale)
Upvotes: 1
Reputation: 81
Should be z for depth
Depth as in how far from camera that pixel location is
Upvotes: 0