Since the pupil of the wavefront coding system with a cubic phase mask is not modulated in the form of rotational symmetric phase modulation and it is difficult to accurately demarcate the azimuth of the phase mask in an actual system,the subsequent image restoration is always not satisfied.So we design a Wiener filtering method by rotating the PSF by a regular increase in azimuth angle under the criterion of the vector norm sum of image gray gradation.We get the initial PSF of the wavefront coding system f...