A weighted Poisson disk resampling method, device and medium for large-scale point clouds

By combining the multi-scale Laplacian network and intrinsic shape features with the Poisson disk sampling method, the point cloud density and sampling rate are optimized, solving the problems of speed, density and feature preservation in point cloud resampling, and achieving fast, uniform, and Controllable point cloud resampling, suitable for a variety of 3D scene reconstruction applications.

CN118537497BActive Publication Date: 2024-10-01QINGDAO UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410992917.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

It is difficult for the existing technology to simultaneously take into account speed, sampling density, point number control and feature preservation in point cloud resampling. Traditional methods have problems such as slow speed, uneven density after sampling, inability to accurately control the number of points, and loss of sharp features.

Method used

Multi-scale Laplacian network and intrinsic shape features are used to detect key points of point cloud data, voxelize the data and determine the sampling radius based on the preset sampling rate, and perform preliminary sampling and point set adjustment based on the Poisson disk sampling method. The point cloud density is optimized through tangent space mapping and Voronoi diagram, and different sampling rates are used to sample feature and common point sets, and finally spliced ​​to obtain point cloud data that is uniform and features are maintained.

Benefits of technology

It achieves fast, uniform, and controllable point cloud resampling, maintains the characteristic information of the original point cloud, and is suitable for 3D scene reconstruction in application fields such as virtual reality, digital twins, and the metaverse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537497B_ABST
    Figure CN118537497B_ABST
Patent Text Reader

Abstract

The present application discloses a weighted Poisson disk resampling method, device and medium for large-scale point clouds, which relates to the field of data sampling. The method includes: dividing the point cloud data to be processed into a feature point set and a common point set, voxelizing them respectively, and determining different sampling radii in combination with a voxel model and a preset sampling rate; continuously iterating the sampling radius according to the target simplified point number, optimizing the sampling based on the Poisson disk sampling method and the nearest point deletion strategy to obtain an optimized sampling point cloud; then tangent space mapping is performed on the sampling points, and the point cloud density is optimized based on the Voronoi diagram using a weighted method for the two-dimensional tangent space point cloud distribution obtained by the mapping to obtain uniformly distributed point cloud data; sampling the uniformly distributed point cloud data corresponding to the feature point set and the common point set at different sampling rates, and then splicing them to obtain the final simplified point cloud data. The present application can achieve fast, uniform, point-number-controllable point cloud resampling while maintaining features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data sampling, and in particular to a weighted Poisson disk resampling method, device and medium for large-scale point clouds. Background Art

[0002] With the rapid development of 3D scanning technology, high-precision scanners can be used to obtain large-scale 3D point cloud data, which has been widely used in many fields such as virtual reality, augmented reality, robot navigation, and medical image analysis. However, the scale of these point cloud data is often very large, containing hundreds of thousands or even millions of points, which makes the storage, transmission, and processing of point cloud data very difficult. Therefore, how to reduce the amount of point cloud data has become an important issue. In addition, in downstream work such as point cloud registration, reconstruction, segmentation, and recognition, a model with a small and controllable number of points, uniform density distribution, and obvious features is usually required. Therefore, it is very necessary to perform feature-preserving point cloud resampling.

[0003] Traditional resampling algorithms have problems such as slow speed, uneven density after sampling, inability to accurately control the number of points, and loss of sharp features. They cannot simultaneously take into account the requirements of speed, sampling density, point control, and feature retention. The resampling method based on local uniformity improves the uniformity of the resampled point cloud by calculating the distance between local points. The algorithm is relatively simple and efficient, but it cannot maintain the features. Resampling based on geometric feature retention is generally relatively slow, and the feature point calculation method is relatively rough, making it difficult to extract accurate feature points. The advantage of the resampling method based on semantic features is that it can analyze the overall features of the point cloud and reconstruct the missing local geometric information from the original point cloud. The disadvantage is that the uniformity of the point cloud after sampling is poor. After searching the prior art, it was found that although there is a technology for sampling using a Poisson disk, such as CN117407481B, this solution still cannot take into account the requirements of sampling density, point control, and feature retention. Summary of the invention

[0004] The purpose of this application is to provide a weighted Poisson disk resampling method, device and medium for large-scale point clouds, which can achieve a point cloud resampling solution that is fast, uniform, and point-controllable while maintaining features.

[0005] To achieve the above objectives, this application provides the following solutions.

[0006] In a first aspect, the present application provides a weighted Poisson disk resampling method for large-scale point clouds, comprising the following steps.

[0007] Combining multi-scale Laplace network and intrinsic shape features, key point detection is performed on the point cloud data to obtain feature point sets and common point sets.

