In order to solve the problem of inaccurate priority judgment and complex operation interface and other issues of the existing image restoration algorithm based on sample block, the thesis introduces the concept of the body structure and takes advantage of the graphical user interface (GUI) to operate. The algorithm gets the body structure through artificial selection of repaired area, the Gaussian filter, wavelet transformation and edge detection on the platform of Matlab7.11. Then determine the priority, and finally use the sample block repair algorithm to update self-confidence to finish the completion of restoration. According to the experimental results, the PSNR increases by 10.5~11.07% after restoration,in addition, the algorithm operates simply and will get wide range of applications.