Wavefront sensor is designed to measure both intensity distribution and phase distortion of optical fields in real time and high accuracy. It can be widely used not only in measuring, diagnostic, but also in adaptive opticaI systems to compensate for phase distortions. The most well known and widely used Shack-Hartmann wavefront sensor consists of a lenslet array and a CCD camera. The wavefrontsurface under test is divided into a number of beamlets by a two-dimensional sub-apertures of the lenslet array, and each sub-aperture provides a separate focus on the detector of a CCD camera .Then the image spot arraycaptured by CCD can be used to estimate the wavefront local slopes. The centroids of sub-images generated by each lenslet are tested a...