[go: up one dir, main page]

CN114419136A - Method and device for evaluating relative accuracy of topographic map and storage medium - Google Patents

Method and device for evaluating relative accuracy of topographic map and storage medium Download PDF

Info

Publication number
CN114419136A
CN114419136A CN202111519819.5A CN202111519819A CN114419136A CN 114419136 A CN114419136 A CN 114419136A CN 202111519819 A CN202111519819 A CN 202111519819A CN 114419136 A CN114419136 A CN 114419136A
Authority
CN
China
Prior art keywords
point set
preset
target
arc
accuracy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111519819.5A
Other languages
Chinese (zh)
Other versions
CN114419136B (en
Inventor
刘万增
陶远
陈军
李然
翟曦
朱秀丽
赵婷婷
王新鹏
彭云璐
张晔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NATIONAL GEOMATICS CENTER OF CHINA
Original Assignee
NATIONAL GEOMATICS CENTER OF CHINA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NATIONAL GEOMATICS CENTER OF CHINA filed Critical NATIONAL GEOMATICS CENTER OF CHINA
Priority to CN202111519819.5A priority Critical patent/CN114419136B/en
Publication of CN114419136A publication Critical patent/CN114419136A/en
Application granted granted Critical
Publication of CN114419136B publication Critical patent/CN114419136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/64Analysis of geometric attributes of convexity or concavity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses a method and a device for estimating relative accuracy of a topographic map, a storage medium and computer equipment, wherein the method comprises the following steps: acquiring preset point set data corresponding to a target element, and calculating a slope sequence and a curvature sequence corresponding to the preset point set, wherein the target element comprises an arc curve element and/or a curved river element, the preset point set comprises a plurality of break points, and the preset point set data comprises a plurality of break point data; determining a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence; and determining the relative target precision corresponding to the target arc point set, and determining the relative precision of the topographic map based on the relative target precision. According to the method and the device, the relative accuracy of the topographic map can be automatically calculated according to the acquired preset point set data corresponding to the target elements, the cost of calculating the relative accuracy of the topographic map can be effectively reduced, and the evaluation efficiency of the relative accuracy of the topographic map is improved.

Description

一种地形图相对精度评估方法及装置、存储介质Method and device for evaluating relative accuracy of topographic map, and storage medium

技术领域technical field

本申请涉及测绘地理信息技术领域,尤其是涉及到一种地形图相对精度评估方法及装置、存储介质、计算机设备。The present application relates to the technical field of surveying and mapping geographic information, and in particular, to a method and device for evaluating the relative accuracy of topographic maps, storage media, and computer equipment.

背景技术Background technique

地形图相对精度评估对于保证基础地理信息质量具有重要作用。地形图的设计精度主要由地图的比例尺决定,而地形图的实际精度是否与设计精度相符,则需要对地形图的相对精度进行计算。The assessment of relative accuracy of topographic maps plays an important role in ensuring the quality of basic geographic information. The design accuracy of the topographic map is mainly determined by the scale of the map, and whether the actual accuracy of the topographic map is consistent with the design accuracy requires the calculation of the relative accuracy of the topographic map.

现有地形图相对精度需要通过要素特征的空间相对位置计算得出,这种计算方式效率低,且由于需要的人力物力比较多,因而成本较高,因此,如何减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率,成为了本领域亟待解决的问题。The relative accuracy of the existing topographic map needs to be calculated by the relative spatial position of the feature features. This calculation method is inefficient, and because it requires a lot of manpower and material resources, the cost is high. Therefore, how to reduce the cost of calculating the relative accuracy of the topographic map , improving the evaluation efficiency of the relative accuracy of topographic maps has become an urgent problem to be solved in this field.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请提供了一种地形图相对精度评估方法及装置、存储介质、计算机设备,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。In view of this, the present application provides a method and device, storage medium, and computer equipment for evaluating the relative accuracy of topographic maps, which can effectively reduce the cost of calculating relative accuracy of topographic maps and improve the efficiency of evaluating relative accuracy of topographic maps.

根据本申请的一个方面,提供了一种地形图相对精度评估方法,包括:According to an aspect of the present application, a method for evaluating the relative accuracy of a topographic map is provided, including:

获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;Acquire preset point set data corresponding to the target element, and calculate the slope sequence and curvature sequence corresponding to the preset point set, wherein the target element includes arc curve elements and/or curved river elements, and the preset point set includes a plurality of fold points, the preset point set data includes a plurality of fold point data;

基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;determining a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence;

确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。The relative accuracy of the target corresponding to the target arc point set is determined, and based on the relative accuracy of the target, the relative accuracy of the topographic map is determined.

可选地,所述计算预设点集对应的斜率序列以及曲率序列,具体包括:Optionally, the calculating the slope sequence and the curvature sequence corresponding to the preset point set specifically includes:

基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;Determine the slope sequence corresponding to the preset point set based on the fold point data of every two adjacent fold points in the preset point set data corresponding to the target element;

基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。Based on the vertex data of every three adjacent vertexes in the preset point set data corresponding to the target element, a target quadratic curve is fitted, and according to the target quadratic curve, it is determined that the preset point set corresponds to curvature sequence.

可选地,所述基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集,具体包括:Optionally, the determining the target arc point set corresponding to the target element based on the slope sequence and the curvature sequence specifically includes:

基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;Based on the empirical mode decomposition method, a curvature trend term is extracted from the curvature sequence, and the slope sequence is segmented based on the positive and negative values corresponding to the curvature trend term;

依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。According to the segmented slope sequence, the preset point set is screened to obtain a target arc point set corresponding to the target element.

可选地,所述依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集,具体包括:Optionally, according to the segmented slope sequence, the preset point set is screened to obtain the target arc point set corresponding to the target element, which specifically includes:

依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;According to the segmented slope sequence, determine whether the segmented slope sequence is monotonic;

当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;When it is monotonic, the preset point set data is fitted based on the preset exponential function to obtain a first fitting result, and the corresponding first coefficient of determination and the first fitting are calculated according to the first fitting result accuracy, and when the first determination coefficient is greater than the first preset coefficient threshold, and the first fitting accuracy is greater than the first preset accuracy threshold, the preset point set is retained, and the retained preset The point set is used as the target arc point set, otherwise, the preset point set is discarded;

当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。When there is no monotonicity, the preset point set data is fitted based on a preset inverse proportional function to obtain a second fitting result, and a corresponding second coefficient of determination and a second fitting result are calculated according to the second fitting result. and when the second determination coefficient is greater than the second preset coefficient threshold and the second fitting accuracy is greater than the second preset accuracy threshold, the preset point set is retained, and the retained preset Set the point set as the target arc point set, otherwise, divide the preset point set into two sub-point sets according to monotonicity, and perform fitting respectively according to the preset exponential function to obtain a third fitting result, According to the third fitting result, the corresponding third determination coefficient and the third fitting accuracy are calculated respectively, and when the third determination coefficient is greater than the first preset coefficient threshold, and the third fitting accuracy is greater than When the first preset accuracy threshold is used, the corresponding sub-point set is reserved, and the reserved sub-point set is used as the target arc point set. When the third determination coefficient is smaller than the first preset When the coefficient threshold and/or the third fitting precision is smaller than the first preset precision threshold, the corresponding sub-point set is discarded.

可选地,所述确定所述目标要素对应的目标圆弧点集之后,所述方法还包括:Optionally, after determining the target arc point set corresponding to the target element, the method further includes:

基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;Based on the least squares method, circle fitting is performed on the target circular arc point set to obtain a first circular curve corresponding to the target circular arc point set, and a first radius corresponding to the first circular curve and a target circle center are determined;

依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;According to a preset culling condition, culling the vertices that satisfy the preset culling condition in the target arc point set to obtain a first arc point set;

对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;Reusing the least squares method for circle fitting on the first arc point set to obtain a second circular curve, and determining a second radius corresponding to the second circular curve;

依据所述第一半径以及所述第二半径确定半径变化率;determining a radius change rate according to the first radius and the second radius;

当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;When the radius change rate is less than or equal to the preset change rate threshold, the first circular arc point set is used as the specified circular arc point set, the second circular curve is used as the specified circular curve, and based on the specified circular arc Calculate the relative accuracy of the target with the point set and the specified circular curve;

当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。When the radius change rate is greater than the preset change rate threshold, according to the preset culling condition again, culling the vertices that satisfy the preset culling condition from the set of first arc points, to obtain a second arc point set, and perform circle fitting again to obtain a third circular curve, determine the third radius corresponding to the third circular curve, and determine the radius change rate according to the second radius and the third radius, until The radius change rate is less than or equal to the preset change rate threshold.

可选地,所述依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,具体包括:Optionally, according to preset culling conditions, culling the vertices that satisfy the preset culling conditions in the target arc point set, specifically includes:

依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,According to the preset culling conditions, respectively connect the three adjacent vertices of the head end and the three adjacent vertices of the end of the target arc point set, and obtain the connection angle of the head end and the connection angle of the end, when the connection angle is less than When the first preset angle threshold is greater than or equal to the flat angle, the end point corresponding to the connection angle is eliminated, wherein the connection angle is an angle on one side of the target circle center; and/or,

依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,According to the preset culling conditions, respectively connect two adjacent vertices at the head end and two adjacent vertices at the end of the target arc point set to obtain a corresponding first line segment, and determine any one of the first line segments The first mid-perpendicular line of the For the second line segment corresponding to the line segment, determine the second mid-perpendicular line of the second line segment, and determine the included angle of the target vertical line based on the first mid-perpendicular line and the second mid-perpendicular line. When the target vertical line is When the included angle of the line is greater than the second preset angle threshold, remove the endpoints from the two vertices; and/or,

依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset culling conditions, respectively connect the three adjacent vertices at the head end and the three adjacent vertices at the end of the target arc point set to obtain the target connection line segment, when any of the three adjacent vertices corresponds to When the sum of the target connecting line segments is greater than or equal to the preset length threshold, the end points corresponding to the target arc point set in the adjacent three fold points are eliminated.

可选地,所述基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度,具体包括:Optionally, the calculating the relative accuracy of the target based on the specified arc point set and the specified circular curve specifically includes:

基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;Based on the specified arc point set, determine the length of the line segment corresponding to every two adjacent vertices in the specified arc point set, and obtain the total target length;

基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;Based on the specified circular curve, determine the target arc length corresponding to the specified circular curve;

依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。The relative accuracy of the target is determined according to the total length of the target and the length of the target arc.

根据本申请的另一方面,提供了一种地形图相对精度评估装置,包括:According to another aspect of the present application, a device for evaluating the relative accuracy of topographic maps is provided, comprising:

点集计算模块,用于获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;A point set calculation module, configured to obtain preset point set data corresponding to target elements, and calculate slope sequences and curvature sequences corresponding to the preset point sets, wherein the target elements include arc curve elements and/or curved river channel elements, The preset point set includes a plurality of fold points, and the preset point set data includes a plurality of fold point data;

点集确定模块,用于基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;a point set determination module, configured to determine a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence;

精度确定模块,用于确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。The accuracy determination module is configured to determine the relative accuracy of the target corresponding to the target arc point set, and determine the relative accuracy of the topographic map based on the relative accuracy of the target.

可选地,所述点集计算模块,具体包括:Optionally, the point set calculation module specifically includes:

斜率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;a slope sequence determination unit, configured to determine a slope sequence corresponding to the preset point set based on the fold point data of every two adjacent fold points in the preset point set data corresponding to the target element;

曲率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。A curvature sequence determination unit, configured to fit a target quadratic curve based on the vertex data of every three adjacent vertex points in the preset point set data corresponding to the target element, and determine the target quadratic curve according to the target quadratic curve The curvature sequence corresponding to the preset point set.

可选地,所述点集确定模块,具体包括:Optionally, the point set determination module specifically includes:

分段单元,用于基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;a segmentation unit, configured to extract a curvature trend item from the curvature sequence based on the empirical mode decomposition method, and segment the slope sequence based on the positive and negative values corresponding to the curvature trend item;

筛选单元,用于依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。A screening unit, configured to screen the preset point set according to the segmented slope sequence to obtain a target arc point set corresponding to the target element.

可选地,所述筛选单元,具体用于:Optionally, the screening unit is specifically used for:

依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。According to the segmented slope sequence, determine whether the segmented slope sequence is monotonic; if it is monotonic, fit the preset point set data based on a preset exponential function to obtain the first the fitting result, according to the first fitting result to calculate the corresponding first determination coefficient and the first fitting accuracy, and when the first determination coefficient is greater than the first preset coefficient threshold, and the first fitting accuracy When it is greater than the first preset precision threshold, the preset point set is reserved, and the reserved preset point set is used as the target arc point set, otherwise, the preset point set is discarded; when it is not monotonic, Fit the preset point set data based on a preset inverse proportional function to obtain a second fitting result, calculate a corresponding second coefficient of determination and a second fitting accuracy according to the second fitting result, and calculate when the When the second determination coefficient is greater than the second preset coefficient threshold, and the second fitting accuracy is greater than the second preset accuracy threshold, the preset point set is reserved, and the reserved preset point set is used as the target Arc point set, otherwise, divide the preset point set into two sub-point sets according to monotonicity, and perform fitting respectively according to the preset exponential function to obtain a third fitting result, according to the third fitting As a result, the corresponding third determination coefficient and third fitting accuracy are calculated respectively, and when the third determination coefficient is greater than the first preset coefficient threshold, and the third fitting accuracy is greater than the first preset accuracy When the threshold is set, the corresponding sub-point set is reserved, and the reserved sub-point set is used as the target arc point set, and when the third determination coefficient is smaller than the first preset coefficient threshold and/or the When the third fitting accuracy is smaller than the first preset accuracy threshold, the corresponding sub-point set is discarded.

可选地,所述装置还包括:Optionally, the device further includes:

圆拟合模块,用于所述确定所述目标要素对应的目标圆弧点集之后,基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;A circle fitting module is used to perform circle fitting on the target circular arc point set based on the least squares method after the target circular arc point set corresponding to the target element is determined to obtain the corresponding target circular arc point set the first circular curve, and determine the first radius corresponding to the first circular curve and the target center;

剔除模块,用于依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;a culling module, used for culling the vertices that satisfy the preset culling conditions in the target arc point set according to the preset culling conditions, to obtain a first arc point set;

所述圆拟合模块,还用于对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;The circle fitting module is further configured to re-use the least squares method to perform circle fitting on the first circular arc point set to obtain a second circular curve, and determine a second radius corresponding to the second circular curve ;

变化率确定模块,用于依据所述第一半径以及所述第二半径确定半径变化率;a change rate determination module, configured to determine a radius change rate according to the first radius and the second radius;

判断模块,用于当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。The judgment module is configured to use the first circular arc point set as the designated circular arc point set and the second circular curve as the specified circular curve when the radius change rate is less than or equal to the preset change rate threshold value, based on The target relative accuracy is calculated from the specified arc point set and the specified circular curve; when the radius change rate is greater than the preset change rate threshold, the first The vertices that satisfy the preset elimination conditions are eliminated from the arc point set to obtain a second arc point set, and circle fitting is performed again to obtain a third circular curve, and the third radius corresponding to the third circular curve is determined, The radius change rate is determined according to the second radius and the third radius until the radius change rate is less than or equal to the preset change rate threshold.

可选地,所述剔除模块,具体用于:Optionally, the culling module is specifically used for:

依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset culling conditions, respectively connect the three adjacent vertices of the head end and the three adjacent vertices of the end of the target arc point set, and obtain the connection angle of the head end and the connection angle of the end, when the connection angle is less than When the first preset angle threshold is greater than or equal to the flat angle, the end point corresponding to the connection angle is eliminated, wherein the connection angle is the angle on one side of the target circle center; and/or, according to the preset elimination condition, the connection angle is respectively Two adjacent vertices at the head end and two adjacent vertices at the end of the target arc point set, obtain the corresponding first line segment, determine the first mid-perpendicular line of any of the first line segments, and respectively Determine the two closest points of the two vertices corresponding to the first line segment on the first circular curve, connect the two closest points to obtain a second line segment corresponding to the first line segment, and determine The second vertical line of the second line segment, based on the first vertical line and the second vertical line, determine the target vertical line angle, when the target vertical line angle is greater than the second preset angle When the threshold value is reached, the endpoints in the consecutive vertices are removed; and/or, according to the preset culling conditions, respectively connect the three adjacent vertices at the head end and the three adjacent folds at the end of the target arc point set. point to obtain the target connecting line segment, and when the sum of the target connecting line segments corresponding to any of the three adjacent vertices is greater than or equal to the preset length threshold, compare the three adjacent vertices with the target arc The endpoints corresponding to the point set are culled.

可选地,所述判断模块,还用于:Optionally, the judging module is also used for:

基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。Based on the specified arc point set, determine the length of the line segment corresponding to every two adjacent vertices in the specified arc point set, and obtain the total length of the target; based on the specified circular curve, determine the target corresponding to the specified circular curve The arc length; the relative accuracy of the target is determined according to the total length of the target and the length of the target arc.

依据本申请又一个方面,提供了一种存储介质,其上存储有计算机程序,所述程序被处理器执行时实现上述地形图相对精度评估方法。According to yet another aspect of the present application, a storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the above-mentioned method for evaluating the relative accuracy of a topographic map is implemented.

依据本申请再一个方面,提供了一种计算机设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述地形图相对精度评估方法。According to another aspect of the present application, a computer device is provided, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implements the above-mentioned topographic map when executing the program. Relative Accuracy Assessment Methods.

借由上述技术方案,本申请提供的一种地形图相对精度评估方法及装置、存储介质、计算机设备,首先,获取目标要素对应的预设点集数据,并以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。接着,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。本申请可以根据获取的目标要素对应的预设点集数据,自动计算地形图的相对精度,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。With the above technical solutions, the present application provides a method and device for evaluating the relative accuracy of topographic maps, a storage medium, and a computer device. First, the preset point set data corresponding to the target element is obtained, and the obtained preset point set data is Basically, calculate the slope sequence and curvature sequence corresponding to each preset point set. Next, the target arc point set corresponding to the target element may be determined based on the slope sequence and the curvature sequence. Specifically, a part of the preset point set may be removed from the acquired preset point set according to the slope sequence and the curvature sequence, and the last remaining preset point set is the target arc point set. After the target arc point set is determined, the relative accuracy of the target corresponding to the target arc point set can be further determined according to the target arc point set, and then the relative accuracy of the topographic map can be determined according to the relative accuracy of the target. The present application can automatically calculate the relative accuracy of the topographic map according to the acquired preset point set data corresponding to the target element, which can effectively reduce the cost of calculating the relative accuracy of the topographic map and improve the evaluation efficiency of the relative accuracy of the topographic map.

上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description, and in order to make the above-mentioned and other purposes, features and advantages of the present application more obvious and easy to understand , and the specific embodiments of the present application are listed below.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:

图1示出了本申请实施例提供的一种地形图相对精度评估方法的流程示意图;1 shows a schematic flowchart of a method for evaluating the relative accuracy of a topographic map provided by an embodiment of the present application;

图2示出了本申请实施例提供的一种精化目标圆弧点集两端离散点的示意图;2 shows a schematic diagram of discrete points at both ends of a refined target arc point set provided by an embodiment of the present application;

图3示出了本申请实施例提供的另一种精化目标圆弧点集两端离散点的示意图;3 shows a schematic diagram of the discrete points at both ends of another refinement target arc point set provided by an embodiment of the present application;

图4示出了本申请实施例提供的另一种精化目标圆弧点集两端离散点的示意图;FIG. 4 shows another schematic diagram of the discrete points at both ends of the refined target arc point set provided by an embodiment of the present application;

图5示出了本申请实施例提供的一种地形图相对精度评估装置的结构示意图。FIG. 5 shows a schematic structural diagram of an apparatus for evaluating relative accuracy of a topographic map provided by an embodiment of the present application.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present application will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.

在本实施例中提供了一种地形图相对精度评估方法,如图1所示,该方法包括:In this embodiment, a method for evaluating the relative accuracy of topographic maps is provided, as shown in FIG. 1 , the method includes:

步骤101,获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;Step 101: Acquire preset point set data corresponding to target elements, and calculate slope sequences and curvature sequences corresponding to the preset point sets, wherein the target elements include arc curve elements and/or curved river elements, and the preset The point set includes a plurality of fold points, and the preset point set data includes a plurality of fold point data;

本申请提供的地形图相对精度评估方法,具体可以应用于客户端一侧,也可以应用于服务器一侧。对于地形图来说,相对精度评估对于保证地形图上的基础地理信息质量是非常重要的。地形图中的道路要素基本是由直线和曲线组成,其中,曲线主要由圆曲线组成,可认为道路要素中必然存在圆弧特征,与圆弧特征对应的道路要素有圆弧弯道要素、弯曲河道要素等。本申请主要针对地形图中具有圆弧特征的道路要素进行相对精度的计算。本申请可以将圆弧弯道要素、弯曲河道要素作为目标要素。首先,可以调用预设地形图工具箱将预设地形图数据转换为目标要素对应的预设点集数据。在这里,预设地形图数据可以是shp格式的数据,预设地形图工具箱可以是Python geopandas库,调用Python geopandas库可以将shp格式的数据转换为预设点集数据,其中预设点集中可以包括多个折点,预设点集数据中包括多个折点数据,折点数据可以是带有坐标的数据。接着,以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。地形图中可以包括多个预设点集,每个预设点集对应一组预设点集数据,因而可以获取多个预设点集数据,进而计算得到多个斜率序列和曲率序列,每个斜率序列和曲率序列与一个预设点集对应。The method for evaluating the relative accuracy of a topographic map provided in this application can be specifically applied to the client side or the server side. For topographic maps, relative accuracy assessment is very important to ensure the quality of the underlying geographic information on topographic maps. The road elements in the topographic map are basically composed of straight lines and curves. Among them, the curves are mainly composed of circular curves. It can be considered that there must be circular arc features in the road elements. The road elements corresponding to the circular arc features include circular arc curve elements, curved river elements, etc. This application mainly calculates the relative accuracy of road elements with arc features in topographic maps. In this application, arc curve elements and curved river elements can be used as target elements. First, you can call the preset topographic map toolbox to convert the preset topographic map data into the preset point set data corresponding to the target feature. Here, the preset topographic map data can be data in shp format, and the preset topographic map toolbox can be the Python geopandas library. Calling the Python geopandas library can convert the data in shp format into preset point set data, in which the preset point set It may include multiple vertices, the preset point set data includes multiple vertices, and the vertices may be data with coordinates. Next, based on the acquired preset point set data, a slope sequence and a curvature sequence corresponding to each preset point set are calculated. The topographic map can include multiple preset point sets, each preset point set corresponds to a set of preset point set data, so multiple preset point set data can be obtained, and then multiple slope sequences and curvature sequences can be calculated. The slope sequences and curvature sequences correspond to a preset point set.

步骤102,基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;Step 102, based on the slope sequence and the curvature sequence, determine the target arc point set corresponding to the target element;

在该实施例中,计算每个预设点集对应的斜率序列和曲率序列之后,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。In this embodiment, after calculating the slope sequence and curvature sequence corresponding to each preset point set, the target arc point set corresponding to the target element may be further determined based on the slope sequence and the curvature sequence. Specifically, a part of the preset point set may be removed from the acquired preset point set according to the slope sequence and the curvature sequence, and the last remaining preset point set is the target arc point set.

步骤103,确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。Step 103: Determine the relative accuracy of the target corresponding to the target arc point set, and determine the relative accuracy of the topographic map based on the relative accuracy of the target.

在该实施例中,确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。例如,某比例尺为1:100万的地形图,其设计精度为10m,可以根据目标相对精度确定哪些目标圆弧点集满足10m的设计精度,并进一步计算满足10m设计精度的目标圆弧点集在获取的全部圆弧点集中的占比,进而得到地形图中目标要素对应的相对精度。In this embodiment, after the target arc point set is determined, the relative accuracy of the target corresponding to the target arc point set can be further determined according to the target arc point set, and then the relative accuracy of the topographic map can be determined according to the relative accuracy of the target. For example, a topographic map with a scale of 1:1 million and a design accuracy of 10m can determine which target arc point sets meet the design accuracy of 10m according to the relative accuracy of the target, and further calculate the target arc point sets that meet the design accuracy of 10m The proportion in the set of all the obtained arc points, and then the relative accuracy corresponding to the target element in the topographic map is obtained.

通过应用本实施例的技术方案,首先,获取目标要素对应的预设点集数据,并以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。接着,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。本申请可以根据获取的目标要素对应的预设点集数据,自动计算地形图的相对精度,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。By applying the technical solution of this embodiment, first, the preset point set data corresponding to the target element is acquired, and based on the acquired preset point set data, the slope sequence and the curvature sequence corresponding to each preset point set are calculated. Next, the target arc point set corresponding to the target element may be determined based on the slope sequence and the curvature sequence. Specifically, a part of the preset point set may be removed from the acquired preset point set according to the slope sequence and the curvature sequence, and the last remaining preset point set is the target arc point set. After the target arc point set is determined, the relative accuracy of the target corresponding to the target arc point set can be further determined according to the target arc point set, and then the relative accuracy of the topographic map can be determined according to the relative accuracy of the target. The present application can automatically calculate the relative accuracy of the topographic map according to the acquired preset point set data corresponding to the target element, which can effectively reduce the cost of calculating the relative accuracy of the topographic map and improve the evaluation efficiency of the relative accuracy of the topographic map.

进一步的,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种地形图相对精度评估方法,该方法包括:Further, as a refinement and extension of the specific implementation manner of the above-mentioned embodiment, in order to fully describe the specific implementation process of this embodiment, another method for evaluating the relative accuracy of topographic maps is provided, and the method includes:

步骤201,获取目标要素对应的预设点集数据,基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列;Step 201: Acquire preset point set data corresponding to a target element, and determine a slope corresponding to the preset point set based on the fold point data of every two adjacent fold points in the preset point set data corresponding to the target element sequence; based on the vertex data of every three adjacent vertexes in the preset point set data corresponding to the target element, fit a target quadratic curve, and determine the preset point according to the target quadratic curve Set the corresponding curvature sequence;

在该实施例中,获取与目标要素对应的一组或多组预设点集数据,并分别计算每组预设点集数据对应的斜率序列和曲率序列。其中,斜率的计算方法为,分别根据预设点集数据中每两个相邻折点数据计算得到一个斜率,最终将这些斜率放在一起,得到斜率序列。例如,预设点集数据中包括5个折点数据,分别是a1(x1,y1),a2(x2,y2),a3(x3,y3),a4(x4,y4),a5(x5,y5),对于折点a1和折点a2,对应的斜率可以是h1=(y2-y1)/(x2-x1)、h2=(y3-y2)/(x3-x2)、h3=(y4-y3)/(x4-x3)以及h4=(y5-y4)/(x5-x4),最后的斜率序列可以是[h1,h2,h3,h4]。而曲率的计算方法为,分别根据预设点集数据中每三个相邻折点数据,拟合出一个目标二次曲线,进而根据这个目标二次曲线,计算得到一个对应的曲率,最终将这些曲率放在一起,得到曲率序列。例如,对于预设点集中的相邻三个折点,设有参数t满足二次曲线,则参数方程为:In this embodiment, one or more sets of preset point set data corresponding to the target element are acquired, and the slope sequence and curvature sequence corresponding to each set of preset point set data are calculated respectively. Wherein, the calculation method of the slope is to calculate a slope according to the data of each two adjacent inflection points in the preset point set data, and finally put these slopes together to obtain a slope sequence. For example, the preset point set data includes 5 vertex data, which are a 1 (x 1 , y 1 ), a 2 (x 2 , y 2 ), a 3 (x 3 , y 3 ), a 4 ( x 4 , y 4 ), a 5 (x 5 , y 5 ), for the inflection point a 1 and the inflection point a 2 , the corresponding slope can be h 1 =(y 2 -y 1 )/(x 2 -x 1 ), h 2 =(y 3 -y 2 )/(x 3 -x 2 ), h 3 =(y 4 -y 3 )/(x 4 -x 3 ), and h 4 =(y 5 -y 4 ) /(x 5 -x 4 ), the final slope sequence can be [h 1 , h 2 , h 3 , h 4 ]. The calculation method of the curvature is to fit a target quadratic curve according to the data of every three adjacent inflection points in the preset point set data, and then calculate a corresponding curvature according to the target quadratic curve, and finally These curvatures are put together to get a sequence of curvatures. For example, for the adjacent three vertices in the preset point set, if the parameter t satisfies the quadratic curve, the parameter equation is:

Figure BDA0003408320060000111
Figure BDA0003408320060000111

上式(1)中,具有6个未知量(α123)以及(β123),其中,对于相邻三个折点一共具有6个折点坐标已知量,分别为(x1,x2,x3)以及(y1,y2,y3),因而可以根据这6个折点坐标已知量列出三组方程,进而求解出(α123)以及(β123)6个未知量。首先通过三点构成的两段直线求得取值范围有:In the above formula (1), there are 6 unknown quantities (α 1 , α 2 , α 3 ) and (β 1 , β 2 , β 3 ), among which, there are a total of 6 breakpoint coordinates for the three adjacent breakpoints The known quantities are (x 1 , x 2 , x 3 ) and (y 1 , y 2 , y 3 ), respectively, so three sets of equations can be listed according to the known coordinates of these six breakpoints, and then solved ( α 1 , α 2 , α 3 ) and (β 1 , β 2 , β 3 ) are six unknowns. First, the range of values obtained by two straight lines formed by three points is as follows:

Figure BDA0003408320060000112
Figure BDA0003408320060000112

参数方程中的t应满足的条件为:The conditions that t in the parametric equation should satisfy are:

Figure BDA0003408320060000121
Figure BDA0003408320060000121

则有:Then there are:

Figure BDA0003408320060000122
Figure BDA0003408320060000122

Figure BDA0003408320060000123
Figure BDA0003408320060000123

求解则有曲率k为:The solution then has the curvature k as:

Figure BDA0003408320060000124
Figure BDA0003408320060000124

根据公式(6)以及每相邻三个折点数据求解得出的(α123)以及(β123),可以得出对应的曲率k。最后将曲率k放在一起,得到曲率序列。According to formula (6) and (α 1 , α 2 , α 3 ) and (β 1 , β 2 , β 3 ) obtained by solving the data of every three adjacent inflection points, the corresponding curvature k can be obtained. Finally put the curvature k together to get the curvature sequence.

步骤202,基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集;Step 202, extracting a curvature trend item from the curvature sequence based on the empirical mode decomposition method, and segmenting the slope sequence based on the positive and negative values corresponding to the curvature trend item; according to the segmented slope sequence, screening the preset point set to obtain the target arc point set corresponding to the target element;

在该实施例中,计算得到每组预设点集对应的斜率序列以及曲率序列后,由于本申请的曲率是通过一系列离散的折点计算出来的,因此可能会出现异常曲率值,导致曲率的趋势项被异常值“淹没”。为了获取曲率趋势项,且判断折点构成的基本特征(圆弧),本申请利用经验模态分解(empirical mode decomposition,EMD)将非线性的曲率序列由高频到低频分解并转换成多个互异、非正弦的多尺度信号分量,即固有模态函数(intrinsicmode function,IMF)。该算法能够保留较多的可用趋势信息。EMD核心在于基于三次样条插值获取上下包络线,最终构成IMF过程。设有信号χ(t),由多尺度分量表示为:In this embodiment, after the slope sequence and curvature sequence corresponding to each preset point set are calculated and obtained, since the curvature of the present application is calculated through a series of discrete inflection points, abnormal curvature values may occur, resulting in curvature The trend term for is "overwhelmed" by outliers. In order to obtain the curvature trend term and determine the basic features (arcs) formed by the fold points, the present application uses empirical mode decomposition (EMD) to decompose the nonlinear curvature sequence from high frequency to low frequency and convert it into multiple Different, non-sinusoidal multi-scale signal components, namely intrinsic mode function (intrinsic mode function, IMF). The algorithm is able to retain more available trend information. The core of EMD is to obtain the upper and lower envelopes based on cubic spline interpolation, and finally constitute the IMF process. Given the signal χ(t), represented by the multiscale components as:

Figure BDA0003408320060000131
Figure BDA0003408320060000131

其中,rn(t)表示为第n个分量,即残差分量。而对于分解的首要步骤为计算包络线的均值:Among them, r n (t) is represented as the nth component, that is, the residual component. And the first step for decomposition is to calculate the mean of the envelope:

Figure BDA0003408320060000132
Figure BDA0003408320060000132

式中,χa(t)为包络线的均值;χu(t)和χd(t)分别为上下包络线。In the formula, χ a (t) is the mean value of the envelope; χ u (t) and χ d (t) are the upper and lower envelopes, respectively.

IMF(t)=χ(t)-χa(t) (9)IMF(t)=χ(t)-χ a (t) (9)

IMF(t)需要满足均值为0的条件,若满足即为IMF分量,否则重新计算包络线,直至条件满足。当仅存单调分量时,即认为信号分解完毕,此时有:IMF(t) needs to satisfy the condition that the mean value is 0, if it is satisfied, it is the IMF component, otherwise the envelope is recalculated until the condition is satisfied. When there are only monotonic components, the signal is considered to be decomposed. At this time, there are:

rn(t)=χ(t)-IMFi(t) (10)r n (t)=χ(t)-IMF i (t) (10)

此时,即可得到提取的曲率趋势项,得到曲率趋势项后,曲率趋势项可以有正值,也可以有负值,对于一整段正值,可以将对应的斜率序列分为一段,对于一整段负值,同样可以将对应的斜率序列分为一段,根据曲率趋势项的正负值对斜率序列进行分段后,可以得到对应的多个斜率序列分段。得到分段的斜率序列后,可以分别根据每段斜率序列判断预设点集是否需要被舍弃,即对预设点集进行筛选,从预设点集中舍弃不满足要求的预设点集,从而得到目标圆弧点集。At this point, the extracted curvature trend item can be obtained. After the curvature trend item is obtained, the curvature trend item can have a positive value or a negative value. For a whole segment of positive values, the corresponding slope sequence can be divided into one segment. For For a whole segment of negative values, the corresponding slope sequence can also be divided into one segment. After segmenting the slope sequence according to the positive and negative values of the curvature trend item, multiple corresponding segments of the slope sequence can be obtained. After the segmented slope sequence is obtained, it can be determined whether the preset point set needs to be discarded according to each segment of the slope sequence, that is, the preset point set is screened, and the preset point set that does not meet the requirements is discarded from the preset point set, thereby Get the target arc point set.

步骤203,基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;Step 203, based on the least squares method, perform circular fitting on the target arc point set, obtain a first circular curve corresponding to the target circular arc point set, and determine the first radius corresponding to the first circular curve and target center;

在该实施例中,得到目标圆弧点集后,可以对每一组目标圆弧点集利用最小二乘法进行圆拟合,经过拟合后可以得到与该目标圆弧点集对应的第一圆曲线,接着,根据第一圆曲线计算对应的第一半径,并确定第一圆曲线对应的目标圆心。In this embodiment, after the target arc point set is obtained, the least squares method can be used to perform circle fitting on each group of target arc point sets, and after fitting, the first arc point set corresponding to the target arc point set can be obtained. circular curve, and then calculate the corresponding first radius according to the first circular curve, and determine the target circle center corresponding to the first circular curve.

步骤204,依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;Step 204, according to the preset culling conditions, culling the vertices that satisfy the preset culling conditions in the target arc point set, to obtain a first arc point set;

在该实施例中,得到第一圆曲线后,还可以根据预设剔除条件,进一步剔除目标圆弧点集中满足预设剔除条件的折点,剔除后得到第一圆弧点集。In this embodiment, after the first circular curve is obtained, according to the preset culling conditions, the vertices that satisfy the preset culling conditions can be further culled from the target arc point set, and the first arc point set can be obtained after culling.

步骤205,对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;Step 205, reusing the least squares method to perform circle fitting on the first circular arc point set to obtain a second circular curve, and determining a second radius corresponding to the second circular curve;

在该实施例中,由于第一圆弧点集和目标圆弧点集中包含的折点不同,因而得到第一圆弧点集后,可以再次利用最小二乘法对第一圆弧点集进行圆拟合,得到与第一圆弧点集对应的第二圆曲线,同时计算第二圆曲线相对应的第二半径。In this embodiment, since the vertices contained in the first arc point set and the target arc point set are different, after the first arc point set is obtained, the first arc point set can be rounded by using the least squares method again. After fitting, a second circular curve corresponding to the first circular arc point set is obtained, and a second radius corresponding to the second circular curve is calculated at the same time.

步骤206,依据所述第一半径以及所述第二半径确定半径变化率;Step 206, determining a radius change rate according to the first radius and the second radius;

在该实施例中,确定第一圆曲线对应的第一半径,以及第二圆曲线对应的第二半径后,可以以第一半径和第二半径为基础,确定对应的半径变化率。In this embodiment, after determining the first radius corresponding to the first circular curve and the second radius corresponding to the second circular curve, the corresponding radius change rate may be determined based on the first radius and the second radius.

步骤207,当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;Step 207, when the radius change rate is less than or equal to a preset change rate threshold, use the first arc point set as a specified arc point set, and use the second circular curve as a specified circular curve, based on the Calculate the relative accuracy of the target by specifying the arc point set and the specified circular curve;

在该实施例中,如果第一半径与第二半径对应的半径变化率小于或等于预设变化率阈值时,说明圆曲线的拟合程度已经较好,不需要继续进行拟合,此时可以将第一圆弧点集直接作为指定圆弧点集,与此同时可以将第二圆曲线直接作为指定圆曲线,接着以指点圆弧点集和指定圆曲线为基础,计算对应的目标相对精度。In this embodiment, if the rate of change of the radius corresponding to the first radius and the second radius is less than or equal to the preset rate of change threshold, it means that the fitting degree of the circular curve is already good, and it is not necessary to continue fitting. The first arc point set is directly used as the specified arc point set, and the second circular curve can be directly used as the specified circular curve, and then the corresponding target relative accuracy is calculated based on the pointing arc point set and the specified circular curve .

在这里,也可以通过其他条件判断圆拟合的程度。例如,预先设定迭代次数,当重复进行圆拟合操作达到预设次数阈值时,则停止进行圆拟合,并将最后一次拟合得到的圆曲线作为指定圆曲线。此外,还可以通过判断每次圆拟合的圆曲线对应的圆心变化情况,确定是否停止圆拟合操作,例如,当圆心位置变化率小于预设位置阈值时,停止进行圆拟合,并将最后一次拟合得到的圆曲线作为指定圆曲线。Here, the degree of circle fitting can also be judged by other conditions. For example, the number of iterations is preset, and when the circle fitting operation is repeated to reach the preset number of times threshold, the circle fitting is stopped, and the circle curve obtained by the last fitting is used as the specified circle curve. In addition, it is also possible to determine whether to stop the circle fitting operation by judging the change of the circle center corresponding to the circle curve of each circle fitting. The circular curve obtained by the last fitting is used as the specified circular curve.

可选地,所述“基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度”,具体包括:基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。Optionally, the "calculating the relative accuracy of the target based on the specified arc point set and the specified circular curve" specifically includes: based on the specified arc point set, determining each The lengths of the line segments corresponding to the adjacent two vertices are obtained to obtain the total target length; based on the specified circular curve, the target arc length corresponding to the specified circular curve is determined; according to the total target length and the target arc length, The target relative accuracy is determined.

在该实施例中,确定了指定圆弧点集后,可以以指定圆弧点集为基础,确定该指定圆弧点集中每相邻两个折点对应的线段长度,例如,指定圆弧点集中可以包括5个折点,分别是折点1至折点5,分别连接折点1和折点2、折点2和折点3、折点3和折点4、折点4和折点5,可以得到4段对应的线段,之后将这4段线段的长度相加,可以得到目标总长度。此外,还可以计算指定圆曲线对应的目标圆弧长度,最后根据计算得到的目标总长度和目标圆弧长度,确定目标相对精度。具体地,假设目标总长度为L,目标圆弧长度为L,那么目标相对精度可以是(L-L)/LIn this embodiment, after the designated arc point set is determined, the length of the line segment corresponding to every two adjacent vertices in the designated arc point set may be determined based on the designated arc point set, for example, the designated arc point The set can include 5 vertices, namely vertices 1 to 5, which connect vertices 1 and 2, 2 and 3, 3 and 4, and 4 and 4 respectively. 5. The line segments corresponding to 4 segments can be obtained, and then the lengths of these 4 segments can be added to obtain the total length of the target. In addition, the target arc length corresponding to the specified circular curve can also be calculated, and finally the relative accuracy of the target can be determined according to the calculated total target length and target arc length. Specifically, assuming that the total length of the target is L total and the length of the target arc is L arc , then the relative accuracy of the target may be (L arc - L total )/L total .

步骤208,当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值;Step 208, when the radius change rate is greater than the preset change rate threshold, according to the preset rejection condition again, remove the vertices that satisfy the preset rejection condition from the set of first arc points, Obtain a second arc point set, and perform circle fitting again to obtain a third circular curve, determine the third radius corresponding to the third circular curve, and determine the radius change according to the second radius and the third radius rate until the radius change rate is less than or equal to the preset change rate threshold;

在该实施例中,如果第一半径与第二半径对应的半径变化率大于预设变化率阈值时,说明圆曲线的拟合程度还不理想,还需要继续进行拟合,那么此时可以按照预设剔除条件,剔除第一圆弧点集中满足预设剔除条件的折点,进而得到第二圆弧点集。接着,以第二圆弧点集为基础,同样利用最小二乘法进行圆拟合,得到第三圆曲线,并计算第三圆曲线对应的第三半径。得到第三半径后,可以根据第三半径和第二半径,计算本次拟合的半径变化率,确定第三半径的变化大小。如果本次半径变化率小于或等于预设变化率阈值时,那么可以将第二圆弧点集作为指定圆弧点集,将第三圆曲线作为指定圆曲线,进而计算目标相对精度;当本次半径变化率大于预设变化率阈值时,继续上面的操作,直到半径变化率小于或等于预设变化率时结束。In this embodiment, if the rate of change of the radius corresponding to the first radius and the second radius is greater than the preset rate of change threshold, it indicates that the fitting degree of the circular curve is not ideal, and the fitting needs to be continued. Preset culling conditions, culling the vertices that satisfy the preset culling conditions in the first arc point set, and then obtain the second arc point set. Next, based on the second arc point set, circle fitting is also performed by using the least square method to obtain a third circular curve, and a third radius corresponding to the third circular curve is calculated. After the third radius is obtained, the change rate of the radius of this fitting can be calculated according to the third radius and the second radius, and the change size of the third radius can be determined. If the current radius change rate is less than or equal to the preset change rate threshold, the second arc point set can be used as the specified arc point set, and the third circular curve can be used as the specified circular curve, and then the target relative accuracy can be calculated; When the secondary radius change rate is greater than the preset change rate threshold, continue the above operations until the radius change rate is less than or equal to the preset change rate.

步骤209,基于所述目标相对精度,确定地形图的相对精度。Step 209, based on the relative accuracy of the target, determine the relative accuracy of the topographic map.

在该实施例中,得到目标相对精度后,可以进一步根据目标相对精度确定地形图的相对精度。此外,还可以根据特征分布状态和节点密度确定地形图的相对精度。其中,特征分布状态,通过将满足地形图设计精度的要素重新映射到地形图中,观察分布状态,建立要素分布与基础地理信息图幅的空间映射关系,分析要素分布的局部特征;节点密度,计算每个要素的折点数量及其相邻两点距离总和的比率,即每个要素单位距离内的折点数量,这里折点数量指的是预设点集中折点的数量。In this embodiment, after the relative accuracy of the target is obtained, the relative accuracy of the topographic map can be further determined according to the relative accuracy of the target. In addition, the relative accuracy of the topographic map can be determined based on the feature distribution state and node density. Among them, for the feature distribution state, by remapping the elements that meet the design accuracy of the topographic map to the topographic map, observe the distribution state, establish the spatial mapping relationship between the distribution of the elements and the basic geographic information map, and analyze the local characteristics of the distribution of the elements; node density, Calculate the ratio of the number of vertices of each feature and the sum of the distance between two adjacent points, that is, the number of vertices within the unit distance of each feature, where the number of vertices refers to the number of vertices in the preset point set.

本申请实施例中,可选地,步骤202中所述“依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集”,具体包括:依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。In the embodiment of the present application, optionally, in step 202, "screen the preset point set according to the segmented slope sequence to obtain the target arc point set corresponding to the target element", Specifically, it includes: according to the segmented slope sequence, judging whether the segmented slope sequence is monotonic; if it is monotonic, fitting the preset point set data based on a preset exponential function, Obtain a first fitting result, calculate a corresponding first coefficient of determination and a first fitting accuracy according to the first fitting result, and when the first coefficient of determination is greater than a first preset coefficient threshold, and the first When the fitting accuracy is greater than the first preset accuracy threshold, the preset point set is retained, and the retained preset point set is used as the target arc point set, otherwise, the preset point set is discarded; when there is no monotonicity When the performance is correct, fit the preset point set data based on the preset inverse proportional function to obtain a second fitting result, calculate the corresponding second coefficient of determination and the second fitting accuracy according to the second fitting result, and When the second determination coefficient is greater than a second preset coefficient threshold, and the second fitting accuracy is greater than a second preset accuracy threshold, the preset point set is reserved, and the reserved preset point set is used as The target arc point set, otherwise, divide the preset point set into two sub-point sets according to monotonicity, and perform fitting according to the preset exponential function respectively to obtain a third fitting result, which is based on the third fitting result. The corresponding third determination coefficient and third fitting accuracy are calculated respectively for the three fitting results, and when the third determination coefficient is greater than the first preset coefficient threshold, and the third fitting accuracy is greater than the first When the accuracy threshold is preset, the corresponding sub-point set is reserved, and the reserved sub-point set is used as the target arc point set, when the third determination coefficient is smaller than the first preset coefficient threshold and/ Or when the third fitting accuracy is smaller than the first preset accuracy threshold, the corresponding sub-point set is discarded.

在该实施例中,当利用曲率趋势项对斜率序列进行分段后,可以进一步根据分段后的斜率序列,分别判断每一段斜率序列是否有单调性。例如,如果曲率趋势项将与曲率序列对应的斜率序列分成四段后,那么可以分别判断这四段斜率序列是否具备单调性。当存在单调性时,可以利用预设指数函数对获取的预设点集进行拟合,并得到与预设点集对应的第一拟合结果,进一步,可以根据第一拟合结果和预设点集计算对应的第一决定系数和第一拟合精度。其中,预设指数函数可以为yfit=a*exp(b*x)+c,第一决定系数可以表示为R2,第一拟合精度可以表示为RMSE,第一决定系数可以通过下面的公式进行计算:In this embodiment, after the slope sequence is segmented by the curvature trend item, it can be further determined whether each segment of the slope sequence is monotonic according to the segmented slope sequence. For example, if the curvature trend term divides the slope sequence corresponding to the curvature sequence into four segments, it can be determined whether the four segments of the slope sequence are monotonic. When there is monotonicity, a preset exponential function can be used to fit the acquired preset point set, and a first fitting result corresponding to the preset point set can be obtained. Further, according to the first fitting result and the preset The point set calculates the corresponding first coefficient of determination and the first fitting accuracy. The preset exponential function may be y fit =a*exp(b*x)+c, the first coefficient of determination may be expressed as R 2 , the first fitting accuracy may be expressed as RMSE, and the first coefficient of determination may be expressed by the following Formula to calculate:

Figure BDA0003408320060000171
Figure BDA0003408320060000171

其中,SSres、SStot分别表示为残差平方和、总平方和,表示如下:Among them, SS res and SS tot are respectively expressed as residual sum of squares and total sum of squares, which are expressed as follows:

Figure BDA0003408320060000172
Figure BDA0003408320060000172

其中,n为预设点集中折点的数量,y为预设点集中折点对应的y坐标值,yfit为经过拟合后得到的y坐标值。显然,当残差平方和越小,拟合程度越好,即为第一决定系数R2越接近1,拟合程度越优。同样,第一拟合精度的公式如下:Among them, n is the number of vertices in the preset point set, y is the y coordinate value corresponding to the vertices in the preset point set, and y fit is the y coordinate value obtained after fitting. Obviously, the smaller the residual sum of squares is, the better the fitting degree is, that is, the closer the first coefficient of determination R 2 is to 1, the better the fitting degree is. Again, the formula for the first fit accuracy is as follows:

Figure BDA0003408320060000173
Figure BDA0003408320060000173

计算第一决定系数与第一拟合精度之后,进一步判断第一决定系数与第一预设系数阈值之间的关系,以及第一拟合精度与第一预设精度阈值之间的关系。当第一决定系数大于第一预设系数阈值,与此同时第一拟合精度大于第一预设精度阈值时,那么说明预设点集是圆弧点集,可以保留该预设点集,并将该预设点集作为目标圆弧点集。反之,说明预设点集不是圆弧点集,可以将其舍弃。After calculating the first determination coefficient and the first fitting accuracy, further determine the relationship between the first determination coefficient and the first preset coefficient threshold, and the relationship between the first fitting accuracy and the first preset accuracy threshold. When the first determination coefficient is greater than the first preset coefficient threshold, and at the same time the first fitting accuracy is greater than the first preset accuracy threshold, it means that the preset point set is an arc point set, and the preset point set can be retained, And use the preset point set as the target arc point set. On the contrary, it means that the preset point set is not an arc point set and can be discarded.

当不存在单调性时,可以验证预设点集是否属于双曲线,因而可以利用预设反比例函数对预设点集进行拟合,拟合之后可以得到第二拟合结果。进一步,可以根据第二拟合结果和预设点集通过公式(11)和公式(13)计算第二决定系数和第二拟合精度。其中,预设反比例函数可以是yfit=1/(a*x+b)。计算第二决定系数和第二拟合精度后,可以判断第二决定系数与第二预设系数阈值之间的关系,以及第二拟合精度与第二预设精度阈值之间的关系。如果第二决定系数大于第二预设系数阈值,与此同时第二拟合精度大于第二预设精度阈值时,那么说明预设点集是圆弧点集,可以保留该预设点集,并将该预设点集作为目标圆弧点集。反之,可以将预设点集进行进一步分段,分成两段有单调性的子点集,这样每段子点集具有单调性,之后将每段子点集按照预设指数函数进行拟合,拟合之后可以得到对应的第三拟合结果,并可以根据第三拟合结果分别计算第三决定系数和第三拟合精度,其中,每段子点集可以对应一个第三拟合系数和第三拟合精度。接着,将第三拟合系数与第一预设系数阈值进行比较,将第三拟合精度与第一预设精度阈值进行比较,当第三决定系数大于第一预设系数阈值,且第三拟合精度大于第一预设精度阈值时,那么说明对应的子点集是圆弧点集,可以保留该子点集,并将该子点集作为目标圆弧点集。反之,说明对应的子点集不是圆弧点集,可以将其舍弃。When there is no monotonicity, it can be verified whether the preset point set belongs to a hyperbola, so the preset inverse proportional function can be used to fit the preset point set, and a second fitting result can be obtained after fitting. Further, the second coefficient of determination and the second fitting precision may be calculated by formula (11) and formula (13) according to the second fitting result and the preset point set. The preset inverse proportional function may be y fit =1/(a*x+b). After the second determination coefficient and the second fitting accuracy are calculated, the relationship between the second determination coefficient and the second preset coefficient threshold, and the relationship between the second fitting accuracy and the second preset accuracy threshold can be determined. If the second determination coefficient is greater than the second preset coefficient threshold, and at the same time the second fitting accuracy is greater than the second preset accuracy threshold, then the preset point set is an arc point set, and the preset point set can be retained, And use the preset point set as the target arc point set. Conversely, the preset point set can be further divided into two sub-point sets with monotonicity, so that each sub-point set is monotonic, and then each sub-point set is fitted according to the preset exponential function, and the fitting Afterwards, the corresponding third fitting result can be obtained, and the third determination coefficient and the third fitting accuracy can be calculated according to the third fitting result, wherein each sub-point set can correspond to a third fitting coefficient and a third fitting accuracy. combined accuracy. Next, the third fitting coefficient is compared with the first preset coefficient threshold, and the third fitting accuracy is compared with the first preset accuracy threshold. When the third determination coefficient is greater than the first preset coefficient threshold, and the third When the fitting accuracy is greater than the first preset accuracy threshold, it means that the corresponding sub-point set is a circular arc point set, the sub-point set can be retained, and the sub-point set can be used as the target circular arc point set. On the contrary, it means that the corresponding sub-point set is not an arc point set and can be discarded.

本申请实施例中,可选地,步骤204中所述“依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除”,具体包括:依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。In the embodiment of the present application, optionally, in step 204, "according to the preset culling conditions, culling the vertices that satisfy the preset culling conditions in the set of target arc points" specifically includes: according to preset culling conditions Eliminate the condition, respectively connect the three adjacent vertices at the head end and the three adjacent vertices at the end in the target arc point set, and obtain the connection angle of the head end and the connection angle of the end, when the connection angle is smaller than the first predetermined angle. When the angle threshold is set to be larger than the flat angle, the end point corresponding to the connection angle is eliminated, wherein the connection angle is the angle on one side of the center of the target circle; and/or, according to the preset elimination condition, the target circle is respectively connected Two adjacent vertices at the head end and two adjacent vertices at the end of the arc point set, obtain the corresponding first line segment, determine the first mid-perpendicular line of any of the first line segments, and determine the The two vertices corresponding to the first line segment are the two closest points on the first circular curve, connect the two closest points to obtain the second line segment corresponding to the first line segment, and determine the first line segment. The second vertical line of the two line segments, based on the first vertical line and the second vertical line, determine the target vertical line angle, when the target vertical line angle is greater than the second preset angle threshold, Eliminate the endpoints in the consecutive vertices; and/or, according to preset culling conditions, respectively connect the three adjacent vertices at the head end and the three adjacent vertices at the end in the target arc point set, to obtain The target connecting line segment, when the sum of the target connecting line segments corresponding to any of the three adjacent vertices is greater than or equal to the preset length threshold, the three adjacent vertices are corresponding to the target arc point set endpoint culling.

在该实施例中,确定目标圆弧点集后,还可以进一步对目标圆弧点集中的折点按照预设剔除条件进行剔除。例如,可以将目标圆弧点集中的首端相邻三个折点连接在一起,以及将末端相邻三个折点连接在一起,连接的三个折点可以形成一个连接角,其中三个折点中的中间点为连接角对应的顶点,连接角指的是开口朝向拟合圆的目标圆心一侧的角。具体地,首端相邻三个折点对应的为首端的连接角,末端相邻三个折点对应的为末端的连接角。当任意一个连接角的角度小于第一预设角度阈值,或者该角度大于平角时,说明首端相邻三个折点或末端相邻三个折点中的端点对圆拟合结果的影响较大,可以舍弃。如图3所示,假设折点A、折点B以及折点C为目标圆弧点集中首端相邻三个折点,那么角ABC可以是首端连接角,连接角对应的角度等于α12,由于连接角的角度大于平角,所以折点A可以被舍弃。In this embodiment, after the target arc point set is determined, the vertices in the target arc point set may be further eliminated according to preset elimination conditions. For example, three adjacent vertices at the head end of the target arc point set can be connected together, and three adjacent vertices at the end can be connected together, and the connected three vertices can form a connecting angle, where three The middle point of the vertices is the vertex corresponding to the connecting angle, which refers to the corner whose opening faces the target center of the fitting circle. Specifically, the three adjacent fold points of the head end correspond to the connection angle of the head end, and the three adjacent fold points of the end correspond to the connection angle of the end. When the angle of any connecting angle is less than the first preset angle threshold, or the angle is greater than the flat angle, it means that the three adjacent vertices at the head end or the end points of the three adjacent vertices at the end have a relatively large influence on the circle fitting result. big, can be discarded. As shown in Figure 3, assuming that vertex A, vertex B and vertex C are three vertexes adjacent to the head end of the target arc point set, then the angle ABC can be the connection angle of the head end, and the angle corresponding to the connection angle is equal to α 12 , since the connecting angle is larger than the straight angle, the vertex A can be discarded.

此外,可以分别将目标圆弧点集中的首端相邻两个折点连载一起,以及末端相邻两个折点连接在一起,分别得到对应的第一线段,进而可以确定每个第一线段对应的第一中垂线。接着,可以进一步确定与每个第一线段对应的第二线段,以首端相邻两个折点对应的第一线段为例,在第一圆曲线上分别找到与第一线段对应的两个折点的最近点,进一步连接这两个最近点,可以得到这两个最近点对应的第二线段,并确定第二线段对应的第二中垂线,其中,第二中垂线是经过圆心的直线。由于第一中垂线和第二中垂线是相交的,因而可以得到目标垂线夹角。判断目标垂线夹角和第二预设角度阈值之间的关系,如果目标垂线夹角大于第二预设角度阈值,那么说明这相邻两个折点中的端点对圆拟合结果的影响较大,可以舍弃。在这里,端点即目标圆弧点集中的第一个点或最后一个点。如图4所示,折点X和折点Y可以是首端相邻两个折点,连接这两个节点,对应的线段XY即为第一线段,直线L1为第一线段对应的第一中垂线,直线L2为第二中垂线,而夹角β即为目标垂线夹角。In addition, two adjacent vertices at the head end and two adjacent vertices at the end of the target arc point set can be connected together, respectively, to obtain corresponding first line segments, and then each first line segment can be determined. The first mid-perpendicular line corresponding to the line segment. Next, the second line segment corresponding to each first line segment can be further determined. Taking the first line segment corresponding to the two adjacent vertices at the head end as an example, find the first line segment corresponding to the first line segment on the first circular curve respectively. The closest point of the two vertices, and further connect the two closest points, the second line segment corresponding to the two closest points can be obtained, and the second mid-perpendicular line corresponding to the second line segment can be determined, wherein, the second mid-perpendicular line is a straight line through the center of the circle. Since the first mid-perpendicular line and the second mid-perpendicular line intersect, the target vertical line angle can be obtained. Determine the relationship between the angle between the target vertical line and the second preset angle threshold. If the angle between the target vertical line is greater than the second preset angle threshold, it means that the endpoints in the two adjacent fold points have an effect on the circle fitting result. The impact is large and can be discarded. Here, the endpoint is the first or last point in the target arc point set. As shown in Figure 4, the vertex X and the vertex Y can be two adjacent vertexes at the head end, connecting these two nodes, the corresponding line segment XY is the first line segment, and the straight line L1 is the corresponding line segment of the first line segment. The first vertical line, the straight line L2 is the second vertical line, and the included angle β is the included angle of the target vertical line.

另外还可以将目标圆弧点集中的首端相邻三个折点连接起来,同样地,将末端相邻三个折点连接起来,这样可以对应得到四个目标连接线段,其中,首端相邻三个折点对应两个目标连接线段,末端相邻三个折点对应两个目标连接线段。当首端相邻三个折点对应的两个目标连接线段相加的长度和大于或等于预设长度阈值时,可以将目标圆弧点集中的首端折点剔除,当末端相邻三个折点对应的两个目标连接线段相加的长度和大于或等于预设长度阈值时,也可以将目标圆弧点集中的末端折点剔除。如图5所示,折点M、折点N以及折点P可以为首端相连三个折点,对应的目标连接线段分别是线段MN以及线段NP,当线段MN和线段NP的长度之和大于预设长度阈值时,如果折点M是目标圆弧点集中的首端折点,那么可以将折点M从目标圆弧点集中剔除。In addition, it is also possible to connect the three adjacent vertices at the head end in the target arc point set, and similarly, connect the three adjacent vertices at the end, so that four target connection line segments can be obtained correspondingly. The three adjacent vertices correspond to two target connecting line segments, and the three adjacent vertices at the end correspond to two target connecting line segments. When the sum of the lengths of the two target connecting line segments corresponding to the three adjacent vertices at the head end is greater than or equal to the preset length threshold, the head end vertices in the target arc point set can be eliminated. When the sum of the lengths of the two target connecting line segments corresponding to the vertexes is greater than or equal to the preset length threshold, the end vertexes in the target arc point set can also be eliminated. As shown in Figure 5, the vertex M, the vertex N, and the vertex P can be three vertexes connected at the head end, and the corresponding target connection line segments are the line segment MN and the line segment NP, respectively. When the sum of the lengths of the line segment MN and the line segment NP is greater than When the length threshold is preset, if the vertex M is the first vertex in the target arc point set, then the vertex M can be eliminated from the target arc point set.

在现实世界中,极有可能存在较长距离的道路或极短的曲折道路,而圆曲线拟合可能会拟合成功,这时需要进行剔除过拟合点集。当目标圆弧点集中任意相邻两个折点的距离大于预设距离阈值时,将该目标圆弧点集直接剔除;当圆拟合后圆的半径小于预设半径阈值且拟合圆曲线的拟合精度大于预设精度阈值时,将目标圆弧点集直接删除;当根据拟合的圆曲线与目标圆弧点集求得的决定系数小于预设系数阈值时,将目标圆弧点集直接删除。In the real world, it is very likely that there are long-distance roads or extremely short tortuous roads, and the circular curve fitting may be successful. At this time, it is necessary to eliminate the overfitting point set. When the distance between any two adjacent vertices in the target arc point set is greater than the preset distance threshold, the target arc point set is directly eliminated; when the radius of the circle after fitting is smaller than the preset radius threshold and a circular curve is fitted When the fitting accuracy is greater than the preset accuracy threshold, the target arc point set is directly deleted; when the determination coefficient obtained from the fitted circular curve and the target arc point set is less than the preset coefficient threshold, the target arc point set is deleted. Sets are deleted directly.

进一步的,作为图1方法的具体实现,本申请实施例提供了一种地形图相对精度评估装置,如图5所示,该装置包括:Further, as a specific implementation of the method in FIG. 1 , an embodiment of the present application provides a device for evaluating the relative accuracy of topographic maps. As shown in FIG. 5 , the device includes:

点集计算模块,用于获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;A point set calculation module, configured to obtain preset point set data corresponding to target elements, and calculate slope sequences and curvature sequences corresponding to the preset point sets, wherein the target elements include arc curve elements and/or curved river channel elements, The preset point set includes a plurality of fold points, and the preset point set data includes a plurality of fold point data;

点集确定模块,用于基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;a point set determination module, configured to determine a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence;

精度确定模块,用于确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。The accuracy determination module is configured to determine the relative accuracy of the target corresponding to the target arc point set, and determine the relative accuracy of the topographic map based on the relative accuracy of the target.

可选地,所述点集计算模块,具体包括:Optionally, the point set calculation module specifically includes:

斜率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;a slope sequence determination unit, configured to determine a slope sequence corresponding to the preset point set based on the fold point data of every two adjacent fold points in the preset point set data corresponding to the target element;

曲率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。A curvature sequence determination unit, configured to fit a target quadratic curve based on the vertex data of every three adjacent vertex points in the preset point set data corresponding to the target element, and determine the target quadratic curve according to the target quadratic curve The curvature sequence corresponding to the preset point set.

可选地,所述点集确定模块,具体包括:Optionally, the point set determination module specifically includes:

分段单元,用于基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;a segmentation unit, configured to extract a curvature trend item from the curvature sequence based on the empirical mode decomposition method, and segment the slope sequence based on the positive and negative values corresponding to the curvature trend item;

筛选单元,用于依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。A screening unit, configured to screen the preset point set according to the segmented slope sequence to obtain a target arc point set corresponding to the target element.

可选地,所述筛选单元,具体用于:Optionally, the screening unit is specifically used for:

依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。According to the segmented slope sequence, determine whether the segmented slope sequence is monotonic; if it is monotonic, fit the preset point set data based on a preset exponential function to obtain the first the fitting result, according to the first fitting result to calculate the corresponding first determination coefficient and the first fitting accuracy, and when the first determination coefficient is greater than the first preset coefficient threshold, and the first fitting accuracy When it is greater than the first preset precision threshold, the preset point set is reserved, and the reserved preset point set is used as the target arc point set, otherwise, the preset point set is discarded; when it is not monotonic, Fit the preset point set data based on a preset inverse proportional function to obtain a second fitting result, calculate a corresponding second coefficient of determination and a second fitting accuracy according to the second fitting result, and calculate when the When the second determination coefficient is greater than the second preset coefficient threshold, and the second fitting accuracy is greater than the second preset accuracy threshold, the preset point set is reserved, and the reserved preset point set is used as the target Arc point set, otherwise, divide the preset point set into two sub-point sets according to monotonicity, and perform fitting respectively according to the preset exponential function to obtain a third fitting result, according to the third fitting As a result, the corresponding third determination coefficient and third fitting accuracy are calculated respectively, and when the third determination coefficient is greater than the first preset coefficient threshold, and the third fitting accuracy is greater than the first preset accuracy When the threshold is set, the corresponding sub-point set is reserved, and the reserved sub-point set is used as the target arc point set, and when the third determination coefficient is smaller than the first preset coefficient threshold and/or the When the third fitting accuracy is smaller than the first preset accuracy threshold, the corresponding sub-point set is discarded.

可选地,所述装置还包括:Optionally, the device further includes:

圆拟合模块,用于所述确定所述目标要素对应的目标圆弧点集之后,基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;A circle fitting module is used to perform circle fitting on the target circular arc point set based on the least squares method after the target circular arc point set corresponding to the target element is determined to obtain the corresponding target circular arc point set the first circular curve, and determine the first radius corresponding to the first circular curve and the target center;

剔除模块,用于依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;a culling module, used for culling the vertices that satisfy the preset culling conditions in the target arc point set according to the preset culling conditions, to obtain a first arc point set;

所述圆拟合模块,还用于对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;The circle fitting module is further configured to re-use the least squares method to perform circle fitting on the first circular arc point set to obtain a second circular curve, and determine a second radius corresponding to the second circular curve ;

变化率确定模块,用于依据所述第一半径以及所述第二半径确定半径变化率;a change rate determination module, configured to determine a radius change rate according to the first radius and the second radius;

判断模块,用于当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。The judgment module is configured to use the first circular arc point set as the designated circular arc point set and the second circular curve as the specified circular curve when the radius change rate is less than or equal to the preset change rate threshold value, based on The target relative accuracy is calculated from the specified arc point set and the specified circular curve; when the radius change rate is greater than the preset change rate threshold, the first The vertices that satisfy the preset elimination conditions are eliminated from the arc point set to obtain a second arc point set, and circle fitting is performed again to obtain a third circular curve, and the third radius corresponding to the third circular curve is determined, The radius change rate is determined according to the second radius and the third radius until the radius change rate is less than or equal to the preset change rate threshold.

可选地,所述剔除模块,具体用于:Optionally, the culling module is specifically used for:

依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset culling conditions, respectively connect the three adjacent vertices of the head end and the three adjacent vertices of the end of the target arc point set, and obtain the connection angle of the head end and the connection angle of the end, when the connection angle is less than When the first preset angle threshold is greater than or equal to the flat angle, the end point corresponding to the connection angle is eliminated, wherein the connection angle is the angle on one side of the target circle center; and/or, according to the preset elimination condition, the connection angle is respectively Two adjacent vertices at the head end and two adjacent vertices at the end of the target arc point set, obtain the corresponding first line segment, determine the first mid-perpendicular line of any of the first line segments, and respectively Determine the two closest points of the two vertices corresponding to the first line segment on the first circular curve, connect the two closest points to obtain a second line segment corresponding to the first line segment, and determine The second vertical line of the second line segment, based on the first vertical line and the second vertical line, determine the target vertical line angle, when the target vertical line angle is greater than the second preset angle When the threshold value is reached, the endpoints in the consecutive vertices are removed; and/or, according to the preset culling conditions, respectively connect the three adjacent vertices at the head end and the three adjacent folds at the end of the target arc point set. point to obtain the target connecting line segment, and when the sum of the target connecting line segments corresponding to any of the three adjacent vertices is greater than or equal to the preset length threshold, compare the three adjacent vertices with the target arc The endpoints corresponding to the point set are culled.

可选地,所述判断模块,还用于:Optionally, the judging module is also used for:

基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。Based on the specified arc point set, determine the length of the line segment corresponding to every two adjacent vertices in the specified arc point set, and obtain the total length of the target; based on the specified circular curve, determine the target corresponding to the specified circular curve The arc length; the relative accuracy of the target is determined according to the total length of the target and the length of the target arc.

需要说明的是,本申请实施例提供的一种地形图相对精度评估装置所涉及各功能单元的其他相应描述,可以参考图1方法中的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in the apparatus for evaluating the relative accuracy of topographic maps provided in the embodiments of the present application, reference may be made to the corresponding descriptions in the method in FIG. 1 , which will not be repeated here.

基于上述如图1所示方法,相应的,本申请实施例还提供了一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述如图1所示的地形图相对精度评估方法。Based on the above method shown in FIG. 1 , correspondingly, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned topographic map shown in FIG. Accuracy assessment method.

基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of this application.

基于上述如图1所示的方法,以及图5所示的虚拟装置实施例,为了实现上述目的,本申请实施例还提供了一种计算机设备,具体可以为个人计算机、服务器、网络设备等,该计算机设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1所示的地形图相对精度评估方法。Based on the above method shown in FIG. 1 and the virtual device embodiment shown in FIG. 5 , in order to achieve the above purpose, an embodiment of the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, etc., The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; and the processor is used to execute the computer program to implement the above-mentioned method for evaluating the relative accuracy of a topographic map as shown in FIG. 1 .

可选地,该计算机设备还可以包括用户接口、网络接口、摄像头、射频(RadioFrequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如蓝牙接口、WI-FI接口)等。Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (Radio Frequency, RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, and the like. Optional network interfaces may include standard wired interfaces, wireless interfaces (such as Bluetooth interfaces, WI-FI interfaces), and the like.

本领域技术人员可以理解,本实施例提供的一种计算机设备结构并不构成对该计算机设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of a computer device provided in this embodiment does not constitute a limitation on the computer device, and may include more or less components, or combine some components, or arrange different components.

存储介质中还可以包括操作系统、网络通信模块。操作系统是管理和保存计算机设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各组件之间的通信,以及与该实体设备中其它硬件和软件之间通信。The storage medium may also include an operating system and a network communication module. An operating system is a program that manages and saves the hardware and software resources of computer equipment, supports the operation of information processing programs and other software and/or programs. The network communication module is used to realize the communication between various components inside the storage medium, as well as the communication with other hardware and software in the physical device.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。首先,获取目标要素对应的预设点集数据,并以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。接着,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。本申请可以根据获取的目标要素对应的预设点集数据,自动计算地形图的相对精度,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware. First, the preset point set data corresponding to the target element is acquired, and based on the acquired preset point set data, the slope sequence and the curvature sequence corresponding to each preset point set are calculated. Next, the target arc point set corresponding to the target element may be determined based on the slope sequence and the curvature sequence. Specifically, a part of the preset point set may be removed from the acquired preset point set according to the slope sequence and the curvature sequence, and the last remaining preset point set is the target arc point set. After the target arc point set is determined, the relative accuracy of the target corresponding to the target arc point set can be further determined according to the target arc point set, and then the relative accuracy of the topographic map can be determined according to the relative accuracy of the target. The present application can automatically calculate the relative accuracy of the topographic map according to the acquired preset point set data corresponding to the target element, which can effectively reduce the cost of calculating the relative accuracy of the topographic map and improve the evaluation efficiency of the relative accuracy of the topographic map.

本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawing are not necessarily necessary to implement the present application. Those skilled in the art can understand that the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the implementation scenario with corresponding changes. The modules of the above implementation scenarios may be combined into one module, or may be further split into multiple sub-modules.

上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。The above serial numbers in the present application are only for description, and do not represent the pros and cons of the implementation scenarios. The above disclosures are only a few specific implementation scenarios of the present application, however, the present application is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present application.

Claims (10)

1.一种地形图相对精度评估方法,其特征在于,包括:1. A method for evaluating the relative accuracy of topographic maps, comprising: 获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;Acquire preset point set data corresponding to the target element, and calculate the slope sequence and curvature sequence corresponding to the preset point set, wherein the target element includes arc curve elements and/or curved river elements, and the preset point set includes a plurality of fold points, the preset point set data includes a plurality of fold point data; 基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;determining a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence; 确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。The relative accuracy of the target corresponding to the target arc point set is determined, and based on the relative accuracy of the target, the relative accuracy of the topographic map is determined. 2.根据权利要求1所述的方法,其特征在于,所述计算预设点集对应的斜率序列以及曲率序列,具体包括:2. The method according to claim 1, wherein the calculating the slope sequence and the curvature sequence corresponding to the preset point set specifically comprises: 基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;Determine the slope sequence corresponding to the preset point set based on the fold point data of every two adjacent fold points in the preset point set data corresponding to the target element; 基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。Based on the vertex data of every three adjacent vertexes in the preset point set data corresponding to the target element, a target quadratic curve is fitted, and according to the target quadratic curve, it is determined that the preset point set corresponds to curvature sequence. 3.根据权利要求1所述的方法,其特征在于,所述基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集,具体包括:3 . The method according to claim 1 , wherein determining the target arc point set corresponding to the target element based on the slope sequence and the curvature sequence, specifically comprising: 3 . 基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;Based on the empirical mode decomposition method, a curvature trend term is extracted from the curvature sequence, and the slope sequence is segmented based on the positive and negative values corresponding to the curvature trend term; 依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。According to the segmented slope sequence, the preset point set is screened to obtain a target arc point set corresponding to the target element. 4.根据权利要求3所述的方法,其特征在于,所述依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集,具体包括:4. The method according to claim 3, wherein the preset point set is screened according to the segmented slope sequence to obtain a target arc point set corresponding to the target element, Specifically include: 依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;According to the segmented slope sequence, determine whether the segmented slope sequence is monotonic; 当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;When it is monotonic, the preset point set data is fitted based on the preset exponential function to obtain a first fitting result, and the corresponding first coefficient of determination and the first fitting are calculated according to the first fitting result accuracy, and when the first determination coefficient is greater than the first preset coefficient threshold, and the first fitting accuracy is greater than the first preset accuracy threshold, the preset point set is retained, and the retained preset The point set is used as the target arc point set, otherwise, the preset point set is discarded; 当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。When there is no monotonicity, the preset point set data is fitted based on a preset inverse proportional function to obtain a second fitting result, and a corresponding second coefficient of determination and a second fitting result are calculated according to the second fitting result. and when the second determination coefficient is greater than the second preset coefficient threshold and the second fitting accuracy is greater than the second preset accuracy threshold, the preset point set is retained, and the retained preset Set the point set as the target arc point set, otherwise, divide the preset point set into two sub-point sets according to monotonicity, and perform fitting respectively according to the preset exponential function to obtain a third fitting result, According to the third fitting result, the corresponding third determination coefficient and the third fitting accuracy are calculated respectively, and when the third determination coefficient is greater than the first preset coefficient threshold, and the third fitting accuracy is greater than When the first preset accuracy threshold is used, the corresponding sub-point set is reserved, and the reserved sub-point set is used as the target arc point set. When the third determination coefficient is smaller than the first preset When the coefficient threshold and/or the third fitting precision is smaller than the first preset precision threshold, the corresponding sub-point set is discarded. 5.根据权利要求1所述的方法,其特征在于,所述确定所述目标要素对应的目标圆弧点集之后,所述方法还包括:5. The method according to claim 1, wherein after determining the target arc point set corresponding to the target element, the method further comprises: 基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;Based on the least squares method, circle fitting is performed on the target circular arc point set to obtain a first circular curve corresponding to the target circular arc point set, and a first radius corresponding to the first circular curve and a target circle center are determined; 依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;According to a preset culling condition, culling the vertices that satisfy the preset culling condition in the target arc point set to obtain a first arc point set; 对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;Reusing the least squares method for circle fitting on the first arc point set to obtain a second circular curve, and determining a second radius corresponding to the second circular curve; 依据所述第一半径以及所述第二半径确定半径变化率;determining a radius change rate according to the first radius and the second radius; 当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;When the radius change rate is less than or equal to the preset change rate threshold, the first circular arc point set is used as the specified circular arc point set, the second circular curve is used as the specified circular curve, and based on the specified circular arc Calculate the relative accuracy of the target with the point set and the specified circular curve; 当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。When the radius change rate is greater than the preset change rate threshold, according to the preset culling condition again, culling the vertices that satisfy the preset culling condition from the set of first arc points, to obtain a second arc point set, and perform circle fitting again to obtain a third circular curve, determine the third radius corresponding to the third circular curve, and determine the radius change rate according to the second radius and the third radius, until The radius change rate is less than or equal to the preset change rate threshold. 6.根据权利要求5所述的方法,其特征在于,所述依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,具体包括:6 . The method according to claim 5 , wherein, according to a preset culling condition, culling the vertices that satisfy the preset culling condition in the target arc point set, specifically comprising: 6 . 依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,According to the preset culling conditions, respectively connect the three adjacent vertices of the head end and the three adjacent vertices of the end of the target arc point set, and obtain the connection angle of the head end and the connection angle of the end, when the connection angle is less than When the first preset angle threshold is greater than or equal to the flat angle, the end point corresponding to the connection angle is eliminated, wherein the connection angle is an angle on one side of the target circle center; and/or, 依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,According to the preset culling conditions, respectively connect two adjacent vertices at the head end and two adjacent vertices at the end of the target arc point set to obtain a corresponding first line segment, and determine any one of the first line segments The first mid-perpendicular line of the For the second line segment corresponding to the line segment, determine the second mid-perpendicular line of the second line segment, and determine the included angle of the target vertical line based on the first mid-perpendicular line and the second mid-perpendicular line. When the target vertical line is When the included angle of the line is greater than the second preset angle threshold, remove the endpoints from the two vertices; and/or, 依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset culling conditions, respectively connect the three adjacent vertices at the head end and the three adjacent vertices at the end of the target arc point set to obtain the target connection line segment, when any of the three adjacent vertices corresponds to When the sum of the target connecting line segments is greater than or equal to the preset length threshold, the end points corresponding to the target arc point set in the adjacent three fold points are eliminated. 7.根据权利要求5所述的方法,其特征在于,所述基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度,具体包括:7. The method according to claim 5, wherein the calculating the relative accuracy of the target based on the specified arc point set and the specified circular curve specifically comprises: 基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;Based on the specified arc point set, determine the length of the line segment corresponding to every two adjacent vertices in the specified arc point set, and obtain the total target length; 基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;Based on the specified circular curve, determine the target arc length corresponding to the specified circular curve; 依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。The relative accuracy of the target is determined according to the total length of the target and the length of the target arc. 8.一种地形图相对精度评估装置,其特征在于,包括:8. A device for evaluating the relative accuracy of topographic maps, comprising: 点集计算模块,用于获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;A point set calculation module, configured to obtain preset point set data corresponding to target elements, and calculate slope sequences and curvature sequences corresponding to the preset point sets, wherein the target elements include arc curve elements and/or curved river channel elements, The preset point set includes a plurality of fold points, and the preset point set data includes a plurality of fold point data; 点集确定模块,用于基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;a point set determination module, configured to determine a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence; 精度确定模块,用于确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。The accuracy determination module is configured to determine the relative accuracy of the target corresponding to the target arc point set, and determine the relative accuracy of the topographic map based on the relative accuracy of the target. 9.一种存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法。9 . A storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented. 10 . 10.一种计算机设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述的方法。10. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and running on the processor, wherein the processor implements claims 1 to 7 when executing the computer program The method of any of the above.
CN202111519819.5A 2021-12-13 2021-12-13 A method and device for evaluating relative accuracy of topographic maps, and storage medium Active CN114419136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111519819.5A CN114419136B (en) 2021-12-13 2021-12-13 A method and device for evaluating relative accuracy of topographic maps, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111519819.5A CN114419136B (en) 2021-12-13 2021-12-13 A method and device for evaluating relative accuracy of topographic maps, and storage medium

Publications (2)

Publication Number Publication Date
CN114419136A true CN114419136A (en) 2022-04-29
CN114419136B CN114419136B (en) 2024-11-05

Family

ID=81265007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111519819.5A Active CN114419136B (en) 2021-12-13 2021-12-13 A method and device for evaluating relative accuracy of topographic maps, and storage medium

Country Status (1)

Country Link
CN (1) CN114419136B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053837A (en) * 2010-01-07 2011-05-11 董福田 Collision detection and avoidance method and device for space entity element marking
JP2013140246A (en) * 2012-01-04 2013-07-18 Clarion Co Ltd Digital road map generation method and device
CN106960029A (en) * 2017-03-21 2017-07-18 刘博宇 A kind of method for extracting across map sheet geographic range framing raster data
CN108122202A (en) * 2018-01-05 2018-06-05 武汉大学 A kind of map Linear element multi-scale information derived method based on Shape context

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053837A (en) * 2010-01-07 2011-05-11 董福田 Collision detection and avoidance method and device for space entity element marking
JP2013140246A (en) * 2012-01-04 2013-07-18 Clarion Co Ltd Digital road map generation method and device
CN106960029A (en) * 2017-03-21 2017-07-18 刘博宇 A kind of method for extracting across map sheet geographic range framing raster data
CN108122202A (en) * 2018-01-05 2018-06-05 武汉大学 A kind of map Linear element multi-scale information derived method based on Shape context

Also Published As

Publication number Publication date
CN114419136B (en) 2024-11-05

Similar Documents

Publication Publication Date Title
WO2022089018A1 (en) Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device
CN110598541B (en) A method and device for extracting road edge information
CN108970113B (en) Collision detection method, device, equipment and medium
CN110795978B (en) Road surface point cloud data extraction method and device, storage medium and electronic equipment
CN111126211B (en) Label identification method and device and electronic equipment
CN109461133B (en) Bridge bolt falling off detection method and terminal equipment
US11893685B2 (en) Landform map building method and apparatus, electronic device and readable storage medium
CN112102435B (en) Method, device, equipment and storage medium for drawing geometric figure
CN113190538A (en) Road construction method and device based on track data, storage medium and terminal
CN108960012B (en) Feature point detection method and device and electronic equipment
CN110211195B (en) Method, device, electronic equipment and computer-readable storage medium for generating image set
CN117523087B (en) Three-dimensional model optimization method based on content recognition
CN113362421B (en) Drawing method and device of diversion area in map and electronic equipment
CN111144612A (en) A gas station location point prediction method, device, storage medium and terminal
CN114998855A (en) Road edge line generation method and device, storage medium and computer equipment
CN114419136A (en) Method and device for evaluating relative accuracy of topographic map and storage medium
CN111125271B (en) Vehicle position determination method, device and computer readable storage medium
CN115761279B (en) Spatial layout similarity detection method, device, storage medium and apparatus
CN112097776A (en) Method and system for improving route map rendering efficiency
CN117830376A (en) Saddle area determination method and device, electronic equipment and storage medium
CN116596954A (en) Lesion cell image segmentation method, device, equipment and storage medium
CN110188152A (en) Electronic map road information processing method and device, electronic equipment, readable medium
CN116150296A (en) Road network skeleton generation method and device, electronic equipment and storage medium
CN111369676A (en) Map image processing method and device and vehicle-mounted equipment
CN118247321A (en) Plane detection method, device, electronic device and storage medium in point cloud data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant