Digitized restoration of textile pattern through edge-guided image inpainting method
Objective This study aims to further improve the Criminisi algorithm to effectively restore traditional Chinese textile patterns in the presence of damage.Given the complex nature of these patterns,structural restoration is essential to ensure their accurate recovery.Efforts will be directed towards improving the inpainting algorithm's performance and expanding its applicability in practical textile restoration work,with the aim of achieving faster and more accurate repair results.Our research aims to provide more feasible solutions for the preservation of cultural heritage and textile restoration,ensuring the enduring legacy of traditional Chinese textile patterns.Method Firstly,it uses linear or second-order Bézier curves to fit the missing edges and restore the structure.Then,it calculates more effective priority using structural information from a multi-resolution image to determine the current patch to be repaired.Next,it computes multiple candidates matching patches in the multi-resolution image based on color,gradient,and boundary features,selecting the best-matched patch to reduce randomness in the selection process.Finally,the replicated best-matched patch is segmented before being used for filling the damaged area,reducing the overlap with known information regions and achieving iterative completion of the restoration for all damaged areas.Results Real traditional textile images were collected,and artificial damage was introduced by adding masks to simulate challenges encountered when dealing with damaged textiles.The effectiveness of the proposed algorithm was evaluated using a variety of objective metrics,including the peak signal-to-noise ratio,structural similarity feature similarity index measure,feature similarity index measure,and edge preservation rate.These metrics provided a comprehensive and quantifiable assessment of the restoration results.Apart from the quantitative assessments,a subjective evaluation of the inpainting results was also carried out.This qualitative assessment revealed that the proposed algorithm excelled in fitting the main structures in the damaged areas,ultimately resulting in a more visually pleasing restoration effect.Experimental results demonstrate that our method achieves higher objective evaluation scores and natural restoration effects for real textile color images with significant structural damages.It is worth noting that,despite the superior inpainting quality achieved by the proposed algorithm,there was a trade-off in terms of the time required for restoration.Nevertheless,this minor sacrifice in time was considered acceptable,given the significant enhancement in inpainting quality.Conclusion Digital restoration of textile artifacts is crucial for preserving our cultural heritage.It protects these artifacts from decay and loss,allowing researchers and educators to explore their historical and artistic value.Digital restoration enables easy sharing and accessibility of artifacts,both online and physically,reaching a broader audience.Its speed compared to manual restoration expedites the process,swiftly presenting artifacts in their original aesthetic state for appreciation and study.Moreover,it helps preserve historical information within artifacts,contributing to the revitalization of their aesthetic value and fostering a deeper recognition of their artistic significance.