Coherent diffractive imaging is a method by which iterative methods are employed to recover image information about a finite object from its coherent diffraction pattern. We employ methods borrowed from density functional theory to show that an image can be recovered in a single non-iterative step for a finite sample subject to phase-curved illumination. The result also yields a new approach to quantitative x-ray phase-contrast imaging.