My question is in regards to the Depth Data acquired by the TrueDepth camera.
I want to know how to get real distance Depth data from TrueDepth.
I can obtain depth maps but how do I obtain the actual distance values (Z values)?
The use case is for measuring the distance from an object to the camera. How am I able to obtain this depth in meter values?
The sample code, Streaming Depth Data from the TrueDepth Camera demonstrates how you can calculate the distance relative to the camera for a pixel in a depth map.
It performs this calculation in the vertexShaderPoints
function. Please take a look at this implementation, and then if you need further assistance, please request technical support.