simulator icon indicating copy to clipboard operation
simulator copied to clipboard

Depth Camera Output

Open crixcrixcrix opened this issue 4 years ago • 4 comments

I am trying to interpret images output from a depth camera. A previous answer says:

Each pixel in the result records the Euclidean distance between the 3D point corresponding to that pixel and the camera origin

However this does not seem to be the case: values in the depth image are greater for objects closer to the camera, and do not appear to scale linearly with distance. How do I compute distance from the values in the depth image?

crixcrixcrix avatar May 06 '21 13:05 crixcrixcrix

Here are the settings used for the depth camera: image

And here is an example depth image: image

crixcrixcrix avatar May 09 '21 07:05 crixcrixcrix

How do you save the Depth image?

PyTorr avatar Aug 01 '21 11:08 PyTorr

Hi,

I have the same question, from the simulator's code, I guess it is non-linear in distance.

zxydi1992 avatar Sep 16 '21 18:09 zxydi1992

Hi, Any update on this question? @crixcrixcrix @zxydi1992 From the source code I found that the depth is the distance I want but then it goes through some calculations and gets the outColor. Any suggestion on how to decode/transform the int we get from the depth image back to the distance will be really appreciated...

Sijie-L avatar Aug 18 '22 14:08 Sijie-L