Depth is estimated from the picture itself, then you correct it by eye. Run a sweep to see where the estimate breaks.
A captured photo carries no more depth than any other — the estimate works the same way. Good light and a clear near subject help it read.