Rapid extraction and clustering method for point cloud corner features
By dividing the radar scan lines and areas in the point cloud corner feature extractor, and using the container-based clustering method, the problem of time-consuming point cloud corner point extraction and clustering is solved, and efficient feature extraction and clustering are achieved. , improves recognition and generalization capabilities, and provides real-time preprocessing for 3D modeling and target detection.
Patent Information
- Application Number
- CN202410393662.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology takes a long time to extract and cluster point cloud corner features, is difficult to process in real time, and has weak recognition of noise and uneven density point clouds, and lacks efficient methods for rapid extraction and clustering.
By dividing the point cloud into radar scan lines according to the pitch angle, calculating the curvature of each point and dividing the area around the radar sensor, using containers as units for clustering, using the method of randomly selecting the initial clustering center and iteratively updating, the combination satisfies Containers for conditions to improve clustering efficiency and accuracy.
It realizes the rapid extraction and clustering of point cloud corner features, ensures that the extractor can run in real time, improves the generalization ability and clustering efficiency of the feature extractor, solves the problems of noise points and weak recognition, and provides a good foundation for 3D modeling. and object detection provide useful preprocessing.
Smart Images

Figure CN118628758A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of point cloud recognition and processing, and in particular to a method for quickly extracting and clustering point cloud corner features. Background Art
[0002] As 2D vision continues to develop, people are gradually turning their attention to the 3D field. Point cloud technology has been one of the research directions that has attracted much attention in the fields of computer vision and machine learning in recent years. Point cloud is a three-dimensional data set composed of a large number of discrete points, which is usually used to represent the surface of an object or the geometric structure of a scene. In point cloud processing, corner feature extraction is a key task, which helps to identify and describe important geometric structures in point clouds, and provides basic support for applications such as target recognition and 3D reconstruction.
[0003] The technical background of point cloud corner feature extraction mainly involves the complexity and diversity of point cloud data. Point clouds usually come from 3D scanners, lidar and other devices, with uneven density and distribution, and problems such as noise and occlusion. In this case, to accurately and efficiently extract corner features in point clouds, a series of challenges need to be overcome. Curvature-based methods detect corners by calculating the curvature of each point in the point cloud. These methods usually involve calculating the principal curvature or Gaussian curvature, and then identifying corners based on the change in curvature.
[0004] At present, the main methods to solve problems such as noise, uneven density and occlusion include filtering, clustering and special design. Filtering technology helps to remove noise, but it is often used in conjunction with clustering, which can simplify point clouds. However, the time consumption of current clustering methods increases with the increase in the number of point clouds, which poses great challenges to real-time applications. Special designs include algorithms and models targeting the characteristics of point clouds, which can realize corresponding functions of point clouds according to project requirements. These methods constitute the core issues that point cloud feature extractors need to deal with, and provide a direction for achieving more accurate and robust point cloud corner feature extraction. Based on the above reasons, the present invention proposes a method for rapid extraction and clustering of point cloud corner features. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the shortcomings of the prior art, the present invention is applied to the problems of corner point recognition, time-consuming corner point clustering, and point cloud description in the point cloud corner point feature extractor. A point cloud corner point feature extractor can extract point clouds more efficiently and describe the current frame information. While ensuring that the extractor can run in real time, it further realizes the ability to describe the features of the current frame, providing useful preprocessing for 3D modeling and 3D target detection. The present invention can solve the shortcomings of noise points in point clouds and weak point cloud recognition, does not require a large amount of sample training, improves the generalization ability of the feature extractor, and can extract corner point features in a frame of point cloud, thereby providing convenience for subsequent processing of the point cloud. In addition, the clustering operation based on containers adopted by the present invention also greatly improves the efficiency and accuracy of point cloud clustering.
[0007] (II) Technical solution
[0008] To achieve the above object, the present invention provides the following technical solution: a method for quickly extracting and clustering point cloud corner features, applied to a point cloud corner feature extractor, comprising the following steps:
[0009] S1: Divide the point cloud into radar scan line numbers according to the pitch angle, ensuring that each point is distributed on the corresponding scan line;
[0010] S2: Pick points on the scan line to ensure that corner points of the same type remain in the same orientation, and calculate the curvature of the current point;
[0011] S3: Divide the area with the radar sensor as the center, extract the corner points for each line, and determine whether the current point is a corner point based on the curvature. If the curvature is within a specific threshold range, calculate the azimuth of the point and store it in the corresponding container to prepare for subsequent fast clustering.
[0012] S4: clustering the point cloud in each container instead of directly clustering the entire point cloud in a frame, thus greatly speeding up the clustering process, including the initialization, allocation, update, iteration and end process;
[0013] S5: If the current container meets the clustering condition, the points of the adjacent container are added to determine again whether the distance between the cluster centers of the same class in the two containers is less than 2 times the distance threshold. If the condition is met, they are merged into the same class, and the adjacent containers are traversed according to the clustering method in the previous step, and then move to the next container.
[0014] Preferably, the radar used in step 1 is a laser radar, and the scanning lines of the radar are one of 32, 64 and 128.
[0015] Preferably, in step 2, the point selection and calculation of the scan line are specifically to select 10 adjacent points for each scan line, and calculate the curvature of the first 5 points and the last 5 points relative to the current point starting from the 6th point to the 6th to last point of each scan line.
[0016] Preferably, in step 3, 120 areas are divided with the radar sensor as the center, points within 0.1 meters from the sensor are not included, the number of corner point containers is 120, and the threshold for determining corner points is generally 10 to 1000. The larger the corner point, the more obvious its attributes are, and vice versa.
[0017] Preferably, the clustering method for each container in step 4 includes the following specific steps:
[0018] S11: Initialization, select k initial cluster centers, which will become the representatives of each cluster;
[0019] S12: Assignment, for each data point, determine whether the distance between each corner point and the midpoint of the container exceeds a threshold;
[0020] S13: Update, for each cluster, recalculate the mean of all data points in the cluster and use these means as new cluster centers;
[0021] S14: Iteration, repeating the allocation and updating until the cluster center no longer changes significantly or the predetermined number of iterations is reached;
[0022] S15: End, the final clustering result is the cluster to which each data point belongs.
[0023] Preferably, the selection of the initial cluster center in step 21 adopts a random selection method, which specifically includes the following steps:
[0024] S21: First, randomly select a point as the first initial cluster center point;
[0025] S22: Then select the point farthest from this point as the second initial cluster center point;
[0026] S23: Select the point with the largest distance from the first two points as the third initial cluster center point;
[0027] S24: And so on, until k initial cluster center points are selected.
[0028] Preferably, the distance threshold for determining the same class in step 5 is 0.4, and when the distance between the cluster centers of the same class in two containers is less than 0.8, the two containers are merged into the same class.
[0029] Preferably, the library for point cloud processing is a PCL library, and the point cloud format to be input is in the form of pointxyzi in the PCL library.
[0030] (III) Beneficial effects
[0031] Compared with the prior art, the present invention provides a method for quickly extracting and clustering point cloud corner features, which has the following beneficial effects: the present invention is applied to the problems of corner recognition, time-consuming corner clustering and point cloud description in the point cloud corner feature extractor, and can more efficiently extract point clouds and describe the current frame information. A point cloud corner feature extractor ensures that the extractor can run in real time and further realizes the ability to describe the features of the current frame, providing useful preprocessing for 3D modeling and 3D target detection; the present invention can solve the shortcomings of noise points in point clouds and weak point cloud recognition, does not require a large amount of sample training, improves the generalization ability of the feature extractor, and can extract corner features in a frame of point cloud, thereby providing convenience for subsequent processing of the point cloud. In addition, the clustering operation based on containers adopted by the present invention also greatly improves the efficiency and accuracy of point cloud clustering. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is the algorithm flow chart of the present invention;
[0033] Figure 2 Flow chart of the method of the present invention
[0034] Figure 3 It is a schematic diagram of the corner point (dark color) of the present invention;
[0035] Figure 4 This is a figure before the point cloud intersection feature extraction of the present invention;
[0036] Figure 5 This is the picture after the point cloud corner feature extraction of the present invention. DETAILED DESCRIPTION
[0037] In order to better understand the purpose, structure and function of the present invention, and to solve the problem of complexity and diversity of point cloud data in the process of extracting point cloud corner features, the present invention uses the time-consuming corner recognition, corner clustering and point cloud description in the point cloud corner feature extractor to extract point clouds more efficiently and describe the current frame information. While ensuring that the extractor can run in real time, it further realizes the ability to describe the features of the current frame, providing useful preprocessing for 3D modeling and 3D target detection; the present invention can solve the shortcomings of noise points and weak point cloud recognition in point clouds, does not require a large number of sample training, improves the generalization ability of the feature extractor, can extract corner features in a frame of point clouds, thereby providing convenience for subsequent processing of point clouds, and the clustering operation based on containers adopted by the present invention also greatly improves the efficiency and accuracy of point cloud clustering. A method for rapid extraction and clustering of point cloud corner features of the present invention is further described in detail.
[0038] refer to Figure 1-5 The present invention provides a method for quickly extracting and clustering point cloud corner features, which is applied to a point cloud corner feature extractor and comprises the following steps:
[0039] S1: Divide the point cloud into radar scan line numbers according to the pitch angle, ensuring that each point is distributed on the corresponding scan line. The radar used is a laser radar, and the radar scan line is one of 32, 64 and 128;
[0040] S2: Pick points on the scan line to ensure that corner points of the same type remain in the same orientation, and calculate the curvature of the current point;
[0041] Specifically, for the point selection and calculation of the scan line, 10 adjacent points are selected for each scan line, and the curvature of the first 5 points and the last 5 points relative to the current point are calculated from the 6th point to the 6th to last point of each scan line, which can effectively ensure that the same type of corner points remain in the same orientation.
[0042] S3: Divide the area with the radar sensor as the center, extract the corner points for each line, and determine whether the current point is a corner point based on the curvature. If the curvature is within a specific threshold range, calculate the azimuth of the point and store it in the corresponding container to prepare for subsequent fast clustering.
[0043] Specifically, 120 areas are divided with the radar sensor as the center. Points within 0.1 meters from the sensor are not included. The number of corner point containers is 120. The threshold for judging corner points is generally 10 to 1000. The larger the corner point, the more obvious its attributes are, and vice versa.
[0044] S4: clustering the point cloud in each container instead of directly clustering the entire point cloud in a frame, thus greatly speeding up the clustering process, including the initialization, allocation, update, iteration and end process;
[0045] Specifically, the clustering method for each container includes the following specific steps:
[0046] S11: Initialization, select k initial cluster centers, which will become the representatives of each cluster;
[0047] S12: Assignment, for each data point, determine whether the distance between each corner point and the midpoint of the container exceeds a threshold;
[0048] S13: Update, for each cluster, recalculate the mean of all data points in the cluster and use these means as new cluster centers;
[0049] S14: Iteration, repeating the allocation and updating until the cluster center no longer changes significantly or the predetermined number of iterations is reached;
[0050] S15: End, the final clustering result is the cluster to which each data point belongs.
[0051] S5: If the current container meets the clustering condition, the points of the adjacent container are added for further judgment. The distance threshold for judging the same class is 0.4. When the distance between the cluster centers of the same class in two containers is less than 0.8, the two containers are merged into the same class. Whether the distance between the cluster centers of the same class in the two containers is less than 2 times the distance threshold is met, if the condition is met, they are merged into the same class, and the adjacent containers are traversed according to the clustering method in the previous step, and then move to the next container.
[0052] The above aggregation method uses container-based clustering operations to greatly improve the efficiency and accuracy of point cloud clustering.
[0053] Furthermore, a random selection method is used to select the initial cluster center, which specifically includes the following steps:
[0054] S21: First, randomly select a point as the first initial cluster center point;
[0055] S22: Then select the point farthest from this point as the second initial cluster center point;
[0056] S23: Select the point with the largest distance from the first two points as the third initial cluster center point;
[0057] S24: And so on, until k initial cluster center points are selected.
[0058] Through the above operations, the selection of cluster centers can be completed quickly, and the complexity of calculation can be effectively reduced, the processing speed can be improved, and it is easy to adapt to the processing of large-scale point clouds.
[0059] The library for point cloud processing is the PCL library, and the point cloud format that needs to be input is in the form of pointxyzi in the PCL library; the present invention can more efficiently extract point clouds and describe the current frame information. A point cloud corner feature extractor ensures that the extractor can run in real time and further realizes the ability to describe the features of the current frame, providing useful preprocessing for 3D modeling and 3D target detection.
[0060] Compared with the prior art: the present invention is applied to the problems of corner point recognition, time-consuming corner point clustering and point cloud description in the point cloud corner point feature extractor, and is capable of extracting point clouds more efficiently and describing the current frame information. It ensures that the extractor can run in real time and further realizes the ability to describe the features of the current frame, providing useful preprocessing for 3D modeling and 3D target detection; the present invention can solve the shortcomings of noise points in point clouds and weak point cloud recognition, does not require a large amount of sample training, improves the generalization ability of the feature extractor, and can extract corner point features in a frame of point cloud, thereby providing convenience for subsequent processing of the point cloud. In addition, the clustering operation based on containers adopted by the present invention also greatly improves the efficiency and accuracy of point cloud clustering.
[0061] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. A fast extraction and clustering method for point cloud corner features, applied to point cloud corner feature extractor, It is characterized in that The steps include: S1: Divide the point cloud into radar scan line numbers according to the pitch angle, ensuring that each point is distributed on the corresponding scan line; S2: Pick points on the scan line to ensure that corner points of the same type remain in the same orientation, and calculate the curvature of the current point; S3: Divide the area with the radar sensor as the center, extract the corner points for each line, and determine whether the current point is a corner point based on the curvature. If the curvature is within a specific threshold range, calculate the azimuth of the point and store it in the corresponding container to prepare for subsequent fast clustering. S4: clustering the point cloud in each container instead of directly clustering the entire point cloud in a frame, thus greatly speeding up the clustering process, including the initialization, allocation, update, iteration and end process; S5: If the current container meets the clustering condition, the points of the adjacent container are added to determine again whether the distance between the cluster centers of the same class in the two containers is less than 2 times the distance threshold. If the condition is met, they are merged into the same class, and the adjacent containers are traversed according to the clustering method in the previous step, and then move to the next container.
2. A method for rapidly extracting and clustering point cloud corner features according to claim 1, It is characterized in that The radar used in step 1 is a laser radar, and the scanning lines of the radar are one of 32, 64 and 128.
3. A method for rapidly extracting and clustering point cloud corner features according to claim 1, It is characterized in that In step 2, the point selection and calculation of the scan line are specifically to select 10 adjacent points for each scan line, and calculate the curvature of the first 5 points and the last 5 points relative to the current point from the 6th point to the 6th to last point of each scan line.
4. The method for rapidly extracting and clustering point cloud corner features according to claim 1, It is characterized in that In step 3, 120 areas are divided with the radar sensor as the center, and points within 0.1 meters from the sensor are not included. The number of corner point containers is 120, and the threshold for determining corner points is generally 10 to 1000. The larger the corner point, the more obvious its attributes are, and vice versa.
5. The method for rapidly extracting and clustering point cloud corner features according to claim 1, Features: The clustering method for each container in step 4 includes the following specific steps: S11: Initialization, select k initial cluster centers, which will become the representatives of each cluster; S12: Assignment, for each data point, determine whether the distance between each corner point and the midpoint of the container exceeds a threshold; S13: Update, for each cluster, recalculate the mean of all data points in the cluster and use these means as new cluster centers; S14: Iteration, repeating the allocation and updating until the cluster center no longer changes significantly or the predetermined number of iterations is reached; S15: End, the final clustering result is the cluster to which each data point belongs.
6. A method for fast extraction and clustering of point cloud corner features according to claim 5, It is characterized in that The selection of the initial cluster center in step 21 adopts a random selection method, which specifically includes the following steps: S21: First, randomly select a point as the first initial cluster center point; S22: Then select the point farthest from this point as the second initial cluster center point; S23: Select the point with the largest distance from the first two points as the third initial cluster center point; S24: And so on, until k initial cluster center points are selected.
7. The method for rapidly extracting and clustering point cloud corner features according to claim 1, It is characterized in that The distance threshold for determining the same class in step 5 is 0.
4. When the distance between the cluster centers of the same class in two containers is less than 0.8, the two containers are merged into the same class.
8. The method for rapidly extracting and clustering point cloud corner features according to claim 1, It is characterized in that The library for point cloud processing is the PCL library, and the point cloud format that needs to be input is in the form of pointxyzi in the PCL library.
