CN115713600A - Method and device for generating digital elevation model of automatic driving scene - Google Patents
Method and device for generating digital elevation model of automatic driving scene Download PDFInfo
- Publication number
- CN115713600A CN115713600A CN202211486451.1A CN202211486451A CN115713600A CN 115713600 A CN115713600 A CN 115713600A CN 202211486451 A CN202211486451 A CN 202211486451A CN 115713600 A CN115713600 A CN 115713600A
- Authority
- CN
- China
- Prior art keywords
- slice
- point
- topographic
- points
- position information
- 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.)
- Pending
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本公开涉及自动驾驶技术领域,尤其涉及一自动驾驶场景的数字高程模型的生成方法和装置。The present disclosure relates to the technical field of automatic driving, and in particular to a method and device for generating a digital elevation model of an automatic driving scene.
背景技术Background technique
随着自动驾驶技术的发展,激光雷达的硬件参数越来越好,成本也越来越低。基于车载、机载或其他载具的激光雷达可以低成本、高效率地获取目标区域高密度高精度的点云数据。采集到的点云数据可以用于生成数字高程模型,从而为自动驾驶场景下的高精度地图、地形分析、决策规划等提供基础地形数据支撑。然而,相关技术中的数字高程模型包括各个点的平面位置信息和高程值,对存储空间的占用较大。With the development of autonomous driving technology, the hardware parameters of lidar are getting better and better, and the cost is getting lower and lower. LiDAR based on vehicle, airborne or other vehicles can obtain high-density and high-precision point cloud data of the target area at low cost and high efficiency. The collected point cloud data can be used to generate a digital elevation model, thereby providing basic terrain data support for high-precision maps, terrain analysis, decision-making planning, etc. in autonomous driving scenarios. However, the digital elevation model in the related art includes the plane position information and the elevation value of each point, which occupies a large storage space.
发明内容Contents of the invention
有鉴于此,本公开实施例提供了一种自动驾驶场景的数字高程模型的生成方法和装置。In view of this, the embodiments of the present disclosure provide a method and device for generating a digital elevation model of an automatic driving scene.
本公开实施例的第一方面,提供了一种自动驾驶场景的数字高程模型的生成方法,所述方法包括:获取自动驾驶车辆的目标作业区域的点云数据,基于所述点云数据确定所述目标作业区域中多个地形点的平面位置信息和高程值;基于各个地形点的平面位置信息确定对应地形点在预先划分的多个切片中所属的切片,不同的切片对应不同的平面位置范围;基于各个地形点的高程值以及各个地形点所属的切片生成所述目标作业区域的数字高程模型,并对所述数字高程模型进行存储;所述数字高程模型包括多个切片单元,每个切片单元对应一个切片,用于记录对应切片中的各个地形点的高程值;同一切片单元中各个地形点的高程值在所述切片单元中的存储顺序与所述各个地形点在所属切片中的位置相关联。The first aspect of the embodiments of the present disclosure provides a method for generating a digital elevation model of an autonomous driving scene. The method includes: acquiring point cloud data of a target operating area of an autonomous driving vehicle, and determining the point cloud data based on the point cloud data. Plane position information and elevation values of multiple topographic points in the target operation area; based on the planar position information of each topographic point, determine the slice to which the corresponding topographic point belongs in the multiple pre-divided slices, and different slices correspond to different plane position ranges ; Generate the digital elevation model of the target operation area based on the elevation value of each topographic point and the slice to which each topographic point belongs, and store the digital elevation model; the digital elevation model includes a plurality of slice units, each slice A unit corresponds to a slice, which is used to record the elevation value of each topographic point in the corresponding slice; the storage order of the elevation value of each topographic point in the same slice unit in the slice unit is related to the position of each topographic point in the slice Associated.
本公开实施例的第二方面,提供了一种自动驾驶场景的数字高程模型的生成装置,所述装置包括:第一确定模块,用于获取自动驾驶车辆的目标作业区域的点云数据,基于所述点云数据确定所述目标作业区域中多个地形点的平面位置信息和高程值;第二确定模块,用于基于各个地形点的平面位置信息确定对应地形点在预先划分的多个切片中所属的切片,不同的切片对应不同的平面位置范围;存储模块,用于基于各个地形点的高程值以及各个地形点所属的切片生成所述目标作业区域的数字高程模型,并对所述数字高程模型进行存储;所述数字高程模型包括多个切片单元,每个切片单元对应一个切片,用于记录对应切片中的各个地形点的高程值;同一切片单元中各个地形点的高程值在所述切片单元中的存储顺序与所述各个地形点在所属切片中的位置相关联。The second aspect of the embodiments of the present disclosure provides a device for generating a digital elevation model of an automatic driving scene, the device includes: a first determination module, configured to obtain point cloud data of the target operation area of the automatic driving vehicle, based on The point cloud data determines the plane position information and elevation values of multiple topographic points in the target operation area; the second determination module is used to determine the corresponding topographic points in multiple pre-divided slices based on the plane position information of each topographic point Different slices correspond to different plane position ranges; the storage module is used to generate the digital elevation model of the target operation area based on the elevation value of each topographic point and the slice to which each topographic point belongs, and perform a digital elevation model on the digital Elevation model is stored; The digital elevation model includes a plurality of slice units, and each slice unit corresponds to a slice, which is used to record the elevation value of each topographic point in the corresponding slice; the elevation value of each topographic point in the same slice unit is in the The storage order in the slice unit is associated with the position of each terrain point in the slice.
本公开实施例的第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第一方面的方法。A third aspect of the embodiments of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method of the above-mentioned first aspect is implemented.
本公开实施例的第四方面,提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述第一方面的方法。The fourth aspect of the embodiments of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the above-mentioned first aspects of the method.
本公开实施例采用的上述至少一个技术方案能够达到以下有益效果:通过将地形点划分到对应的切片中,并按照切片生成切片单元,在每个切片单元中记录对应切片中的各个地形点的高程值,这样,数字高程模型中只包括各个地形点的高程值,而不包括各个地形点的平面位置信息,从而有效减少了数字高程模型在存储时对存储空间的占用。此外,由于同一切片单元中各个地形点的高程值在切片单元中的存储顺序与所述各个地形点在所属切片中的位置相关联,因此,能够基于地形点的高程值在切片单元中的存储顺序恢复出地形点的平面坐标信息,从而能够基于恢复出的平面坐标信息以及存储的高程值获取各个地形点的完整空间信息。即,本公开实施例只需要在数字高程模型中存储地形点的高程值,即可获得与同时存储地形点平面位置信息和高程值相同的效果。The above-mentioned at least one technical solution adopted by the embodiments of the present disclosure can achieve the following beneficial effects: by dividing the topographic points into corresponding slices, and generating slice units according to the slices, recording the information of each topographic point in the corresponding slice in each slice unit In this way, the digital elevation model only includes the elevation value of each topographic point, and does not include the plane position information of each topographic point, thereby effectively reducing the storage space occupied by the digital elevation model during storage. In addition, because the storage order of the elevation values of each topographic point in the same slice unit in the slice unit is associated with the position of each topographic point in the slice, therefore, based on the storage order of the elevation values of the topographic points in the slice unit The plane coordinate information of the terrain points is sequentially recovered, so that the complete spatial information of each terrain point can be obtained based on the recovered plane coordinate information and the stored elevation value. That is, the embodiment of the present disclosure only needs to store the elevation value of the topographic point in the digital elevation model, and can obtain the same effect as simultaneously storing the topographic point plane position information and the elevation value.
附图说明Description of drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings that need to be used in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only of the present disclosure For some embodiments, those skilled in the art can also obtain other drawings based on these drawings without creative efforts.
图1为本公开一个实施例中的应用场景的示意图。Fig. 1 is a schematic diagram of an application scenario in an embodiment of the present disclosure.
图2为本公开一个实施例中的自动驾驶场景的数字高程模型的生成方法的流程图。FIG. 2 is a flowchart of a method for generating a digital elevation model of an automatic driving scene in an embodiment of the present disclosure.
图3为本公开一个实施例中的切片的示意图。FIG. 3 is a schematic diagram of slices in one embodiment of the present disclosure.
图4为本公开一个实施例中的数字高程模型的示意图。FIG. 4 is a schematic diagram of a digital elevation model in an embodiment of the present disclosure.
图5为本公开一个实施例中的增量更新过程的示意图。FIG. 5 is a schematic diagram of an incremental update process in an embodiment of the present disclosure.
图6为本公开一个实施例中的自动驾驶场景的数字高程模型的生成装置的框图。Fig. 6 is a block diagram of a device for generating a digital elevation model of an automatic driving scene in an embodiment of the present disclosure.
图7为本公开一个实施例中的电子设备的示意图。FIG. 7 is a schematic diagram of an electronic device in an embodiment of the present disclosure.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
随着自动驾驶行业的发展,基于车载、机载或其他载具的激光雷达(LiDAR)可以低成本、高效率地获取目标区域高密度高精度的点云数据。采集到的点云数据可以用于生成数字高程模型(Digital Elevation Model,DEM),数字高程模型通过有限的地形高程实现对地形曲面的数字化模拟或者地形表面形态的数字化表示,即通过栅格化地形表面并记录每个栅格点的高程值,用以表征地形特征。数字高程模型可以为自动驾驶场景下的高精度地图、地形分析、决策规划等提供基础地形数据支撑。With the development of the autonomous driving industry, LiDAR based on vehicles, airborne or other vehicles can obtain high-density and high-precision point cloud data of target areas at low cost and high efficiency. The collected point cloud data can be used to generate a digital elevation model (Digital Elevation Model, DEM). The digital elevation model realizes the digital simulation of the terrain surface or the digital representation of the terrain surface form through the limited terrain elevation. Surface and record the elevation value of each grid point to characterize terrain features. Digital elevation models can provide basic terrain data support for high-precision maps, terrain analysis, and decision-making planning in autonomous driving scenarios.
参见图1,是本公开实施例的应用场景的示意图。在目标作业区域R(例如,矿区)作业的自动驾驶车辆101可以沿着预先规划的行驶路径tr在装载点S1与卸载点S2之间往来,从而将装载点S1的煤矿运输到卸载点S2进行卸载。自动驾驶车辆101上可以安装激光雷达101a,激光雷达101a可以在自动驾驶车辆101移动过程中采集目标作业区域R的点云数据,点云数据可以包括激光雷达101a感测范围内的任意点H的三维坐标信息,所述任意点H包括但不限于行驶路径tr上的地面点、目标作业区域R的树木102上的点、目标作业区域R的行人103上的点和装载点S1的煤矿堆104上的点等。可以在自动驾驶车辆101上部署处理单元,处理单元可以基于激光雷达101a采集的点云数据生成目标作业区域R的数字高程模型。或者,也可以由自动驾驶车辆101将激光雷达101a采集的点云数据发送到云端,以便在云端基于接收到的点云数据生成目标作业区域R的数字高程模型。可以理解,以上应用场景仅为示例性说明,并非用于限制本公开。除了上述场景以外,本公开实施例的方案还可以用于其他的应用场景。Referring to FIG. 1 , it is a schematic diagram of an application scenario of an embodiment of the present disclosure. The self-driving
在相关技术中,数字高程模型既包括目标作业区域R中各个点的平面位置信息,又包括各个点的高程值,数据量较大,从而对存储空间的占用较大。基于此,本公开提供一种自动驾驶场景的数字高程模型的生成方法。下面结合图1所示的应用场景,对本公开实施例的方法进行说明。参见图2,所述方法包括:In related technologies, the digital elevation model includes not only the plane position information of each point in the target operation area R, but also the elevation value of each point, and the amount of data is relatively large, thus occupying a large amount of storage space. Based on this, the present disclosure provides a method for generating a digital elevation model of an automatic driving scene. The method in the embodiment of the present disclosure will be described below with reference to the application scenario shown in FIG. 1 . Referring to Figure 2, the method includes:
步骤S201:获取自动驾驶车辆101的目标作业区域R的点云数据C,基于点云数据C确定目标作业区域R中多个地形点H的平面位置信息和高程值;Step S201: Obtain the point cloud data C of the target operation area R of the
步骤S202:基于各个地形点H的平面位置信息确定对应地形点H在预先划分的多个切片slice中所属的切片,不同的切片slice对应不同的平面位置范围;Step S202: Based on the plane position information of each topographic point H, determine the slice to which the corresponding topographic point H belongs in the multiple pre-divided slices, and different slices correspond to different plane position ranges;
步骤S203:基于各个地形点H的高程值以及各个地形点H所属的切片生成目标作业区域R的数字高程模型DEM,并对数字高程模型DEM进行存储。Step S203: Generate a digital elevation model DEM of the target operation area R based on the elevation value of each topographic point H and the slice to which each topographic point H belongs, and store the digital elevation model DEM.
在步骤S201中,点云数据C可以由自动驾驶车辆101上的激光雷达101a采集得到。点云数据C中可以包括多个地形点H的三维坐标信息,基于地形点的三维坐标信息可以确定该地形点的平面位置信息和高程值,其中,平面位置信息可以记为(x,y),用于表征地形点在地形表面的位置信息,x表示平面横坐标,y表示平面纵坐标。高程值是指地形点沿铅垂线方向到绝对基面的距离,可以记为z。In step S201 , the point cloud data C can be collected by the
在一些实施例中,点云数据C可以通过对激光雷达101a采集的目标作业区域R的原始点云数据进行预处理得到。其中,预处理可以包括但不限于以下至少一者:体素化滤波、噪点滤波、非地形点过滤。下面分别对各种预处理方式进行举例说明。In some embodiments, the point cloud data C may be obtained by preprocessing the original point cloud data of the target operation area R collected by the
其中,体素化滤波是指通过体素化栅格来对原始点云数据进行过滤,即对点云数据进行下采样来降低点云单位距离的密度,从而减少点云数据的数量并同时保持点云数据的形状特征。例如,可以把点云空间划分成一定数量和大小的体素化栅格(例如,立方体),用体素化栅格的重心点来近似表示体素化栅格内的所有其他点来达到精简点云数据的效果。可以基于数字高程模型DEM的目标分辨率来对原始点云数据进行体素化滤波,即,基于数字高程模型DEM的目标分辨率来确定体素化栅格的尺寸。一般而言,为保证数字高程模型DEM的精度,体素化栅格的边长参数可以设置为不低于目标分辨率的值。数字高程模型DEM的目标分辨率可以基于实际需要设置。目标分辨率的数值越小,目标分辨率就越高,数字高程模型DEM的精度越高,同时数据量也越大。因此,确定目标分辨率时可以同时考虑数字高程模型DEM的精确度和数据量。Among them, voxel filtering refers to filtering the original point cloud data by voxelizing the grid, that is, downsampling the point cloud data to reduce the density of the point cloud unit distance, thereby reducing the number of point cloud data while maintaining Shape features of point cloud data. For example, the point cloud space can be divided into a certain number and size of voxelized grids (for example, cubes), and the barycenter point of the voxelized grid can be used to approximate all other points in the voxelized grid to achieve simplification Effects on point cloud data. The original point cloud data may be voxelized and filtered based on the target resolution of the digital elevation model DEM, that is, the size of the voxelized grid is determined based on the target resolution of the digital elevation model DEM. Generally speaking, in order to ensure the accuracy of the digital elevation model DEM, the side length parameter of the voxelized grid can be set to a value not lower than the target resolution. The target resolution of digital elevation model DEM can be set based on actual needs. The smaller the value of the target resolution, the higher the target resolution, the higher the accuracy of the digital elevation model DEM, and the larger the amount of data. Therefore, the accuracy and data volume of the digital elevation model DEM can be considered at the same time when determining the target resolution.
在一个实施例中,假设数字高程模型DEM的目标分辨率为0.1米,则可以将体素化栅格的边长参数也设置为0.1米。通过这种方式,能够在保留空间物体几何特征和精度要求的情况下有效降低点云数据的数据量,提高点云数据的处理和计算效率。In one embodiment, assuming that the target resolution of the digital elevation model DEM is 0.1 meters, the side length parameter of the voxelized grid can also be set to 0.1 meters. In this way, the data volume of point cloud data can be effectively reduced while retaining the geometric characteristics and accuracy requirements of space objects, and the processing and calculation efficiency of point cloud data can be improved.
噪点滤波是指通过一种或多种滤波算法,对原始点云数据中的灰尘、移动散点、孤立点、异常高点、异常低点、异常远点等各类噪点进行过滤。可以采用一整套滤波算法集对原始点云数据进行噪点滤波,包括但不限于直方图滤波、统计滤波、半径滤波等。直方图滤波能够统计出不同坐标范围内的点的数量,从而过滤掉异常高点、异常低点、异常远点等噪点。统计滤波和半径滤波能够确定不同区域的点云数据的密度,从而过滤掉灰尘、移动散点、孤立点等噪点。各种滤波算法可以串行执行。通过进行噪点滤波,可以有效过滤掉各种噪点,从而减少生成数字高程模型DEM的过程中的计算误差。Noise filtering refers to filtering various noise points such as dust, moving scattered points, isolated points, abnormal high points, abnormal low points, and abnormal far points in the original point cloud data through one or more filtering algorithms. A complete set of filtering algorithms can be used to filter the noise of the original point cloud data, including but not limited to histogram filtering, statistical filtering, radius filtering, etc. Histogram filtering can count the number of points in different coordinate ranges, thereby filtering out abnormal high points, abnormal low points, abnormal far points and other noise points. Statistical filtering and radius filtering can determine the density of point cloud data in different areas, thereby filtering out noise such as dust, moving scattered points, and isolated points. Various filtering algorithms can be performed serially. By performing noise filtering, various noise points can be effectively filtered out, thereby reducing calculation errors in the process of generating a digital elevation model DEM.
非地形点过滤是指通过对点云数据进行语义分割,识别出点云数据的语义信息,以便过滤掉原始点云数据中的车辆、房屋、行人、路障、交通标志等各类非地形点,仅采用原始点云数据中的路面、山坡、隔离挡墙、台阶等地形点参与数字高程模型DEM的生成,从而减少非地形点对数字高程模型DEM的影响,提高数字高程模型DEM的精度。可以采用模式识别、机器学习算法或者二者的结合来实现点云数据的语义分割。Non-topographic point filtering refers to identifying the semantic information of point cloud data through semantic segmentation of point cloud data, so as to filter out various non-topographic points such as vehicles, houses, pedestrians, roadblocks, and traffic signs in the original point cloud data. Only topographic points such as roads, hillsides, isolation retaining walls, and steps in the original point cloud data are used to participate in the generation of the digital elevation model DEM, thereby reducing the impact of non-topographic points on the digital elevation model DEM and improving the accuracy of the digital elevation model DEM. Semantic segmentation of point cloud data can be achieved using pattern recognition, machine learning algorithms, or a combination of the two.
在步骤S202中,可以设置统一的切片组织规则和数据结构。如图3所示,可以将平面位置范围预先划分为多个切片slice,不同的切片对应不同的平面位置范围(包括不同的平面横坐标范围和/或不同的平面纵坐标范围)。例如,一个切片的平面横坐标范围为[x1,x2],平面纵坐标范围为[y1,y2];与该切片处于同一行的相邻切片的平面横坐标范围为[x2,x3],平面纵坐标范围为[y1,y2];与该切片处于同一列的相邻切片的平面横坐标范围为[x1,x2],平面纵坐标范围为[y2,y3],其中,x1、x2和x3为互不相等的实数,y1、y2和y3为互不相等的实数。In step S202, unified slice organization rules and data structures may be set. As shown in FIG. 3 , the plane position range may be pre-divided into multiple slices, and different slices correspond to different plane position ranges (including different plane abscissa ranges and/or different plane ordinate ranges). For example, the plane abscissa range of a slice is [x1,x2], the plane ordinate range is [y1,y2]; the plane abscissa range of the adjacent slice in the same row as the slice is [x2,x3], the plane The vertical coordinate range is [y1,y2]; the horizontal coordinate range of the adjacent slice in the same column as the slice is [x1,x2], and the horizontal vertical coordinate range is [y2,y3], where x1, x2 and x3 are real numbers that are not equal to each other, and y1, y2 and y3 are real numbers that are not equal to each other.
各个切片slice的尺寸可以相同,也可以不同。为了便于说明,下面以各个切片slice的尺寸相同为例进行说明。可以基于数据管理效率和灵活性设置切片slice的行边长RL和列边长CL,其中,行边长RL和列边长CL可以相同,也可以不同。可选地,可以将行边长RL和列边长CL均设置为10米。The size of each slice can be the same or different. For the convenience of description, the description below takes the same size of each slice as an example. The row side length RL and the column side length CL of the slice can be set based on data management efficiency and flexibility, wherein the row side length RL and the column side length CL can be the same or different. Optionally, both the row side length RL and the column side length CL can be set to 10 meters.
在一些实施例中,可以基于目标作业区域R的面积设置固定的基准点B0,如图3所示,基准点的坐标为(-10000,10000)。在确定基准点之后,可以将以基准点B0为左上角角点的切片slice作为第0行第0列的切片,从而得到各个切片slice的行号和列号。In some embodiments, a fixed reference point B0 may be set based on the area of the target operation region R, as shown in FIG. 3 , the coordinates of the reference point are (-10000, 10000). After the reference point is determined, the slice with the reference point B0 as the upper left corner point can be used as the slice at row 0 and column 0, so as to obtain the row number and column number of each slice.
可以采用切片的行坐标和列坐标来标识各个切片slice,例如,用{0,0}标识第0行第0列的切片,用{0,1}标识第0行第1列的切片,以此类推。或者,也可以采用切片的编号来标识各个切片。例如,按行对各个切片slice进行编号,假设每行包括u个切片,则第1行的各个切片的编号可以依次记为0,1,2,……,u-1;第2行的各个切片的编号可以依次记为u,u+1,u+2,……,2u-1;以此类推。You can use the row and column coordinates of the slice to identify each slice. For example, use {0,0} to identify the slice at row 0 and column 0, and use {0,1} to identify the slice at row 0 and
可以理解,以上的切片组织规则仅为示例性说明。例如,除了图中所示的基准点之外,还可以采用其他坐标位置的点作为基准点B0。又例如,可以将以基准点B0为左下角角点、右下角角点或右上角角点的切片slice作为第0行第0列的切片,从而得到各个切片slice的行号和列号。可以根据实际情况选择适当的切片组织规则和数据结构,对此本公开不再一一列举。通过上述方式,将地形点的高程值与地形点所属切片的行号和列号进行关联绑定,实现了数字高程模型基于行号和列号的简单、高效组织管理。为了便于说明,下面以图3所示的切片组织规则为例,对本公开实施例的方案进行说明。It can be understood that the above slice organization rules are only illustrative. For example, in addition to the reference point shown in the figure, a point at other coordinate positions can also be used as the reference point B0. For another example, a slice with the reference point B0 as the lower left corner, the lower right corner, or the upper right corner may be taken as a slice at row 0 and column 0, so as to obtain the row number and column number of each slice. Appropriate slice organization rules and data structures can be selected according to actual conditions, which will not be listed in this disclosure. Through the above method, the elevation value of the topographic point is associated and bound with the row number and column number of the slice to which the topographic point belongs, and the simple and efficient organization and management of the digital elevation model based on the row number and column number are realized. For ease of description, the scheme of the embodiment of the present disclosure will be described below by taking the slice tissue rule shown in FIG. 3 as an example.
在上述切片组织规则的基础上,可以基于地形点H的平面位置信息、预设的基准点B0的平面位置信息以及各个切片slice的尺寸确定地形点H所属的切片。其中,平面位置信息可以包括平面横坐标x和平面纵坐标y,切片的尺寸可以用切片的行边长RL和列边长CL来表示,在切片的形状为正方形的情况下,切片的尺寸也可以用切片的面积或切片的对角线长度来表示。On the basis of the above slice organization rules, the slice to which the topographic point H belongs can be determined based on the planar position information of the topographic point H, the planar position information of the preset reference point B0, and the size of each slice. Wherein, the plane position information can include the plane abscissa x and the plane ordinate y, and the size of the slice can be represented by the row side length RL and the column side length CL of the slice. When the shape of the slice is a square, the size of the slice is also It can be represented by the area of the slice or the length of the diagonal of the slice.
具体来说,可以基于地形点H的平面纵坐标、基准点B0的平面纵坐标以及各个切片slice的行边长确定地形点H所属的切片的行号。还可以基于地形点H的平面横坐标、基准点B0的平面横坐标以及各个切片slice的列边长确定地形点H所属的切片的列号。在图3所示的实施例中,假设各个切片的行边长均为CL,各个切片的列边长均为RL,可以获取基准点的平面纵坐标与地形点H的平面纵坐标之间的第一差值,确定该第一差值与切片的列边长RL的第一比值,对该第一比值进行向下取整,得到地形点H所属的切片的行号m。还可以获取地形点H的平面横坐标与基准点的平面横坐标之间的第二差值,确定该第二差值与切片的行边长CL的第二比值,对该第二比值进行向下取整,得到地形点H所属的切片的列号n。一些实施例中地形点H所属的切片的行号m和列号n的计算公式计算可以记为:Specifically, the row number of the slice to which the topographic point H belongs may be determined based on the plane ordinate of the topographic point H, the plane ordinate of the reference point B0, and the row side lengths of each slice. The column number of the slice to which the topographic point H belongs may also be determined based on the plane abscissa of the topographic point H, the plane abscissa of the reference point B0, and the column side lengths of each slice. In the embodiment shown in FIG. 3 , assuming that the row side lengths of each slice are both CL and the column side lengths of each slice are RL, the distance between the plane ordinate of the reference point and the plane ordinate of the topographic point H can be obtained. For the first difference, determine a first ratio between the first difference and the column side length RL of the slice, and round down the first ratio to obtain the row number m of the slice to which the terrain point H belongs. It is also possible to obtain the second difference between the plane abscissa of the topographic point H and the plane abscissa of the reference point, determine the second ratio of the second difference to the line length CL of the slice, and calculate the second ratio. Round down to get the column number n of the slice to which the topographic point H belongs. In some embodiments, the calculation formula of the row number m and column number n of the slice to which the terrain point H belongs can be written as:
其中,B0.x和B0.y分别表示基准点B0的平面横坐标和平面纵坐标,H.x和H.y分别表示地形点H的平面横坐标和平面纵坐标,floor表示向下取整操作。在基准点B0为第0行第0列的切片的左下角角点的情况下,上述公式(1.1)中的floor可以替换为Ceiling,即向上取整操作。在其他实施例中,地形点H所属的切片的行号m和列号n可以根据实际情况进行调整,此处不再一一列举。在得到地形点H所属的切片的行号m和列号n之后,也可以将行号m和列号n换算为地形点H所属的切片的编号。仍假设图3所示的切片组织规则中每行包括u个切片,则地形点H所属的切片的编号可以记为u*m+n。Among them, B0.x and B0.y represent the plane abscissa and plane ordinate of the reference point B0 respectively, H.x and H.y represent the plane abscissa and plane ordinate of the terrain point H respectively, and floor represents the rounding down operation. In the case where the reference point B0 is the lower left corner of the slice at row 0 and column 0, the floor in the above formula (1.1) can be replaced with Ceiling, that is, an upward rounding operation. In other embodiments, the row number m and column number n of the slice to which the topographic point H belongs can be adjusted according to actual conditions, and will not be listed here. After obtaining the row number m and column number n of the slice to which the topographic point H belongs, the row number m and the column number n may also be converted into the number of the slice to which the topographic point H belongs. Still assuming that each row in the slice organization rule shown in FIG. 3 includes u slices, the number of the slice to which the topographic point H belongs can be recorded as u*m+n.
在步骤S203中,可以基于各个地形点H的高程值以及各个地形点所属的切片生成数字高程模型DEM。由于生成的数字高程模型中只包括各个地形点的高程值,而不包括各个地形点的平面位置信息,因此有效减少了数字高程模型的数据量,从而有效减少了数字高程模型在存储时对存储空间的占用。In step S203, a digital elevation model DEM may be generated based on the elevation value of each topographic point H and the slice to which each topographic point belongs. Since the generated digital elevation model only includes the elevation value of each topographic point, and does not include the plane position information of each topographic point, the data volume of the digital elevation model is effectively reduced, thereby effectively reducing the storage time of the digital elevation model. space occupation.
数字高程模型DEM中包括的各个地形点H的高程值可以按照该地形点H所属的切片进行组织。具体来说,数字高程模型DEM可以包括多个切片单元,每个切片单元对应一个切片,用于记录对应切片中的各个地形点的高程值。例如,参见图4,在切片的数量为v的情况下,切片单元的数量也为v,各个切片分别记为切片1,切片2,……,切片v,各个切片单元分别记为切片单元1,切片单元2,……,切片单元v。其中,切片单元1与切片1对应,用于记录切片1中各个地形点的高程值;切片单元2与切片2对应,用于记录切片2中各个地形点的高程值;以此类推。The elevation value of each topographic point H included in the digital elevation model DEM can be organized according to the slice to which the topographic point H belongs. Specifically, the digital elevation model DEM may include a plurality of slice units, each slice unit corresponds to a slice, and is used to record the elevation value of each topographic point in the corresponding slice. For example, referring to Fig. 4, when the number of slices is v, the number of slice units is also v, and each slice is respectively marked as
在一些实施例中,每个切片单元中记录有对应切片的特征点的平面位置信息,且各个切片单元的标识信息基于该切片单元对应的切片的标识信息(即切片的行号和列号,或者切片的编号)确定。例如,可以将每个切片单元组织成一个切片文件,且将每个切片文件对应的切片的标识信息作为该切片文件的文件名。这样,可以基于切片单元的标识信息确定切片单元对应的切片。In some embodiments, the plane position information of the feature points of the corresponding slice is recorded in each slice unit, and the identification information of each slice unit is based on the identification information of the slice corresponding to the slice unit (ie, the row number and column number of the slice, or slice number) to determine. For example, each slice unit may be organized into a slice file, and the identification information of the slice corresponding to each slice file may be used as the file name of the slice file. In this way, the slice corresponding to the slice unit can be determined based on the identification information of the slice unit.
在另一些实施例中,每个切片单元中记录有对应切片的特征点的平面位置信息以及对应切片中各个地形点的高程值。其中,切片的特征点可以是该切片的角点(例如,切片的左上角角点)、切片的中心点或者切片某条边的中点等。以特征点是切片的左上角角点为例,如图3所示,第m行第n列的切片(图中灰色区域对应的切片)的特征点如图中的特征点B所示。这样,第m行第n列的切片对应的切片单元中可以记录特征点B的平面位置信息(包括特征点B的平面横坐标和平面纵坐标),以及第m行第n列的切片中各个地形点的高程值。In some other embodiments, each slice unit records the plane position information of the feature points of the corresponding slice and the elevation value of each terrain point in the corresponding slice. Wherein, the feature point of the slice may be a corner point of the slice (for example, an upper left corner point of the slice), a center point of the slice, or a midpoint of a side of the slice, and the like. Take the feature point as the upper left corner of the slice as an example, as shown in Figure 3, the feature point of the slice at row m and column n (the slice corresponding to the gray area in the figure) is shown as feature point B in the figure. In this way, the plane position information of the feature point B (including the plane abscissa and plane ordinate) of the feature point B can be recorded in the slice unit corresponding to the slice in the mth row and nth column, and each of the slices in the mth row and nth column The elevation value of the topographic point.
其中,切片的特征点的平面位置信息可以基于预设的基准点B0的平面位置信息、切片在所述多个切片中的位置信息以及各个切片的尺寸确定。在图3所示的实施例中,假设各个切片的行边长均为CL,各个切片的列边长均为RL,可以获取切片的列号与切片的行边长的第一乘积,基于该第一乘积与基准点的平面横坐标之和确定切片的特征点B的平面横坐标B.x。还可以获取切片的行号与切片的列边长的第二乘积,基于基准点的平面纵坐标与该第二乘积之差确定切片的特征点B的平面纵坐标B.y。一些实施例中第m行第n列的切片的特征点B的平面横坐标B.x和平面纵坐标B.y的计算公式可以分别记为:Wherein, the plane position information of the feature points of the slice may be determined based on the preset plane position information of the reference point B0, the position information of the slice in the plurality of slices, and the size of each slice. In the embodiment shown in FIG. 3 , assuming that the row side lengths of each slice are both CL and the column side lengths of each slice are RL, the first product of the column number of the slice and the row side length of the slice can be obtained, based on the The sum of the first product and the plane abscissa of the reference point determines the plane abscissa B.x of the feature point B of the slice. The second product of the row number of the slice and the column side length of the slice may also be obtained, and the plane ordinate B.y of the feature point B of the slice is determined based on the difference between the plane ordinate of the reference point and the second product. In some embodiments, the calculation formulas of the plane abscissa B.x and the plane ordinate B.y of the feature point B of the slice in the mth row and the nth column can be respectively written as:
在特征点B为第m行第n列的切片的中心点的情况下,特征点B的平面横坐标B.x可以在公式(1.2)的基础上增加CL/2的偏移量,特征点B的平面纵坐标B.y可以在公式(1.2)的基础上增加RL/2的偏移量。在其他实施例中,特征点B的平面横坐标B.x和平面纵坐标B.y的计算公式可以根据实际情况调整,此处不再一一列举。In the case where the feature point B is the center point of the slice of the mth row and the nth column, the plane abscissa B.x of the feature point B can increase the offset of CL/2 on the basis of the formula (1.2), and the feature point B’s The plane ordinate B.y can increase the offset of RL/2 on the basis of formula (1.2). In other embodiments, the calculation formulas of the plane abscissa B.x and the plane ordinate B.y of the feature point B can be adjusted according to the actual situation, and will not be listed here.
在一些实施例中,同一切片单元中各个地形点的高程值在切片单元中的存储顺序与各个地形点在所属切片中的位置相关联。例如,可以基于数字高程模型DEM的目标分辨率将一个切片划分为多个子切片,每个子切片为所属切片中某行某列上的一个栅格,一个地形点在所属切片中的位置可以用该地形点所属的子切片在对应切片中的行号和列号来表示。例如,切片中第0行第0列的栅格为一个子切片,切片中第0行第1列的栅格为另一个子切片。每个子切片中可以包括多个地形点。可以基于各个子切片在对应切片中的行号和列号,确定该切片中各个地形点的高程值在对应切片单元中的存储顺序。In some embodiments, the storage order of the elevation values of each terrain point in the same slice unit in the slice unit is associated with the position of each terrain point in the slice to which it belongs. For example, a slice can be divided into multiple sub-slices based on the target resolution of the digital elevation model DEM, each sub-slice is a grid on a certain row and column in the slice, and the position of a topographic point in the slice can be determined by the The sub-slice to which the terrain point belongs is represented by the row number and column number in the corresponding slice. For example, the grid at row 0 and column 0 in the slice is a sub-slice, and the grid at row 0 and
如图4所示,可以在切片单元中逐行记录各个子切片中的地形点的高程值。具体来说,针对每个切片单元,可以先记录第0行第0列的子切片中各个地形点H(row0,col0)的高程值,再记录第0行第1列的子切片中各个地形点H(row0,col1)的高程值,以此类推,直到记录完第0行最后一列的子切片中各个地形点的高程值。然后,再依次记录第1行第0列的子切片中各个地形点H(row1,col0)的高程值,第1行第1列的子切片中各个地形点H(row1,col1)的高程值,以此类推,直到记录完第1行最后一列的子切片中各个地形点的高程值。按照上述方式逐行记录各个子切片中的地形点的高程值,直到同一切片中所有子切片中的地形点的高程值都记录完成。As shown in FIG. 4 , elevation values of topographic points in each sub-slice may be recorded row by row in a slice unit. Specifically, for each slice unit, the elevation value of each terrain point H(row0, col0) in the sub-slice of row 0 and column 0 can be recorded first, and then the terrain in the sub-slice of row 0 and
由于点云数据的密度通常较高,一个子切片中实际采集到的地形点的数量可能大于1,还可以从每个子切片中筛选出一个地形点,或者基于子切片中包括的多个地形点拟合出一个地形点,用筛选或拟合出的地形点来代表对应子切片中的各个地形点。由于子切片是按照数字高程模型DEM的目标分辨率进行划分的,因此,通过这种方式为每个子切片筛选或拟合出一个地形点,既能够减少数据量,又能够满足数字高程模型DEM的目标分辨率的要求。筛选或拟合出的地形点可以称为对应子切片的栅格点。在此基础上,切片单元中记录的各个地形点的高程值可以仅包括对应切片中各个栅格点的高程值。Since the density of point cloud data is usually high, the number of terrain points actually collected in a sub-slice may be greater than 1, and one terrain point can also be filtered from each sub-slice, or based on multiple terrain points included in the sub-slice A terrain point is fitted, and each terrain point in the corresponding sub-slice is represented by the filtered or fitted terrain point. Since the sub-slices are divided according to the target resolution of the digital elevation model DEM, screening or fitting a topographic point for each sub-slice in this way can not only reduce the amount of data, but also meet the requirements of the digital elevation model DEM. Target resolution requirements. The filtered or fitted terrain points may be called grid points corresponding to sub-slices. On this basis, the elevation value of each topographic point recorded in the slice unit may only include the elevation value of each grid point in the corresponding slice.
进一步地,还可以对同一子切片中的多个地形点的高程值进行融合,将融合得到的高程值作为该子切片中各个地形点的高程值。具体来说,可以确定子切片的栅格点的多个邻域地形点的高程值,利用反距离权重算法对各个邻域地形点的高程值进行加权平均,得到栅格点的高程值。其中,栅格点的邻域地形点是指与栅格点之间的距离小于预设的邻域半径的地形点。Further, the elevation values of multiple topographic points in the same sub-slice may also be fused, and the fused elevation value may be used as the elevation value of each topographic point in the sub-slice. Specifically, the elevation values of multiple neighborhood topographic points of the grid point of the sub-slice can be determined, and the elevation value of each neighborhood topographic point can be weighted and averaged by using the inverse distance weighting algorithm to obtain the elevation value of the grid point. Wherein, the topographic point in the neighborhood of the grid point refers to the topographic point whose distance to the grid point is smaller than a preset neighborhood radius.
通过上述方式,能够基于地形点的高程值在切片单元中的存储顺序恢复出地形点的平面坐标信息,从而能够基于恢复出的平面坐标信息以及存储的高程值获取各个地形点的完整空间信息。即,本公开实施例只需要在数字高程模型中存储地形点的高程值,即可获得与同时存储地形点平面位置信息和高程值相同的效果。Through the above method, the plane coordinate information of the terrain points can be recovered based on the storage order of the elevation values of the terrain points in the slice unit, so that the complete spatial information of each terrain point can be obtained based on the restored plane coordinate information and the stored elevation values. That is, the embodiment of the present disclosure only needs to store the elevation value of the topographic point in the digital elevation model, and can obtain the same effect as simultaneously storing the topographic point plane position information and the elevation value.
在上述实施例中,地形点所属的子切片可以基于该地形点的平面位置信息、该地形点所属切片的特征点的平面位置信息以及数字高程模型的目标分辨率共同确定。其中,地形点所属的子切片可以采用该子切片在对应切片中的行号和列号来标识,也可以用该子切片在对应切片中的编号来标识。在以子切片的行号和列号来标识子切片的实施例中,可以获取子切片所属切片的角点的平面纵坐标与子切片中的地形点的平面纵坐标之间的第三差值,基于该第三差值与数字高程模型的目标分辨率的比值确定子切片的行号,并获取子切片中的地形点的平面横坐标与子切片所属切片的角点的平面横坐标之间的第四差值,基于该第四差值与数字高程模型的目标分辨率的比值确定子切片的列号。一些实施例中子切片的行号和列号的计算公式可以记为:In the above embodiment, the sub-slice to which the topographic point belongs may be jointly determined based on the planar position information of the topographic point, the planar position information of the feature points of the slice to which the topographic point belongs, and the target resolution of the digital elevation model. Wherein, the sub-slice to which the terrain point belongs may be identified by the row number and the column number of the sub-slice in the corresponding slice, or may be identified by the serial number of the sub-slice in the corresponding slice. In the embodiment where the sub-slice is identified by its row number and column number, the third difference between the plane ordinate of the corner point of the slice to which the sub-slice belongs and the plane ordinate of the terrain point in the sub-slice can be obtained , determine the row number of the sub-slice based on the ratio of the third difference to the target resolution of the digital elevation model, and obtain the distance between the plane abscissa of the terrain point in the sub-slice and the plane abscissa of the corner point of the slice to which the sub-slice belongs The column number of the sub-slice is determined based on the ratio of the fourth difference to the target resolution of the digital elevation model. In some embodiments, the formulas for calculating the row numbers and column numbers of sub-slices can be written as:
假设切片中每行子切片的数量为w,一个子切片在对应切片中的编号可以记为w*row+col。Assuming that the number of sub-slices in each row in a slice is w, the number of a sub-slice in the corresponding slice can be written as w*row+col.
在生成数字高程模型DEM之后,还可以通过一定的处理从数字高程模型DEM中恢复出各个地形点的平面位置信息,并从数字高程模型DEM中提取出各个地形点的高程值。然后,可以基于各个地形点的平面位置信息和高程值,渲染出可视化的地形图,或者计算出目标作业区域R的地形因子,例如,精度、纬度、海拔、高度、坡向、坡位、地表粗糙度、地形起伏度、坡形等。还可以基于各个地形点的平面位置信息和高程值生成高精度地图,和/或对自动驾驶车辆101的自动驾驶过程进行路径规划和决策控制。下面对恢复地形点的平面位置信息的方式进行举例说明。After the digital elevation model DEM is generated, the plane position information of each topographic point can be recovered from the digital elevation model DEM through certain processing, and the elevation value of each topographic point can be extracted from the digital elevation model DEM. Then, based on the plane position information and elevation values of each topographic point, a visualized topographic map can be rendered, or topographic factors of the target operation area R can be calculated, such as accuracy, latitude, altitude, height, aspect, slope, surface Roughness, terrain relief, slope shape, etc. It is also possible to generate a high-precision map based on the plane position information and elevation values of each terrain point, and/or perform path planning and decision-making control on the automatic driving process of the
在一些实施例中,可以读取数字高程模型DEM的目标切片单元;基于目标切片单元中的目标地形点的记录顺序确定目标地形点所属的子切片;基于目标地形点所属的子切片、目标切片单元中特征点的平面位置信息以及数字高程模型DEM的目标分辨率,确定目标地形点的平面位置信息。In some embodiments, the target slice unit of the digital elevation model DEM can be read; the sub-slice to which the target topographic point belongs is determined based on the recording sequence of the target topographic point in the target slice unit; based on the sub-slice to which the target topographic point belongs, the target slice The plane position information of the feature points in the unit and the target resolution of the digital elevation model DEM determine the plane position information of the target terrain point.
其中,目标切片单元可以是数字高程模型DEM包括的任意一个切片单元。目标地形点可以是目标切片单元中的任意一个地形点,或者是目标切片单元对应的切片包括的任意一个子切片中的栅格点。由于各个地形点和栅格点都是按顺序记录在切片单元中的,因此,可以基于目标地形点的记录顺序index确定目标地形点所属的子切片。Wherein, the target slice unit may be any slice unit included in the digital elevation model DEM. The target terrain point may be any terrain point in the target slice unit, or a grid point in any sub-slice included in the slice corresponding to the target slice unit. Since each topographic point and grid point is recorded in the slice unit sequentially, the sub-slice to which the target topographic point belongs can be determined based on the recording sequence index of the target topographic point.
具体来说,可以基于切片的行宽以及数字高程模型DEM的目标分辨率确定该切片中子切片的总列数sum_col,具体表示为:Specifically, the total number of columns sum_col of sub-slices in the slice can be determined based on the row width of the slice and the target resolution of the digital elevation model DEM, specifically expressed as:
sum_col=CL/resolution(2.1)sum_col=CL/resolution(2.1)
然后,基于目标地形点在切片单元中的记录顺序index和子切片的总列数sum_col确定目标地形点在对应切片中的行号row和列号col。具体来说,可以获取目标地形点在切片单元中的记录顺序index与子切片的总列数sum_col的比值,对该比值进行向下取整,得到目标地形点的行号row。还可以将目标地形点在切片单元中的记录顺序index对子切片的总列数sum_col取余数,基于该余数确定目标地形点的列号col。目标地形点的行号和列号的计算公式可以记为:Then, determine the row number row and column number col of the target terrain point in the corresponding slice based on the record sequence index of the target terrain point in the slice unit and the total column number sum_col of the sub-slice. Specifically, the ratio of the record sequence index of the target terrain point in the slice unit to the total column number sum_col of the sub-slice can be obtained, and the ratio is rounded down to obtain the row number row of the target terrain point. It is also possible to take the remainder of the record sequence index of the target terrain point in the slice unit to the total column number sum_col of the sub-slice, and determine the column number col of the target terrain point based on the remainder. The calculation formula of the row number and column number of the target topographic point can be written as:
然后,可以确定目标地形点的行号与数字高程模型DEM的目标分辨率的第三乘积,基于该第三乘积与目标地形点所在切片的特征点B的平面横坐标之和确定目标地形点的平面横坐标。还可以确定目标地形点的列号与数字高程模型DEM的目标分辨率的第四乘积,基于目标地形点所在切片的特征点B的平面横坐标与该第四乘积之差确定目标地形点的平面纵坐标。恢复目标地形点的平面横坐标与平面纵坐标的计算公式可以记为:Then, the third product of the line number of the target topographic point and the target resolution of the digital elevation model DEM can be determined, based on the third product and the sum of the plane abscissa of the feature point B of the slice where the target topographic point is located to determine the target topographic point plane abscissa. It is also possible to determine the fourth product of the column number of the target topographic point and the target resolution of the digital elevation model DEM, and determine the plane of the target topographic point based on the difference between the plane abscissa of the feature point B of the slice where the target topographic point is located and the fourth product Y-axis. The calculation formulas for recovering the plane abscissa and plane ordinate of the target terrain point can be written as:
在一些实施例中,在采集到更新点云数据的情况下,还可以确定更新点云数据所属的切片(称为待更新切片),并对该待更新切片对应的切片单元中的高程值进行更新。例如,参见图5,在更新点云数据所属的待更新切片包括第m行第n列的切片的情况下,可以基于更新点云数据确定第m行第n列的切片中各个地形点的更新高程值,并基于更新高程值对第m行第n列的切片对应的切片单元中的高程值进行更新。上述更新过程称为增量更新。本公开实施例通过将地形点的高程值与地形点所在的切片进行关联绑定,从而能够基于切片的行号和列号进行增量更新,提高了增量更新效率和精确度。In some embodiments, when the updated point cloud data is collected, the slice to which the updated point cloud data belongs (referred to as the slice to be updated) can also be determined, and the elevation value in the slice unit corresponding to the slice to be updated is calculated. renew. For example, referring to Fig. 5, in the case that the slice to be updated to which the point cloud data belongs includes the slice of the mth row and the nth column, the updating of each topographic point in the slice of the mth row and the nth column can be determined based on the updated point cloud data Elevation value, and update the elevation value in the slice unit corresponding to the slice at row m and column n based on the updated elevation value. The above update process is called incremental update. In the embodiments of the present disclosure, by associating and binding the elevation value of the topographic point with the slice where the topographic point is located, incremental update can be performed based on the row number and column number of the slice, which improves the efficiency and accuracy of incremental update.
不难理解,上述各实施例中描述的方案在不存在冲突的情况下,可以自由组合得到新的方案,鉴于篇幅原因,在此不再展开介绍。It is not difficult to understand that the solutions described in the above embodiments can be freely combined to obtain a new solution if there is no conflict, and due to space reasons, no further introduction is given here.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图6是本公开实施例的一种自动驾驶场景的数字高程模型的生成装置的结构示意图。如图6所示,该装置包括:Fig. 6 is a schematic structural diagram of an apparatus for generating a digital elevation model of an automatic driving scene according to an embodiment of the present disclosure. As shown in Figure 6, the device includes:
第一确定模块601,用于获取自动驾驶车辆的目标作业区域的点云数据,基于所述点云数据确定所述目标作业区域中多个地形点的平面位置信息和高程值;The
第二确定模块602,用于基于各个地形点的平面位置信息确定对应地形点在预先划分的多个切片中所属的切片,不同的切片对应不同的平面位置范围;The second determining
存储模块603,用于基于各个地形点的高程值以及各个地形点所属的切片生成所述目标作业区域的数字高程模型,并对所述数字高程模型进行存储;A
所述数字高程模型包括多个切片单元,每个切片单元对应一个切片,用于记录对应切片中的各个地形点的高程值;The digital elevation model includes a plurality of slice units, each slice unit corresponds to a slice, and is used to record the elevation value of each topographic point in the corresponding slice;
同一切片单元中各个地形点的高程值在所述切片单元中的存储顺序与所述各个地形点在所属切片中的位置相关联。The storage order of the elevation values of each topographic point in the same slice unit in the slice unit is associated with the position of each topographic point in the slice to which it belongs.
上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.
图7是本公开实施例的一种电子设备的结构示意图。如图7所示,该实施例的电子设备70包括:处理器701、存储器702以及存储在该存储器702中并且可以在处理器701上运行的计算机程序703。处理器701执行计算机程序703时实现上述各个方法实施例中的步骤。或者,处理器701执行计算机程序703时实现上述各装置实施例中各模块/单元的功能。Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 7 , the
示例性地,计算机程序703可以被分割成一个或多个模块/单元,一个或多个模块/单元被存储在存储器702中,并由处理器701执行,以完成本公开。一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序703在电子设备70中的执行过程。Exemplarily, the
电子设备70可以是桌上型计算机、笔记本、掌上电脑及云端服务器等电子设备。电子设备70可以包括但不仅限于处理器701和存储器702。本领域技术人员可以理解,图7仅仅是电子设备70的示例,并不构成对电子设备70的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如,电子设备还可以包括输入输出设备、网络接入设备、总线等。The
处理器701可以是中央处理单元(Central Processing Unit,CPU),也可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The
存储器702可以是电子设备70的内部存储单元,例如,电子设备70的硬盘或内存。存储器702也可以是电子设备70的外部存储设备,例如,电子设备70上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(FlashCard)等。进一步地,存储器702还可以既包括电子设备70的内部存储单元也包括外部存储设备。存储器702用于存储计算机程序以及电子设备所需的其它程序和数据。存储器702还可以用于暂时地存储已经输出或者将要输出的数据。The
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本公开的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present disclosure. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementation should not be considered beyond the scope of the present disclosure.
在本公开所提供的实施例中,应该理解到,所揭露的装置/电子设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/电子设备实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present disclosure, it should be understood that the disclosed device/electronic equipment and method may be implemented in other ways. For example, the device/electronic device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. Multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本公开实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可以存储在计算机可读存储介质中,该计算机程序在被处理器执行时,可以实现上述各个方法实施例的步骤。计算机程序可以包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如,在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If an integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through computer programs. The computer programs can be stored in computer-readable storage media, and the computer programs can be processed. When executed by the controller, the steps in the above-mentioned method embodiments can be realized. A computer program may include computer program code, which may be in source code form, object code form, executable file, or some intermediate form or the like. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random access Memory (Random Access Memory, RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in computer readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer readable media may not Including electrical carrier signals and telecommunication signals.
以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围,均应包含在本公开的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications to the technical solutions recorded, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection.
以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围,均应包含在本公开的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications to the technical solutions recorded, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211486451.1A CN115713600A (en) | 2022-11-24 | 2022-11-24 | Method and device for generating digital elevation model of automatic driving scene |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211486451.1A CN115713600A (en) | 2022-11-24 | 2022-11-24 | Method and device for generating digital elevation model of automatic driving scene |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115713600A true CN115713600A (en) | 2023-02-24 |
Family
ID=85234686
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211486451.1A Pending CN115713600A (en) | 2022-11-24 | 2022-11-24 | Method and device for generating digital elevation model of automatic driving scene |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115713600A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116340307A (en) * | 2023-06-01 | 2023-06-27 | 北京易控智驾科技有限公司 | Method and device for generating ramp layer, high-precision map and electronic equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106846308A (en) * | 2017-01-20 | 2017-06-13 | 广州市城市规划勘测设计研究院 | The detection method and device of the topographic map precision based on a cloud |
| CN109472864A (en) * | 2017-09-07 | 2019-03-15 | 广州极飞科技有限公司 | A method and device for generating an elevation tile map |
| CN113506370A (en) * | 2021-07-28 | 2021-10-15 | 自然资源部国土卫星遥感应用中心 | Three-dimensional geographic scene model construction method and device based on three-dimensional remote sensing image |
-
2022
- 2022-11-24 CN CN202211486451.1A patent/CN115713600A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106846308A (en) * | 2017-01-20 | 2017-06-13 | 广州市城市规划勘测设计研究院 | The detection method and device of the topographic map precision based on a cloud |
| CN109472864A (en) * | 2017-09-07 | 2019-03-15 | 广州极飞科技有限公司 | A method and device for generating an elevation tile map |
| CN113506370A (en) * | 2021-07-28 | 2021-10-15 | 自然资源部国土卫星遥感应用中心 | Three-dimensional geographic scene model construction method and device based on three-dimensional remote sensing image |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116340307A (en) * | 2023-06-01 | 2023-06-27 | 北京易控智驾科技有限公司 | Method and device for generating ramp layer, high-precision map and electronic equipment |
| CN116340307B (en) * | 2023-06-01 | 2023-08-08 | 北京易控智驾科技有限公司 | Method and device for generating ramp layer, high-precision map and electronic equipment |
| WO2024244262A1 (en) * | 2023-06-01 | 2024-12-05 | 北京易控智驾科技有限公司 | Ramp layer generation method and apparatus, high-precision map, and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112669463B (en) | Method for reconstructing curved surface of three-dimensional point cloud, computer device and computer-readable storage medium | |
| EP3951321B1 (en) | Method, system, terminal, and storage medium for rapid generation of reference lines | |
| CN108509820B (en) | Obstacle segmentation method and device, computer equipment and readable medium | |
| JP6230213B2 (en) | Navigation device, method for determining altitude coordinates, and method for generating database | |
| CN116500643B (en) | Road deformation disease detection method and system based on single-line laser point cloud | |
| CN111445472A (en) | Laser point cloud ground segmentation method and device, computing equipment and storage medium | |
| CN114519712A (en) | Point cloud data processing method and device, terminal equipment and storage medium | |
| CN111047682B (en) | A method and system for generating a three-dimensional lane model | |
| JP2020042793A (en) | Obstacle distribution simulation method, apparatus and terminal based on probability plot | |
| CN119783236B (en) | Building modeling method, device, equipment and storage medium | |
| CN113762310B (en) | Point cloud data classification method, device, computer storage medium and system | |
| CN115713600A (en) | Method and device for generating digital elevation model of automatic driving scene | |
| CN118037790A (en) | Point cloud processing method, device, computer equipment and storage medium | |
| CN110174115B (en) | Method and device for automatically generating high-precision positioning map based on perception data | |
| KR102408981B1 (en) | Method for Creating ND Map and Updating map Using it | |
| CN109612467B (en) | Track simplifying method and system and track visualization system | |
| WO2025086326A1 (en) | Point cloud coverage verification method and apparatus, electronic device and storage medium | |
| CN116246069B (en) | Method and device for self-adaptive terrain point cloud filtering, intelligent terminal and storage medium | |
| EP4428833A1 (en) | Identifying usable roof areas from a point cloud | |
| CN114463507B (en) | Road identification method and device | |
| CN111832472B (en) | Laser point cloud surface point extraction method, device, storage medium and electronic equipment | |
| CN117392632B (en) | A method and device for monitoring road element changes | |
| CN116164766B (en) | A method, apparatus and electronic device for generating a road network | |
| CN120876745B (en) | Intelligent management method and system for geographic information mapping data | |
| CN115578537B (en) | A driving device positioning method, computer-readable storage medium, and driving device |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 8th Floor, Zijin Mining Headquarters Building, No.1 Sanhuan North Road, Chengbei Village, Lincheng Town, Shanghang County, Longyan City, Fujian Province 361000 Applicant after: Fujian Yikong Intelligent Driving Technology Co.,Ltd. Address before: Unit 701B 7th Floor Building AB Dongsheng Building No 8 Zhongguancun East Road Haidian District Beijing Applicant before: Beijing Easy Controlled Intelligent Driving Technology Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 8th Floor, Zijin Mining Headquarters Building, No.1 North Third Ring Road, Shanghang County, Longyan City, Fujian Province 364299 Applicant after: Yikong Intelligent Driving Technology Co.,Ltd. Address before: 8th Floor, Zijin Mining Headquarters Building, No.1 North Third Ring Road, Chengbei Village, Lincheng Town, Shanghang County, Longyan City, Fujian Province Applicant before: Fujian Yikong Intelligent Driving Technology Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 8th Floor, Zijin Mining Headquarters Building, No.1 North Third Ring Road, Shanghang County, Longyan City, Fujian Province 361000 Applicant after: Yikong Intelligent Driving Technology Co.,Ltd. Address before: 8th Floor, Zijin Mining Headquarters Building, No.1 North Third Ring Road, Shanghang County, Longyan City, Fujian Province Applicant before: Yikong Intelligent Driving Technology Co.,Ltd. Country or region before: China |




