A new technique is proposed for NMR image restoration from the influence of main magnetic field non-uniformities. This technique is applicable to direct Fourier NMR imaging. The mathematical basis and details of this technique are fully described. Modification to include image restoration from non-linear field gradient influence is also presented. Computer simulation demonstrates the effectiveness of this technique for both Fourier zeugmatography and spin-warp imaging.