Due to diffraction and aberrations, images will be degraded during the imaging process. It is needed to find a way to correct the aberration without changing the structure of imaging system. In this paper, a method for improving image quality and obtaining higher resolution is presented. The process of rebuilding high-resolution image from blurred image illuminated by structured light can be viewed as solving equations. The values of pixels in the clearer picture we want are the unknowns and the value of each pixel on the image plane is the weighted cumulate of them, of which the coefficient is decided by the point spared function of the imaging system. More non-equivalent equations are needed to get the solve because the coefficient-matrix is singular. In this passage, the equations mentioned above are the pictures with structured light. As shown by the simulation and experiment that the image quality is improved markedly. Compared with the image enhancement algorithms like Sobel sharpen, the algorithms with structured illumination can rebuild a more accurate image.