## 4 Results and Discussion
### Comparison of Face Image Inpainting Algorithms
#### 4.2.2 Results and Analysis  
The experimental results are shown in Figures 10-12. Figure 10 shows the face original images, Figure 11 shows the face occlusion images, Figure 12 shows the images processed by the original GLCIC algorithm, and Figure 13 shows the images processed by the improved GLCIC algorithm for Tang Dynasty female terracotta figurines. It can be observed that the results of the improved GLCIC algorithm for Tang Dynasty female terracotta figurines are clearer compared to the original GLCIC algorithm, with a better preservation of the edge information of the facial features. In fact, due to the small sample size, the restoration effect for figurines with significant facial damage was not very good. Currently, this study is more suitable for images with moderate and slight damage. Figure 10: Tang Dynasty female terracotta figurine face original images: (**a**) standing female terracotta figurine; (**b**) tricolor female terracotta figurine; (**c**) tricolor standing female terracotta figurine (**d**) Standing female terracotta figurine; (**e**) painted female terracotta figurine. Figure 9: Distribution of facial deficiency degrees in Tang Dynasty terracotta samples. The SSIM and PSNR results of the two algorithms compared to the original images are shown in Table 4. It can be seen that, except for Figure 10d, the SSIM of the images processed by the improved GLCIC algorithm for Tang female terracotta figurines is better than that of the images processed by the original GLCIC algorithm, indicating that the former algorithm is more capable of restoring the facial features of Tang female terracotta figurines. The PSNR of the images processed by both algorithms is roughly the same, indicating that the degree of distortion is mostly consistent. This means that from the perspective of texture and color, the improved algorithm still exhibits issues of texture loss and color blurriness. A Pearson correlation coefficient analysis of SSIM and PSNR showed a significant positive correlation between these two indicators (PCC = 0.870, significance level \(p\) < 0.05). This means that in the improved algorithm, a higher SSIM value corresponds to an increase in the PSNR value. In other words, these two objective indicators demonstrated consistent  
Figure 11: Tang Dynasty female terracotta figurine face occlusion images: (**a**) standing female terracotta figurine; (**b**) tricolor female terracotta figurine; (**c**) tricolor standing female terracotta figurine; (**d**) standing female terracotta figurine; (**e**) painted female terracotta figurine. Figure 12: Tang female terracotta figurine face images processed by the original GLCIC algorithm: (**a**) standing female terracotta figurine; (**b**) tricolor female terracotta figurine; (**c**) tricolor standing female terracotta figurine; (**d**) standing female terracotta figurine; (**e**) painted female terracotta figurine. Figure 13: Tang female terracotta figurine face images processed by the improved GLCIC algorithm for Tang female terracotta figurine: (**a**) standing female terracotta figurine; (**b**) tricolor female terracotta figurine; (**c**) tricolor standing female terracotta figurine; (**d**) standing female terracotta figurine; (**e**) painted female terracotta figurine. image quality improvements in the optimized algorithm, indicating that the improved algorithm has consistency and reliability in the overall image quality. Regarding the improved GLCIC algorithm for Tang Dynasty female terracotta figures, although the PSNR value indicates some distortion in the image restoration results, which might affect the clarity of details, the SSIM value suggests good structural similarity in these images. An SSIM value higher than 0.8 indicates that the image restoration performs excellently in maintaining the structure and details of the original image. Therefore, despite the low PSNR value, the overall restoration effect is still good, with the main features and structure of the images being well preserved, and the visual effect remains satisfactory.