[0008] For any point set in the feature point set and the common point set, the point set is voxelized to obtain a voxel model, and the sampling radius is determined in combination with the voxel model and the preset sampling rate; wherein the preset sampling rate corresponding to the feature point set is a first sampling rate, and the preset sampling rate corresponding to the common point set is a second sampling rate, and the first sampling rate is higher than the second sampling rate.

[0009] The sampling radius is optimized based on the voxel model and the target simplified point number, and then the point set is preliminarily sampled based on the Poisson disk sampling method, and the point set is adjusted based on the nearest point deletion strategy to obtain an optimized sampling point cloud.

[0010] The sampling points in the optimized sampling point cloud are mapped in tangent space, and the point cloud density is optimized in a weighted manner based on the Voronoi diagram for the two-dimensional tangent space point cloud distribution obtained by mapping, so as to obtain evenly distributed point cloud data.

[0011] The uniformly distributed point cloud data corresponding to the feature point set is sampled based on the first sampling rate to obtain first resampled point cloud data; and the uniformly distributed point cloud data corresponding to the common point set is sampled based on the second sampling rate to obtain second resampled point cloud data.

[0012] The first resampled point cloud data and the second resampled point cloud data are spliced ​​to obtain final point cloud data.

[0013] Optionally, the sampling radius is optimized based on the voxel model and the target simplified point number, and then the point set is preliminarily sampled based on the Poisson disk sampling method, and the point set is adjusted based on the nearest point deletion strategy to obtain an optimized sampling point cloud, which specifically includes the following steps.

[0014] Based on the sampling radius, the point set is sampled to determine the current number of sampling points.

[0015] The sampling radius is iteratively adjusted according to the current number of sampling points and the target number of simplified points in combination with the voxel model until a preset condition is met, and then the iteration is stopped to obtain an optimized sampling radius; the preset condition is that the difference between the current number of sampling points and the target number of simplified points is within a preset difference range.

[0016] Based on the optimized sampling radius, the point set is sampled based on the Poisson disk sampling method, and based on the nearest point deletion strategy, the points in the point set are deleted according to the target simplified point number and the distance between each point in the point set and the nearest neighbor point to obtain an optimized sampling point set; the number of points in the optimized sampling point set is the same as the target simplified point number.

[0017] Optionally, the calculation formula for the sampling radius is:

[0018] .

[0019] Where r represents the sampling radius, represents the side length of the voxel in the voxel model, λ represents the preset scale factor, m represents the number of voxels in the voxel model, and n represents the target number of simplified points.

[0020] The process of iteratively adjusting the sampling radius is specifically implemented using the following formula.

[0021] .

[0022] .

[0023] .

[0024] in, r’ represents the sampling radius after optimization, Indicates the current number of sampling points. Indicates the proportional difference between the current number of sampling points and the target number of simplified points. represents the amplification factor, represents the reduction factor, is the convergence factor, and b represents the limit of the preset difference range.

[0025] Optionally, performing tangent space mapping on the sampling points in the optimized sampling point set specifically includes:

[0026] Any sampling point in the optimized sampling point set is taken as a center point, and a neighborhood of the center point is calculated using a K-nearest neighbor classification algorithm.

[0027] The principal component analysis method is used to calculate the normal direction of the center point and determine the corresponding tangent plane.

[0028] All sampling points in the neighborhood of the center point are mapped according to the normal of the center point and mapped to the tangent plane to obtain a local point cloud distribution.

[0029] The corresponding local point cloud distribution is calculated in sequence according to all sampling points in the optimized sampling point set to determine the two-dimensional tangent space point cloud distribution.

[0030] Optionally, the point cloud density of the mapped two-dimensional tangent space point cloud distribution is optimized by using a weighted method based on the Voronoi diagram to obtain uniformly distributed point cloud data, specifically including:

[0031] The two-dimensional tangent space point cloud distribution is divided into a plurality of Voronoi cells; each of the Voronoi cells contains a mapping point in the two-dimensional tangent space point cloud distribution.

[0032] The average value of the endpoint coordinates of the Voronoi cell corresponding to each of the mapping points is calculated.

[0033] If the Voronoi cell corresponding to the mapping point is not at an edge position, the position coordinates of the mapping point are updated to the average value of the endpoint coordinates; if the Voronoi cell corresponding to the mapping point is at an edge position, the position coordinates of the mapping point are retained.

[0034] Uniform density point cloud data is determined according to the updated position coordinates of all the mapping points.

[0035] Optionally, a calculation formula for the average value of the endpoint coordinates of the Voronoi cell corresponding to each of the mapping points is:

[0036] .

[0037] .

[0038] in, p j is the jth mapping point; N i is the adjacent point set of the i-th mapping point, α and β are determined according to any three adjacent mapping points in the adjacent point set of the i-th mapping point; is the average value of the endpoint coordinates of the Voronoi cell corresponding to the i-th mapping point, w ij and w i is the cotangent weight.

