A method, system, device and medium for extracting point cloud boundary data
By combining sparse and dense boundary points, and utilizing the principle of maximum angle between nearest neighbors and vector product judgment, point cloud boundary points are automatically extracted. This solves the problem of the inability to accurately extract complete boundary points in existing technologies and achieves high-accuracy boundary recognition.
Patent Information
- Application Number
- CN202410074436.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-01-18
AI Technical Summary
Existing point cloud boundary detection algorithms cannot automatically and accurately extract complete boundary points, and require manual threshold setting, which affects the extraction accuracy.
We employ sparse boundary point extraction and dense boundary point extraction methods, utilizing the principle of maximum angle between neighboring points and vector product judgment to automatically extract point cloud boundary points.
It achieves accurate extraction of point cloud boundaries, improves the accuracy and robustness of boundary recognition, and avoids the accuracy problems caused by manually setting thresholds.
Smart Images

Figure CN117911449B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method for extracting point cloud boundary data. Background Technology
[0002] Road maintenance primarily involves repairing damaged areas. Current road repair methods mainly rely on manual grouting, which often results in either too much or too little grout, leading to uneven surfaces. Without secondary cutting or filling, the repaired surface is prone to recurring problems. Repeated repairs are inefficient and wasteful of materials. Point cloud-based boundary extraction has significant value in road maintenance, serving as the foundation for measuring the area and volume of potholes, thus a prerequisite for precise road repair. By projecting the 3D point cloud of potholes onto the road plane and accurately extracting the pothole boundaries on the projection plane, precise pothole location can be achieved. This allows for the accurate determination of the pothole's area and the required filling volume on the road surface, ultimately enabling precise road repair.
[0003] Traditional point cloud boundary detection algorithms primarily focus on the local geometric properties of point clouds. For example, Kris et al. proposed a sharp boundary extraction method based on normal estimation, and Bisheng et al. proposed a curve extraction method based on curvature. These methods can automatically extract point cloud boundaries with certain geometric properties and have good generalization ability. However, because these methods directly utilize geometric properties for boundary point extraction, they can only extract point cloud boundaries with certain characteristics and cannot extract the complete set of boundary points.
[0004] With the rapid development of neural networks, learning-based boundary extraction algorithms have emerged. These methods treat boundary detection as a binary classification task, classifying each point as a boundary point or an interior point based on its learned local features. As network architectures have progressed, classifiers for boundary detection have evolved from random forests to multilayer perceptrons based on PointNet++. These methods focus on extracting points with certain structural characteristics. For example, the method proposed by Timo et al. is mainly used for contour boundary point extraction, the method proposed by Xiaogang et al. focuses on the extraction of lines, circles, and B-spline segments, and the method proposed by Lequan et al. focuses on the extraction of steep boundaries. Learning-based methods can handle the boundary extraction problem of large point clouds. However, because these methods utilize the geometric structure of the corresponding point's vicinity during the learning process, they can only extract boundary points with certain geometric characteristics and cannot extract complete boundaries.
[0005] Besides the aforementioned method of directly extracting boundary points using the neighboring structure of points, there is another type of method that indirectly extracts boundary points using the neighboring structure of points. This type of method is mainly represented by patents CN201810077286 and CN202210836544, which are respectively:
[0006] Chinese patent CN201810077286, entitled "A Fast Point Cloud Boundary Extraction Technique Combining an Improved Particle Swarm Optimization Algorithm," proposes a method to determine boundary points from interior points by utilizing the uniformity of the distribution of k-nearest neighbors in a point cloud. The uniformity is determined by calculating the angle difference between a point and the vector formed by its k-nearest neighbors; if the maximum value of this difference is greater than a set threshold, it is considered a boundary point; otherwise, it is considered an interior point. This technique provides an efficient and high-precision point cloud boundary extraction method. However, the extraction technique requires manually setting a threshold, and an inappropriate threshold setting can significantly affect the extraction accuracy.
[0007] Chinese patent number CN202210836544, entitled "Method and Apparatus for Detecting Geometric Dimensions of Magnetic Tiles," proposes a point cloud boundary extraction method based on normal angle. This method determines whether a point belongs to a boundary by comparing the difference in normal angles between the point cloud's neighborhood normal vectors and a threshold; if the difference exceeds the set threshold, it is identified as a boundary point. This method can achieve efficient and high-precision point cloud boundary extraction. However, it also requires manually setting an appropriate normal vector angle threshold, and the selection of the threshold greatly affects the accuracy of boundary point extraction.
[0008] In summary, existing methods mainly focus on extracting boundary points with certain geometric characteristics and extracting complete boundary points by setting thresholds. The above technical solutions cannot achieve automatic and accurate extraction of point cloud boundary points. Summary of the Invention
[0009] In order to overcome the shortcomings of the existing technology, which cannot automatically and accurately extract point cloud boundary points, the main objective of this invention is to provide a method for extracting point cloud boundary data.
[0010] To achieve the above objectives, the present invention adopts the following technical solution: the present invention realizes accurate boundary extraction of point clouds on the projection plane, which includes two parts: sparse boundary point extraction and dense boundary point extraction.
[0011] Extraction of sparse boundary points
[0012] Sparse boundary point extraction primarily utilizes the principle that the angle between boundary points among neighboring points is the largest among all adjacent points. This application names this principle the "Boundary Point Maximum Angle Principle," which states: Among the neighboring points with the boundary point as the reference point, the two neighboring points with the largest angle among the lines connecting the reference point to any two neighboring points are the boundary points. (The angle does not include any other points.)
[0013] The specific steps in the sparse boundary point extraction process include:
[0014] 1. Take the point closest to the origin as the initial boundary point, i.e., the initial reference point;
[0015] 2. Find the k-nearest neighbor of the reference point;
[0016] 3. Using the reference point as the origin, calculate the angular coordinates of the k nearest points relative to the reference point in the polar coordinate system;
[0017] 4. Sort all k angles and calculate the angle difference between any two adjacent points;
[0018] 5. Select the two points with the largest angle difference as boundary points;
[0019] 6. Check if there is a previous boundary point among the two boundary points that serves as a reference point; this check is not required for the first two boundary points, but is required for the subsequent boundary points. If yes, proceed to the next step; if not, calculate the adjacent angle difference between the two points before and after the previous boundary point, and take the one with the larger angle difference as the next boundary point.
[0020] 7. Repeat steps 2-6 until the detected new boundary point is the initial boundary point.
[0021] The evolution from sparse boundary points to dense point clouds involves adding the boundary points on the lines connecting the sparse points to the boundary point cloud.
[0022] Regarding the extraction of dense boundary points: The specific steps for extracting dense boundary points include:
[0023] 1. Take two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0024] 2. Search for the k nearest neighbors of the endpoint;
[0025] 3. Calculate the vector product of the i-th neighboring point with the endpoint and the end point respectively, looping through i<=k;
[0026] 4. If the vector product is less than 0;
[0027] Add the i-th neighboring point to the boundary point set;
[0028] Otherwise, determine if the i-th neighboring point is not a boundary point;
[0029] Take another neighboring point in the sparse boundary point set as the new endpoint, and set the original endpoint as the endpoint. Repeat steps 2 and 3 until all boundary points have been traversed.
[0030] A system for extracting point cloud boundary data, comprising:
[0031] The data acquisition module collects the projection of the point cloud of road potholes onto the road plane to obtain the point cloud dataset of potholes.
[0032] The sparse boundary point extraction module takes the point closest to the origin as the initial boundary point, i.e., the initial reference point; finds the k nearest neighbor points of the reference point; calculates the angular coordinates of the k nearest neighbor points relative to the reference point in the polar coordinate system with the reference point as the origin; sorts all k angles and calculates the angle difference between two adjacent points; selects the two points with the largest angle difference as boundary points; checks whether one of the two boundary points is the previous boundary point of the reference point, until a new boundary point is detected as the initial boundary point, thus extracting sparse boundary points.
[0033] The dense boundary point extraction module takes any two adjacent points from the sparse boundary points and denotes them as the endpoint and the end point, respectively; obtains the k nearest neighbors of the endpoint; calculates the vector product of the i-th neighbor with the endpoint and the end point, respectively. If the vector product is less than 0, the i-th neighbor is added to the boundary point set until all boundary points have been traversed; thus, the dense boundary points are extracted.
[0034] The extraction module extracts sparse and dense boundary points, which form the boundary dataset of the point cloud.
[0035] A computer device includes a memory and a processor, the memory storing a computer program, which, when executed by the processor,
[0036] The processor performs the following steps:
[0037] The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes; then sparse boundary points and dense boundary points are extracted sequentially.
[0038] The sparse boundary point extraction step is as follows:
[0039] Take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system.
[0040] Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points.
[0041] The steps for extracting dense boundary points are as follows:
[0042] Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0043] Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points.
[0044] The extracted sparse and dense boundary points are the boundary data of the extracted point cloud.
[0045] A computer-readable storage medium, the computer-readable storage medium
[0046] The system stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0047] The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes; then sparse boundary points and dense boundary points are extracted sequentially.
[0048] The sparse boundary point extraction step is as follows:
[0049] Take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system.
[0050] Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points.
[0051] The steps for extracting dense boundary points are as follows:
[0052] Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0053] Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points.
[0054] The extracted sparse and dense boundary points are the boundary data of the extracted point cloud.
[0055] Compared with the prior art, the beneficial effects of the present invention are as follows: The method proposed in this application does not require setting a threshold point in advance. It can automatically extract point cloud boundary points by sequentially extracting sparse boundary points and dense boundary points, thereby achieving accurate boundary extraction of point cloud on the projection plane and having high boundary recognition accuracy and robustness. Attached Figure Description
[0056] Figure 1 This is a flowchart of the sparse boundary point extraction process of the present invention;
[0057] Figure 2 This is the extraction process for dense boundary points in this invention;
[0058] Figure 3(a) is a schematic diagram of the point cloud data of road surface potholes collected by the present invention;
[0059] Figure 3(b) is a schematic diagram of point cloud data for the local pitting method of the present invention;
[0060] Figure 4 This is a schematic diagram illustrating the selection of initial boundary points for the pitted projection point cloud of the present invention.
[0061] Figure 5(a) is a schematic diagram of the three boundary points obtained in the first iteration in an embodiment of the present invention;
[0062] Figure 5(b) is a schematic diagram of the pitted boundary points extracted by the sparse boundary point extraction algorithm of the present invention;
[0063] Figure 6 This is a schematic diagram of two points arbitrarily selected from the sparse boundary point set in this invention;
[0064] Figure 7(a) is a schematic diagram of the pitted boundary points extracted by the dense boundary point extraction algorithm of the present invention;
[0065] Figure 7(b) is a magnified view of the pitted boundary points extracted by the dense boundary point extraction algorithm of the present invention;
[0066] Figure 8 This is a schematic diagram of the process framework of the present invention. Detailed Implementation
[0067] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0068] Example:
[0069] This invention mainly realizes the accurate boundary extraction of point clouds on the projection plane, which mainly includes two parts: sparse boundary point extraction and dense boundary point extraction.
[0070] Regarding sparse boundary point extraction, this method primarily utilizes the principle that the angle between boundary points among their neighboring points is the largest. This application names this principle the "maximum angle principle of boundary points," which states: Among the neighboring points with the boundary point as the reference point, the two neighboring points with the largest angle among the lines connecting the reference point to any two neighboring points are the boundary points. (The angle does not include any other points.)
[0071] The process for extracting sparse boundary points is as follows: Figure 1 :
[0072] Specific steps:
[0073] 1. Take the point closest to the origin as the initial boundary point, i.e., the initial reference point;
[0074] 2. Find the k-nearest point of the reference point;
[0075] 3. Using the reference point as the origin, calculate the angular coordinates of the k nearest points relative to the reference point in the polar coordinate system;
[0076] 4. Sort all k angles and calculate the angle difference between any two adjacent points;
[0077] 5. Select the two points with the largest angle difference as boundary points;
[0078] 6. Check if there is a previous boundary point among the two boundary points that serves as a reference point; this check is not required for the first two boundary points, but is required for the subsequent boundary points. If yes, proceed to the next step; if not, calculate the adjacent angle difference between the two points before and after the previous boundary point, and take the one with the larger angle difference as the next boundary point.
[0079] 7. Repeat steps 2-6 until the detected new boundary point is the initial boundary point.
[0080] Regarding the extraction of dense boundary points, the evolution from sparse boundary points to dense point clouds involves adding the boundary points on the lines connecting sparse points to the boundary point cloud.
[0081] The flowchart for extracting dense boundary points is as follows: Figure 2 The specific steps are as shown:
[0082] 1. Take two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0083] 2. Search for the k nearest neighbors of the endpoint;
[0084] 3. Loop (i <= k), calculate the vector product of the i-th neighboring point with the endpoint and the end point respectively;
[0085] 4. If the vector product is less than 0, add the i-th neighboring point to the boundary point set; otherwise, determine that the i-th neighboring point is not a boundary point; take another neighboring point whose endpoint is in the sparse boundary point set as the new endpoint, and set the original endpoint as the endpoint. Repeat steps 2 and 3 until all boundary points have been traversed.
[0086] A system for extracting point cloud boundary data, comprising:
[0087] The data acquisition module collects the projection of the point cloud of road potholes onto the road plane to obtain the point cloud dataset of potholes.
[0088] The sparse boundary point extraction module takes the point closest to the origin as the initial boundary point, i.e., the initial reference point; finds the k nearest neighbor points of the reference point; calculates the angular coordinates of the k nearest neighbor points relative to the reference point in the polar coordinate system with the reference point as the origin; sorts all k angles and calculates the angle difference between two adjacent points; selects the two points with the largest angle difference as boundary points; checks whether one of the two boundary points is the previous boundary point of the reference point, until a new boundary point is detected as the initial boundary point, thus extracting sparse boundary points.
[0089] The dense boundary point extraction module takes any two adjacent points from the sparse boundary points and denotes them as the endpoint and the end point, respectively; obtains the k nearest neighbors of the endpoint; calculates the vector product of the i-th neighbor with the endpoint and the end point, respectively. If the vector product is less than 0, the i-th neighbor is added to the boundary point set until all boundary points have been traversed; thus, the dense boundary points are extracted.
[0090] The extraction module extracts sparse and dense boundary points, which form the boundary dataset of the point cloud.
[0091] A computer device includes a memory and a processor, the memory storing a computer program, which, when executed by the processor,
[0092] The processor performs the following steps:
[0093] The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes; then sparse boundary points and dense boundary points are extracted sequentially.
[0094] The extracted sparse and dense boundary points are the boundary data of the extracted point cloud.
[0095] The sparse boundary point extraction step is as follows:
[0096] Take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system.
[0097] Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points.
[0098] The steps for extracting dense boundary points are as follows:
[0099] Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0100] Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points.
[0101] A computer-readable storage medium, the computer-readable storage medium
[0102] A computer program is stored therein, which, when executed by a processor, causes the processor to perform the following steps:
[0103] The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes; then sparse boundary points and dense boundary points are extracted sequentially.
[0104] The extracted sparse and dense boundary points are the boundary data of the extracted point cloud.
[0105] The sparse boundary point extraction step is as follows:
[0106] Take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system.
[0107] Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points.
[0108] The steps for extracting dense boundary points are as follows:
[0109] Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0110] Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points.
[0111] Example 2
[0112] participate Figure 1-8 Based on Example 1, in specific implementation, a method for extracting point cloud boundary data includes the following steps:
[0113] Projecting the point cloud of road potholes onto the road plane yields a point cloud dataset of potholes; then extracting sparse boundary points and dense boundary points sequentially.
[0114] Among them, sparse boundary points are obtained:
[0115] Collect the pothole point cloud data to be processed and project it onto the road surface. After establishing a coordinate system, take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor points of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor points relative to the reference point in the polar coordinate system.
[0116] In this embodiment, the collected projected point cloud data of road surface potholes to be processed is shown in Figure 3(a). As can be seen in the figure, the pothole boundaries are uneven. Enlarging a portion of Figure 3(a), as shown in Figure 3(b), it can be seen that the distribution density of boundary points is also uneven; some areas have sparse distribution of boundary points, while others have denser distribution. For example... Figure 4 As indicated by the circle pointed to by the middle arrow, the point closest to the origin is taken as the initial boundary point, i.e., the initial reference point.
[0117] Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; continue until a new boundary point is detected as the initial boundary point; and then extract sparse boundary points.
[0118] In this embodiment, the initial boundary point is used as the reference point. The k nearest neighbors of the reference point are found, and the angular coordinates of the k nearest neighbors relative to the reference point in the polar coordinate system are calculated. All k angles are sorted, and the angle difference between two adjacent points is calculated. The two points with the largest angle difference are selected as boundary points. In the first iteration, since the two points with the largest angle difference are not included in the boundary point set, two points will be added to the boundary point set after the first iteration, as shown in Figure 5(a). Figure 5(b) shows the overall sparse boundary extraction effect.
[0119] Obtain dense boundary points
[0120] Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively;
[0121] Search for the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points.
[0122] The extracted sparse and dense boundary point sets are the boundary data of the extracted point cloud.
[0123] In this embodiment, any two adjacent points in the sparse boundary point set in (a) are taken as the initial endpoint and the endpoint, such as... Figure 6As shown in the figure, there is one boundary point between the two boundary points that is not included in the sparse boundary point set. Search for the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; then extract the dense boundary points, as shown in Figure 7(a).
[0124] However, it should be noted that in this invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.
[0125] The above embodiments are merely illustrative examples of the present invention and do not constitute a limitation on the scope of protection of the present invention. Any designs that are the same as or similar to the present invention are within the scope of protection of the present invention.
Claims
1. A method for extracting point cloud boundary data, characterized in that, Includes the following steps: The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes. Then, sparse boundary points and dense boundary points are extracted sequentially. The extracted sparse and dense boundary points constitute the boundary dataset of the extracted point cloud. The sparse boundary point extraction step is as follows: Take the point closest to the origin in the point cloud dataset as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor points of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor points relative to the reference point in the polar coordinate system. Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points. The extraction steps for the dense boundary points are as follows: Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively; Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points.
2. The method for extracting point cloud boundary data according to claim 1, characterized in that, The sparse boundary point extraction step further includes: the first two boundary points are not checked, and the subsequent boundary points are checked in turn. If one of the two boundary points is the previous boundary point that is the reference point, then the sparse boundary points are obtained.
3. The method for extracting point cloud boundary data according to claim 2, characterized in that, The sparse boundary point extraction step further includes: if there is no previous boundary point that serves as a reference point among the two boundary points, then take the two points before and after the previous boundary point, calculate the adjacent angle difference, and take the one with the larger angle difference as the next boundary point. If the boundary point is the initial boundary point, then sparse boundary points are obtained.
4. The method for extracting point cloud boundary data according to claim 3, characterized in that, The sparse boundary point extraction step further includes: if none of the two boundary points is the previous boundary point of the reference point, then take the two points before and after the previous boundary point, calculate the adjacent angle difference, and take the one with the larger angle difference as the next boundary point; if the boundary point is not the initial boundary point, then find the k nearest neighbor of the reference point and calculate the angle coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system.
5. The method for extracting point cloud boundary data according to claim 1, characterized in that, The dense boundary point extraction step further includes: multiplying the vectors formed by the i-th neighboring point and the endpoint and the end point respectively; if the vector product is not less than 0, then the i-th neighboring point is determined not to be a boundary point, until all boundary points have been traversed; thus, the dense boundary points are extracted.
6. The method for extracting point cloud boundary data according to claim 1, characterized in that, The dense boundary point extraction step further includes: if the vector product is not less than 0, then the i-th neighboring point is determined not to be a boundary point. When the sparse boundary point set has not been traversed, another neighboring point in the sparse boundary point set is taken as the new endpoint, and the original endpoint is set as the endpoint. Then, the dense boundary point extraction process is repeated.
7. A system for extracting point cloud boundary data, characterized in that, include: The data acquisition module collects the projection of the point cloud of road potholes onto the road plane to obtain a point cloud dataset of potholes. The sparse boundary point extraction module takes the point closest to the origin as the initial boundary point, i.e., the initial reference point; finds the k nearest neighbor points of the reference point; calculates the angular coordinates of the k nearest neighbor points relative to the reference point in the polar coordinate system with the reference point as the origin; sorts all k angles and calculates the angle difference between two adjacent points; selects the two points with the largest angle difference as boundary points; checks whether one of the two boundary points is the previous boundary point of the reference point, until a new boundary point is detected as the initial boundary point, thus extracting sparse boundary points. The dense boundary point extraction module takes any two adjacent points from the sparse boundary points and denotes them as the endpoint and the end point, respectively; obtains the k nearest neighbors of the endpoint; calculates the vector product of the i-th neighbor with the endpoint and the end point, respectively. If the vector product is less than 0, the i-th neighbor is added to the boundary point set until all boundary points have been traversed; thus, the dense boundary points are extracted. The extraction module extracts sparse and dense boundary points, which form the boundary dataset of the point cloud.
8. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the following steps: The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes; then sparse boundary points and dense boundary points are extracted sequentially. The sparse boundary point extraction step is as follows: Take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system. Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points. The steps for extracting dense boundary points are as follows: Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively; Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points. The extracted sparse and dense boundary points are the boundary data of the extracted point cloud.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium A computer program is stored therein, which, when executed by a processor, causes the processor to perform the following steps: The point cloud of road potholes is projected onto the road plane to obtain a point cloud dataset of potholes; then sparse boundary points and dense boundary points are extracted sequentially. The sparse boundary point extraction step is as follows: Take the point closest to the origin as the initial boundary point, i.e., the initial reference point; find the k nearest neighbor of the reference point; with the reference point as the origin, calculate the angular coordinates of the k nearest neighbor relative to the reference point in the polar coordinate system. Sort all k angles and calculate the angle difference between two adjacent points; select the two points with the largest angle difference as boundary points; check if there is a previous boundary point that is a reference point among the two boundary points, until the newly detected boundary point is the initial boundary point, and then extract sparse boundary points. The steps for extracting dense boundary points are as follows: Take any two adjacent points in the sparse boundary points and denote them as the endpoint and the end point, respectively; Obtain the k nearest neighbors of the endpoint; calculate the vector product of the i-th neighbor with the endpoint and the endpoint respectively. If the vector product is less than 0, add the i-th neighbor to the boundary point set until all boundary points have been traversed; thus, extract dense boundary points. The extracted sparse and dense boundary points are the boundary data of the extracted point cloud.
Citation Information
Patent Citations
Fast point cloud boundary extraction technique combined with improved particle swarm algorithm
CN108320293A
Magnetic shoe geometric dimension detection method and device
CN115170640A
Method and device for determining road boundary line
CN110378173A
Road boundary detection method and device, computer equipment and storage medium
CN115731527A
