It is proved using the momentum method that under some limitations the pupil function can be unambiguously determined, accurate to insignificant complex constant, from the intensity distribution over the volume containing focal plane. New momentum relationships are obtained that allow identification of the phase distortions by means of an adaptive mirror.