Point cloud two-dimensional regularization planar projection method and device
By calculating the horizontal azimuth angle information of the point cloud, the mapping relationship between the point cloud and the two-dimensional projection plane structure is determined, which solves the problem of high algorithm complexity in the existing technology, realizes efficient two-dimensional regularized plane projection of the point cloud, and improves improves performance and reflects the spatial correlation of point clouds.
Patent Information
- Application Number
- CN202410622537.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-26
- Publication Date
- 2024-08-23
AI Technical Summary
When the existing technology performs two-dimensional regularized plane projection of large-scale point cloud data, the algorithm complexity is high, which leads to excessive time consumption and affects performance, especially because it requires a two-dimensional local search for each point to determine the point cloud. Mapping relationship with two-dimensional projected plane structure.
By calculating the horizontal azimuth information of the point cloud, the mapping relationship between the original point cloud data and the two-dimensional projection plane structure is determined, which reduces the need for two-dimensional local search. The relationship between the horizontal azimuth information and the original collected azimuth information is used to determine Determine the column index to implement regular correction of point clouds.
It reduces the time consumption of point cloud two-dimensional regular plane projection, improves algorithm performance, avoids sparsity in the three-dimensional representation structure, and provides a point cloud data representation that is easier to process.
Smart Images

Figure CN118540455A
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202110578726.3, the original application date is May 26, 2021, and the name is "A method and device for two-dimensional regularized plane projection of point cloud". The entire content of the original application is incorporated into this application by reference. Technical Field
[0002] The present invention belongs to the technical field of point cloud data processing, and in particular relates to a point cloud two-dimensional regularized plane projection method and device. Background Art
[0003] With the development of computer technology, 3D point cloud data has been widely used in the fields of virtual reality, augmented reality, autonomous driving and environmental modeling. However, due to the measurement error of the equipment itself and the influence of the surrounding environment, the large-scale raw point cloud data obtained often faces many problems, such as non-uniform distribution and sparse characteristics, which makes the subsequent point cloud data processing difficult.
[0004] Based on this, the prior art proposes a two-dimensional regularized plane projection method for large-scale point clouds, which provides a form of expression that is easier to process data for point cloud applications. The general process is: first, initialize the two-dimensional projection plane structure of the point cloud; then, determine the mapping relationship between the point cloud and the two-dimensional projection plane structure, and obtain the two-dimensional regularized projection plane structure corresponding to the point cloud. Among them, determining the mapping relationship between the point cloud and the two-dimensional projection plane structure is a key step, which directly affects the projection accuracy.
[0005] At present, the existing methods mainly determine the mapping relationship between the point cloud and the two-dimensional projection plane structure by performing local search on the points in the point cloud in the two-dimensional projection plane structure to find the best matching pixels.
[0006] However, this method requires a two-dimensional local search for each point in the point cloud in the two-dimensional projection plane structure. For large-scale point cloud data, this will undoubtedly lead to a higher complexity of the algorithm, making the two-dimensional regularized plane projection of the point cloud take too much time, thus affecting the algorithm performance. Summary of the invention
[0007] In order to solve the above problems existing in the prior art, the present invention provides a point cloud two-dimensional regularized plane projection method and device. The technical problem to be solved by the present invention is achieved through the following technical solutions:
[0008] A point cloud two-dimensional regularized plane projection method, comprising:
[0009] Get the original point cloud data;
[0010] Initialize the 2D projection plane structure of the point cloud;
[0011] Calculate the horizontal azimuth information of the point cloud according to the original point cloud data;
[0012] A mapping relationship between the original point cloud data and the two-dimensional projection plane structure is determined according to the horizontal azimuth information to obtain a two-dimensional regularized projection plane structure of the point cloud.
[0013] In one embodiment of the present invention, the calculation formula of the horizontal azimuth information is:
[0014]
[0015] in, Represents the horizontal azimuth information of the current point in the original point cloud data. x and y are the Cartesian coordinate components of the current point respectively.
[0016] In one embodiment of the present invention, determining the mapping relationship between the original point cloud data and the two-dimensional projection plane structure according to the horizontal azimuth information includes:
[0017] Determine a row index of the original point cloud data in the two-dimensional projection plane structure;
[0018] The column index of the original point cloud data in the two-dimensional projection plane structure is determined according to the horizontal azimuth information.
[0019] In one embodiment of the present invention, determining the column index of the original point cloud data in the two-dimensional projection plane structure according to the horizontal azimuth information includes:
[0020] Establish the relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information, and obtain the corresponding relationship;
[0021] Calculate the original acquisition azimuth information of the point cloud according to the above relationship;
[0022] The column index of the original point cloud data in the two-dimensional projection plane structure is calculated according to the original acquisition azimuth information.
[0023] In one embodiment of the present invention, the relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information is as follows:
[0024]
[0025] in, Represents the horizontal azimuth information of the current point in the original point cloud data. Indicates the original acquisition azimuth information of the current point, α indicates the horizontal correction angle of the Laser to which the current point belongs, and H oIndicates the horizontal offset of the Laser to which the current point belongs, and r indicates the depth information of the current point.
[0026] In one embodiment of the present invention, the relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information is as follows:
[0027]
[0028] in, Represents the horizontal azimuth information of the current point in the original point cloud data. Indicates the original acquisition azimuth information of the current point, α indicates the horizontal correction angle of the Laser to which the current point belongs, and H o Indicates the horizontal offset of the Laser to which the current point belongs, and r indicates the depth information of the current point.
[0029] In one embodiment of the present invention, the calculation formula of the column index of the original point cloud data in the two-dimensional projection plane structure is:
[0030]
[0031] Among them, j represents the column index of the current point in the two-dimensional projection plane structure in the original point cloud data, Indicates the original acquisition azimuth information of the current point. Indicates the sampling angle resolution of the Laser.
[0032] Another embodiment of the present invention provides a point cloud two-dimensional regularized plane projection device, comprising:
[0033] Data acquisition module, used to obtain original point cloud data;
[0034] Initialization module, used to initialize the two-dimensional projection plane structure of the point cloud;
[0035] A calculation module, used for calculating the horizontal azimuth information of the point cloud according to the original point cloud data;
[0036] A mapping module is used to determine the mapping relationship between the original point cloud data and the two-dimensional projection plane structure according to the horizontal azimuth information to obtain a two-dimensional regularized projection plane structure of the point cloud.
[0037] Beneficial effects of the present invention:
[0038] 1. The present invention determines the mapping relationship between the original point cloud data and the two-dimensional projection plane structure through the horizontal azimuth information of the point cloud, and can project a large-scale point cloud into a two-dimensional regularized plane structure without performing a two-dimensional local search, thereby reducing the complexity of the algorithm, thereby reducing the time spent on the two-dimensional regularized plane projection of the point cloud and improving the algorithm performance;
[0039] 2. The present invention determines the column index in the two-dimensional plane structure to which the point cloud is projected through the relationship between the horizontal azimuth information of the point cloud and the original collected azimuth information, thereby performing regular correction on the point cloud in the vertical and horizontal directions, and obtaining a strong correlation representation of the point cloud in the two-dimensional projection plane structure, thereby avoiding the sparsity existing in the three-dimensional representation structure, and better reflecting the spatial correlation of the point cloud, providing a form of expression that is easier to process data for point cloud applications.
[0040] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flow chart of a point cloud two-dimensional regularized plane projection method provided by an embodiment of the present invention;
[0042] Figure 2 is a schematic diagram of calibration of a laser radar provided in an embodiment of the present invention;
[0043] Figure 3 is a schematic diagram of calibration of a laser radar in an xy plane provided by an embodiment of the present invention;
[0044] Figure 4 is a schematic diagram of a two-dimensional projection plane structure of a point cloud provided by an embodiment of the present invention;
[0045] Figure 5 It is a schematic diagram of the structure of a point cloud two-dimensional regularized plane projection device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0047] Embodiment 1
[0048] See also Figure 1 , Figure 1 The present invention provides a flowchart of a method for two-dimensional regularized plane projection of a point cloud, including:
[0049] Step 1: Get the original point cloud data.
[0050] Specifically, the original point cloud data is usually composed of a set of three-dimensional spatial points, each of which records its own geometric position information, as well as additional attribute information such as color, reflectivity, and normal. Among them, the geometric position information of the point cloud is generally represented based on the Cartesian coordinate system, that is, it is represented by the x, y, and z coordinates of the point. The original point cloud data can be obtained through lidar scanning or through public data sets provided by various platforms.
[0051] In this embodiment, it is assumed that the geometric position information of the acquired original point cloud data is represented based on a Cartesian coordinate system. It should be noted that the method for representing the geometric position information of the original point cloud data is not limited to Cartesian coordinates.
[0052] Step 2: Initialize the 2D projection plane structure of the point cloud.
[0053] Specifically, in this embodiment, when initializing the two-dimensional projection plane structure of the point cloud, it is necessary to use regularized parameters, wherein the regularized parameters include calibration parameters of the laser radar or parameters obtained by optimization estimation and data fitting.
[0054] The calibration parameters of LiDAR are usually carefully measured by the manufacturer and provided to consumers as one of the necessary data, such as the collection range of LiDAR and the sampling angle resolution of each Laser (laser scanner) of LiDAR. Or the number of sampling points, as well as the distance correction factor of each Laser, the offset information V of the Laser in the vertical and horizontal directions o and H o , Laser offset information along the pitch angle and horizontal azimuth angle θ0 and α, etc.
[0055] The two-dimensional regularized projection plane structure of the point cloud is a data structure containing M rows and N columns of pixels. The points in the original point cloud data correspond to the pixels in the data structure after projection. The resolution of the two-dimensional regularized projection plane can be obtained by the regularization parameters. For example, if the resolution of the two-dimensional regularized projection plane is M×N, the number of lasers in the regularization parameters can be used to initialize M, and the sampling angle resolution of the laser can be used to initialize M. Or the number of sampling points of Laser pointNumPerLaser is used to initialize N. The specific formula is as follows. Finally, the initialization of the two-dimensional projection plane structure can be completed to obtain a plane structure containing M×N pixels.
[0056] M = laserNum;
[0057] Or N=pointNumPerLaser.
[0058] Step 3: Calculate the horizontal azimuth information of the point cloud based on the original point cloud data.
[0059] For example, in this embodiment, the horizontal azimuth information of the point cloud can be calculated using the following formula:
[0060]
[0061] in, Represents the horizontal azimuth information of the current point in the original point cloud data. x and y are the Cartesian coordinate components of the current point respectively.
[0062] In addition, it should be noted that the calculation of the horizontal azimuth angle can be adaptively changed according to the representation form of the original point cloud data, and this embodiment does not make any specific limitation on this.
[0063] Step 4: Determine the mapping relationship between the original point cloud data and the two-dimensional projection plane structure according to the horizontal azimuth information to obtain the two-dimensional regularized projection plane structure of the point cloud.
[0064] In this embodiment, the determination of the mapping relationship between the original point cloud data and the two-dimensional projection plane structure can be performed in two steps.
[0065] First, the row index of the original point cloud data in the two-dimensional projection plane structure is determined.
[0066] Specifically, the row index i of each point in the original point cloud data in the two-dimensional projection plane structure can be determined by using the existing method, and the solution formula is as follows:
[0067]
[0068] Among them, z is the Cartesian coordinate component of the current point, r is the depth information of the current point and laserNum indicates the number of lasers contained in the laser radar. o k is the vertical offset information of the kth Laser, θ o k is the offset information of the kth Laser along the pitch angle, and V o k and θ o k These are all calibration parameters of the lidar.
[0069] Since this formula belongs to an optimization problem, in actual engineering, it is necessary to calculate the laserNum absolute errors according to the above formula |zV o k -r×tanθ o k |, where k=1...laserNum, then the sequence number k-1 that minimizes the absolute error is the row index i of the pixel corresponding to the current point in the two-dimensional projection plane structure.
[0070] Then, the column index of the original point cloud data in the two-dimensional projection plane structure is determined according to the horizontal azimuth information, including:
[0071] a) Establish the relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information, and obtain the corresponding relationship.
[0072] In this embodiment, the relationship between the horizontal azimuth information and the original collected azimuth information can be determined from an algebraic perspective based on the collection principle of the laser radar.
[0073] Specifically, the laser radar is composed of multiple laser beams distributed on both sides of the central axis. Each laser has a fixed pitch angle and can be regarded as a relatively independent acquisition system. These lasers rotate 360° around the central axis of the laser radar. During the rotation, they take samples at fixed rotation angle intervals and return the original acquisition information of the sampling point, i.e., the original acquisition distance information r0 of the sampling point, the index number i(θ0) of the corresponding laser, and the original acquisition azimuth information. This information is represented based on the local cylindrical coordinate system with the corresponding Laser as the origin. However, in order to facilitate the subsequent processing of the point cloud, the original acquisition data of the point cloud needs to be converted to a Cartesian coordinate system with the bottom of the LiDAR as the unified origin, forming a LiDAR point cloud in a unified Cartesian coordinate system, that is, the point cloud finally collected by the device. This conversion process is the calibration process of the LiDAR. Figure 2 As shown, Figure 2 It is a calibration diagram of the laser radar provided in an embodiment of the present invention.
[0074] The calibration formula of the laser radar is as follows. This formula converts the original collected information of the point (r0, i(θ0), ) is converted to Cartesian coordinates (x, y, z), in which r0 is the original acquisition distance information of the point, i(θ0) is the index number of the Laser to which the point belongs, The original collection azimuth information of the point:
[0075]
[0076] x=(r0+D corr )·cosθ0·sinβ-H o ·cosβ;
[0077] y=(r0+D corr )·cosθ0·cosβ+H o ·sinβ;
[0078] z=(r0+D corr )·sinθ0+V o ;
[0079] Among them, D corris the distance correction factor of the Laser to which the point belongs, i.e. the ith Laser of the laser radar, V o is the vertical offset of the Laser to which the point belongs, H o is the horizontal offset of the Laser to which the point belongs, θ0 is the vertical elevation angle of the Laser to which the point belongs, and α is the horizontal correction angle of the Laser to which the point belongs. The above parameters are all calibration parameters of the Laser, i.e., regularization parameters.
[0080] Next, let the projection onto the xy plane r represents the depth information of the current point (x, y, z), then:
[0081] x=r·sinβ-H o ·cosβ;
[0082] y=r·cosβ+H o ·sinβ;
[0083] Then, use the auxiliary angle formula to convert and get:
[0084]
[0085]
[0086] The horizontal azimuth information of the point calculated by x and y is for:
[0087]
[0088] Finally, Substituting into the above equation, we can get the horizontal azimuth information of the point cloud The original acquisition azimuth information The relationship between:
[0089]
[0090] Among them, r is the depth information of the point in the point cloud, H o is the horizontal offset of the Laser to which the point belongs, α is the horizontal correction angle of the Laser to which the point belongs, H o and α are both calibration parameters of the Laser, i.e., regularization parameters.
[0091] In another embodiment of the present invention, the relationship between the horizontal azimuth information and the original acquisition azimuth information may also be determined from a geometric perspective.
[0092] Specifically, the laser radar is calibrated during the process of collecting point clouds. The original collected information expressed in the Laser local cylindrical coordinate system is converted to a Cartesian coordinate system with the bottom of the laser radar as the unified origin, forming a laser radar point cloud in a unified Cartesian coordinate system, that is, the point cloud finally collected by the device, such as Figure 2 However, since the azimuth of the point cloud is expressed in the xy plane of the Cartesian coordinate system, it is given by Figure 2 Further Figure 3 , Figure 3 It is a schematic diagram of the calibration of the laser radar in the xy plane provided by an embodiment of the present invention.
[0093] from Figure 3 It can be deduced that, in is the depth information of the point, H o is the horizontal offset of the Laser to which this point belongs. o is a negative value, so |O world O laser |=-H o . We can further obtain Then and Substitute to get the horizontal azimuth information of the point cloud The original acquisition azimuth information The relationship between:
[0094] Among them, r is the depth information of the point in the point cloud, H o is the horizontal offset of the Laser to which the point belongs, α is the horizontal correction angle of the Laser to which the point belongs, H o Both α and α are calibration parameters of the Laser, i.e., regularization parameters. It should be noted that, since approximate processing is used in the derivation from an algebraic perspective, the relationship equations obtained by the two methods are different in form, but the relationship curves are almost the same.
[0095] b) Calculate the original acquisition azimuth information of the point cloud according to the above relationship.
[0096] Specifically, when the algebraic method is used to obtain the relationship between the horizontal azimuth information and the original acquisition azimuth information, the calculation formula for the original acquisition azimuth information of the point cloud is:
[0097]
[0098] When the geometric method is used to obtain the relationship between the horizontal azimuth information and the original acquisition azimuth information, the calculation formula for the original acquisition azimuth information of the point cloud is:
[0099]
[0100] c) Calculate the column index of the original point cloud data in the two-dimensional projection plane structure based on the original acquisition azimuth information. The calculation formula is as follows:
[0101]
[0102] Among them, j represents the column index of the current point in the two-dimensional projection plane structure in the original point cloud data, Indicates the original acquisition azimuth information of the current point. Indicates the sampling angle resolution of the Laser.
[0103] Finally, the corresponding pixel (i, j) of the current point in the two-dimensional projection plane structure is obtained through this embodiment, thereby determining the mapping relationship between the point cloud and the two-dimensional projection plane structure. When all points in the point cloud complete the above operation, the two-dimensional regularized plane projection of the point cloud is completed, as shown in FIG. Figure 4 As shown, Figure 4 It is a schematic diagram of a two-dimensional projection plane structure of a point cloud provided by an embodiment of the present invention, wherein each point in the point cloud is mapped to a corresponding pixel in the structure.
[0104] This embodiment determines the mapping relationship between the original point cloud data and the two-dimensional projection plane structure through the horizontal azimuth information of the point cloud. A large-scale point cloud can be projected into a two-dimensional regularized plane structure without performing a two-dimensional local search, thereby reducing the complexity of the algorithm and reducing the time spent on the two-dimensional regularized plane projection of the point cloud, thereby improving the algorithm performance.
[0105] Furthermore, this embodiment determines the column index in the two-dimensional plane structure to which the point cloud is projected through the relationship between the horizontal azimuth information of the point cloud and the original collected azimuth information, thereby performing regular correction on the point cloud in the vertical and horizontal directions, and obtaining a strong correlation representation of the point cloud in the two-dimensional projection plane structure, thereby avoiding the sparsity existing in the three-dimensional representation structure, and better reflecting the spatial correlation of the point cloud, providing a form of expression that is easier to process data for point cloud applications.
[0106] Embodiment 2
[0107] Based on the above-mentioned embodiment 1, this embodiment provides a point cloud two-dimensional regularized plane projection device, see Figure 5 , Figure 5 1 is a schematic diagram of a point cloud two-dimensional regularized plane projection device provided by an embodiment of the present invention, which includes:
[0108] Data acquisition module 1, used to acquire original point cloud data;
[0109] Initialization module 2, used to initialize the two-dimensional projection plane structure of the point cloud;
[0110] Calculation module 3, used to calculate the horizontal azimuth information of the point cloud according to the original point cloud data;
[0111] The mapping module 4 is used to determine the mapping relationship between the original point cloud data and the two-dimensional projection plane structure according to the horizontal azimuth information, so as to obtain the two-dimensional regularized projection plane structure of the point cloud.
[0112] The device provided in this embodiment can implement the point cloud two-dimensional regularized plane projection method provided in the above-mentioned embodiment 1, and the detailed process will not be repeated here.
[0113] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A point cloud two-dimensional regularized plane projection method, characterized in that: include: Get the original point cloud data; Initialize the 2D projection plane structure of the point cloud; Calculate the horizontal azimuth information of the point cloud according to the original point cloud data; Determine the row index of the original point cloud data in the two-dimensional projection plane structure, and determine the column index of the original point cloud data in the two-dimensional projection plane structure according to the horizontal azimuth information to obtain a two-dimensional regularized projection plane structure of the point cloud.
2. The point cloud two-dimensional regularized plane projection method according to claim 1, characterized in that: The calculation formula of the horizontal azimuth information is: in, Represents the horizontal azimuth information of the current point in the original point cloud data. x and y are the Cartesian coordinate components of the current point respectively.
3. The point cloud two-dimensional regularized plane projection method according to claim 1, characterized in that: Determining the column index of the original point cloud data in the two-dimensional projection plane structure according to the horizontal azimuth information includes: Establish the relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information, and obtain the corresponding relationship; Calculate the original acquisition azimuth information of the point cloud according to the above relationship; The column index of the original point cloud data in the two-dimensional projection plane structure is calculated according to the original acquisition azimuth information.
4. The point cloud two-dimensional regularized plane projection method according to claim 3, characterized in that: The relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information is as follows: in, Represents the horizontal azimuth information of the current point in the original point cloud data. Indicates the original acquisition azimuth information of the current point, α indicates the horizontal correction angle of the Laser to which the current point belongs, and H o Indicates the horizontal offset of the Laser to which the current point belongs, and r indicates the depth information of the current point.
5. The point cloud two-dimensional regularized plane projection method according to claim 3, characterized in that: The relationship between the horizontal azimuth information of the point cloud and the original acquisition azimuth information is as follows: in, Represents the horizontal azimuth information of the current point in the original point cloud data. Indicates the original acquisition azimuth information of the current point, α indicates the horizontal correction angle of the Laser to which the current point belongs, and H o Indicates the horizontal offset of the Laser to which the current point belongs, and r indicates the depth information of the current point.
6. The point cloud two-dimensional regularized plane projection method according to claim 3, characterized in that: The calculation formula of the column index of the original point cloud data in the two-dimensional projection plane structure is: Among them, j represents the column index of the current point in the two-dimensional projection plane structure in the original point cloud data, Indicates the original acquisition azimuth information of the current point. Indicates the sampling angle resolution of the Laser.
7. A point cloud two-dimensional regularized plane projection device, characterized in that: include: A data acquisition module (1), used for acquiring original point cloud data; An initialization module (2), used for initializing the two-dimensional projection plane structure of the point cloud; A calculation module (3), used for calculating the horizontal azimuth information of the point cloud according to the original point cloud data; A mapping module (4) is used to determine the row index of the original point cloud data in the two-dimensional projection plane structure, and determine the column index of the original point cloud data in the two-dimensional projection plane structure according to the horizontal azimuth information, so as to obtain a two-dimensional regularized projection plane structure of the point cloud.