[0039] Optionally, a multi-scale Laplace network and intrinsic shape features are combined to perform key point detection on the point cloud data to be processed to obtain a feature point set and a common point set, specifically including:

[0040] An intrinsic neighborhood search algorithm that complies with the manifold constraint is used to calculate the intrinsic neighborhood of the point cloud to be processed, and an intrinsic shape descriptor is determined; the intrinsic shape descriptor is determined based on the cosine of the normal angle of any point in the point cloud to be processed.

[0041] The intrinsic shape descriptors at three scales are sent to a multi-scale Laplace network to detect feature points, the detected feature points are classified into a feature point set, and the undetected feature points are classified into a common point set.

[0042] In a second aspect, the present application provides a computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the weighted Poisson disk resampling method for large-scale point clouds described in any one of the above.

[0043] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the weighted Poisson disk resampling method for large-scale point clouds described in any one of the above.

[0044] According to the specific embodiments provided by the present application, the present application discloses the following technical effects: The present application provides a weighted Poisson disk resampling method, device and medium for large-scale point clouds, which combines a multi-scale Laplace network and intrinsic shape features, divides the point cloud data to be processed into a feature point set and a common point set, voxelizes them respectively, determines different sampling radii in combination with a preset sampling rate, samples them based on the Poisson disk sampling method, and then deletes the point set based on the nearest point deletion strategy to obtain an optimized sampling point set. It should be noted that the Poisson disk sampling method is the fastest among the current mainstream methods, so it can ensure the speed of point cloud resampling. The sampling points in the optimized sampling point set are mapped to a tangent space, and the point cloud density is optimized in a weighted manner based on the Voronoi diagram for the two-dimensional tangent space point cloud distribution obtained by mapping, so that the point cloud is isotropic and point cloud data with uniform density distribution is obtained. Finally, the uniformly distributed point cloud data corresponding to the feature point set and the common point set are sampled and spliced ​​at different sampling rates to obtain simplified point cloud data with final feature preservation. This application realizes point cloud resampling in a fast, uniform, and controllable manner while maintaining features, which can be applied to downstream tasks such as point cloud registration, reconstruction, segmentation and recognition, such as simplifying point cloud data of large-scale scenes acquired by 3D scanners, and reconstructing 3D scenes in application fields such as virtual reality, digital twins and metaverse construction. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 This is a diagram of the application environment of a weighted Poisson disk resampling method for large-scale point clouds in one embodiment of the present application.

[0047] Figure 2 A flowchart of a weighted Poisson disk resampling method for a large-scale point cloud provided in one embodiment of the present application.

[0048] Figure 3 A flowchart of a weighted Poisson disk resampling method for a large-scale point cloud provided in another embodiment of the present application.

[0049] Figure 4A schematic diagram of the distribution of a two-dimensional tangent space point cloud provided in an embodiment of the present application.

[0050] Figure 5 A schematic diagram of a Voronoi cell provided in an embodiment of the present application.

[0051] Figure 6 A schematic diagram of calculating the average value of the endpoint coordinates of a Voronoi cell provided in one embodiment of the present application.

[0052] Figure 7 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] This application is designed from a new perspective to provide a weighted Poisson disk resampling method for large-scale point cloud data, realizing a point cloud resampling scheme that is fast, uniform, and point-controllable while maintaining features, so that it can be effectively used in three-dimensional scene reconstruction in application fields such as virtual reality, digital twins, and metaverse construction.

[0055] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0056] The weighted Poisson disk resampling method for large-scale point clouds provided in the embodiments of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, or it can be integrated on the server 104, or it can be placed on the cloud or other servers. The terminal 102 can send the point cloud data to be processed to the server 104. After the server 104 receives the point cloud data to be processed, it combines the three processing methods of Poisson disk sampling, weighted Voronoi and feature preservation for resampling. The server 104 can feedback the final point cloud data obtained to the terminal 102. In addition, in some embodiments, the weighted Poisson disk resampling method of large-scale point clouds can also be implemented separately by the server 104 or the terminal 102, such as the terminal 102 can directly resample the point cloud data to be processed, or the server 104 can obtain the point cloud data to be processed from the data storage system and then resample it.

[0057] The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, tablet computers, IoT devices, and portable wearable devices. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or may be a cloud server.

[0058] In an exemplary embodiment, Figure 2 and Figure 3 As shown, a weighted Poisson disk resampling method for a large-scale point cloud is provided. The method is executed by a computer device, and specifically can be executed by a computer device such as a terminal or a server alone, or can be executed by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used for explanation, and the steps include the following steps 201 to 206.

[0059] Step 201 , combining a multi-scale Laplace network and intrinsic shape features, performs key point detection on the point cloud data to be processed to obtain a feature point set and a common point set.

