A practical technique is presented based on DH, for the reconstruction of a wavefront from three recorded intensity images. Combining the off-axis Fourier spatial filtering (OFSF) technique with iterative phase retrieval algorithms, it is shown how the twin image can be eliminated. The proposed method overcomes system geometry constraints and improves both the flexibility and resolution associated with OFSF-based DH. It also overcomes the cost problem associated with phase-shifting interferometry-based DH. In order to demonstrate the performance of the proposed DH method, both simulation and experiment results for objects having smooth and rough surfaces are presented.