The Shack-Hartmann wavefront sensor(SHWFS) is an optical detection device based on the measurements of wavefront slopes.It is widely used in an adaptive optics system due to its simple structure and strong environment adaptability.The measuring accuracy of the SHWFS depends mainly on the accuracy of the spot image centroid in each sub-aperture.There are many centroid algorithms including the center of gravity algorithm,Gauss fitting algorithm,and correlation algorithm.As to the simplicity,robustness,high ac...