[0060] Step 201 specifically includes the following steps: using an intrinsic neighborhood search algorithm that complies with the manifold constraint to calculate the intrinsic neighborhood of the point cloud to be processed, and determining an intrinsic shape descriptor; the intrinsic shape descriptor is determined based on the cosine of the normal angle of any point in the point cloud to be processed, and the calculation formula is: ,in, Indicate point The intrinsic shape descriptor of yes An intrinsic neighbor point of yes The normal direction, yes The intrinsic shape descriptors of the three scales are sent to the multi-scale Laplacian network (MLS-Net) to detect feature points, and the detected feature points are classified into the feature point set, and the undetected feature points are classified into the common point set. In addition, the specific implementation process of this step has been publicly documented in papers, so it will not be repeated here.

[0061] Step 202, for any point set in the feature point set and the common point set, voxelize the point set to obtain a voxel model, and determine the sampling radius in combination with the voxel model and the preset sampling rate; wherein the preset sampling rate corresponding to the feature point set is a first sampling rate, and the preset sampling rate corresponding to the common point set is a second sampling rate, and the first sampling rate is higher than the second sampling rate.

[0062] In the resampling algorithm, the selection of sampling radius is crucial, which directly determines the number of points remaining after resampling. In the Poisson disk sampling implemented by Meshlab in the past, the selection of the Poisson disk radius is based on the bounding box of the point cloud for calculation. However, in practical applications, different models occupy different proportions of the bounding box. If only the bounding box is used to estimate the Poisson disk radius, the number of point clouds sampled in the end will be different from the number of point clouds set by the target. Therefore, from the logic of the Poisson disk sampling algorithm, the application considers that Poisson disk sampling can be considered as filling the point cloud with a small ball model. The larger the radius of the small ball setting, the fewer the number of small balls required, that is, the fewer the number of points after sampling. Similarly, if the model is filled with voxels and the target simplified point number is set, the corresponding Poisson disk radius can also be approximately inferred. In other words, to improve the estimation accuracy of the Poisson disk radius, the key issue is to provide an effective estimate of the surface area of ​​the first point cloud data. To solve this problem, the application reconstructs a mesh from the point cloud and then calculates its surface area. However, this operation significantly increases the computational overhead. To this end, this application introduces a more efficient solution to obtain surface area estimation based on the accumulated voxel surface. The specific process is as follows.

[0063] First, a point is randomly selected from the input point cloud (when the processing target is a feature point set, the input point cloud is a feature point set; when the processing target is a common point set, the input point cloud is a common point set) to estimate the voxel model and obtain the voxel side length of the voxel model; then the surface area of ​​the point is estimated by accumulating the area of ​​each face from the voxel , the calculation formula is: ; Since most voxels have only one face corresponding to the point cloud area, the surface area of ​​point P The above formula and Calculate the estimated sampling radius using this formula: .

[0064] Where r represents the sampling radius, represents the side length of the voxel in the voxel model, λ represents the preset scale factor, m represents the number of voxels in the voxel model, and n represents the target number of simplified points. In a practical application, It is set to 1.47, which comprehensively estimates the ratio of the surface area to the number of voxels in the voxel model and the difference between the spherical model and the cubic model.

[0065] The radius estimation based on the voxel model better considers the morphology of the point cloud and improves the accuracy of the surface area calculation. The radius estimation derived accordingly can meet the specified number of points. Therefore, more accurate Poisson disk resampling can be achieved through the voxel-based radius estimation.

[0066] Step 203 , the sampling radius is optimized based on the voxel model and the target simplified point number, and then the point set is preliminarily sampled based on the Poisson disk sampling method, and the point set is adjusted based on the nearest point deletion strategy to obtain an optimized sampling point cloud.

[0067] It should be noted that the fastest mainstream method is the Poisson disk sampling method, so it is used as a preliminary sampling method. In an application example, a point is randomly selected from the input point cloud, and a spherical area is generated with the point as the center and the sampling radius estimated in step 202 as the initial radius, and the point is added to the output point cloud. Next, all points in the spherical area centered on the point are deleted to avoid sampling too dense points. This process is repeated until all points are finally selected or deleted. That is, although the voxel-based radius estimation improves the accuracy of resampling, there is still a difference between the output point and the specified number of points. In order to obtain an accurate number of sampling points, step 203 specifically includes the following steps.

[0068] (1) Based on the sampling radius, the point set is sampled to determine the current number of sampling points; the sampling radius is iteratively adjusted according to the current number of sampling points and the target number of simplified points in combination with the voxel model. That is, the difference between the current number of sampling points and the target number of points obtained by each Poisson disk sampling is used to iteratively adjust the Poisson disk radius. The iterative process is specifically implemented using the following formula.

[0069] .

[0070] .

[0071] .

