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?