
B-spline fitting of sunglasses lens contour based on adaptive sampling
Author(s) -
Xiaoyong Fan,
Ting Nie,
Jie Shen,
Yawei Xu
Publication year - 2021
Publication title -
journal of physics. conference series
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.21
H-Index - 85
eISSN - 1742-6596
pISSN - 1742-6588
DOI - 10.1088/1742-6596/1914/1/012041
Subject(s) - spline (mechanical) , sampling (signal processing) , mathematics , interpolation (computer graphics) , mean squared error , curve fitting , spline interpolation , arc length , data point , b spline , curvature , thin plate spline , point (geometry) , algorithm , computer science , artificial intelligence , statistics , computer vision , geometry , mathematical analysis , arc (geometry) , engineering , motion (physics) , structural engineering , filter (signal processing) , bilinear interpolation
To solve the problems of low accuracy and low efficiency of B-spline fitting in sunglasses lens contour cutting, a sampling method based on the characteristic function of a weighted combination of arc length and curvature square root was proposed, and then perform B-spline fitting according to the sampling points to improve the accuracy and efficiency. First, read and identify the sunglasses lens data in the DXF file, and disperse it to obtain a series of coordinate points; combine the defined feature function for uniform sampling, and adjust the parameter weight in the feature function to obtain a more reasonable sampling point for the sunglasses lens contour; Then use the LU decomposition and interpolation method to obtain the B-spline curve through all the sampling points; the maximum absolute error (MAE) and the root-mean-square error (RMSE) are used as the accuracy criteria, by increasing the number of sampling points iteratively until the accuracy is satisfied to construct a reasonable fitting curve.