CN114419136B - A method and device for evaluating relative accuracy of topographic maps, and storage medium - Google Patents
A method and device for evaluating relative accuracy of topographic maps, and storage medium Download PDFInfo
- Publication number
- CN114419136B CN114419136B CN202111519819.5A CN202111519819A CN114419136B CN 114419136 B CN114419136 B CN 114419136B CN 202111519819 A CN202111519819 A CN 202111519819A CN 114419136 B CN114419136 B CN 114419136B
- Authority
- CN
- China
- Prior art keywords
- point set
- preset
- target
- accuracy
- arc
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/64—Analysis of geometric attributes of convexity or concavity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing 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 present application discloses a method and device for evaluating the relative accuracy of a topographic map, a storage medium, and a computer device. The method includes: obtaining preset point set data corresponding to a target element, calculating a slope sequence and a curvature sequence corresponding to the preset point set, wherein the target element includes an arc bend element and/or a curved river element, the preset point set includes multiple inflection points, and the preset point set data includes multiple inflection point data; based on the slope sequence and the curvature sequence, determining a target arc point set corresponding to the target element; determining a target relative accuracy corresponding to the target arc point set, and determining the relative accuracy of a topographic map based on the target relative accuracy. The present application can automatically calculate the relative accuracy of a topographic map based on the preset point set data corresponding to the acquired target element, which can effectively reduce the cost of calculating the relative accuracy of a topographic map and improve the efficiency of evaluating the relative accuracy of a topographic map.
Description
技术领域Technical Field
本申请涉及测绘地理信息技术领域,尤其是涉及到一种地形图相对精度评估方法及装置、存储介质、计算机设备。The present application relates to the field of surveying and mapping geographic information technology, and in particular to a method and device for evaluating relative accuracy of a topographic map, a storage medium, and a computer device.
背景技术Background Art
地形图相对精度评估对于保证基础地理信息质量具有重要作用。地形图的设计精度主要由地图的比例尺决定,而地形图的实际精度是否与设计精度相符,则需要对地形图的相对精度进行计算。The relative accuracy assessment of topographic maps plays an important role in ensuring the quality of basic geographic information. The design accuracy of topographic maps is mainly determined by the scale of the map, and whether the actual accuracy of topographic maps is consistent with the design accuracy requires the calculation of the relative accuracy of topographic maps.
现有地形图相对精度需要通过要素特征的空间相对位置计算得出,这种计算方式效率低,且由于需要的人力物力比较多,因而成本较高,因此,如何减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率,成为了本领域亟待解决的问题。The relative accuracy of existing topographic maps needs to be calculated through the spatial relative positions of feature features. This calculation method is inefficient and requires a lot of manpower and material resources, so it is costly. Therefore, how to reduce the cost of calculating the relative accuracy of topographic maps and improve the efficiency of evaluating 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 for evaluating the relative accuracy of topographic maps, a storage medium, and a computer device, which can effectively reduce the cost of calculating the relative accuracy of topographic maps and improve the efficiency of evaluating the relative accuracy of topographic maps.
根据本申请的一个方面,提供了一种地形图相对精度评估方法,包括:According to one aspect of the present application, a method for evaluating relative accuracy of a topographic map is provided, 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 an arc curve element and/or a curved river element, the preset point set includes a plurality of inflection points, and the preset point set data includes a plurality of inflection point data;
基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;Determine a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence;
确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。The target relative accuracy corresponding to the target arc point set is determined, and based on the target relative accuracy, the relative accuracy of the topographic map is determined.
可选地,所述计算预设点集对应的斜率序列以及曲率序列,具体包括:Optionally, the calculating of the slope sequence and the curvature sequence corresponding to the preset point set specifically includes:
基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;Determine a slope sequence corresponding to the preset point set based on the inflection point data of every two adjacent inflection points in the preset point set data corresponding to the target element;
基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。Based on the inflection point data of every three adjacent inflection points in the preset point set data corresponding to the target element, a target quadratic curve is fitted, and according to the target quadratic curve, a curvature sequence corresponding to the preset point set is determined.
可选地,所述基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集,具体包括:Optionally, determining a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence specifically includes:
基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;Extracting curvature trend items from the curvature sequence based on the empirical mode decomposition method, and segmenting the slope sequence based on positive and negative values corresponding to the curvature trend items;
依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。The preset point set is screened according to the segmented slope sequence to obtain a target arc point set corresponding to the target element.
可选地,所述依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集,具体包括:Optionally, the step of screening the preset point set according to the segmented slope sequence to obtain a target arc point set corresponding to the target element specifically includes:
依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;According to the segmented slope sequence, determining whether the segmented slope sequence is monotonic;
当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;When monotonicity is present, fitting the preset point set data based on a preset exponential function to obtain a first fitting result, calculating a corresponding first determination coefficient and a first fitting accuracy according to the first fitting result, and when the first determination coefficient is greater than a first preset coefficient threshold, and the first fitting accuracy is greater than a first preset accuracy threshold, retaining the preset point set, and using the retained preset point set as a target arc point set, otherwise, discarding the preset point set;
当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。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 the corresponding second determination coefficient and second fitting accuracy 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 point set is used as the target arc point set; otherwise, the preset point set is divided into two sub-point sets according to monotonicity, and the preset exponential function is respectively fitted to obtain a third fitting result, and the corresponding third determination coefficient and third fitting accuracy are respectively calculated according to the third fitting result, 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 threshold, the corresponding sub-point set is retained and the retained sub-point set is used as the target arc point set, and when the third determination coefficient is less than the first preset coefficient threshold and/or the third fitting accuracy is less than the first preset accuracy 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, a circle fitting is performed on the target arc point set to obtain a first circular curve corresponding to the target arc point set, and a first radius and a target center point corresponding to the first circular curve are determined;
依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;According to a preset elimination condition, the inflection points in the target arc point set that meet the preset elimination condition are eliminated to obtain a first arc point set;
对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;Reusing the least square method to perform 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 a preset change rate threshold, taking the first arc point set as a designated arc point set, taking the second circular curve as a designated circular curve, and calculating the target relative accuracy based on the designated arc point set and the designated circular curve;
当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。When the radius change rate is greater than the preset change rate threshold, the inflection points in the first arc point set that meet the preset elimination conditions are eliminated again according to the preset elimination conditions 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, and the radius change rate is determined based on the second radius and the third radius until the radius change rate is less than or equal to the preset change rate threshold.
可选地,所述依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,具体包括:Optionally, removing the inflection points in the target arc point set that meet the preset removal condition according to the preset removal condition specifically includes:
依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,According to the preset elimination conditions, three adjacent inflection points at the head end and three adjacent inflection points at the end of the target arc point set are connected respectively to obtain the connection angle of the head end and the connection angle of the end, and when the connection angle is less than a first preset angle threshold or greater than a straight angle, the endpoint corresponding to the connection angle is eliminated, wherein the connection angle is the angle on one side of the target center; and/or,
依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,According to the preset elimination condition, two adjacent inflection points at the beginning and the two adjacent inflection points at the end of the target arc point set are connected respectively to obtain the corresponding first line segment, a first perpendicular bisector of any of the first line segments is determined, and two nearest points of the two inflection points corresponding to the first line segment on the first circular curve are determined respectively, the two nearest points are connected to obtain a second line segment corresponding to the first line segment, a second perpendicular bisector of the second line segment is determined, a target perpendicular line angle is determined based on the first perpendicular bisector and the second perpendicular bisector, and when the target perpendicular line angle is greater than a second preset angle threshold, the endpoints of the two inflection points are eliminated; and/or,
依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset elimination conditions, the three adjacent inflection points at the beginning and the three adjacent inflection points at the end of the target arc point set are connected respectively to obtain the target connecting line segment. When the sum of the target connecting line segments corresponding to any of the three adjacent inflection points is greater than or equal to the preset length threshold, the endpoints corresponding to the target arc point set in the three adjacent inflection points are eliminated.
可选地,所述基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度,具体包括:Optionally, the calculating the target relative accuracy 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 each two adjacent inflection points in the specified arc point set to obtain the target total length;
基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;Based on the specified circular curve, determining a target arc length corresponding to the specified circular curve;
依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。The target relative accuracy is determined based on the target total length and the target arc length.
根据本申请的另一方面,提供了一种地形图相对精度评估装置,包括:According to another aspect of the present application, a device for evaluating relative accuracy of a topographic map is provided, comprising:
点集计算模块,用于获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;A point set calculation module, used to obtain preset point set data corresponding to a target element, and calculate a slope sequence and a curvature sequence corresponding to the preset point set, wherein the target element includes an arc curve element and/or a curved river element, the preset point set includes a plurality of inflection points, and the preset point set data includes a plurality of inflection point data;
点集确定模块,用于基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;A point set determination module, used 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 used to determine the target relative accuracy corresponding to the target arc point set, and determine the relative accuracy of the topographic map based on the target relative accuracy.
可选地,所述点集计算模块,具体包括:Optionally, the point set calculation module specifically includes:
斜率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;A slope sequence determining unit, configured to determine a slope sequence corresponding to the preset point set based on the inflection point data of every two adjacent inflection points in the preset point set data corresponding to the target element;
曲率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。The curvature sequence determination unit is used to fit a target quadratic curve based on the inflection point data of every three adjacent inflection points in the preset point set data corresponding to the target element, and determine the curvature sequence corresponding to the preset point set according to the target quadratic curve.
可选地,所述点集确定模块,具体包括:Optionally, the point set determination module specifically includes:
分段单元,用于基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;A segmentation unit, configured to extract a curvature trend term from the curvature sequence based on an empirical mode decomposition method, and segment the slope sequence based on positive and negative values corresponding to the curvature trend term;
筛选单元,用于依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。The screening unit is used 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; when it is monotonic, fit the preset point set data based on a preset exponential function to obtain a first fitting result, calculate a corresponding first determination coefficient and a first fitting accuracy based on the first fitting result, and when the first determination coefficient is greater than a first preset coefficient threshold, and the first fitting accuracy is greater than a first preset accuracy threshold, retain the preset point set, and use the retained preset point set as the target arc point set, otherwise, discard the preset point set; 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 determination coefficient and a second fitting accuracy based on 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 the second preset accuracy threshold, retain the preset point set, and use the retained preset point set as the target arc point set; otherwise, divide the preset point set into two sub-point sets according to monotonicity, and fit them respectively according to the preset exponential function to obtain a third fitting result, calculate the corresponding third determination coefficient and the third fitting accuracy according to the third fitting result, 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 threshold, retain the corresponding sub-point set, and use the retained sub-point set as the target arc point set; when the third determination coefficient is less than the first preset coefficient threshold and/or the third fitting accuracy is less than the first preset accuracy threshold, discard the corresponding sub-point set.
可选地,所述装置还包括:Optionally, the device further comprises:
圆拟合模块,用于所述确定所述目标要素对应的目标圆弧点集之后,基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;A circle fitting module, which is used for, after determining the target circular arc point set corresponding to the target element, performing circle fitting on the target circular arc point set based on the least square method to obtain a first circular curve corresponding to the target circular arc point set, and determining a first radius and a target circle center corresponding to the first circular curve;
剔除模块,用于依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;A removal module, used for removing the inflection points in the target arc point set that meet the preset removal condition according to the preset removal condition, to obtain a first arc point set;
所述圆拟合模块,还用于对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;The circle fitting module is further used to re-use the least square method to perform circle fitting on the first 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;
判断模块,用于当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。A judgment module is used to, when the radius change rate is less than or equal to a preset change rate threshold, use the first arc point set as a designated arc point set and the second circular curve as a designated circular curve, and calculate the target relative accuracy based on the designated arc point set and the designated circular curve; when the radius change rate is greater than the preset change rate threshold, again according to the preset elimination condition, eliminate the inflection points in the first arc point set that meet the preset elimination condition to obtain the second arc point set, and again perform circle fitting to obtain a third circular curve, determine a third radius corresponding to the third circular curve, and determine the radius change rate based on 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 rejection module is specifically used to:
依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset elimination conditions, three adjacent inflection points at the beginning and three adjacent inflection points at the end of the target arc point set are connected respectively to obtain the connection angle of the beginning and the connection angle of the end, and when the connection angle is less than the first preset angle threshold or greater than the straight angle, the endpoint corresponding to the connection angle is eliminated, wherein the connection angle is the angle on one side of the target center of the circle; and/or, according to the preset elimination conditions, two adjacent inflection points at the beginning and two adjacent inflection points at the end of the target arc point set are connected respectively to obtain the corresponding first line segment, determine the first perpendicular bisector of any of the first line segments, and respectively determine the two nearest points of the two inflection points corresponding to the first line segment on the first circular curve. , connect the two nearest points to obtain a second line segment corresponding to the first line segment, determine the second perpendicular bisector of the second line segment, determine the target perpendicular line angle based on the first perpendicular bisector and the second perpendicular bisector, and when the target perpendicular line angle is greater than a second preset angle threshold, remove the endpoints in the two inflection points; and/or, according to a preset removal condition, respectively connect the three adjacent inflection points at the beginning and the three adjacent inflection points at the end of the target arc point set to obtain a target connecting line segment, and when the sum of the target connecting line segments corresponding to any of the three adjacent inflection points is greater than or equal to a preset length threshold, remove the endpoints in the three adjacent inflection points corresponding to the target arc point set.
可选地,所述判断模块,还用于:Optionally, the judging module is further configured to:
基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。Based on the specified arc point set, determine the line segment length corresponding to each two adjacent inflection points in the specified arc point set to obtain the target total length; based on the specified circular curve, determine the target arc length corresponding to the specified circular curve; based on the target total length and the target arc length, determine the target relative accuracy.
依据本申请又一个方面,提供了一种存储介质,其上存储有计算机程序,所述程序被处理器执行时实现上述地形图相对精度评估方法。According to 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 relative accuracy of a topographic map is implemented.
依据本申请再一个方面,提供了一种计算机设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述地形图相对精度评估方法。According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned method for evaluating relative accuracy of topographic maps when executing the program.
借由上述技术方案,本申请提供的一种地形图相对精度评估方法及装置、存储介质、计算机设备,首先,获取目标要素对应的预设点集数据,并以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。接着,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。本申请可以根据获取的目标要素对应的预设点集数据,自动计算地形图的相对精度,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。By means of the above technical scheme, the present application provides a method and device for evaluating the relative accuracy of a topographic map, a storage medium, and a computer device. First, the preset point set data corresponding to the target element is obtained, and based on the preset point set data obtained, the slope sequence and curvature sequence corresponding to each preset point set are calculated. Then, the target arc point set corresponding to the target element can be further determined based on the slope sequence and the curvature sequence. Specifically, a part of the preset point set can be removed from the preset point set obtained according to the slope sequence and the curvature sequence, and the preset point set retained at last is the target arc point set. After determining the target arc point set, the target relative accuracy 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 target relative accuracy. The present application can automatically calculate the relative accuracy of the topographic map according to the preset point set data corresponding to the obtained 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 more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
图1示出了本申请实施例提供的一种地形图相对精度评估方法的流程示意图;FIG1 is a schematic diagram showing a flow chart of a method for evaluating relative accuracy of a topographic map provided in an embodiment of the present application;
图2示出了本申请实施例提供的一种精化目标圆弧点集两端离散点的示意图;FIG2 shows a schematic diagram of a method for refining discrete points at both ends of a target arc point set provided by an embodiment of the present application;
图3示出了本申请实施例提供的另一种精化目标圆弧点集两端离散点的示意图;FIG3 shows a schematic diagram of another method for refining discrete points at both ends of a target arc point set provided by an embodiment of the present application;
图4示出了本申请实施例提供的另一种精化目标圆弧点集两端离散点的示意图;FIG4 shows a schematic diagram of another method for refining discrete points at both ends of a target arc point set provided by an embodiment of the present application;
图5示出了本申请实施例提供的一种地形图相对精度评估装置的结构示意图。FIG5 shows a schematic structural diagram of a device for evaluating relative accuracy of a topographic map provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
在本实施例中提供了一种地形图相对精度评估方法,如图1所示,该方法包括:In this embodiment, a method for evaluating relative accuracy of a topographic map is provided, as shown in FIG1 , the method comprising:
步骤101,获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;Step 101, obtaining 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 includes an arc curve element and/or a curved river element, the preset point set includes a plurality of inflection points, and the preset point set data includes a plurality of inflection point data;
本申请提供的地形图相对精度评估方法,具体可以应用于客户端一侧,也可以应用于服务器一侧。对于地形图来说,相对精度评估对于保证地形图上的基础地理信息质量是非常重要的。地形图中的道路要素基本是由直线和曲线组成,其中,曲线主要由圆曲线组成,可认为道路要素中必然存在圆弧特征,与圆弧特征对应的道路要素有圆弧弯道要素、弯曲河道要素等。本申请主要针对地形图中具有圆弧特征的道路要素进行相对精度的计算。本申请可以将圆弧弯道要素、弯曲河道要素作为目标要素。首先,可以调用预设地形图工具箱将预设地形图数据转换为目标要素对应的预设点集数据。在这里,预设地形图数据可以是shp格式的数据,预设地形图工具箱可以是Python geopandas库,调用Python geopandas库可以将shp格式的数据转换为预设点集数据,其中预设点集中可以包括多个折点,预设点集数据中包括多个折点数据,折点数据可以是带有坐标的数据。接着,以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。地形图中可以包括多个预设点集,每个预设点集对应一组预设点集数据,因而可以获取多个预设点集数据,进而计算得到多个斜率序列和曲率序列,每个斜率序列和曲率序列与一个预设点集对应。The relative accuracy evaluation method of a topographic map provided in the present application can be specifically applied to the client side or the server side. For a topographic map, relative accuracy evaluation is very important for ensuring the quality of basic geographic information on the topographic map. The road elements in the topographic map are basically composed of straight lines and curves, wherein the curves are mainly composed of circular curves. It can be considered that there must be arc features in the road elements, and the road elements corresponding to the arc features include arc curve elements, curved river elements, etc. The present application mainly calculates the relative accuracy of road elements with arc features in the topographic map. The present application can use arc curve elements and curved river elements as target elements. First, the preset topographic map toolbox can be called to convert the preset topographic map data into preset point set data corresponding to the target element. Here, the preset topographic map data can be data in shp format, the preset topographic map toolbox can be a Python geopandas library, and the Python geopandas library can be called to convert the data in shp format into preset point set data, wherein the preset point set can include multiple breakpoints, the preset point set data includes multiple breakpoint data, and the breakpoint data can be data with coordinates. Then, based on the acquired preset point set data, the slope sequence and curvature sequence corresponding to each preset point set are calculated. The topographic map may 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, each slope sequence and curvature sequence corresponds to a preset point set.
步骤102,基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;Step 102, determining a target arc point set corresponding to the target element based on the slope sequence and the curvature sequence;
在该实施例中,计算每个预设点集对应的斜率序列和曲率序列之后,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。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 can be further determined based on the slope sequence and curvature sequence. Specifically, a part of the preset point set can be removed from the acquired preset point set according to the slope sequence and curvature sequence, and the preset point set finally retained is the target arc point set.
步骤103,确定所述目标圆弧点集对应的目标相对精度,并基于所述目标相对精度,确定地形图的相对精度。Step 103, determining the target relative accuracy corresponding to the target arc point set, and determining the relative accuracy of the topographic map based on the target relative accuracy.
在该实施例中,确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。例如,某比例尺为1:100万的地形图,其设计精度为10m,可以根据目标相对精度确定哪些目标圆弧点集满足10m的设计精度,并进一步计算满足10m设计精度的目标圆弧点集在获取的全部圆弧点集中的占比,进而得到地形图中目标要素对应的相对精度。In this embodiment, after the target arc point set is determined, the target relative accuracy corresponding to the target arc point set can be further determined based on the target arc point set, and then the relative accuracy of the topographic map can be determined based on the target relative accuracy. For example, for a topographic map with a scale of 1:1 million, the design accuracy is 10m. It is possible to determine which target arc point sets meet the design accuracy of 10m based on the target relative accuracy, and further calculate the proportion of the target arc point sets that meet the design accuracy of 10m in the total arc point sets obtained, and then obtain the relative accuracy corresponding to the target elements in the topographic map.
通过应用本实施例的技术方案,首先,获取目标要素对应的预设点集数据,并以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。接着,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。本申请可以根据获取的目标要素对应的预设点集数据,自动计算地形图的相对精度,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。By applying the technical solution of this embodiment, first, the preset point set data corresponding to the target element is obtained, and based on the preset point set data obtained, the slope sequence and curvature sequence corresponding to each preset point set are calculated. Then, the target arc point set corresponding to the target element can be further determined based on the slope sequence and curvature sequence. Specifically, a part of the preset point set can be removed from the preset point set obtained according to the slope sequence and the curvature sequence, and the preset point set finally retained is the target arc point set. After determining the target arc point set, the target relative accuracy 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 target relative accuracy. The present application can automatically calculate the relative accuracy of the topographic map according to the preset point set data corresponding to the obtained 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 of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for evaluating relative accuracy of a topographic map is provided, the method comprising:
步骤201,获取目标要素对应的预设点集数据,基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列;Step 201, obtaining preset point set data corresponding to a target element, determining a slope sequence corresponding to the preset point set based on the inflection point data of every two adjacent inflection points in the preset point set data corresponding to the target element; fitting a target quadratic curve based on the inflection point data of every three adjacent inflection points in the preset point set data corresponding to the target element, and determining a curvature sequence corresponding to the preset point set based on the target quadratic curve;
在该实施例中,获取与目标要素对应的一组或多组预设点集数据,并分别计算每组预设点集数据对应的斜率序列和曲率序列。其中,斜率的计算方法为,分别根据预设点集数据中每两个相邻折点数据计算得到一个斜率,最终将这些斜率放在一起,得到斜率序列。例如,预设点集数据中包括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 obtained, and the slope sequence and curvature sequence corresponding to each set of preset point set data are calculated respectively. The slope is calculated by calculating a slope according to each two adjacent inflection point data in the preset point set data, and finally putting these slopes together to obtain a slope sequence. For example, the preset point set data includes 5 inflection point data, namely a1 ( x1 , y1 ), a2 ( x2 , y2 ), a3 ( x3 , y3 ), a4 ( x4 , y4 ), and a5 ( x5 , y5 ). For inflection point a1 and inflection point a2 , the corresponding slopes can be h1 = ( y2 - y1 )/( x2 - x1 ), h2 = ( y3 - y2 )/( x3 - x2 ), h3 = ( y4 - y3 )/( x4 - x3 ) and h4 = ( y5 - y4 )/( x5 - x4 ), and the final slope sequence can be [ h1 , h2 , h3 , h4 ]. The curvature is calculated by fitting a target quadratic curve based on the data of every three adjacent inflection points in the preset point set, and then calculating a corresponding curvature based on the target quadratic curve. Finally, these curvatures are put together to obtain a curvature sequence. For example, for three adjacent inflection points in the preset point set, if the parameter t satisfies the quadratic curve, the parameter equation is:
上式(1)中,具有6个未知量(α1,α2,α3)以及(β1,β2,β3),其中,对于相邻三个折点一共具有6个折点坐标已知量,分别为(x1,x2,x3)以及(y1,y2,y3),因而可以根据这6个折点坐标已知量列出三组方程,进而求解出(α1,α2,α3)以及(β1,β2,β3)6个未知量。首先通过三点构成的两段直线求得取值范围有:In the above formula (1), there are 6 unknown quantities (α 1 , α 2 , α 3 ) and (β 1 , β 2 , β 3 ), among which, for three adjacent inflection points, there are 6 known inflection point coordinates, namely (x 1 , x 2 , x 3 ) and (y 1 , y 2 , y 3 ). Therefore, three sets of equations can be listed according to the known inflection point coordinates, and then the 6 unknown quantities (α 1 , α 2 , α 3 ) and (β 1 , β 2 , β 3 ) can be solved. First, the value range is obtained through the two straight lines formed by the three points:
参数方程中的t应满足的条件为:The conditions that t in the parametric equation should satisfy are:
则有:Then we have:
求解则有曲率k为:The solution is that the curvature k is:
根据公式(6)以及每相邻三个折点数据求解得出的(α1,α2,α3)以及(β1,β2,β3),可以得出对应的曲率k。最后将曲率k放在一起,得到曲率序列。According to formula (6) and the (α 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, the curvatures k are put together to obtain the curvature sequence.
步骤202,基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集;Step 202: extracting curvature trend items 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 items; screening the preset point set according to the segmented slope sequence to obtain a target arc point set corresponding to the target element;
在该实施例中,计算得到每组预设点集对应的斜率序列以及曲率序列后,由于本申请的曲率是通过一系列离散的折点计算出来的,因此可能会出现异常曲率值,导致曲率的趋势项被异常值“淹没”。为了获取曲率趋势项,且判断折点构成的基本特征(圆弧),本申请利用经验模态分解(empirical mode decomposition,EMD)将非线性的曲率序列由高频到低频分解并转换成多个互异、非正弦的多尺度信号分量,即固有模态函数(intrinsicmode function,IMF)。该算法能够保留较多的可用趋势信息。EMD核心在于基于三次样条插值获取上下包络线,最终构成IMF过程。设有信号χ(t),由多尺度分量表示为:In this embodiment, after calculating the slope sequence and curvature sequence corresponding to each set of preset points, since the curvature of the present application is calculated through a series of discrete inflection points, abnormal curvature values may appear, causing the trend term of the curvature to be "swamped" by abnormal values. In order to obtain the curvature trend term and determine the basic characteristics (arcs) of the inflection 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 functions (IMF). This algorithm can retain more available trend information. The core of EMD is to obtain the upper and lower envelopes based on cubic spline interpolation, and finally form an IMF process. Suppose there is a signal χ(t), which is represented by multi-scale components as:
其中,rn(t)表示为第n个分量,即残差分量。而对于分解的首要步骤为计算包络线的均值:Among them, r n (t) represents the nth component, that is, the residual component. The first step for decomposition is to calculate the mean of the envelope:
式中,χa(t)为包络线的均值;χu(t)和χd(t)分别为上下包络线。Where χa (t) is the mean 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 of mean 0. If it satisfies the condition, it is an IMF component. Otherwise, the envelope is recalculated until the condition is satisfied. When only monotonic components remain, the signal is considered to be decomposed. At this time, there is:
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 positive values or negative values. For a whole segment of positive values, the corresponding slope sequence can be divided into one segment. For a whole segment of negative values, the corresponding slope sequence can also be divided into one segment. After the slope sequence is segmented according to the positive and negative values of the curvature trend item, the corresponding multiple slope sequence segments can be obtained. After obtaining the segmented slope sequence, 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, so as to obtain the target arc point set.
步骤203,基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;Step 203, performing circle fitting on the target arc point set based on the least square method to obtain a first circular curve corresponding to the target arc point set, and determining a first radius and a target center point corresponding to the first circular curve;
在该实施例中,得到目标圆弧点集后,可以对每一组目标圆弧点集利用最小二乘法进行圆拟合,经过拟合后可以得到与该目标圆弧点集对应的第一圆曲线,接着,根据第一圆曲线计算对应的第一半径,并确定第一圆曲线对应的目标圆心。In this embodiment, after obtaining the target arc point set, the least squares method can be used to perform circle fitting on each group of target arc point sets. After fitting, the first circular curve corresponding to the target arc point set can be obtained. Then, the corresponding first radius is calculated based on the first circular curve, and the target center point corresponding to the first circular curve is determined.
步骤204,依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;Step 204, according to a preset elimination condition, eliminating the inflection points in the target arc point set that meet the preset elimination condition, to obtain a first arc point set;
在该实施例中,得到第一圆曲线后,还可以根据预设剔除条件,进一步剔除目标圆弧点集中满足预设剔除条件的折点,剔除后得到第一圆弧点集。In this embodiment, after obtaining the first circular curve, the inflection points in the target arc point set that meet the preset elimination conditions may be further eliminated according to the preset elimination conditions, and the first arc point set is obtained after elimination.
步骤205,对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;Step 205, performing circle fitting on the first arc point set again using the least square method to obtain a second circular curve, and determining a second radius corresponding to the second circular curve;
在该实施例中,由于第一圆弧点集和目标圆弧点集中包含的折点不同,因而得到第一圆弧点集后,可以再次利用最小二乘法对第一圆弧点集进行圆拟合,得到与第一圆弧点集对应的第二圆曲线,同时计算第二圆曲线相对应的第二半径。In this embodiment, since the first arc point set and the target arc point set contain different inflection points, after obtaining the first arc point set, the least squares method can be used again to perform circle fitting on the first arc point set to obtain a second circular curve corresponding to the first arc point set, and at the same time calculate the second radius corresponding to the second circular curve.
步骤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 can 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, taking the first arc point set as a designated arc point set, taking the second circular curve as a designated circular curve, and calculating the target relative accuracy based on the designated arc point set and the designated circular curve;
在该实施例中,如果第一半径与第二半径对应的半径变化率小于或等于预设变化率阈值时,说明圆曲线的拟合程度已经较好,不需要继续进行拟合,此时可以将第一圆弧点集直接作为指定圆弧点集,与此同时可以将第二圆曲线直接作为指定圆曲线,接着以指点圆弧点集和指定圆曲线为基础,计算对应的目标相对精度。In this embodiment, if the radius change rate corresponding to the first radius and the second radius is less than or equal to the preset change rate threshold, it means that the fitting degree of the circular curve is already good and there is no need to continue fitting. At this time, the first arc point set can be directly used as the designated arc point set, and at the same time, the second circular curve can be directly used as the designated circular curve. Then, based on the pointed arc point set and the designated circular curve, the corresponding target relative accuracy is calculated.
在这里,也可以通过其他条件判断圆拟合的程度。例如,预先设定迭代次数,当重复进行圆拟合操作达到预设次数阈值时,则停止进行圆拟合,并将最后一次拟合得到的圆曲线作为指定圆曲线。此外,还可以通过判断每次圆拟合的圆曲线对应的圆心变化情况,确定是否停止圆拟合操作,例如,当圆心位置变化率小于预设位置阈值时,停止进行圆拟合,并将最后一次拟合得到的圆曲线作为指定圆曲线。Here, the degree of circle fitting can also be determined by other conditions. For example, the number of iterations is preset, and when the circle fitting operation is repeated to reach the preset number threshold, the circle fitting is stopped, and the circular curve obtained by the last fitting is used as the designated circular 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 circular curve of each circle fitting. For example, when the change rate of the circle center position is less than the preset position threshold, the circle fitting is stopped, and the circular curve obtained by the last fitting is used as the designated circular curve.
可选地,所述“基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度”,具体包括:基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。Optionally, the "calculating the target relative accuracy based on the specified arc point set and the specified circular curve" specifically includes: based on the specified arc point set, determining the line segment length corresponding to each two adjacent inflection points in the specified arc point set to obtain the target total length; based on the specified circular curve, determining the target arc length corresponding to the specified circular curve; determining the target relative accuracy based on the target total length and the target arc length.
在该实施例中,确定了指定圆弧点集后,可以以指定圆弧点集为基础,确定该指定圆弧点集中每相邻两个折点对应的线段长度,例如,指定圆弧点集中可以包括5个折点,分别是折点1至折点5,分别连接折点1和折点2、折点2和折点3、折点3和折点4、折点4和折点5,可以得到4段对应的线段,之后将这4段线段的长度相加,可以得到目标总长度。此外,还可以计算指定圆曲线对应的目标圆弧长度,最后根据计算得到的目标总长度和目标圆弧长度,确定目标相对精度。具体地,假设目标总长度为L总,目标圆弧长度为L弧,那么目标相对精度可以是(L弧-L总)/L总。In this embodiment, after the specified arc point set is determined, the length of the line segment corresponding to each two adjacent turning points in the specified arc point set can be determined based on the specified arc point set. For example, the specified arc point set can include 5 turning points, namely turning point 1 to turning point 5. Connect turning point 1 and turning point 2, turning point 2 and turning point 3, turning point 3 and turning point 4, turning point 4 and turning point 5 respectively, and 4 corresponding line segments can be obtained. Then, the lengths of these 4 line segments are added together to obtain the target total length. In addition, the target arc length corresponding to the specified circular curve can also be calculated, and finally the target relative accuracy is determined based on the calculated target total length and target arc length. Specifically, assuming that the target total length is Ltotal and the target arc length is Lar , the target relative accuracy can be ( Lar - Ltotal )/ Ltotal .
步骤208,当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值;Step 208, when the radius change rate is greater than the preset change rate threshold, the inflection points in the first arc point set that meet the preset elimination condition are eliminated again according to the preset elimination condition to obtain a second arc point set, and circle fitting is performed again to obtain a third circular curve, a third radius corresponding to the third circular curve is determined, and 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;
在该实施例中,如果第一半径与第二半径对应的半径变化率大于预设变化率阈值时,说明圆曲线的拟合程度还不理想,还需要继续进行拟合,那么此时可以按照预设剔除条件,剔除第一圆弧点集中满足预设剔除条件的折点,进而得到第二圆弧点集。接着,以第二圆弧点集为基础,同样利用最小二乘法进行圆拟合,得到第三圆曲线,并计算第三圆曲线对应的第三半径。得到第三半径后,可以根据第三半径和第二半径,计算本次拟合的半径变化率,确定第三半径的变化大小。如果本次半径变化率小于或等于预设变化率阈值时,那么可以将第二圆弧点集作为指定圆弧点集,将第三圆曲线作为指定圆曲线,进而计算目标相对精度;当本次半径变化率大于预设变化率阈值时,继续上面的操作,直到半径变化率小于或等于预设变化率时结束。In this embodiment, if the radius change rate corresponding to the first radius and the second radius is greater than the preset change rate threshold, it means that the fitting degree of the circular curve is not ideal and further fitting is required. At this time, the inflection points that meet the preset elimination conditions in the first arc point set can be eliminated according to the preset elimination conditions, thereby obtaining the second arc point set. Next, based on the second arc point set, the least squares method is also used to perform circular fitting to obtain the third circular curve, and the third radius corresponding to the third circular curve is calculated. After obtaining the third radius, the radius change rate of this fitting can be calculated based on the third radius and the second radius to determine the change size of the third radius. If the radius change rate of this time is less than or equal to the preset change rate threshold, the second arc point set can be used as the designated arc point set, and the third circular curve can be used as the designated circular curve to calculate the target relative accuracy; when the radius change rate of this time is greater than the preset change rate threshold, the above operation is continued until the radius change rate is less than or equal to the preset change rate.
步骤209,基于所述目标相对精度,确定地形图的相对精度。Step 209: Determine the relative accuracy of the topographic map based on the target relative accuracy.
在该实施例中,得到目标相对精度后,可以进一步根据目标相对精度确定地形图的相对精度。此外,还可以根据特征分布状态和节点密度确定地形图的相对精度。其中,特征分布状态,通过将满足地形图设计精度的要素重新映射到地形图中,观察分布状态,建立要素分布与基础地理信息图幅的空间映射关系,分析要素分布的局部特征;节点密度,计算每个要素的折点数量及其相邻两点距离总和的比率,即每个要素单位距离内的折点数量,这里折点数量指的是预设点集中折点的数量。In this embodiment, after obtaining the target relative accuracy, the relative accuracy of the topographic map can be further determined according to the target relative accuracy. In addition, the relative accuracy of the topographic map can also be determined according to the feature distribution state and node density. Among them, the feature distribution state is to remap the elements that meet the design accuracy of the topographic map into the topographic map, observe the distribution state, establish the spatial mapping relationship between the element distribution and the basic geographic information map, and analyze the local characteristics of the element distribution; the node density is to calculate the ratio of the number of turning points of each element and the sum of the distances between its two adjacent points, that is, the number of turning points within the unit distance of each element, where the number of turning points refers to the number of turning points in the preset point concentration.
本申请实施例中,可选地,步骤202中所述“依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集”,具体包括:依据分段后的所述斜率序列,判断分段后的所述斜率序列是否具有单调性;当具有单调性时,基于预设指数函数对所述预设点集数据进行拟合,得到第一拟合结果,依据所述第一拟合结果计算对应的第一决定系数以及第一拟合精度,并当所述第一决定系数大于第一预设系数阈值,且所述第一拟合精度大于第一预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为目标圆弧点集,否则,舍弃所述预设点集;当不具有单调性时,基于预设反比例函数对所述预设点集数据进行拟合,得到第二拟合结果,依据所述第二拟合结果计算对应的第二决定系数以及第二拟合精度,并当所述第二决定系数大于第二预设系数阈值,且所述第二拟合精度大于第二预设精度阈值时,保留所述预设点集,将保留的所述预设点集作为所述目标圆弧点集,否则,将所述预设点集按照单调性分为两段子点集,分别按照所述预设指数函数进行拟合,得到第三拟合结果,依据所述第三拟合结果分别计算对应的第三决定系数以及第三拟合精度,并当所述第三决定系数大于所述第一预设系数阈值,且所述第三拟合精度大于所述第一预设精度阈值时,保留对应的所述子点集,将保留的所述子点集作为所述目标圆弧点集,当所述第三决定系数小于所述第一预设系数阈值和/或所述第三拟合精度小于所述第一预设精度阈值时,舍弃对应的所述子点集。In an embodiment of the present application, optionally, the "screening the preset point set according to the segmented slope sequence to obtain the target arc point set corresponding to the target element" in step 202 specifically includes: judging whether the segmented slope sequence is monotonic according to the segmented slope sequence; when it is monotonic, fitting the preset point set data based on a preset exponential function to obtain a first fitting result, calculating the corresponding first determination coefficient and first fitting accuracy according to the first fitting result, and when the first determination coefficient is greater than a first preset coefficient threshold and the first fitting accuracy is greater than a first preset accuracy threshold, retaining the preset point set and using the retained preset point set as the target arc point set, otherwise, discarding the preset point set; when it is not monotonic, fitting the preset point set data based on a preset inverse proportional function to obtain a second fitting result, and calculating the first fitting accuracy according to the second fitting result. The corresponding second determination coefficient and the second fitting accuracy are calculated, 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 point set is used as the target arc point set; otherwise, the preset point set is divided into two sub-point sets according to monotonicity, and the preset exponential function is used to fit each of them to obtain a third fitting result, and the corresponding third determination coefficient and the third fitting accuracy are calculated according to the third fitting result, 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 threshold, the corresponding sub-point set is retained, and the retained sub-point set is used as the target arc point set; when the third determination coefficient is less than the first preset coefficient threshold and/or the third fitting accuracy is less 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 using the curvature trend term, it is possible to further determine whether each segment of the slope sequence is monotonic based on the segmented slope sequence. For example, if the curvature trend term divides the slope sequence corresponding to the curvature sequence into four segments, it is possible to determine whether the four segments of the slope sequence are monotonic. When monotonicity exists, the 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, the corresponding first determination coefficient and first fitting accuracy can be calculated based on the first fitting result and the preset point set. Among them, the preset exponential function can be y fit =a*exp(b*x)+c, the first determination coefficient can be expressed as R 2 , the first fitting accuracy can be expressed as RMSE, and the first determination coefficient can be calculated by the following formula:
其中,SSres、SStot分别表示为残差平方和、总平方和,表示如下:Among them, SS res and SS tot represent the residual sum of squares and the total sum of squares, respectively, as follows:
其中,n为预设点集中折点的数量,y为预设点集中折点对应的y坐标值,yfit为经过拟合后得到的y坐标值。显然,当残差平方和越小,拟合程度越好,即为第一决定系数R2越接近1,拟合程度越优。同样,第一拟合精度的公式如下:Among them, n is the number of inflection points in the preset point set, y is the y coordinate value corresponding to the inflection point in the preset point set, and y fit is the y coordinate value obtained after fitting. Obviously, when the residual square sum is smaller, the better the fitting degree is, that is, the closer the first determination coefficient R 2 is to 1, the better the fitting degree is. Similarly, the formula for the first fitting accuracy is as follows:
计算第一决定系数与第一拟合精度之后,进一步判断第一决定系数与第一预设系数阈值之间的关系,以及第一拟合精度与第一预设精度阈值之间的关系。当第一决定系数大于第一预设系数阈值,与此同时第一拟合精度大于第一预设精度阈值时,那么说明预设点集是圆弧点集,可以保留该预设点集,并将该预设点集作为目标圆弧点集。反之,说明预设点集不是圆弧点集,可以将其舍弃。After calculating the first determination coefficient and the first fitting accuracy, 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 are further determined. 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 used as the target arc point set. Otherwise, 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 monotonicity does not exist, it can be verified whether the preset point set belongs to a hyperbola, and thus the preset point set can be fitted using a preset inverse proportional function, and a second fitting result can be obtained after fitting. Further, the second determination coefficient and the second fitting accuracy can be calculated according to the second fitting result and the preset point set by formula (11) and formula (13). Among them, the preset inverse proportional function can be y fit =1/(a*x+b). After calculating the second determination coefficient and the second fitting accuracy, 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 it means that the preset point set is an arc point set, and the preset point set can be retained and used as the target arc point set. On the contrary, the preset point set can be further segmented into two monotonic sub-point sets, so that each sub-point set is monotonic, and then each sub-point set is fitted according to the preset exponential function. After fitting, the corresponding third fitting result can be obtained, and the third determination coefficient and the third fitting accuracy can be calculated respectively according to the third fitting result, wherein each sub-point set can correspond to a third fitting coefficient and a third fitting accuracy. Then, 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 fitting accuracy is greater than the first preset accuracy threshold, it means that the corresponding sub-point set is an arc point set, and the sub-point set can be retained and used as the target 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, the step 204 of "eliminating the inflection points in the target arc point set that meet the preset elimination conditions according to the preset elimination conditions" specifically includes: according to the preset elimination conditions, respectively connecting the three adjacent inflection points at the head end and the three adjacent inflection points at the end of the target arc point set to obtain the connection angle of the head end and the connection angle of the end, and when the connection angle is less than a first preset angle threshold or greater than a straight angle, eliminating the endpoint corresponding to the connection angle, wherein the connection angle is the angle on one side of the target center of the circle; and/or, according to the preset elimination conditions, respectively connecting two adjacent inflection points at the head end and two adjacent inflection points at the end of the target arc point set to obtain the corresponding first line segment, determining the first perpendicular bisector of any of the first line segments, and Determine respectively the two nearest points of the two inflection points corresponding to the first line segment on the first circular curve, connect the two nearest points to obtain the second line segment corresponding to the first line segment, determine the second perpendicular bisector of the second line segment, determine the target perpendicular line angle based on the first perpendicular bisector and the second perpendicular bisector, and when the target perpendicular line angle is greater than a second preset angle threshold, remove the endpoints of the two inflection points; and/or, according to preset removal conditions, respectively connect the three adjacent inflection points at the beginning and the three adjacent inflection points at the end of the target arc point set to obtain the target connecting line segment, and when the sum of the target connecting line segments corresponding to any of the three adjacent inflection points is greater than or equal to the preset length threshold, remove the endpoints corresponding to the target arc point set in the three adjacent inflection points.
在该实施例中,确定目标圆弧点集后,还可以进一步对目标圆弧点集中的折点按照预设剔除条件进行剔除。例如,可以将目标圆弧点集中的首端相邻三个折点连接在一起,以及将末端相邻三个折点连接在一起,连接的三个折点可以形成一个连接角,其中三个折点中的中间点为连接角对应的顶点,连接角指的是开口朝向拟合圆的目标圆心一侧的角。具体地,首端相邻三个折点对应的为首端的连接角,末端相邻三个折点对应的为末端的连接角。当任意一个连接角的角度小于第一预设角度阈值,或者该角度大于平角时,说明首端相邻三个折点或末端相邻三个折点中的端点对圆拟合结果的影响较大,可以舍弃。如图3所示,假设折点A、折点B以及折点C为目标圆弧点集中首端相邻三个折点,那么角ABC可以是首端连接角,连接角对应的角度等于α1+α2,由于连接角的角度大于平角,所以折点A可以被舍弃。In this embodiment, after determining the target arc point set, the turning points in the target arc point set can be further eliminated according to the preset elimination conditions. For example, the three adjacent turning points at the head end in the target arc point set can be connected together, and the three adjacent turning points at the end can be connected together. The three connected turning points can form a connection angle, wherein the middle point of the three turning points is the vertex corresponding to the connection angle, and the connection angle refers to the angle on the side of the target circle center of the opening facing the fitting circle. Specifically, the three adjacent turning points at the head end correspond to the connection angle at the head end, and the three adjacent turning points at the end correspond to the connection angle at the end. When the angle of any connection angle is less than the first preset angle threshold, or the angle is greater than the flat angle, it means that the endpoints of the three adjacent turning points at the head end or the three adjacent turning points at the end have a greater impact on the circle fitting result and can be discarded. As shown in Figure 3, assuming that turning point A, turning point B and turning point C are the three adjacent turning points at the head end in the target arc point set, then angle ABC can be the head end connection angle, and the angle corresponding to the connection angle is equal to α 1 +α 2. Since the angle of the connection angle is greater than the flat angle, turning point A can be discarded.
此外,可以分别将目标圆弧点集中的首端相邻两个折点连载一起,以及末端相邻两个折点连接在一起,分别得到对应的第一线段,进而可以确定每个第一线段对应的第一中垂线。接着,可以进一步确定与每个第一线段对应的第二线段,以首端相邻两个折点对应的第一线段为例,在第一圆曲线上分别找到与第一线段对应的两个折点的最近点,进一步连接这两个最近点,可以得到这两个最近点对应的第二线段,并确定第二线段对应的第二中垂线,其中,第二中垂线是经过圆心的直线。由于第一中垂线和第二中垂线是相交的,因而可以得到目标垂线夹角。判断目标垂线夹角和第二预设角度阈值之间的关系,如果目标垂线夹角大于第二预设角度阈值,那么说明这相邻两个折点中的端点对圆拟合结果的影响较大,可以舍弃。在这里,端点即目标圆弧点集中的第一个点或最后一个点。如图4所示,折点X和折点Y可以是首端相邻两个折点,连接这两个节点,对应的线段XY即为第一线段,直线L1为第一线段对应的第一中垂线,直线L2为第二中垂线,而夹角β即为目标垂线夹角。In addition, the two adjacent turning points at the head end of the target arc point set can be connected together, and the two adjacent turning points at the end can be connected together to obtain the corresponding first line segments, and then the first perpendicular bisector corresponding to each first line segment can be determined. Then, the second line segment corresponding to each first line segment can be further determined. Taking the first line segment corresponding to the two adjacent turning points at the head end as an example, the nearest points of the two turning points corresponding to the first line segment are found on the first circular curve, and the two nearest points are further connected to obtain the second line segment corresponding to the two nearest points, and the second perpendicular bisector corresponding to the second line segment is determined, wherein the second perpendicular bisector is a straight line passing through the center of the circle. Since the first perpendicular bisector and the second perpendicular bisector intersect, the target perpendicular angle can be obtained. The relationship between the target perpendicular angle and the second preset angle threshold is determined. If the target perpendicular angle is greater than the second preset angle threshold, it means that the endpoints of the two adjacent turning points have a greater impact on the circle fitting result and can be discarded. Here, the endpoint is the first point or the last point in the target arc point set. As shown in Figure 4, the inflection point X and the inflection point Y can be two adjacent inflection points at the beginning and the corresponding line segment XY connecting these two nodes is the first line segment, the straight line L1 is the first perpendicular bisector corresponding to the first line segment, the straight line L2 is the second perpendicular bisector, and the angle β is the target perpendicular line angle.
另外还可以将目标圆弧点集中的首端相邻三个折点连接起来,同样地,将末端相邻三个折点连接起来,这样可以对应得到四个目标连接线段,其中,首端相邻三个折点对应两个目标连接线段,末端相邻三个折点对应两个目标连接线段。当首端相邻三个折点对应的两个目标连接线段相加的长度和大于或等于预设长度阈值时,可以将目标圆弧点集中的首端折点剔除,当末端相邻三个折点对应的两个目标连接线段相加的长度和大于或等于预设长度阈值时,也可以将目标圆弧点集中的末端折点剔除。如图5所示,折点M、折点N以及折点P可以为首端相连三个折点,对应的目标连接线段分别是线段MN以及线段NP,当线段MN和线段NP的长度之和大于预设长度阈值时,如果折点M是目标圆弧点集中的首端折点,那么可以将折点M从目标圆弧点集中剔除。In addition, the three adjacent turning points at the head end of the target arc point set can be connected, and similarly, the three adjacent turning points at the end can be connected, so that four target connecting line segments can be obtained, wherein the three adjacent turning points at the head end correspond to two target connecting line segments, and the three adjacent turning points 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 turning points at the head end is greater than or equal to the preset length threshold, the head end turning point in the target arc point set can be eliminated, and when the sum of the lengths of the two target connecting line segments corresponding to the three adjacent turning points at the end is greater than or equal to the preset length threshold, the end turning point in the target arc point set can also be eliminated. As shown in Figure 5, turning point M, turning point N and turning point P can be three turning points connected at the head end, and the corresponding target connecting line segments are line segment MN and line segment NP respectively. When the sum of the lengths of line segment MN and line segment NP is greater than the preset length threshold, if turning point M is the head end turning point in the target arc point set, then turning point M can be eliminated from the target arc point set.
在现实世界中,极有可能存在较长距离的道路或极短的曲折道路,而圆曲线拟合可能会拟合成功,这时需要进行剔除过拟合点集。当目标圆弧点集中任意相邻两个折点的距离大于预设距离阈值时,将该目标圆弧点集直接剔除;当圆拟合后圆的半径小于预设半径阈值且拟合圆曲线的拟合精度大于预设精度阈值时,将目标圆弧点集直接删除;当根据拟合的圆曲线与目标圆弧点集求得的决定系数小于预设系数阈值时,将目标圆弧点集直接删除。In the real world, there are very likely to be long roads or very short winding roads, and the circular curve fitting may be successful. In this case, it is necessary to eliminate the overfitted point set. When the distance between any two adjacent inflection points in the target circular arc point set is greater than the preset distance threshold, the target circular arc point set is directly eliminated; when the radius of the circle after circle fitting is less than the preset radius threshold and the fitting accuracy of the fitted circular curve is greater than the preset accuracy threshold, the target circular arc point set is directly deleted; when the determination coefficient obtained based on the fitted circular curve and the target circular arc point set is less than the preset coefficient threshold, the target circular arc point set is directly deleted.
进一步的,作为图1方法的具体实现,本申请实施例提供了一种地形图相对精度评估装置,如图5所示,该装置包括:Further, as a specific implementation of the method of FIG. 1 , an embodiment of the present application provides a device for evaluating relative accuracy of a topographic map, as shown in FIG. 5 , the device includes:
点集计算模块,用于获取目标要素对应的预设点集数据,计算预设点集对应的斜率序列以及曲率序列,其中,所述目标要素包括圆弧弯道要素和/或弯曲河道要素,所述预设点集包括多个折点,所述预设点集数据包括多个折点数据;A point set calculation module, used to obtain preset point set data corresponding to a target element, and calculate a slope sequence and a curvature sequence corresponding to the preset point set, wherein the target element includes an arc curve element and/or a curved river element, the preset point set includes a plurality of inflection points, and the preset point set data includes a plurality of inflection point data;
点集确定模块,用于基于所述斜率序列以及所述曲率序列,确定所述目标要素对应的目标圆弧点集;A point set determination module, used 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 used to determine the target relative accuracy corresponding to the target arc point set, and determine the relative accuracy of the topographic map based on the target relative accuracy.
可选地,所述点集计算模块,具体包括:Optionally, the point set calculation module specifically includes:
斜率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每两个相邻折点的折点数据,确定所述预设点集对应的斜率序列;A slope sequence determining unit, configured to determine a slope sequence corresponding to the preset point set based on the inflection point data of every two adjacent inflection points in the preset point set data corresponding to the target element;
曲率序列确定单元,用于基于所述目标要素对应的预设点集数据中的每三个相邻折点的折点数据,拟合目标二次曲线,并依据所述目标二次曲线,确定所述预设点集对应的曲率序列。The curvature sequence determination unit is used to fit a target quadratic curve based on the inflection point data of every three adjacent inflection points in the preset point set data corresponding to the target element, and determine the curvature sequence corresponding to the preset point set according to the target quadratic curve.
可选地,所述点集确定模块,具体包括:Optionally, the point set determination module specifically includes:
分段单元,用于基于经验模态分解法,对所述曲率序列提取曲率趋势项,并基于所述曲率趋势项对应的正负值,对所述斜率序列进行分段;A segmentation unit, configured to extract a curvature trend term from the curvature sequence based on an empirical mode decomposition method, and segment the slope sequence based on positive and negative values corresponding to the curvature trend term;
筛选单元,用于依据分段后的所述斜率序列,对所述预设点集进行筛选,得到所述目标要素对应的目标圆弧点集。The screening unit is used 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; when it is monotonic, fit the preset point set data based on a preset exponential function to obtain a first fitting result, calculate a corresponding first determination coefficient and a first fitting accuracy based on the first fitting result, and when the first determination coefficient is greater than a first preset coefficient threshold, and the first fitting accuracy is greater than a first preset accuracy threshold, retain the preset point set, and use the retained preset point set as the target arc point set, otherwise, discard the preset point set; 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 determination coefficient and a second fitting accuracy based on 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 the second preset accuracy threshold, retain the preset point set, and use the retained preset point set as the target arc point set; otherwise, divide the preset point set into two sub-point sets according to monotonicity, and fit them respectively according to the preset exponential function to obtain a third fitting result, calculate the corresponding third determination coefficient and the third fitting accuracy according to the third fitting result, 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 threshold, retain the corresponding sub-point set, and use the retained sub-point set as the target arc point set; when the third determination coefficient is less than the first preset coefficient threshold and/or the third fitting accuracy is less than the first preset accuracy threshold, discard the corresponding sub-point set.
可选地,所述装置还包括:Optionally, the device further comprises:
圆拟合模块,用于所述确定所述目标要素对应的目标圆弧点集之后,基于最小二乘法,对所述目标圆弧点集进行圆拟合,得到所述目标圆弧点集对应的第一圆曲线,并确定所述第一圆曲线对应的第一半径以及目标圆心;A circle fitting module, which is used for, after determining the target circular arc point set corresponding to the target element, performing circle fitting on the target circular arc point set based on the least square method to obtain a first circular curve corresponding to the target circular arc point set, and determining a first radius and a target circle center corresponding to the first circular curve;
剔除模块,用于依据预设剔除条件,对所述目标圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第一圆弧点集;A removal module, used for removing the inflection points in the target arc point set that meet the preset removal condition according to the preset removal condition, to obtain a first arc point set;
所述圆拟合模块,还用于对所述第一圆弧点集重新利用所述最小二乘法进行圆拟合,得到第二圆曲线,并确定所述第二圆曲线对应的第二半径;The circle fitting module is further used to re-use the least square method to perform circle fitting on the first 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;
判断模块,用于当所述半径变化率小于或等于预设变化率阈值时,将所述第一圆弧点集作为指定圆弧点集,将所述第二圆曲线作为指定圆曲线,基于所述指定圆弧点集以及所述指定圆曲线计算所述目标相对精度;当所述半径变化率大于所述预设变化率阈值时,再次依据所述预设剔除条件,对所述第一圆弧点集中满足所述预设剔除条件的折点进行剔除,得到第二圆弧点集,并再次进行圆拟合得到第三圆曲线,确定所述第三圆曲线对应的第三半径,依据所述第二半径以及所述第三半径确定所述半径变化率,直至所述半径变化率小于或等于所述预设变化率阈值。A judgment module is used to, when the radius change rate is less than or equal to a preset change rate threshold, use the first arc point set as a designated arc point set and the second circular curve as a designated circular curve, and calculate the target relative accuracy based on the designated arc point set and the designated circular curve; when the radius change rate is greater than the preset change rate threshold, again according to the preset elimination condition, eliminate the inflection points in the first arc point set that meet the preset elimination condition to obtain the second arc point set, and again perform circle fitting to obtain a third circular curve, determine a third radius corresponding to the third circular curve, and determine the radius change rate based on 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 rejection module is specifically used to:
依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到首端的连接角以及末端的连接角,当所述连接角小于第一预设角度阈值或大于平角时,将所述连接角对应的端点剔除,其中,所述连接角为所述目标圆心一侧的角;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻两个折点以及末端相邻两个折点,得到对应的第一线段,确定任一所述第一线段的第一中垂线,并分别确定所述第一线段对应的两个折点在所述第一圆曲线上的两个最近点,连接两个所述最近点,得到与所述第一线段对应的第二线段,确定所述第二线段的第二中垂线,基于所述第一中垂线以及所述第二中垂线,确定目标垂线夹角,当所述目标垂线夹角大于第二预设角度阈值时,将所述连个折点中的端点剔除;和/或,依据预设剔除条件,分别连接所述目标圆弧点集中的首端相邻三个折点以及末端相邻三个折点,得到目标连接线段,当任一所述相邻三个折点对应的目标连接线段之和大于或等于预设长度阈值时,将所述相邻三个折点中与所述目标圆弧点集对应的端点剔除。According to the preset elimination conditions, three adjacent inflection points at the beginning and three adjacent inflection points at the end of the target arc point set are connected respectively to obtain the connection angle of the beginning and the connection angle of the end, and when the connection angle is less than the first preset angle threshold or greater than the straight angle, the endpoint corresponding to the connection angle is eliminated, wherein the connection angle is the angle on one side of the target center of the circle; and/or, according to the preset elimination conditions, two adjacent inflection points at the beginning and two adjacent inflection points at the end of the target arc point set are connected respectively to obtain the corresponding first line segment, determine the first perpendicular bisector of any of the first line segments, and respectively determine the two nearest points of the two inflection points corresponding to the first line segment on the first circular curve. , connect the two nearest points to obtain a second line segment corresponding to the first line segment, determine the second perpendicular bisector of the second line segment, determine the target perpendicular line angle based on the first perpendicular bisector and the second perpendicular bisector, and when the target perpendicular line angle is greater than a second preset angle threshold, remove the endpoints in the two inflection points; and/or, according to a preset removal condition, respectively connect the three adjacent inflection points at the beginning and the three adjacent inflection points at the end of the target arc point set to obtain a target connecting line segment, and when the sum of the target connecting line segments corresponding to any of the three adjacent inflection points is greater than or equal to a preset length threshold, remove the endpoints in the three adjacent inflection points corresponding to the target arc point set.
可选地,所述判断模块,还用于:Optionally, the judging module is further configured to:
基于所述指定圆弧点集,确定所述指定圆弧点集中每相邻两个折点对应的线段长度,得到目标总长度;基于所述指定圆曲线,确定所述指定圆曲线对应的目标圆弧长度;依据所述目标总长度以及所述目标圆弧长度,确定所述目标相对精度。Based on the specified arc point set, determine the line segment length corresponding to each two adjacent inflection points in the specified arc point set to obtain the target total length; based on the specified circular curve, determine the target arc length corresponding to the specified circular curve; based on the target total length and the target arc length, determine the target relative accuracy.
需要说明的是,本申请实施例提供的一种地形图相对精度评估装置所涉及各功能单元的其他相应描述,可以参考图1方法中的对应描述,在此不再赘述。It should be noted that for other corresponding descriptions of the functional units involved in the device for evaluating relative accuracy of a topographic map provided in the embodiment of the present application, reference can be made to the corresponding descriptions in the method of FIG. 1 , which will not be repeated here.
基于上述如图1所示方法,相应的,本申请实施例还提供了一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述如图1所示的地形图相对精度评估方法。Based on the method shown in FIG. 1 , accordingly, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for evaluating relative accuracy of a topographic map shown in FIG. 1 is implemented.
基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
基于上述如图1所示的方法,以及图5所示的虚拟装置实施例,为了实现上述目的,本申请实施例还提供了一种计算机设备,具体可以为个人计算机、服务器、网络设备等,该计算机设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1所示的地形图相对精度评估方法。Based on the above method as shown in Figure 1 and the virtual device embodiment shown in Figure 5, in order to achieve the above purpose, the embodiment of the present application also provides a computer device, which can be specifically 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; the processor is used to execute the computer program to implement the above-mentioned relative accuracy assessment method of topographic maps as shown in Figure 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 (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.
本领域技术人员可以理解,本实施例提供的一种计算机设备结构并不构成对该计算机设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
存储介质中还可以包括操作系统、网络通信模块。操作系统是管理和保存计算机设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各组件之间的通信,以及与该实体设备中其它硬件和软件之间通信。The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and/or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。首先,获取目标要素对应的预设点集数据,并以获取的预设点集数据为基础,计算每个预设点集对应的斜率序列和曲率序列。接着,可以进一步以斜率序列和曲率序列为基础,确定目标要素对应的目标圆弧点集。具体可以根据斜率序列和曲率序列从获取的预设点集中去掉一部分预设点集,最后保留的预设点集即为目标圆弧点集。确定了目标圆弧点集后,可以进一步根据目标圆弧点集确定与该目标圆弧点集对应的目标相对精度,进而根据目标相对精度确定地形图的相对精度。本申请可以根据获取的目标要素对应的预设点集数据,自动计算地形图的相对精度,可以有效减少地形图相对精度计算的成本,提升地形图的相对精度的评估效率。Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. First, the preset point set data corresponding to the target element is obtained, and based on the preset point set data obtained, the slope sequence and curvature sequence corresponding to each preset point set are calculated. Then, the target arc point set corresponding to the target element can be further determined based on the slope sequence and the curvature sequence. Specifically, a part of the preset point set can be removed from the preset point set obtained according to the slope sequence and the curvature sequence, and the preset point set retained at last is the target arc point set. After determining the target arc point set, the target relative accuracy 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 target relative accuracy. The present application can automatically calculate the relative accuracy of the topographic map according to the preset point set data corresponding to the acquired 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 will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims (7)
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 CN114419136A (en) | 2022-04-29 |
CN114419136B true 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 (2)
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 |
CN106960029A (en) * | 2017-03-21 | 2017-07-18 | 刘博宇 | A kind of method for extracting across map sheet geographic range framing raster data |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5836131B2 (en) * | 2012-01-04 | 2015-12-24 | クラリオン株式会社 | Digital road map generation method and apparatus |
CN108122202A (en) * | 2018-01-05 | 2018-06-05 | 武汉大学 | A kind of map Linear element multi-scale information derived method based on Shape context |
-
2021
- 2021-12-13 CN CN202111519819.5A patent/CN114419136B/en active Active
Patent Citations (2)
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 |
CN106960029A (en) * | 2017-03-21 | 2017-07-18 | 刘博宇 | A kind of method for extracting across map sheet geographic range framing raster data |
Also Published As
Publication number | Publication date |
---|---|
CN114419136A (en) | 2022-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106709928B (en) | fast two-dimensional maximum inter-class variance threshold method for noisy images | |
CN107219941B (en) | Soft pen real-time track generation method, storage medium and processing equipment | |
CN110598541A (en) | Method and equipment for extracting road edge information | |
CN109461133B (en) | Bridge bolt falling off detection method and terminal equipment | |
CN111091572B (en) | Image processing method and device, electronic equipment and storage medium | |
CN103795418B (en) | A kind of lossless compression method of road network track | |
CN110620586B (en) | Data compression method and device and terminal equipment | |
CN113888546A (en) | Regular method, electronic device and storage medium for hand-drawn graphics | |
CN114419136B (en) | A method and device for evaluating relative accuracy of topographic maps, and storage medium | |
CN111144612B (en) | Method and device for predicting position point of gas station, storage medium and terminal | |
CN117953100B (en) | A simple two-dimensional curve offset method and related equipment | |
US9031882B2 (en) | Category determination device and method comprising a feature space containing a closed region used to determine the category of a target based on the position of the target within the feature space with reference to the closed region | |
CN102110306B (en) | For concave polygon being carried out the method and system of trigonometric ratio | |
CN111325810A (en) | Color matching method and device and electronic equipment | |
CN112906091B (en) | A method, device, terminal and medium for drawing geographic information based on CAD | |
JP2016045538A (en) | Information processing apparatus, image determination method, and program | |
CN111047617B (en) | Rectangle recognition optimization method, device and equipment | |
CN114037779B (en) | Contour line drawing method and device, computer storage medium, and electronic device | |
CN114386011A (en) | A method, device, electronic device and storage medium for generating a verification code picture | |
CN113963004A (en) | A sampling method, device and electronic equipment | |
CN115619979B (en) | Semi-long surface cleaning method, terminal and storage medium | |
JP3692460B2 (en) | Numerical analysis system using mixed grid type solution adaptive grid method | |
CN113068043B (en) | PNG image compression method and device, electronic equipment and storage medium | |
TWI816150B (en) | Method for detecting a target object, electronic device, and storage medium | |
TWI755176B (en) | Method and device for calculating cell distribution density, electronic device, and storage unit |
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 |