We describe a method where phase and amplitude of a wavefront are obtained by processing a sequence of pattern produced by the interference between the light transmitted by a scanning pinhole (which is sequentially shifted) and a reference pinhole. Simulations and experimental results are presented.