A theoretical analysis of short-exposure, spatial power spectra of defocused images viewed through a thin scattering layer is given. Information about the position of the layer can be recovered from these spectra by using a class of quasi-one-dimensional incoherent sources and a spatial filter on the aperture plane. The same approach can be used to obtain refractive turbulent profiles with high spatial resolution in an extended medium.