[0072] in, r’ represents the sampling radius after optimization, Indicates the current number of sampling points. Indicates the proportional difference between the current number of sampling points and the target number of simplified points. represents the amplification factor, represents the reduction factor, is the convergence factor, and b represents the limit of the preset difference range. If the Poisson disk sampling obtains more point clouds, the corresponding Poisson disk radius is enlarged, otherwise the Poisson disk radius is reduced.

[0073] In a practical application, in order to facilitate the subsequent precise point control, the number of points of Poisson disk sampling after iteration is controlled to be between 100% and 105% of the target number of points. Therefore, b in the above formula can be taken as 0.05. If the current number of sampling points is less than 100% of the target simplified number of points, the radius of Poisson disk sampling is reduced, and the number of points in the sampling point cloud is increased; if the current number of points is greater than 105% of the target number of points, the radius of Poisson disk sampling is enlarged, and the number of points in the sampling point cloud is reduced. By gradually reducing the degree of change in the radius, the convergence speed of the number of points is accelerated. Among them, Set to 1.8, Set to 3, Set to the number of times the target score is exceeded by 105% divided by 2.

[0074] Based on the current number of sampling points and the target number of simplified points, the above steps are iteratively executed to continuously adjust the Poisson disk radius until a preset condition is met, and then the iteration is stopped to obtain the optimized Poisson disk radius and the ideal number of sampling points; the preset condition is that the difference between the current number of sampling points and the target number of simplified points is within a preset difference range.

[0075] In a specific application, after the number of points sampled by the Poisson disk is initially controlled, the number of points in the resampled point cloud is already between 100% and 105% of the target number of points. The distance from each point to the nearest point is calculated point by point, and the points are sorted from small to large according to the distance between the points. Subsequently, a point in the point set with the nearest distance is randomly deleted in turn until the number of remaining points is equal to the target number of resampled points. Since a point may be the nearest neighbor of multiple points, in order to ensure that two points in the point set are not deleted at the same time, when deleting a point in the point set, the other point is marked as not to be deleted. The initial sampling point cloud data obtained at this time is a point cloud with relatively uniform density and accurately controlled number of points. That is, step 203 also includes the following steps (2): based on the optimized sampling radius, the point set is sampled based on the Poisson disk sampling method, and based on the nearest point deletion strategy, the points in the point set are deleted according to the target simplified number of points and the distance between each point in the point set and the nearest neighbor point, so as to obtain an optimized sampling point set; the number of points in the optimized sampling point set is the same as the target simplified number of points.

[0076] By fine-tuning the sampling radius, this application can further optimize the number of sampling points while maintaining uniform point density, producing more accurate results (the resampling error is controlled below 5%). Since the process does not involve complex distance optimization, each iteration only performs the original Poisson disk sampling, making this method very efficient.

[0077] Step 204 , tangent space mapping is performed on the sampling points in the optimized sampling point cloud, and the point cloud density is optimized in a weighted manner based on the Voronoi diagram for the two-dimensional tangent space point cloud distribution obtained by mapping, so as to obtain uniformly distributed point cloud data.

[0078] In an application example, in step 204, tangent space mapping is performed on the sampling points in the optimized sampling point set, which specifically includes the following steps.

[0079] (1) Any sampling point in the optimized sampling point set is taken as the center point, and the neighborhood of the center point is calculated using the K nearest neighbor classification algorithm. Specifically, K in the K nearest neighbor classification algorithm can be set to 12, thereby balancing the performance and operation efficiency of the algorithm.

[0080] (2) Use principal component analysis to calculate the normal of the center point and determine the corresponding tangent plane.

[0081] (3) For all sampling points in the neighborhood of the center point, they are mapped according to the normal of the center point and mapped to the tangent plane to obtain the local point cloud distribution, such as Figure 4 shown.

[0082] (4) Calculate the corresponding local point cloud distribution in turn according to all sampling points in the optimized sampling point set to determine the two-dimensional tangent space point cloud distribution.

[0083] In an application example, in step 204, the point cloud density of the mapped two-dimensional tangent space point cloud distribution is optimized by weighting based on the Voronoi diagram to obtain uniformly distributed point cloud data, which specifically includes the following steps.

[0084] (1) Divide the two-dimensional tangent space point cloud distribution into multiple Voronoi cells, such as Figure 5 As shown; each of the Voronoi cells contains a mapping point in the two-dimensional tangent space point cloud distribution.

[0085] Specifically, according to the position of each mapping point in the two-dimensional tangent space point cloud distribution, the Voronoi cell is used to divide the space of the two-dimensional tangent space point cloud distribution into different areas, and the area is restricted to a finite domain (such as a square). However, the area obtained after the division is irregular, and the shape and area of ​​each Voronoi cell are quite different, and the corresponding triangulation is not good (too many obtuse triangles, not meeting the empty circle condition, etc.). Based on this, this application uses the CVT (Centroidal Voronoi Tessellation) algorithm for optimization to obtain a Voronoi cell with a more consistent shape and better triangulation results. The optimization process is shown in the coordinate update step below.

