A method for generating depth map based on solid-state laser radar point cloud
By generating a rough depth map and a depth point set, using viewing angle distance to select points, and calculating the closest point set, the solid-state lidar depth map sparse problem is solved, and a refined depth map is generated, achieving better information retention and image quality, and is suitable for Equipped with solid-state lidar to achieve effective sensing.
Patent Information
- Application Number
- CN202210006938.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-01-05
AI Technical Summary
Existing technical solutions cannot be adapted to solid-state lidar, resulting in sparse generated depth maps, affecting the accuracy and information retention of subsequent algorithms.
By generating a rough depth map and a depth point set, using the viewing distance from the viewing center instead of the Euclidean distance to select points, and traversing the depth map to calculate the closest point set, a refined depth map is generated, taking into account the point intensity in the vertical and horizontal directions. and distance changes to preserve edge information to the maximum extent.
The generated depth map is smoother and more natural, adapted to solid-state lidar, achieving effective perception and improving information retention and image quality.
Smart Images

Figure CN114545440B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser radar technology, and in particular to a method for generating a depth map based on a solid-state laser radar point cloud. Background Art
[0002] In autonomous driving, LiDAR is an important sensing device that provides information such as distance and category. According to data, existing sensing algorithms such as laser point cloud clustering, detection, and segmentation often use depth maps generated by point clouds as input, so the quality of the depth map determines the accuracy of subsequent algorithms. From a cost perspective, although the traditional linear LiDAR algorithm is mature, it is expensive.
[0003] Now that relatively cheap solid-state lasers have appeared on the market, it is necessary to study the algorithms related to them. Solid-state laser radars do not have beam information, and their field of view angle resolution may vary, which results in sparse images. If the depth map generated by traditional methods is used, a lot of information will be lost, which will affect the subsequent algorithm processing.
[0004] Chinese patent document CN110363820A discloses a "target detection method based on laser radar and image pre-fusion". The method includes: through the joint calibration of laser radar and camera, the laser radar point cloud data of the camera's perspective is obtained, and then before the data is input into the neural network, the laser radar data set is first spherically projected to obtain a dense, two-dimensional data, and then the image projected by the laser radar and the camera image are used as two inputs of the network respectively, and the color and three-dimensional features are learned respectively. Finally, through a 1×1 convolution block, the features of the two modalities are fused to achieve target detection based on radar and visual pre-fusion. The above technical solution cannot be adapted to solid-state laser radar to achieve effective perception. Summary of the invention
[0005] The present invention mainly solves the technical problem that the original technical solution cannot adapt to the solid-state laser radar and realize effective perception. It provides a method for generating a depth map based on the solid-state laser radar point cloud, generates a rough depth map Range_Image and a depth point set Range_Points by updating the depth point set and the rough depth map, selects points according to the viewing angle distance from the viewing angle center rather than the Euclidean distance, which is more in line with the geometric meaning and makes the selected points more accurate, and then traverses the depth map, calculates the nearest point set Nearest_Points and the depth map value, and generates a refined depth map Range_Image. For the coordinates of the depth map that lose information, the intensity and distance changes of the points within a certain range in the vertical and horizontal directions of the coordinate are comprehensively considered, so that the coordinate information is supplemented by the surrounding information while retaining the edge information as much as possible, so that the generated image is smoother and more natural, so as to adapt to the solid-state laser radar and realize effective perception.
[0006] The above technical problem of the present invention is mainly solved by the following technical solution: The present invention comprises the following steps:
[0007] S1 obtains point cloud information;
[0008] S2 generates a rough depth map Range_Image and a depth point set Range_Points;
[0009] S3 generates a refined depth map Range_Image.
[0010] Preferably, the point cloud in step S1 is P = {p0, p1, ..., p n}, where p i =(x i ,y i ,z i ,intensity i ),x i ,y i 、z i are the X, Y, and Z coordinates of the point in the laser radar coordinate system, respectively. i is the reflection intensity value, and the horizontal and vertical viewing angles of the laser radar are [h start ,h end ] and [v start ,v end ], the horizontal and vertical viewing angle resolutions are h res and v res .
[0011] Preferably, the step S2 specifically includes:
[0012] S2.1 traverses all point clouds; traverses the point clouds and obtains point p i =(x i ,y i ,z i ).
[0013] S2.2 calculate spherical coordinates;
[0014] S2.3 calculate the depth map coordinates;
[0015] S2.4 update the depth point set;
[0016] S2.5 Update the rough depth map.
[0017] Preferably, the step S2.2 sets point p i In the laser radar coordinate system coordinate (x i ,y i ,z i) into spherical coordinates
[0018]
[0019] Among them, range i is the distance from the center point to the origin in the laser radar coordinate system, θ i is the vertical field of view, is the horizontal field of view.
[0020] Preferably, the step S2.3 is to calculate the spherical coordinates of θ i and Discretize into depth map row and column coordinates respectively, and map spherical coordinates to depth map
[0021]
[0022] Among them, c i and r i Respectively represent point p i Column and row coordinates in the depth map.
[0023] Preferably, the step S2.4 updates the depth point set and expands the point p i =(x i ,y i ,z i ,intensity i )for And add point p i ' to the depth point set Range_Points(c i ,r i ).
[0024] As a preference, the step S2.5 determines the coordinates (r i ,c i )'s depth point set Range_Points(r i ,c i ) Whether there is a point, if not, then set the distance range of the point i As the value of the depth map Range_Image(r,c); if it exists, take the point set Range_Points(r i ,c i ) Distance coordinate (r,c) Center viewing angle The nearest viewing distance point, where the viewing distance is defined as
[0025]
[0026] Preferably, the step S3 specifically includes:
[0027] S3.1 traverses the depth map and obtains the coordinates (r, c);
[0028] S3.2 determines whether the depth map value at the coordinate (r, c) exists. If so, execute step 3.1; if not, execute step 3.3;
[0029] S3.3 calculates the nearest point set Nearest_Points;
[0030] S3.4 calculates the depth map value.
[0031] Preferably, the step S3.3 traverses all depth point sets in the range of ky in the vertical direction and kx in the horizontal direction centered on the coordinate (r, c), and obtains the point set Nearest_Points in each coordinate point set that is closest to the central viewing angle of the coordinate (r, c).
[0032] Preferably, the step S3.4 traverses the point set Nearest_Points, and in the vertical direction, traverses the points above and below (r, c). If the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, the distance between the two points is retained, otherwise it is discarded; traverses the horizontal direction, traverses the points on the left and right of (r, c). If the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, the distance between the two points is retained, otherwise it is discarded. Finally, the distances of all retained points are averaged as the value of the depth map Range_Image(r, c).
[0033] The beneficial effects of the present invention are as follows: by updating the depth point set and the rough depth map, a rough depth map Range_Image and a depth point set Range_Points are generated, points are selected according to the viewing distance from the viewing center rather than the Euclidean distance, which is more in line with the geometric meaning and makes the selected points more accurate, and then the depth map is traversed to calculate the nearest point set Nearest_Points and the depth map value to generate a refined depth map Range_Image, and for the coordinates of the depth map where information is lost, the intensity and distance changes of the points within a certain range in the vertical and horizontal directions of the coordinate are comprehensively considered, so that the coordinate information is supplemented by the surrounding information while retaining the edge information as much as possible, so that the generated image is smoother and more natural, so as to adapt to the solid-state laser radar and achieve effective perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flow chart of the present invention.
[0035] Figure 2 It is a flow chart of generating a rough depth map of the present invention.
[0036] Figure 3 It is a flow chart of generating a refined depth map according to the present invention. DETAILED DESCRIPTION
[0037] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.
[0038] Embodiment: This embodiment provides a method for generating a depth map based on a solid-state laser radar point cloud, such as Figure 1 As shown, the following steps are included:
[0039] S1 obtains point cloud information. The point cloud is P = {p0, p1, ..., p n}, where p i =(x i ,y i ,z i ,intensity i ),x i ,y i 、z i are the X, Y, and Z coordinates of the point in the laser radar coordinate system, respectively. i is the reflection intensity value, and the horizontal and vertical viewing angles of the laser radar are [h start ,h end ] and [v start ,v end ], the horizontal and vertical viewing angle resolutions are h res and v res .
[0040] S2 generates a rough depth map Range_Image and a depth point set Range_Points, such as Figure 2 As shown, specifically including:
[0041] S2.1 traverse the point cloud and obtain point p i =(x i ,y i ,z i ).
[0042] S2.2 After the traversal is completed, calculate the spherical coordinates; i In the laser radar coordinate system coordinate (x i ,y i ,z i ) into spherical coordinates
[0043]
[0044] Among them, range i is the distance from the center point to the origin in the laser radar coordinate system, θ iis the vertical field of view, is the horizontal field of view.
[0045] S2.3 calculates the depth map coordinates and converts the spherical coordinates into θ i and Discretize into depth map row and column coordinates respectively, and map spherical coordinates to depth map
[0046]
[0047] Among them, c i and r i Respectively represent point p i Column and row coordinates in the depth map.
[0048] S2.4 Update the depth point set and expand point p i =(x i ,y i ,z i ,intensity i )for And add point p i ' to the depth point set Range_Points(c i ,r i ).
[0049] S2.5 Update the rough depth map. Determine the coordinates (r i ,c i )'s depth point set Range_Points(r i ,c i ) Whether there is a point, if not, then set the distance range of the point i As the value of the depth map Range_Image(r,c); if it exists, take the point set Range_Points(r i ,c i ) distance coordinate (r,c) center viewing angle The nearest viewing distance point, where the viewing distance is defined as
[0050]
[0051] S3 generates a refined depth map Range_Image, which includes:
[0052] S3.1 traverses the depth map and obtains the coordinates (r, c);
[0053] S3.2 determines whether the depth map value at the coordinate (r, c) exists. If so, execute step 3.1; if not, execute step 3.3;
[0054] S3.3 calculates the nearest point set Nearest_Points, traverses all depth point sets in the range of ky in the vertical direction and kx in the horizontal direction centered on the coordinate (r, c), and obtains the point set Nearest_Points in each coordinate point set that is closest to the central viewing angle of the coordinate (r, c).
[0055] S3.4 Calculate the depth map value. Traverse the point set Nearest_Points, in the vertical direction, traverse the points above and below (r,c), if the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, then retain the distance between the two points, otherwise discard it; traverse the horizontal direction, traverse the left and right points of (r,c), if the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, then retain the distance between the two points, otherwise discard it, and finally average the distances of all retained points as the value of the depth map Range_Image(r,c).
[0056] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
[0057] Although the terminology such as coarse depth map, depth point set, and refined depth map is used more frequently in this article, the possibility of using other terms is not excluded. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional limitation is contrary to the spirit of the present invention.
Claims
1. A method for generating a depth map based on a solid-state laser radar point cloud, characterized in that: The following steps are involved: S1 obtains point cloud information; S2 generates a rough depth map Range_Image and a depth point set Range_Points; S3 generates a refined depth map Range_Image, which includes: S3.1 traverse the depth map and obtain the coordinates (r i ,c i ); S3.2 Determine the coordinates (r i ,c i ) whether the depth map value at the position exists, if so, execute step 3.1, if not, execute step 3.3; S3.3 calculates the nearest point set Nearest_Points, traverses the coordinates (r i ,c i ) is the center vertical direction ky and horizontal direction kx range of all depth points, get each coordinate point set from the coordinate (r i ,c i )Nearest_Points, the point set closest to the central perspective; S3.4 calculates the depth map value, traverses the point set Nearest_Points, traverses (r i ,c i ) above and below, if the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, then the distance between the two points is retained, otherwise it is discarded; traverse (r i ,c i ) The left point and the right point are judged as above, and the distance of all retained points is averaged as the depth map Range_Image(r i ,c i ) value.
2. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 1, characterized in that: The point cloud in step S1 is P={p0, p1, ..., p n }, where p i =(x i ,y i ,z i ,intensity i ),x i ,y i 、z i are the X, Y, and Z coordinates of the point in the laser radar coordinate system, respectively. i is the reflection intensity value, and the horizontal and vertical viewing angles of the laser radar are [h start ,h end ] and [v start ,v end ], the horizontal and vertical viewing angle resolutions are h res and v res .
3. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 2, characterized in that: The step S2 specifically includes: S2.1 traverses all point clouds; S2.2 calculate spherical coordinates; S2.3 calculate the depth map coordinates; S2.4 update the depth point set; S2.5 Update the rough depth map.
4. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 3, characterized in that: The step S2.2 converts point p i In the laser radar coordinate system coordinate (x i ,y i ,z i ) into spherical coordinates Among them, range i is the distance from the center point to the origin in the laser radar coordinate system, θ i is the vertical field of view, is the horizontal field of view.
5. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 4, characterized in that: The step S2.3 is to calculate the spherical coordinates of θ i and Discretize into depth map row and column coordinates respectively, and map spherical coordinates to depth map Among them, c i and r i Respectively represent point p i Column and row coordinates in the depth map.
6. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 4, characterized in that: The step S2.4 updates the depth point set and expands the point p i =(x i ,y i ,z i ,intensity i )for And add point p′ i To the depth point set Range_Points(r i ,c i ).
7. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 5, characterized in that: The step S2.5 determines the coordinates (r i ,c i )'s depth point set Range_Points(r i ,c i ) whether the point exists, if not, the distance range i As a depth map Range_Image(r i ,c i ) value; if it exists, take the point set Range_Points(r i ,c i ) distance coordinate (r i ,c i ) Central Perspective The nearest viewing distance point, where the viewing distance is defined as 8. The method for generating a depth map based on a solid-state laser radar point cloud according to claim 1, characterized in that: The step S3.4 traverses the point set Nearest_Points, and traverses (r i ,c i ) above and below, if the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, then the distance between the two points is retained, otherwise it is discarded; traverse the horizontal direction, traverse (r i ,c i ) point on the left and the point on the right. If the absolute value of the intensity difference between the two points is less than the intensity threshold or the distance between the two points is less than the distance threshold, the distance between the two points is retained, otherwise it is discarded. Finally, the distances of all the retained points are averaged as the depth map Range_Image(r i ,c i ) value.
Citation Information
Patent Citations
Target detection method based on laser radar and image pre-fusion
CN110363820A
Sparse point cloud densification and pavement removal method based on depth map
CN111079765A
