| Cultural relics are precious resources with historical and artistic value,and the line drawing of cultural relics is the first-hand information reflecting the original appearance of ancient cultural relics.At present,the line drawing in archaeological work is still mainly done by hand,and the manual method has problems such as long drawing cycle and large manual intervention.At the same time,the existing line drawing vectorization algorithm is not robust enough to effectively control the output results.In response to the above problems,this paper takes the 3D model of cultural relics as the research object,and conducts research on the generation and vectorization of line drawings of cultural relics.The research content and innovations of this paper mainly include:(1)A line drawing generation algorithm based on multi-scale feature fusion is proposed.Compared with other data sets,the 3D models of cultural relics often contain noise or holes due to their complex shape and age.Previous line drawing generation algorithms mainly start with geometric features,which are difficult to produce good results.Since human observers are highly sensitive to line-like and edge-like features(i.e.points of high brightness change),this paper incorporates lighting features into the calculation of line drawing generation.The lines generated based on illumination features have characteristics that geometric features cannot contain,and the fusion of different features can generate richer and more natural lines.(2)A line drawing vectorization algorithm for optimizing Bezigons is proposed.Because previous algorithms often focus on the optimization of intermediate results such as polygons and topological structures,it is easy to cause cumulative errors during the optimization process,and cannot effectively control the output of vector graphics.Therefore,this paper adopts the method of optimizing the Bezigons,and rasterizes the vector map through the Monte Carlo sampling method,which can effectively measure the loss caused by the vectorization process.The algorithm integrates evaluation indicators such as accuracy,continuity,and simplicity into the construction of the loss function,and realizes effective control of the output quality of vector graphics.It is a more general solution for line drawing vectorization.(3)Realized the line drawing generation and vectorization system of cultural relics.This system is based on open source frameworks such as Qt and OpenMesh,and consists of modules such as model display and preprocessing,real-time rendering of line drawings,and vectorization of line drawings.The system supports common 3D model formats and provides a variety of lighting models for the display of 3D models;the system provides a variety of line drawing generation algorithms for realtime rendering of line drawings;the line drawing vectorization module provides a variety of parameters and style adjustments Function.The system interface is simple,the interactive operation is clear,and the performance of the optimized and tested system is good. |