Based on the Moire effect in shadow-casting of two coded masks a new kind of optical method is proposed to map phase variation on the object image with an extended incoherent illumination. Detailed analyses are given to the relations between the functions of masks and the systems of contourlines or the background fringes. The misfocusing effect and the evaluation of the configuration parameters are discussed. It is shown that this technique has advantages over interferometry.