A novel scheme is proposed for two dimensional direct measurement of wave functions using an SLM. This photon efficient method can be potentially useful for wavefront sensing of turbulence in adaptive optics systems used in free-space communication systems