A point cloud rigid registration method for laser manufacturing and related device
By extracting rotation-invariant features of point clouds through dynamic graph convolutional neural networks and the multi-head attention mechanism of Transformer, and combining them with weighted singular value decomposition, the problems of low accuracy in rotation-invariant feature extraction and matching matrix of rigid point cloud registration in the prior art are solved, and high-precision point cloud registration is achieved, which supports workpiece shape acquisition and quality inspection in laser manufacturing.
Patent Information
- Application Number
- CN202410184980.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-02-19
AI Technical Summary
Existing rigid registration methods for point clouds based on virtual corresponding points are ineffective in extracting rotation-invariant features and have low accuracy in calculating the matching matrix, which affects the precision and efficiency of point cloud registration.
We employ a dynamic graph convolutional neural network and hand-designed feature descriptors to extract rotation-invariant features from point clouds. We then use the multi-head attention mechanism of Transformer for feature fusion and similarity calculation, and combine weighted singular value decomposition for rigid registration of point clouds.
It improves the accuracy and efficiency of point cloud registration, enhances the robustness and generalization ability of the model, and can better capture the structural and shape features of point cloud data, supporting workpiece morphology acquisition and quality inspection in laser manufacturing.
Smart Images

Figure CN118015054B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of point cloud rigid registration technology, and relates to a point cloud rigid registration method and related apparatus for laser manufacturing. Background Technology
[0002] Rigid point cloud registration aims to find a rigid transformation between two given point clouds with unknown points, aligning them in the same coordinate system. Accurate point cloud registration is crucial for high-quality laser manufacturing. During laser processing, point cloud data of the workpiece is acquired through sensors. Rigid point cloud registration helps obtain a surface topography model of the component's processing area by precisely aligning point cloud data from different scanning perspectives. Rigid point cloud registration can compensate for workpiece pose variations caused by various factors, ensuring consistency between the spatial information of the workpiece and the processing model. After processing, rigid point cloud registration can be used to verify whether the workpiece meets the processing design specifications, enabling automated quality inspection and defect detection, thereby improving product quality and production efficiency.
[0003] In recent years, end-to-end deep learning network models have achieved good performance in point cloud registration tasks. Compared with non-learning methods, learning-based methods can overcome many shortcomings of traditional algorithms, and their registration efficiency is much higher. Among the many deep learning-based methods, the virtual correspondence method has gained widespread attention due to its robustness and high computational efficiency. This method does not need to find an exact correspondence for every point in the source point cloud, but instead learns a virtual correspondence. However, this method is often limited by the quality of the extracted features and the calculation of similarity between the points. To extract point cloud feature information, the point cloud data is treated as a graph structure, where the points in the point cloud represent nodes in the graph, and the relationships between points are represented as edges in the graph. Effective relationships are established between nodes through graph convolution. Meanwhile, the Transformer framework has also been applied to point cloud feature extraction with good results.
[0004] However, these methods do not effectively extract rotation-invariant features suitable for point cloud registration tasks. Furthermore, after obtaining the features of two pairs of point clouds, a matching matrix is obtained by calculating the similarity between the point cloud features, and then a virtual correspondence between the point clouds is obtained by weighting the matching matrix. Previously, calculating the matching matrix often involved directly calculating the similarity between features or generating it according to a formula, resulting in low accuracy. Summary of the Invention
[0005] This application addresses the technical problems of current point cloud rigid registration methods based on virtual corresponding points, which suffer from poor extraction of rotation-invariant features and low accuracy in calculating the matching matrix. It provides a point cloud rigid registration method and related apparatus for laser manufacturing.
[0006] To achieve the above objectives, this application adopts the following technical solution: In a first aspect, this application proposes a point cloud rigid registration method for laser manufacturing, comprising the following steps: Extract the features of each point in the source point cloud and the reference point cloud to obtain the source point cloud features and the reference point cloud features; The source point cloud features and the reference point cloud features are fused to obtain fused features; Calculate the feature similarity between points in the source point cloud and the reference point cloud in the fusion feature to obtain the matching matrix; The virtual corresponding point of the source point cloud is obtained by multiplying the reference point cloud and the matching matrix. Weighted singular value decomposition is performed on the source point cloud and the virtual corresponding points to obtain a rigid transformation, thus completing the rigid registration of the point cloud.
[0007] Further, the step of extracting features from each point in the source point cloud and the reference point cloud to obtain source point cloud features and reference point cloud features includes: Point cloud In European-style spaces, according to The nearest neighbor algorithm finds the nearest neighbor for each point. A graph is constructed from the nearest points; for each graph, its features are obtained through rotation-invariant feature embedding. :
[0008] in, It is the center point of each graph. These are the points in each neighborhood; Representing local neighborhood information:
[0009] Calculate the geometric relationship between the center point of each graph and each neighboring point. :
[0010] in, yes normal line, yes The normal line; Features of each graph The data is fed into a perceptron, where the features of each image are aggregated. The features of 1 point are compressed into the features of one point. This yields the high-dimensional features of each point in the point cloud:
[0011] in, , , All of these are learnable parameters; Then in the feature space through The nearest neighbor algorithm finds the most similar features. The graph is reconstructed at each point, and then features are calculated for each graph through local neighborhood and global feature embedding. :
[0012] in, The center point after recomposition. Indicates the point after reconstructing the graph. With the center point The difference between them; the features of each map are fed into the perceptron, and then... The features of 10 points are compressed into the features of 1 point, resulting in the feature. :
[0013] in, and These are all learnable parameters, repeated. The calculation process yielded , ; Finally, the aggregated features are concatenated along the feature dimension to obtain the final features of the point cloud. .
[0014] Furthermore, the feature of each graph The specific method for feeding the data into the sensor is as follows: Perform the calculation on the features of each graph Convolution, batch normalization, and ReLU activation.
[0015] Further, the feature fusion of the source point cloud features and the reference point cloud features to obtain fused features includes: First, the similarity between each point and other points is calculated using a multi-head attention mechanism. Then, the similarities between these points are weighted and summed to obtain a new point cloud feature sequence. Then make The point cloud feature sequence undergoes a nonlinear transformation via a multilayer perceptron, followed by computation using a multi-head attention mechanism. The similarity between each point in the point cloud feature sequence is calculated by weighting and summing these similarities to obtain a new... Feature sequences of point clouds; Then through a multilayer perceptron, and the original The final feature is obtained by adding the point cloud feature sequences. ; Exchange point cloud Features And point cloud Features The position is recalculated to obtain... Final fusion features of point clouds .
[0016] Further, the calculation of the feature similarity between points in the source point cloud and the reference point cloud in the fusion feature is used to obtain a matching matrix, including: Point cloud Feature matrix And point cloud Feature matrix Through linear mapping, mapped to Subspaces, where the feature matrix and characteristic matrix The linear mappings all share weights; similarity is calculated in each subspace by scaling the dot product; after averaging the similarity matrix of each subspace, the results are processed row by row. Finally, the matching matrix is output. :
[0017] in, Represented as:
[0018] in, and It is and The parameter matrix projected onto the subspace. , , yes and Feature dimensions, , The number of subspaces; the matching matrix. , Each row of elements can be considered as Each point in the point cloud and The degree of similarity, This indicates the number of points in the point cloud.
[0019] Furthermore, the virtual corresponding point is:
[0020] in, Indicates a virtual corresponding point. express Transpose of a point cloud matrix Indicates transpose. This represents the matching matrix.
[0021] Further, the step of performing weighted singular value decomposition on the source point cloud and the virtual corresponding points to obtain a rigid transformation includes: Connect the X point cloud and its corresponding virtual points. The rigid transformation between the two point clouds was calculated using singular value decomposition. and The singular value decomposition is as follows:
[0022] in, , It is a special orthogonal group, matrix It is a diagonal matrix. for The centroid of a point cloud for The centroid of a point cloud.
[0023] Secondly, this application proposes a point cloud rigid registration system for laser manufacturing, comprising: The feature extraction module is used to extract the features of each point in the source point cloud and the reference point cloud to obtain the source point cloud features and the reference point cloud features. A feature fusion module is used to fuse the source point cloud features and the reference point cloud features to obtain fused features. A multi-head similarity calculation module is used to calculate the feature similarity between points in the source point cloud and the reference point cloud in the fused features, and obtain a matching matrix; A virtual corresponding point generation module obtains the virtual corresponding points of the source point cloud by multiplying the reference point cloud and the matching matrix. The weighted singular value decomposition module is used to perform weighted singular value decomposition on the source point cloud and the virtual corresponding points to obtain a rigid transformation and complete the rigid registration of the point cloud.
[0024] Thirdly, this application proposes an electronic device, comprising: Memory, used to store computer programs; A processor is used to implement the steps of the above-described distribution network operation optimization method based on prediction information correction when executing the computer program.
[0025] Fourthly, this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described distribution network operation optimization method based on prediction information correction.
[0026] Compared with the prior art, this application has the following beneficial effects: This application integrates dynamic graph convolutional neural networks and hand-designed feature descriptors to extract rotation-invariant features from point clouds. Neural networks can learn higher-dimensional feature representations with stronger expressive power, while hand-designed feature descriptors can be tailored to feature representations suitable for point cloud registration. Combining the two improves feature representation capabilities and better captures the structural and shape features of point cloud data. Secondly, a Transformer is used to fuse the features of two point clouds to be registered. Finally, inspired by the Transformer's multi-head attention mechanism, a multi-head similarity calculation mechanism is designed. Multiple attention heads are introduced to map the features of the two point clouds into different subspaces, where the mappings of the two point clouds share weights, and each attention head has its own weight matrix for feature mapping. In each subspace, the similarity between the features of the two point clouds is calculated to measure their correlation. The average of the similarity matrices calculated from multiple attention heads is taken to obtain the final similarity matrix. This approach aims to comprehensively consider the similarity calculation results in different subspaces to enhance the robustness and generalization ability of the registration model. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a flowchart of the method described in this application.
[0029] Figure 2 This is a schematic diagram of the system in this application.
[0030] Figure 3 This is the overall framework diagram of this application.
[0031] Figure 4 This is a schematic diagram of the feature extraction module of this application.
[0032] Figure 5 This is a schematic diagram of the feature fusion module of this application.
[0033] Figure 6This is a schematic diagram of the multi-head similarity calculation module of this application.
[0034] Figure 7 The figure shows the experimental results of this application. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0036] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0037] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0038] In the description of the embodiments of this application, it should be noted that if terms such as "upper," "lower," "horizontal," or "inner" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship commonly used when the product of the invention is in use, they are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on this application. In addition, terms such as "first" and "second" are only used to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0039] Furthermore, the use of the term "horizontal" does not imply that the component must be absolutely horizontal, but rather that it can be slightly tilted. For example, "horizontal" simply means that its direction is more horizontal than "vertical," and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0040] In the description of the embodiments of this application, it should also be noted that, unless otherwise explicitly specified and limited, the terms "set," "install," "connect," and "link" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0041] The present application will now be described in further detail with reference to the accompanying drawings: See Figure 1 This application discloses a point cloud rigid registration method for laser manufacturing, comprising the following steps: S1 extracts the features of each point in the source point cloud and the reference point cloud to obtain the source point cloud features and the reference point cloud features; S2 performs feature fusion on the source point cloud features and the reference point cloud features to obtain fused features; S3 calculates the feature similarity between points in the source point cloud and the reference point cloud in the fused features, and obtains the matching matrix; S4 obtains the virtual corresponding points of the source point cloud by multiplying the reference point cloud and the matching matrix; S5 performs weighted singular value decomposition on the source point cloud and the virtual corresponding points to obtain a rigid transformation, thus completing the rigid registration of the point cloud.
[0042] like Figure 2 As shown in the figure, this application discloses a point cloud rigid registration system for laser manufacturing, comprising: The feature extraction module is used to extract the features of each point in the source point cloud and the reference point cloud to obtain the source point cloud features and the reference point cloud features. The feature fusion module is used to fuse the source point cloud features and the reference point cloud features to obtain fused features. The multi-head similarity calculation module is used to calculate the feature similarity between points in the source point cloud and the reference point cloud in the fused features, and obtain the matching matrix. The virtual corresponding point generation module obtains the virtual corresponding points of the source point cloud by multiplying the reference point cloud and the matching matrix. The weighted singular value decomposition module is used to perform weighted singular value decomposition on the source point cloud and the virtual corresponding points to obtain a rigid transformation and complete the rigid registration of the point cloud.
[0043] The principle of this application: Given two point clouds and Let be the source point cloud and the reference point cloud, respectively. For simplicity, only the simplest case is considered. J = K This can be easily extended to J ≠ K In this case, assume that the normals of these points can be easily calculated. In the point cloud rigid registration problem, assume that Y is transformed from X through an unknown rigid motion. The goal of registration is to estimate a rigid transformation T = To align the two point clouds, among which It is a rotation matrix. It is a translation vector. Assume... x j and y j Given a pair of corresponding points, the objective function for the rigid registration problem of point clouds can be expressed as follows:
[0044] To minimize this error E Thus obtain R and t The centroids of the X and Y point clouds can be defined first using the following method:
[0045] Calculate the cross-covariance matrix :
[0046] Then use Singular Value Decomposition (SVD). H=USV T Minimize formula (1) to obtain R and t It can be calculated using the following formula:
[0047] in ,matrix S It is a diagonal matrix. Assuming the correspondence between the X and Y point clouds is unknown, the objective function needs to be modified as follows:
[0048] in Point x j The corresponding point in point cloud Y. m This represents a mapping from each point in point cloud X to its corresponding point in point Y, and can generally be represented as:
[0049] The idea behind this method is to use deep learning to learn a virtual corresponding point for each point in the point cloud X. This avoids the use of formula (6).
[0050] Example The overall framework of this application is as follows: Figure 3 As shown in the figure, this application discloses a point cloud rigid registration method for laser manufacturing, including the following steps: Step 1: Feed the two point cloud images into the feature extraction module to calculate the features of each point in the point cloud, as follows: Point cloud feature extraction module, such as Figure 4 The diagram shows the calculated features for each point in the point cloud. First, the point cloud X is calculated in Euclidean space according to... K The K-Nearest Neighbors algorithm finds the nearest neighbor for each point. K The graph is composed of the nearest points. Assume the dimension of the point cloud data is ( ). N , M 1) Among them N Indicates the number of point clouds, M 1 represents the coordinates and normal information of each point. After constructing the point cloud using Euclidean space, the dimension becomes ( N , K , M 1) can be understood as N Each image K Each point M 1D features. For each graph, its features are obtained through rotation-invariant feature embedding. , can be represented as:
[0051] in, It is the center point of each graph and can provide global information; Represents all points in the graph Subtract the center point It can provide local neighborhood information:
[0052] The geometric relationship between the center point and each neighboring point can be described in a rotation-invariant manner:
[0053] Where, n c and n i yes and points The normal vectors. After calculating the features for each graph, they are fed into a perceptron. Specifically, these features are subjected to 1x1 convolution, batch normalization, and ReLU activation. Finally, the features of each graph are aggregated. KThe features of 10 points are compressed into the features of a single point. This can be expressed by the formula:
[0054] in These are all learnable parameters. After these steps, we can obtain the high-dimensional features of each point in the point cloud, meaning the point cloud now has a dimension of ( N , M 2), M 2 represents the dimension of each point feature in the point cloud. Then, in the feature space... K The nearest neighbor algorithm finds the most similar features. K The graph is reconstructed at each point, and then features are calculated for each graph through local neighborhood and global feature embedding. :
[0055] The center point after recomposition. Formula (8) represents all points in the graph. Subtract the center point Here, PPF features are no longer used; only points with similar features are used (after feature space mapping, each point will have...). K Information on points with high feature similarity to it, and The information itself serves as the feature of the newly constructed graph. The features of each graph are fed into the perceptron, and then similarly... K The features of each point are compressed into the features of a single point, thus obtaining the feature. :
[0056] in α , β These are all learnable parameters, repeated. The calculation process yielded , Finally, the aggregated features are concatenated along the feature dimension to obtain the final features of the point cloud. .
[0057]
[0058] Step 2: Use Transformer to fuse the features of the two point clouds, as follows: like Figure 5 The diagram shows the structure of the Transformer in this model. Features of point cloud X. F x Features of point cloud Y F yFirst, a multi-head attention mechanism is used to calculate the similarity between each point and other points. These similarities are then weighted and summed to obtain a new point cloud feature sequence. In this way, each point contains both its own information and global information. Next, the X point cloud feature sequence undergoes a nonlinear transformation using a multilayer perceptron. Then, a multi-head attention mechanism is used to calculate the similarity between this sequence and each point in the Y point cloud feature sequence. These similarities are then weighted and summed to obtain a new X point cloud feature sequence, which now contains information from the Y point cloud features. Finally, this new X point cloud feature sequence is added to the original X point cloud feature sequence using a multilayer perceptron to obtain the final feature sequence. N x .exchange F x and F y By recalculating the position, the final fused features of the Y point cloud can be obtained. N y 。
[0059] The Transformer model possesses a large receptive field during feature fusion, enabling it to capture broader contextual information within point clouds. This makes the feature fusion process more global, taking into account relationships between distant point pairs within the point cloud. By fusing broader contextual information, a better understanding of the structure and semantics within the point cloud can be achieved, enhancing the expressive power of point cloud features. Secondly, leveraging the characteristics of the Transformer's encoder and decoder, joint properties between two point clouds can be obtained. This allows the extracted point cloud features to contain structural information from another point cloud, enriching the representation of point cloud features.
[0060] Step 3: Calculate the feature similarity between points in the two point clouds to obtain the matching matrix, as follows: Multi-head similarity calculation module, such as Figure 6 As shown, the feature matrices of point clouds X and Y are... N x , N y Through linear mapping, mapped to h Subspaces, where... N x , N y The linear mappings all share weights; similarity is calculated in each subspace by scaling the dot product; after averaging the similarity matrix of each subspace, each row is processed through Softmax, and finally the matching matrix M is output, as shown in the following formula:
[0061] Here head i It can be represented as:
[0062] in , It is to N x , N y The parameter matrix projected onto the subspace is a learnable parameter. yes N x , N y Feature dimensions, d k = d model / h Matching matrix Each row of elements in M can be considered as the sum of the elements of each point in the Y point cloud. x i The degree of similarity.
[0063] This method employs multiple attention heads to map the features of two point clouds into different subspaces, each with its own weight matrix for feature mapping. Within each subspace, the correlation between the two point cloud features is measured by calculating their similarity. The final similarity matrix is obtained by averaging the similarity matrices calculated from multiple attention heads. This approach considers the similarity calculation results across different subspaces to enhance the robustness and generalization ability of the registration model.
[0064] Step 4: By multiplying the Y point cloud and the matching matrix, the virtual corresponding points can be obtained. Finally, the X point cloud and its corresponding virtual corresponding points can be obtained by weighted singular value decomposition to obtain the final rigid transformation T, as follows: Once the matching matrix is obtained, the virtual corresponding points of the X point cloud are... It can be obtained using the following formula:
[0065] Next, we will compare the X point cloud with its corresponding virtual points. By feeding the data into the weighted singular value decomposition module and following formula (4), the rigid transformation between the two point clouds can be obtained. R and t .
[0066] Evaluation Experiment 1) Experimental setup To evaluate the effectiveness of the model designed in this paper, experiments were conducted on the ModelNet40 dataset, which consists of 12311 CAD models across 40 categories. 1024 points were uniformly sampled from the outer surface of each model. During training, the point cloud X was sampled, and a rigid transformation was randomly drawn along each axis. Rotation along each axis was defined in [0, ... Uniform sampling is performed within [-0.5, 0.5], and translation sampling is performed within [-0.5, 0.5]. Point cloud X and point cloud Y after applying a rigid transformation to X are used as inputs to the network to simulate the workpiece point cloud and model point cloud in the laser manufacturing process. The goal is to transform the two point clouds into the same coordinate system through a registration algorithm.
[0067] In the first experiment, the point clouds in the ModelNet40 dataset were randomly divided into training and test sets, without distinguishing between categories. 9840 CAD models were used for training, and 2468 CAD models were used for testing. Different point clouds were used during training and testing. In the second experiment, training was performed on the first 20 categories with a training set size of 5112, and then testing was conducted on the remaining 20 categories with a test set size of 1226.
[0068] The feature extraction module uses 5 perceptrons. n =4, where the number of filters in each layer is [64, 64, 128, 256, 512]. In the Transformer layer, the number of multi-head attention is 4, and the dimension after forward propagation is 1024. Adam is used to optimize the network parameters, with an initial learning rate of 0.001. The learning rate is divided by 10 at epochs 75, 150, and 200, for a total of 250 epochs of training. The batch size is set to 8, meaning that 8 samples are taken from the training set and fed into the model for training each time.
[0069] The mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE) between the true and predicted values are measured. Ideally, all these error metrics should be zero if the rigid alignment is perfect.
[0070] The results of the two experiments are shown in Table 1 and Figure 7 As shown: Table 1 Results of the two experiments
[0071] See Figure 7 The dataset is partially visualized as follows: the red point cloud is the original point cloud, the green point cloud is the point cloud after an unknown rigid transformation, and the blue point cloud is the point cloud after the predicted rigid transformation is applied to the green point cloud.
[0072] The designed model achieved mean squared errors of only 0.266298 and 0.970790 between the predicted rotation matrices and the true values in the two experiments on the ModelNet40 dataset, and mean squared errors of only 0.000001 and 0.000000 for the translation vectors. Due to the large number of categories in the ModelNet40 dataset, only a portion of the category registration visualizations are shown here. As can be seen from the figure, the rigid transformation predicted by this design can transform the green point cloud into the blue point cloud, achieving accurate registration.
[0073] This application also has the following advantages A rigid point cloud registration method based on feature extraction and multi-head similarity mechanism is designed. Specifically, the designed feature extraction module integrates dynamic graph convolutional neural networks and handcrafted feature descriptors, which can effectively extract rotation-invariant features suitable for point cloud registration tasks. Furthermore, the extracted features are further fused using a Transformer, enabling information transfer between the two point clouds. Finally, inspired by the multi-head attention mechanism in the Transformer, a novel algorithm for calculating feature similarity—the multi-head similarity calculation mechanism—is proposed. This mechanism comprehensively considers the similarity calculation results in different subspaces, allowing the model to learn and capture various relationships between point cloud features from different subspaces. This enhances the model's robustness and generalization ability, achieving high-precision registration and enabling the acquisition of workpiece morphology in laser manufacturing. This provides strong support for dynamic planning of processing trajectories and workpiece quality inspection.
[0074] It should be noted that, in the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another device, or some features may be ignored or not executed. The modules described as separate components may or may not be physically separated. The components shown as modules may be one or more physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the modules can be selected to achieve the purpose of the solution in this embodiment according to actual needs.
[0075] Furthermore, in the various embodiments of the present invention, the modules can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The integrated unit described above can be implemented in hardware or as a software functional unit.
[0076] An electronic device provided in this application includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the steps of the distribution network operation optimization method based on prediction information correction as described in any of the above embodiments.
[0077] Another electronic device provided in this application embodiment may further include: an input port connected to a processor for transmitting multimodal data collected by an external acquisition device to the processor; a display unit connected to the processor for displaying the processor's processing results to the outside world; and a communication module connected to the processor for enabling communication between the electronic device and the outside world. The display unit may be a display panel, a laser scanner, or the like; the communication method used by the communication module includes, but is not limited to, Mobile High Definition Link (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), wireless connectivity: Wi-Fi, Bluetooth communication, Bluetooth Low Energy communication, and IEEE 802.11s-based communication technology.
[0078] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of the distribution network operation optimization method based on prediction information correction as described in any of the above embodiments.
[0079] The computer-readable storage media involved in this application include random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage media known in the art.
[0080] For descriptions of relevant parts of the distribution network operation optimization system, electronic equipment, and computer-readable storage medium based on prediction information provided in this application's embodiments, please refer to the detailed descriptions of the corresponding parts in the distribution network optimization scheduling method provided in this application's embodiments; they will not be repeated here. Furthermore, parts of the technical solutions provided in this application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive elaboration.
[0081] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for rigid registration of point clouds for laser manufacturing, characterized in that, Includes the following steps: Extract the features of each point in the source point cloud and the reference point cloud to obtain the source point cloud features and the reference point cloud features; The source point cloud features and the reference point cloud features are fused to obtain fused features; Calculate the feature similarity between points in the source point cloud and the reference point cloud in the fusion feature to obtain the matching matrix; specifically as follows: Point cloud Feature matrix And point cloud Feature matrix Through linear mapping, mapped to Subspaces, where the feature matrix and characteristic matrix The linear mappings all share weights; similarity is calculated in each subspace by scaling the dot product; after averaging the similarity matrix of each subspace, the results are processed row by row. Finally, the matching matrix is output. : in, Represented as: in, and It is and The parameter matrix projected onto the subspace. , , yes and Feature dimensions, , The number of subspaces; the matching matrix. , Each row of elements can be considered as Each point in the point cloud and The degree of similarity, This indicates the number of points in the point cloud; The virtual corresponding point of the source point cloud is obtained by multiplying the reference point cloud and the matching matrix. Weighted singular value decomposition is performed on the source point cloud and the virtual corresponding points to obtain a rigid transformation, thus completing the rigid registration of the point cloud.
2. The point cloud rigid registration method for laser manufacturing according to claim 1, characterized in that, The step of extracting features from each point in the source point cloud and the reference point cloud to obtain source point cloud features and reference point cloud features includes: Point cloud In European-style spaces, according to The nearest neighbor algorithm finds the nearest neighbor for each point. A graph is constructed from the nearest points; for each graph, its features are obtained through rotation-invariant feature embedding. : in, It is the center point of each graph. These are the points in each neighborhood; Representing local neighborhood information: Calculate the geometric relationship between the center point of each graph and each neighboring point. : in, yes normal line, yes The normal line; Features of each graph The data is fed into a perceptron, where the features of each image are aggregated. The features of 1 point are compressed into the features of one point. This yields the high-dimensional features of each point in the point cloud: in, , , All of these are learnable parameters; Then in the feature space through The nearest neighbor algorithm finds the most similar features. The graph is reconstructed at each point, and then features are calculated for each graph through local neighborhood and global feature embedding. : in, The center point after recomposition. Indicates the point after reconstructing the graph. With the center point The difference between them; the features of each map are fed into the perceptron, and then... The features of 10 points are compressed into the features of one point, resulting in the feature. : in, and These are all learnable parameters, repeated. The calculation process yielded , ; Finally, the aggregated features are concatenated along the feature dimension to obtain the final features of the point cloud. .
3. The point cloud rigid registration method for laser manufacturing according to claim 2, characterized in that, The features of each graph The specific method for feeding the data into the sensor is as follows: Perform the calculation on the features of each graph Convolution, batch normalization, and ReLU activation.
4. The point cloud rigid registration method for laser manufacturing according to claim 1, characterized in that, The feature fusion of the source point cloud features and the reference point cloud features to obtain fused features includes: First, the similarity between each point and other points is calculated using a multi-head attention mechanism. Then, the similarities between these points are weighted and summed to obtain a new point cloud feature sequence. Then make The point cloud feature sequence undergoes a nonlinear transformation via a multilayer perceptron, followed by computation using a multi-head attention mechanism. The similarity between each point in the point cloud feature sequence is calculated by weighting and summing these similarities to obtain a new... Feature sequences of point clouds; Then through a multilayer perceptron, and the original The final feature is obtained by adding the point cloud feature sequences. ; Exchange point cloud Features And point cloud Features The position is recalculated to obtain... Final fusion features of point clouds .
5. The point cloud rigid registration method for laser manufacturing according to claim 1, characterized in that, The virtual corresponding point is: in, Indicates a virtual corresponding point. express Transpose of a point cloud matrix Indicates transpose. This represents the matching matrix.
6. The point cloud rigid registration method for laser manufacturing according to claim 1, characterized in that, The step of performing weighted singular value decomposition on the source point cloud and the virtual corresponding points to obtain a rigid transformation includes: Connect the X point cloud and its corresponding virtual points. The rigid transformation between the two point clouds was calculated using singular value decomposition. and The singular value decomposition is as follows: in, , It is a special orthogonal group, matrix It is a diagonal matrix. for The centroid of a point cloud for The centroid of a point cloud; It is a rotation matrix. It is a translation vector.
7. A rigid registration system for point clouds used in laser manufacturing to implement the method of claim 1, characterized in that, include: The feature extraction module is used to extract the features of each point in the source point cloud and the reference point cloud to obtain the source point cloud features and the reference point cloud features. A feature fusion module is used to fuse the source point cloud features and the reference point cloud features to obtain fused features. A multi-head similarity calculation module is used to calculate the feature similarity between points in the source point cloud and the reference point cloud in the fused features, and obtain a matching matrix; A virtual corresponding point generation module obtains the virtual corresponding points of the source point cloud by multiplying the reference point cloud and the matching matrix. The weighted singular value decomposition module is used to perform weighted singular value decomposition on the source point cloud and the virtual corresponding points to obtain a rigid transformation and complete the rigid registration of the point cloud.
8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the point cloud rigid registration method for laser manufacturing as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the point cloud rigid registration method for laser manufacturing as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Point cloud data registering method
CN107861920A
An excavator bucket material volume and weight measuring system
CN109948189A
