What is perceived distance?
If you know the physical size of the object you can determine its' physical distance by how much of the FOV it occupies.
The math is: (sensor dimension ÷ focal length) = (size ÷ distance)
Or, there's an app for that
Secondly, the DOF always has to be equivalent to the actual physical spacing of the objects ("y").