[0086] (2) Calculate the average value of the endpoint coordinates of the Voronoi cell corresponding to each of the mapping points, specifically, calculate the optimized new position by the weighted average value of the vertex coordinates of the Voronoi cell, such as Figure 6 The calculation formula is shown below.

[0087] .

[0088] in, .

[0089] p j is the jth mapping point; is the set of adjacent points of the i-th mapping point; α and β are determined according to any three adjacent mapping points in the set of adjacent points of the i-th mapping point, specifically, the two diagonals of the edge formed by the adjacent mapping points in the two triangles where they are located; Represents the tangent plane corresponding to the i-th mapping point; is the average value of the endpoint coordinates of the Voronoi cell corresponding to the ith mapping point. Specifically, it is the new position of the ith mapping point after the weighted center displacement, which is calculated by the average value of the endpoint coordinates of the corresponding Voronoi cell. w ij and w i All are intermediate variables.

[0090] (3) If the Voronoi cell corresponding to the mapping point is not at the edge position, indicating that the mapping point is an internal point on the original point cloud, the position coordinates of the mapping point are updated to the average value of the endpoint coordinates, and the positions of the points in the adjacent point set of the mapping point are not adjusted.

[0091] If the Voronoi cell corresponding to the mapping point is at the edge, the position of the mapping point is limited by the square boundary, indicating that the mapping point belongs to the boundary point on the original point cloud, so its original position is fixed and the Voronoi cell optimization is not performed, that is, the position coordinates of the mapping point are retained. If it is updated, the position of the point may deviate from the reasonable range.

[0092] (4) Determine uniform density point cloud data according to the updated position coordinates of all the mapping points. The uniform density point cloud data obtained at this time is a point cloud model after tangent space optimization, and isotropy is also achieved on the three-dimensional Voronoi cell cavity, and the shape and area of ​​each Voronoi cell cavity are basically the same.

[0093] Step 205: sampling the uniformly distributed point cloud data corresponding to the feature point set based on the first sampling rate to obtain first resampled point cloud data; sampling the uniformly distributed point cloud data corresponding to the common point set based on the second sampling rate to obtain second resampled point cloud data.

[0094] It should be noted that in order to achieve geometric feature preservation, the present application has processed the point cloud data in steps 201 to 205, and has obtained a point cloud with controllable number of points and uniform density; moreover, in step 201, the point cloud is divided into a feature point set and a common point set, and different sampling rates are given to the feature point set and the common point set: the feature point set adopts a higher sampling rate than the common point set, that is, the common point set has fewer collection points, and the calculated sampling radius is larger; the feature point set has more collection points, and the calculated sampling radius is smaller, thereby achieving feature-preserving point cloud resampling, and the feature information of the point cloud can also be clearly seen.

[0095] This application uses a multi-scale Laplacian network to automatically extract sharp feature points based on intrinsic neighborhood descriptors. For downstream tasks of resampling, it is of great value to retain or enhance the sharp features of point clouds, obtain structural information, and perform high-precision semantic analysis. In other words, the point cloud resampling results under geometric feature preservation clearly maintain their sharp edges. According to relevant visualization verification, although limited by noise, the enhanced sharp features still reveal the structural boundaries in the scene, especially for small-scale semantic objects, it better maintains their semantic information.

[0096] Step 206: splicing the first resampled point cloud data and the second resampled point cloud data to obtain final point cloud data.

[0097] In another application example, this application introduces the three data sets used in the verification experiment and the corresponding evaluation indicators, compares and analyzes the point control performance improvement brought by voxelization to estimate the Poisson disk radius, and then visualizes and quantitatively analyzes different resampling methods, while comparing their speed and point control. The feature-preserving point cloud resampling results of different methods are visualized, and finally, experimental tests of downstream mesh reconstruction and semantic segmentation are performed based on the method of this application to verify the effectiveness of the feature-preserving point cloud simplification scheme.

[0098] The data sets used in the experiment in this application come from the BuildingNet model, RGB-D scene, and S3DIS (Stanford3D Indoor Spaces) segmentation data set model. The data set in the RGB-D scene is a scanned indoor model, including point cloud coordinates and its RGB color information. The number of points in the data set ranges from 10,000 to 400,000. In order to verify the effect of this application on large-scale models, models with more than 300,000 points are selected in the experiment for performance testing. The BuildingNet model includes various types of architectural models such as hotels, castles, and museums. The models are all precisely controlled at 100,000 points. Due to their obvious geometric sharp features, this application performs feature-preserving point cloud resampling performance tests based on the steps described above. The S3DIS segmentation data set model is a large-scale indoor model data set commonly used for point cloud segmentation, which includes 13 types of labeled segmentation models, such as walls, windows, chairs, etc. This application uses the S3DIS data set to test the improvement of semantic segmentation performance by the resampling algorithm.

