What is Depth?

I thought that “depth” and “the distance from the camera” (or SceneCaptureCoponent2D) are the same things. but the value I get from ReadSurfaceFloatData does not correspond to my intuition. In this example,

which is from

the depth values from the plane are constant on a horizontal line. The pixels near the edges should have higher depth ( I understood depth correctly). I get exactly the same behavior from my C++ code. The “depth” values are different from my analytical computation of “distance”.

Can someone explain to me why I get such images?

I suspect that depth is the distance between the point of interest and the camera plane. That explains the image. But it will be nice if someone confirms it

1 Like

That is correct. I’d consider this one of the more common gotchas when working with scene depth.