ROS | Camera depth image wrong depth values

I just realized that the depth is not the radial distance for each pixel, in other words it is not the distance of each pixel to the center point of the camera. Rather, it is the distance from the vertical plane of the camera, in other words a smooth surface in front of the camera, no matter how big would have the same distance.