This invention discloses a method, apparatus, and medium for fitting
measurement point data based on master
point data, belonging to the field of
data point fitting. The method involves: acquiring a master point dataset and a
measurement point dataset. The master point dataset is a set of master point line elements from tunnel
design data, composed of circular
curve line elements and straight line elements. The
measurement point dataset is a set of points converted from tunnel cross-section points measured by a surveying
robot to tunnel coordinates. Outliers within the measurement point dataset are identified; outliers are data points whose over- or under-excavation values do not meet corresponding thresholds. Based on the
line segment type of the master point line elements in the master point dataset, the outliers in the measurement point dataset are optimized to obtain an optimized dataset, and the optimized dataset is fitted to obtain an optimized curve. This invention optimizes measurement point outliers based on the master point dataset of tunnel
design data, resulting in a fitting result that better reflects the actual
engineering conditions, effectively reducing subsequent fitting errors and significantly improving the accuracy of the fitted curve.