[0099] Furthermore, this application verifies the effectiveness of voxelization for estimating the radius of the Poisson disk by comparing the results of estimating the radius of the Poisson disk based on voxelization and the bounding box provided by MeshLab. In the experiment, two indoor data were selected for display, and the target point counts were set to 1000, 5000, 10000 and 20000 respectively. It can be clearly seen from the results that the use of voxelization to estimate the radius of the Poisson disk can obtain a more accurate number of sampling points. At the same time, this application randomly selected 100 sets of indoor data for statistical analysis, and compared the performance of point control of the radius estimation method based on the bounding box, the radius estimation method based on voxelization, and the radius estimation method based on voxel iteration. From the comparison results, it can be seen that the method using iterative radius has the best point control effect.

[0100] In order to verify the impact of the iterative radius method on time, this application also tested the number of iterations in 234 sets of indoor models. According to the test results, most of the data can be completed in four iterations. Since Poisson disk sampling is essentially achieved by deleting points within the radius, iterative simplification can be performed based on the previous sampling model, which significantly reduces the time required for each iteration. Only the initial sampling takes a long time, while subsequent iterations require much less time.

[0101] In order to achieve efficient point cloud resampling, the method of the present application mentioned in the above experiments and application scenarios first performs preliminary sampling to achieve sampling with controllable number of points; then performs tangent space Voronoi optimization to obtain sampling with uniform density distribution. At the same time, in the above two processes, the geometric features extracted based on the multi-scale Laplace network are not affected during sampling, realizing a point cloud resampling scheme that preserves geometric features. The algorithm corresponding to this process can be expressed as follows.

[0102] Input: original point cloud P.

[0103] Output: Feature-preserving resampled point cloud P'.

[0104] The algorithm process is as follows.

[0105] Voxelize the original point cloud P.

[0106] A higher sampling rate is set for feature points and a lower sampling rate is set for common points, and the initial Poisson disk sampling radius (i.e., sampling radius) is calculated.

[0107] While (1×target points Number of sampling points 1.05×target points).

[0108] {Calculate the Poisson disk radius of the target sampling point number through voxelization iteration:

[0109] Calculate the nearest point distance of the point cloud point by point, sort them from small to large, and delete the nearest neighboring points one by one until the number of sampling points is equal to the target number of points.

[0110] Calculate the normal of the point cloud and map each point and its neighborhood to the tangent space according to the normal direction of the center point.

[0111] The corresponding Voronoi cell is calculated in the tangent space, and the coordinates of the center point are replaced by the coordinates of the corresponding average vertex of the Voronoi cell to achieve an isotropic point cloud.

[0112] The feature point sampling point cloud is concatenated with the common point sampling point cloud to generate a feature-preserving sampling point cloud.

[0113] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store final point cloud data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a weighted Poisson disk resampling method for a large-scale point cloud is implemented.

[0114] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0115] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0116] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0118] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0119] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0121] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A weighted Poisson disk resampling method for large-scale point clouds, It is characterized in that The weighted Poisson disk resampling method for large-scale point clouds includes: Combining multi-scale Laplace network and intrinsic shape features, key point detection is performed on the point cloud data to be processed to obtain feature point sets and common point sets; For any point set in the feature point set and the common point set, voxelize the point set to obtain a voxel model, and determine a sampling radius in combination with the voxel model and a preset sampling rate; wherein the preset sampling rate corresponding to the feature point set is a first sampling rate, the preset sampling rate corresponding to the common point set is a second sampling rate, and the first sampling rate is higher than the second sampling rate; The process of determining the sampling radius includes: randomly selecting a point from the input point cloud to estimate the voxel model and obtaining the voxel side length of the voxel model; when the processing target is a feature point set, the input point cloud is a feature point set; when the processing target is a common point set, the input point cloud is a common point set; then accumulating each surface area from the voxel to estimate the surface area of ​​the point , the calculation formula is: ; The surface area of ​​point P can be as well as Calculate the estimated sampling radius using this formula: ; where r represents the sampling radius, represents the side length of the voxel in the voxel model, λ represents the preset scale factor, m represents the number of voxels in the voxel model, and n represents the target simplification point number; The sampling radius is optimized based on the voxel model and the target simplified point number, and then the point set is preliminarily sampled based on the Poisson disk sampling method, and the point set is adjusted based on the nearest point deletion strategy to obtain an optimized sampling point cloud; Performing tangent space mapping on the sampling points in the optimized sampling point cloud, and optimizing the point cloud density of the mapped two-dimensional tangent space point cloud distribution by using a weighted method based on the Voronoi diagram to obtain evenly distributed point cloud data; Sampling the uniformly distributed point cloud data corresponding to the feature point set based on the first sampling rate to obtain first resampled point cloud data; sampling the uniformly distributed point cloud data corresponding to the common point set based on the second sampling rate to obtain second resampled point cloud data; The first resampled point cloud data and the second resampled point cloud data are spliced ​​to obtain final point cloud data.

2. The weighted Poisson disk resampling method for large-scale point clouds according to claim 1, It is characterized in that The sampling radius is optimized based on the voxel model and the target simplified point number, and then the point set is preliminarily sampled based on the Poisson disk sampling method, and the point set is adjusted based on the nearest point deletion strategy to obtain an optimized sampling point cloud, specifically including: Based on the sampling radius, sampling the point set to determine the current number of sampling points; According to the current number of sampling points and the target number of simplified points, the sampling radius is iteratively adjusted in combination with the voxel model until a preset condition is met, and the iteration is stopped to obtain an optimized sampling radius; the preset condition is that the difference between the current number of sampling points and the target number of simplified points is within a preset difference range; Based on the optimized sampling radius, the point set is sampled based on the Poisson disk sampling method, and based on the nearest point deletion strategy, the points in the point set are deleted according to the target simplified point number and the distance between each point in the point set and the nearest neighbor point to obtain an optimized sampling point set; the number of points in the optimized sampling point set is the same as the target simplified point number.

3. The weighted Poisson disk resampling method for large-scale point clouds according to claim 2, It is characterized in that The process of iteratively adjusting the sampling radius is specifically implemented using the following formula: ; ; ; in, r’ represents the optimized sampling radius, Indicates the current number of sampling points. Indicates the proportional difference between the current number of sampling points and the target number of simplified points. represents the amplification factor, represents the reduction factor, is the convergence factor, and b represents the limit of the preset difference range.

4. The weighted Poisson disk resampling method for large-scale point clouds according to claim 1, It is characterized in that Performing tangent space mapping on the sampling points in the optimized sampling point set specifically includes: Taking any sampling point in the optimized sampling point set as a center point, and using a K-nearest neighbor classification algorithm to calculate a neighborhood of the center point; Calculate the normal direction of the center point using principal component analysis and determine the corresponding tangent plane; For all sampling points in the neighborhood of the center point, mapping is performed according to the normal of the center point and mapped to the tangent plane to obtain a local point cloud distribution; The corresponding local point cloud distribution is calculated in sequence according to all sampling points in the optimized sampling point set to determine the two-dimensional tangent space point cloud distribution.

5. The weighted Poisson disk resampling method for large-scale point clouds according to claim 1, It is characterized in that The point cloud density of the mapped two-dimensional tangent space point cloud is optimized in a weighted manner based on the Voronoi diagram to obtain uniformly distributed point cloud data, including: Dividing the two-dimensional tangent space point cloud distribution into a plurality of Voronoi cells; each of the Voronoi cells contains a mapping point in the two-dimensional tangent space point cloud distribution; Calculate the average value of the endpoint coordinates of the Voronoi cell corresponding to each of the mapping points; If the Voronoi cell corresponding to the mapping point is not at an edge position, the position coordinates of the mapping point are updated to the average value of the endpoint coordinates; if the Voronoi cell corresponding to the mapping point is at an edge position, the position coordinates of the mapping point are retained; Uniform density point cloud data is determined according to the updated position coordinates of all the mapping points.

6. The weighted Poisson disk resampling method for large-scale point clouds according to claim 5, It is characterized in that The calculation formula for the average value of the endpoint coordinates of the Voronoi cell corresponding to each of the mapping points is: ; ; in, p j is the jth mapping point; N i is the adjacent point set of the i-th mapping point, α and β are determined according to any three adjacent mapping points in the adjacent point set of the i-th mapping point; is the average value of the endpoint coordinates of the Voronoi cell corresponding to the i-th mapping point, w ij and w i is the cotangent weight.

7. The weighted Poisson disk resampling method for large-scale point clouds according to claim 1, It is characterized in that Combining the multi-scale Laplace network and intrinsic shape features, key point detection is performed on the point cloud data to be processed to obtain feature point sets and common point sets, including: An intrinsic neighborhood search algorithm that complies with the manifold constraint is used to calculate the intrinsic neighborhood of the point cloud to be processed, and an intrinsic shape descriptor is determined; the intrinsic shape descriptor is determined based on the cosine of the normal angle of any point in the point cloud to be processed; The intrinsic shape descriptors at three scales are sent to a multi-scale Laplace network to detect feature points, the detected feature points are classified into a feature point set, and the undetected feature points are classified into a common point set.

8. A computer device, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the weighted Poisson disk resampling method for a large-scale point cloud according to any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the weighted Poisson disk resampling method for a large-scale point cloud described in any one of claims 1 to 7 is implemented.