A multi-level and multi-view registration method for bridge point cloud data based on registration template
Through the multi-level and multi-view registration method based on the registration template, the problem of needing to specify the scanning order and relying on artificial targets in the registration of bridge point cloud data is solved, and high-precision registration of disordered point cloud data of large bridges is achieved. Efficient processing.
Patent Information
- Application Number
- CN202410092503.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-23
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-01-23
AI Technical Summary
Existing bridge point cloud data registration methods need to specify the scanning order and rely on manual targets, resulting in low efficiency and high cost, and it is difficult to process disordered point cloud data of large bridges.
A multi-level multi-view registration method based on the registration template is adopted, using the design side view of the bridge as the registration template, dividing the point cloud data into blocks through a graph segmentation algorithm, processing each scan block one by one, and using graph matching and clustering Technology aligns all scanned point cloud data.
It achieves high-precision registration of disordered bridge point cloud data, avoids dependence on artificial targets, improves processing efficiency and applicability, and is suitable for different types of large bridges.
Smart Images

Figure CN118037540B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of information technology and bridge safety management, and in particular to a multi-level and multi-view registration method for bridge point cloud data based on a registration template. Background Art
[0002] China is one of the countries with the largest number of bridges in the world. According to data from the Ministry of Transport of China, by the end of 2022, the number of bridges in China has exceeded 1 million, including large-scale bridges across the sea, across rivers, and across lakes, as well as bridges of various sizes across rivers, lakes, valleys, etc. With the increase in the operation and use time of bridges, problems such as the structural health status and bearing capacity of bridges have become increasingly prominent. Bridges should be operated and maintained regularly to ensure traffic safety, extend the life of bridges, and save maintenance costs. At present, bridge safety inspections are mainly carried out by professionals using visual inspections or manual measurements, but this method has low inspection efficiency and is difficult to fully evaluate the condition of bridges. Unlike traditional manual inspection methods, the development of 3D laser scanning technology provides a new intelligent means for bridge inspection and operation and maintenance management. However, the field of view of 3D laser scanners is limited, and it is necessary to scan several or even dozens of times at different sites to obtain complete point cloud data of the entire bridge. The point cloud data scanned at different sites are usually in different coordinate systems. Therefore, it is necessary to align the point cloud data obtained at different sites to obtain a complete 3D digital model of the bridge.
[0003] In engineering practice, target balls, target papers or other artificial targets are often used to assist in registration and improve registration accuracy. Although the scanning registration results of this method are very reliable, placing artificial targets is time-consuming and costly, and is only applicable to very complex or single scenes. Secondly, as an important urban transportation facility, the impact on urban traffic should be minimized when designing the scanning path. This results in the point cloud data obtained by the scan being unable to be registered in the order of scanning, and the registration order needs to be manually specified. However, large bridges usually generate dozens of scanned point cloud data, which is a cumbersome and time-consuming process. Therefore, there is an urgent need to propose a bridge point cloud data registration algorithm for unordered point cloud data that does not rely on artificial targets. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-level multi-view registration method for bridge point cloud data based on a registration template, comprising the following steps:
[0005] 1) Use a scanner to obtain point cloud data at different locations of the bridge.
[0006] 2) Preprocess the scanned bridge point cloud data, remove background points, and obtain multiple bridge point cloud data.
[0007] 3) Select the registration template and calculate the grid size corresponding to each pixel.
[0008] 4) Based on the grid size, each bridge point cloud data is mapped into a binary image.
[0009] 5) Matching the mapped binary image with the registration template to obtain the matching result between the binary image and the registration template and the scanner position.
[0010] 6) Determine whether the matching result between the binary image and the registration template is incorrect. If so, correct the position of the bridge point cloud data corresponding to the binary image.
[0011] 7) Based on the overlap between the point cloud data of each bridge and the location of the scanner, all the corrected bridge point clouds are clustered to obtain a number of scan blocks. Each scan block includes at least one bridge point cloud.
[0012] If each scanning block includes a bridge point cloud, proceed to step 9); if any scanning block includes multiple bridge point clouds, proceed to step 8).
[0013] 8) Performing coarse registration, registration error identification and correction, and fine registration on any two bridge point clouds in the scan block, thereby merging all bridge point clouds in the scan block into one bridge point cloud.
[0014] 9) The bridge point clouds of any two scanning blocks are roughly registered, the registration errors are identified and corrected, and the bridge point clouds of all scanning blocks are precisely registered, so as to merge the bridge point clouds of all scanning blocks into one bridge point cloud.
[0015] Further, the registration template includes a designed side view of the bridge.
[0016] The grid size δ corresponding to each pixel x and δ z The calculation formula is as follows:
[0017]
[0018]
[0019] Where L is the length of the bridge. H is the height of the bridge. x 、N y are the width and height of the non-empty area of the registration template, respectively.
[0020] Furthermore, the step of mapping each bridge point cloud data into a binary image based on the grid size includes:
[0021] 4.1) Project each bridge point cloud data onto the xoy plane and extract the corner points of the minimum convex hull.
[0022] 4.2) The principal component analysis algorithm is used to calculate the main direction of the minimum convex hull corner point, and the bridge point cloud data is rotated so that the main direction of the minimum convex hull corner point is parallel to the x-axis.
[0023] 4.3) Project the rotated bridge point cloud data onto the xoz plane and grid the bridge point cloud data based on the grid size.
[0024] 4.4) Set the pixel value corresponding to the bridge point cloud data falling into the grid to q, and set the remaining pixel values to 0, and map to obtain a binary image, where q is a positive integer.
[0025] Furthermore, the step of matching the mapped binary image with the registration template to obtain the matching result of the binary image and the registration template and the scanner position includes:
[0026] 5.1) The registration template is used as the reference image and the mapped binary image is used as the matching image.
[0027] 5.2) Slide the matching image on the reference image, and calculate the matching score based on the region-based image matching algorithm, and take the position with the largest matching score as the first matching position.
[0028] 5.3) Mirror the mapped binary image horizontally to obtain a mirrored binary image.
[0029] The mirror binary image is slid on the reference image, and the matching score is calculated based on the region-based image matching algorithm, and the position with the largest matching score is taken as the second matching position.
[0030] 5.4) Select the position with the largest matching score among the two matching positions as the matching result.
[0031] Furthermore, the step of judging whether the matching result between the binary image and the registration template is incorrect and correcting the position of the bridge point cloud data corresponding to the incorrect binary image includes:
[0032] 6.1) Calculate the redundancy of each bridge point cloud data, perform statistics on the redundancy, and calculate the discrete coefficient.
[0033] 6.2) Determine whether the discrete coefficient is less than the threshold. If so, end the correction. If not, record the first W bridge point cloud data with the highest redundancy as bridge point cloud data with incorrect matching, set p = 1, and go to step 6.3), where W is a positive integer.
[0034] 6.3) The first J positions in the matching results that have the highest matching degree with the p-th bridge point cloud data with an erroneous match are taken as candidate positions, where J is a positive integer and j=1.
[0035] The candidate position is the position with the highest matching degree within the neighborhood.
[0036] 6.4) For the pth bridge point cloud data with incorrect matching, calculate the intersection area between the bridge point cloud data and other point cloud data not marked as incorrect matching when it is located at the candidate position j, and select the K point cloud data with the largest intersection area, add each point cloud data mapping image to the registration template at a ratio of E%, and modify the registration template, where K is a positive integer and E is a positive number.
[0037] Calculate the matching degree between the modified registration template and the mapping image at the candidate position j.
[0038] 6.5) Let j=j+1, and determine whether j>J. If so, proceed to step 6.6), if not, return to step 6.4).
[0039] 6.6) Select the candidate position with the highest matching degree as the final position of the pth point cloud data.
[0040] 6.7) Let p=p+1, and determine whether p>W holds. If so, proceed to step 6.8), if not, proceed to step 6.3).
[0041] 6.8) According to the relative position relationship of the matched bridge point cloud data, select one bridge point cloud data as the reference position and translate the remaining bridge point cloud data.
[0042] Furthermore, the redundancy S of each bridge point cloud data is i The calculation formula is as follows:
[0043]
[0044] Where i is the serial number of the bridge point cloud data with the largest intersection area of the mapped images, i = 1, 2, ..., n, n is the total number of bridge point cloud data with the largest intersection area of the mapped images, I i is the mapping image of the bridge point cloud data with the largest intersection area of the i-th mapping image. (a, b) is the coordinate position in the mapping image, a=1,2,...,A, b=1,2,...,B, A, B are the height and width of the mapping image respectively. Represents the Hadamard product.
[0045] Furthermore, the step of clustering all the corrected bridge point clouds based on the overlap between the bridge point cloud data and the location of the scanner to obtain a plurality of scan blocks includes:
[0046] 7.1) Taking the bridge point cloud data as nodes, the relative position relationship between all bridge point cloud data is used to establish a fully connected position graph.
[0047] node and nodes The weight between as follows:
[0048]
[0049] Where Δx is the ratio of the x-coordinate difference between the two-node scanner positions to the bridge width, and Δz is the ratio of the z-coordinate interpolation to the bridge height.
[0050] Among them, the intersection over union (IoU) of the bounding boxes of the two nodes is as follows:
[0051]
[0052] In the formula, Respectively represent nodes node The bounding box of .
[0053] 7.2) Use the Normalized cut algorithm to divide all bridge point cloud data into different scanning blocks.
[0054] The objective function Ncut(A 1 ,A 2 ,…,A k ) is as follows:
[0055]
[0056] In the formula, i 1 is the scan block number, i 1 =1,2,...,k, where k is the number of scanning blocks to be divided. is the i-th 1 Scan blocks. For scanning blocks The complement of .
[0057] Among them, the scanning block and scan blocks The weight of the cut graph As shown below:
[0058]
[0059] Scan Block The sum of the degrees of all nodes in As shown below:
[0060]
[0061] In the formula, i 2 For scanning blocks The node number within. For scanning blocks Neidi 2 The degree of a node.
[0062] Further, the steps of performing coarse registration, registration error identification and correction, and fine registration on any two bridge point clouds in the scan block, thereby merging all bridge point clouds in the scan block into one bridge point cloud include:
[0063] 8.1) Calculate the coarse registration transformation matrix of any two bridge point cloud data in each scanning block.
[0064] 8.1.1) Select any two bridge point cloud data in the scanning block as data P and data Q, use the random sampling method to downsample data P and data Q to N point cloud data respectively, obtain two sets of point cloud data, and translate data P and data Q so that the point cloud center of data P is used as the coordinate origin.
[0065] 8.1.2) The coarse registration problem is modeled as a maximum set search problem. The corrected bridge point cloud data state is used as the initial state, and the particle swarm algorithm is used to solve it to obtain the coarse registration matrix that makes the two sets of point cloud data have the most corresponding point pairs.
[0066] The particle represents a combination of a rotation matrix and a translation matrix.
[0067] 8.2) With each bridge point cloud data as a node and the coarse registration transformation matrix as an edge, a fully connected directed graph is established, and the closed-loop constraint is used to remove the erroneous coarse registration transformation matrix to obtain a fully connected graph.
[0068] 8.3) A minimum spanning tree is established based on the fully connected graph, and the minimum spanning tree is precisely aligned to merge all bridge point cloud data in each scanning block into one point cloud data.
[0069] Furthermore, the step of removing the erroneous coarse registration transformation matrix by using closed-loop constraints to obtain a fully connected graph includes:
[0070] 8.2.1) Select all closed loops with three edges in the fully connected directed graph and calculate the rotation error and translation error.
[0071] The closed loop T with three edges ε As shown below:
[0072]
[0073] Where, T 1,2 、T 2,3 、T 3,1 are the rough registration transformation matrices of the three edges respectively. ε It is a closed loop T εThe rotation error of Δt ε For closed loop T ε The translation error.
[0074] The rotation error θ ε and translation error t ε As shown below:
[0075]
[0076] t ε =||Δt ε || 2 (11)
[0077] 8.2.2) Calculate the comprehensive coefficient. If the comprehensive coefficient is less than c, the closed loop T ε Valid, if the comprehensive coefficient is greater than or equal to c, then the closed loop T ε Invalid, i.e. closed loop T ε There is an error in the coarse registration transformation matrix, c is a positive number.
[0078] The comprehensive coefficient ψ is as follows:
[0079]
[0080] Among them, the intermediate parameter t max ,θ max As shown below:
[0081]
[0082]
[0083] Where, t a cc is the maximum translation error. a cc is the maximum rotation error.
[0084] 8.2.3) Set the weights of the edges with erroneous coarse registration transformation matrices to 0, and the weights of the remaining edges are the number of corresponding point pairs in the coarse registration transformation matrix to obtain a fully connected graph.
[0085] Furthermore, the steps of establishing a minimum spanning tree based on the fully connected graph, accurately registering the minimum spanning tree, and merging all bridge point cloud data in each scanning block into one point cloud data include:
[0086] 8.3.1) Compute the minimum spanning tree for the fully connected graph.
[0087] 8.3.2) Use the iterative nearest neighbor algorithm to accurately align each edge of the minimum spanning tree, and use the Lu–Milios algorithm to optimize the position of each edge of the minimum spanning tree.
[0088] 8.3.3) According to the merging order defined by the minimum spanning tree, all bridge point cloud data in each scanning block are merged into one point cloud data.
[0089] The technical effect of the present invention is unquestionable. The present invention proposes a hierarchical multi-view registration framework for unordered bridge point cloud data based on template guidance. The method uses the designed side view of the bridge as the registration template, aligns the cloud data of each site with it, and uses a graph segmentation algorithm to block the point cloud data, processes each scan block one by one, and finally aligns all the scanned point cloud data. The present invention provides a hierarchical multi-view registration framework for unordered bridge point cloud data based on template guidance, which effectively solves the problem of needing to specify the scanning order and high dependence on artificial targets in the registration of bridge point cloud data, and provides high-precision point cloud data for subsequent processing.
[0090] The present invention proposes a template-guided hierarchical multi-view registration framework for disordered bridge point cloud data, which can process disordered point cloud data of large bridges and avoid dependence on artificial targets. The method has strong flexibility and applicability and can be extended to different types of bridges. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] Figure 1 A flowchart of an embodiment of the present invention;
[0092] Figure 2 This is a matching example of point cloud data and a registration template in an implementation example of the present invention;
[0093] Figure 3 This is an example of segmenting point cloud data of a suspension bridge according to an embodiment of the present invention;
[0094] Figure 4 This is an example of the point cloud data registration results of a suspension bridge in an implementation example of the present invention. DETAILED DESCRIPTION
[0095] The present invention is further described below in conjunction with the embodiments, but it should not be understood that the above subject matter of the present invention is limited to the following embodiments. Without departing from the above technical ideas of the present invention, various substitutions and changes are made according to the common technical knowledge and customary means in the art, which should all be included in the protection scope of the present invention.
[0096] Embodiment 1:
[0097] See also Figures 1 to 4 , a multi-level multi-view registration method for bridge point cloud data based on registration template, comprising the following steps:
[0098] 1) Use a scanner to obtain point cloud data at different locations of the bridge.
[0099] 2) Preprocess the scanned bridge point cloud data, remove background points, and obtain multiple bridge point cloud data.
[0100] 3) Select the registration template and calculate the grid size corresponding to each pixel.
[0101] 4) Based on the grid size, each bridge point cloud data is mapped into a binary image.
[0102] 5) Matching the mapped binary image with the registration template to obtain the matching result between the binary image and the registration template and the scanner position.
[0103] 6) Determine whether the matching result between the binary image and the registration template is incorrect. If so, correct the position of the bridge point cloud data corresponding to the binary image.
[0104] 7) Based on the overlap between the point cloud data of each bridge and the location of the scanner, all the corrected bridge point clouds are clustered to obtain a number of scan blocks. Each scan block includes at least one bridge point cloud.
[0105] If each scanning block includes a bridge point cloud, proceed to step 9); if any scanning block includes multiple bridge point clouds, proceed to step 8).
[0106] 8) Performing coarse registration, registration error identification and correction, and fine registration on any two bridge point clouds in the scan block, thereby merging all bridge point clouds in the scan block into one bridge point cloud.
[0107] 9) The bridge point clouds of any two scanning blocks are roughly registered, the registration errors are identified and corrected, and the bridge point clouds of all scanning blocks are precisely registered, so as to merge the bridge point clouds of all scanning blocks into one bridge point cloud.
[0108] Embodiment 2:
[0109] A multi-level multi-view registration method for bridge point cloud data based on a registration template. The main technical content is shown in Example 1. Furthermore, the registration template includes a designed side view of the bridge.
[0110] The grid size δ corresponding to each pixel x and δ z The calculation formula is as follows:
[0111]
[0112]
[0113] Where L is the length of the bridge. H is the height of the bridge. x 、N y are the width and height of the non-empty area of the registration template, respectively.
[0114] Embodiment 3:
[0115] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of Embodiments 1 to 2. Further, the step of mapping each bridge point cloud data into a binary image based on the grid size includes:
[0116] 4.1) Project each bridge point cloud data onto the xoy plane and extract the corner points of the minimum convex hull.
[0117] 4.2) The principal component analysis algorithm is used to calculate the main direction of the minimum convex hull corner point, and the bridge point cloud data is rotated so that the main direction of the minimum convex hull corner point is parallel to the x-axis.
[0118] 4.3) Project the rotated bridge point cloud data onto the xoz plane and grid the bridge point cloud data based on the grid size.
[0119] 4.4) Set the pixel value corresponding to the bridge point cloud data falling into the grid to q, and set the remaining pixel values to 0, and map to obtain a binary image, where q is a positive integer.
[0120] Embodiment 4:
[0121] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 1 to 3. Further, the step of matching the mapped binary image with the registration template to obtain the matching result of the binary image and the registration template and the scanner position comprises:
[0122] 5.1) The registration template is used as the reference image and the mapped binary image is used as the matching image.
[0123] 5.2) Slide the matching image on the reference image, and calculate the matching score based on the region-based image matching algorithm, and take the position with the largest matching score as the first matching position.
[0124] 5.3) Mirror the mapped binary image horizontally to obtain a mirrored binary image.
[0125] The mirror binary image is slid on the reference image, and the matching score is calculated based on the region-based image matching algorithm, and the position with the largest matching score is taken as the second matching position.
[0126] 5.4) Select the position with the largest matching score among the two matching positions as the matching result.
[0127] Embodiment 5:
[0128] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 1 to 4. Further, the step of judging whether the matching result between the binary image and the registration template is incorrect and correcting the position of the bridge point cloud data corresponding to the incorrect binary image comprises:
[0129] 6.1) Calculate the redundancy of each bridge point cloud data, perform statistics on the redundancy, and calculate the discrete coefficient.
[0130] 6.2) Determine whether the discrete coefficient is less than the threshold. If so, end the correction. If not, record the first W bridge point cloud data with the highest redundancy as bridge point cloud data with incorrect matching, set p = 1, and go to step 6.3), where W is a positive integer.
[0131] 6.3) The first J positions in the matching results that have the highest matching degree with the p-th bridge point cloud data with an erroneous match are taken as candidate positions, where J is a positive integer and j=1.
[0132] The candidate position is the position with the highest matching degree within the neighborhood.
[0133] 6.4) For the pth bridge point cloud data with incorrect matching, calculate the intersection area between the bridge point cloud data and other point cloud data not marked as incorrect matching when it is located at the candidate position j, and select the K point cloud data with the largest intersection area, add each point cloud data mapping image to the registration template at a ratio of E%, and modify the registration template, where K is a positive integer and E is a positive number.
[0134] Calculate the matching degree between the modified registration template and the mapping image at the candidate position j.
[0135] 6.5) Let j=j+1, and determine whether j>J. If so, proceed to step 6.6), if not, return to step 6.4).
[0136] 6.6) Select the candidate position with the highest matching degree as the final position of the pth point cloud data.
[0137] 6.7) Let p=p+1, and determine whether p>W holds. If so, proceed to step 6.8), if not, proceed to step 6.3).
[0138] 6.8) According to the relative position relationship of the matched bridge point cloud data, select one bridge point cloud data as the reference position and translate the remaining bridge point cloud data.
[0139] Embodiment 6:
[0140] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of Embodiments 1 to 5, and further, the redundancy S of each bridge point cloud data i The calculation formula is as follows:
[0141]
[0142] Where i is the serial number of the bridge point cloud data with the largest intersection area of the mapped images, i = 1, 2, ..., n, n is the total number of bridge point cloud data with the largest intersection area of the mapped images, I i is the mapping image of the bridge point cloud data with the largest intersection area of the i-th mapping image. (a, b) is the coordinate position in the mapping image, a=1,2,...,A, b=1,2,...,B, A, B are the height and width of the mapping image respectively. Represents the Hadamard product.
[0143] Embodiment 7:
[0144] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 1 to 6. Further, the step of clustering all corrected bridge point clouds based on the overlap between each bridge point cloud data and the position of the scanner to obtain a plurality of scan blocks includes:
[0145] 7.1) Taking the bridge point cloud data as nodes, the relative position relationship between all bridge point cloud data is used to establish a fully connected position graph.
[0146] node and nodes The weight between as follows:
[0147]
[0148] Where Δx is the ratio of the x-coordinate difference between the two-node scanner positions to the bridge width, and Δz is the ratio of the z-coordinate interpolation to the bridge height.
[0149] Among them, the intersection over union (IoU) of the bounding boxes of the two nodes is as follows:
[0150]
[0151] In the formula, Respectively represent nodes node The bounding box of .
[0152] 7.2) Use the Normalized cut algorithm to divide all bridge point cloud data into different scanning blocks.
[0153] The objective function Ncut(A 1 ,A 2 ,…,A k ) is as follows:
[0154]
[0155] In the formula, i 1 is the scan block number, i 1 =1,2,...,k, where k is the number of scanning blocks to be divided. is the i-th 1 Scan blocks. For scanning blocks The complement of .
[0156] Among them, the scanning block and scan blocks The weight of the cut graph As shown below:
[0157]
[0158] Scan Block The sum of the degrees of all nodes in As shown below:
[0159]
[0160] In the formula, i 2 For scanning blocks The node number within. For scanning blocks Neidi 2 The degree of a node.
[0161] Embodiment 8:
[0162] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 1 to 7. Further, the steps of coarsely registering any two bridge point clouds in the scan block, identifying and correcting registration errors, and finely registering, thereby merging all bridge point clouds in the scan block into one bridge point cloud include:
[0163] 8.1) Calculate the coarse registration transformation matrix of any two bridge point cloud data in each scanning block.
[0164] 8.1.1) Select any two bridge point cloud data in the scanning block as data P and data Q, use the random sampling method to downsample data P and data Q to N point cloud data respectively, obtain two sets of point cloud data, and translate data P and data Q so that the point cloud center of data P is used as the coordinate origin.
[0165] 8.1.2) The coarse registration problem is modeled as a maximum set search problem. The corrected bridge point cloud data state is used as the initial state, and the particle swarm algorithm is used to solve it to obtain the coarse registration matrix that makes the two sets of point cloud data have the most corresponding point pairs.
[0166] The particle represents a combination of a rotation matrix and a translation matrix.
[0167] 8.2) With each bridge point cloud data as a node and the coarse registration transformation matrix as an edge, a fully connected directed graph is established, and the closed-loop constraint is used to remove the erroneous coarse registration transformation matrix to obtain a fully connected graph.
[0168] 8.3) A minimum spanning tree is established based on the fully connected graph, and the minimum spanning tree is precisely aligned to merge all bridge point cloud data in each scanning block into one point cloud data.
[0169] Embodiment 9:
[0170] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 1 to 8. Further, the step of removing the erroneous coarse registration transformation matrix by using closed-loop constraints to obtain a fully connected graph comprises:
[0171] 8.2.1) Select all closed loops with three edges in the fully connected directed graph and calculate the rotation error and translation error.
[0172] The closed loop T with three edges ε As shown below:
[0173]
[0174] Where, T 1,2 、T 2,3 、T 3,1 are the rough registration transformation matrices of the three edges respectively. ε It is a closed loop T ε The rotation error of Δt ε For closed loop T ε The translation error.
[0175] The rotation error θ ε and translation error t ε As shown below:
[0176]
[0177] t ε =||Δt ε || 2 (11)
[0178] 8.2.2) Calculate the comprehensive coefficient. If the comprehensive coefficient is less than c, the closed loop T ε Valid, if the comprehensive coefficient is greater than or equal to c, then the closed loop T ε Invalid, i.e. closed loop T ε There is an error in the coarse registration transformation matrix, c is a positive number.
[0179] The comprehensive coefficient ψ is as follows:
[0180]
[0181] Among them, the intermediate parameter t max ,θ max As shown below:
[0182]
[0183]
[0184] Where, t a cc is the maximum translation error. a cc is the maximum rotation error.
[0185] 8.2.3) Set the weights of the edges with erroneous coarse registration transformation matrices to 0, and the weights of the remaining edges are the number of corresponding point pairs in the coarse registration transformation matrix to obtain a fully connected graph.
[0186] Embodiment 10:
[0187] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 1 to 9. Further, the step of establishing a minimum spanning tree based on a fully connected graph, and accurately registering the minimum spanning tree, and merging all bridge point cloud data in each scanning block into one point cloud data comprises:
[0188] 8.3.1) Compute the minimum spanning tree for the fully connected graph.
[0189] 8.3.2) Use the iterative nearest neighbor algorithm to accurately align each edge of the minimum spanning tree, and use the Lu–Milios algorithm to optimize the position of each edge of the minimum spanning tree.
[0190] 8.3.3) According to the merging order defined by the minimum spanning tree, all bridge point cloud data in each scanning block are merged into one point cloud data.
[0191] Embodiment 11:
[0192] See also Figures 1 to 4 , a multi-level multi-view registration method for bridge point cloud data based on registration template, comprising the following steps:
[0193] 1) Use a scanner to obtain point cloud data at different locations of the bridge.
[0194] 2) Preprocess the scanned bridge point cloud data, remove background points, and obtain multiple bridge point cloud data.
[0195] 3) Select the registration template and calculate the grid size corresponding to each pixel.
[0196] 4) Based on the grid size, each bridge point cloud data is mapped into a binary image.
[0197] 5) Matching the mapped binary image with the registration template to obtain the matching result between the binary image and the registration template and the scanner position.
[0198] 6) Determine whether the matching result between the binary image and the registration template is incorrect. If so, correct the position of the bridge point cloud data corresponding to the binary image.
[0199] 7) Based on the overlap between the point cloud data of each bridge and the location of the scanner, all the corrected bridge point clouds are clustered to obtain a number of scan blocks. Each scan block includes at least one bridge point cloud.
[0200] If each scanning block includes a bridge point cloud, proceed to step 9); if any scanning block includes multiple bridge point clouds, proceed to step 8).
[0201] 8) Performing coarse registration, registration error identification and correction, and fine registration on any two bridge point clouds in the scan block, thereby merging all bridge point clouds in the scan block into one bridge point cloud.
[0202] 9) The bridge point clouds of any two scanning blocks are roughly registered, the registration errors are identified and corrected, and the bridge point clouds of all scanning blocks are precisely registered, so as to merge the bridge point clouds of all scanning blocks into one bridge point cloud.
[0203] In the specific implementation, each point cloud data is first downsampled to improve the calculation efficiency.
[0204] Embodiment 12:
[0205] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in Example 11. Further, the registration template includes a design side view of the bridge, and the registration template used is shown in the attached Figure 2 .
[0206] The grid size δ corresponding to each pixel x and δ z The calculation formula is as follows:
[0207]
[0208]
[0209] Where L is the length of the bridge. H is the height of the bridge. x 、N y are the width and height of the non-empty area of the registration template, respectively.
[0210] Embodiment 13:
[0211] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of Embodiments 11 to 12. Further, the step of mapping each bridge point cloud data into a binary image based on the grid size comprises:
[0212] 4.1) Project each bridge point cloud data onto the xoy plane and extract the corner points of the minimum convex hull.
[0213] 4.2) The principal component analysis algorithm is used to calculate the main direction of the minimum convex hull corner point, and the bridge point cloud data is rotated so that the main direction of the minimum convex hull corner point is parallel to the x-axis.
[0214] 4.3) Project the rotated bridge point cloud data onto the xoz plane and grid the bridge point cloud data based on the grid size.
[0215] 4.4) Set the pixel values corresponding to the bridge point cloud data falling into the grid to 255, and the remaining pixel values to 0, and map them to obtain a binary image.
[0216] Embodiment 14:
[0217] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of Embodiments 11 to 13. Further, the step of matching the mapped binary image with the registration template to obtain the matching result of the binary image and the registration template and the scanner position comprises:
[0218] 5.1) The registration template is used as the reference image and the mapped binary image is used as the matching image.
[0219] 5.2) Slide the matching image on the reference image, and calculate the matching score based on the region-based image matching algorithm, and take the position with the largest matching score as the first matching position.
[0220] 5.3) Mirror the mapped binary image horizontally to obtain a mirrored binary image.
[0221] The mirror binary image is slid on the reference image, and the matching score is calculated based on the region-based image matching algorithm, and the position with the largest matching score is taken as the second matching position.
[0222] 5.4) The position (scanner position) with the largest matching score among the two matching positions is selected as the matching result.
[0223] Embodiment 15:
[0224] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 11 to 14. Further, the step of judging whether the matching result between the binary image and the registration template is incorrect and correcting the position of the bridge point cloud data corresponding to the incorrect binary image comprises:
[0225] 6.1) Calculate the redundancy of each bridge point cloud data, perform statistics on the redundancy, and calculate the discrete coefficient.
[0226] 6.2) Determine whether the discrete coefficient is less than the threshold value γ = 0.2. If so, end the correction. If not, record the top 20% bridge point cloud data with the highest redundancy score as bridge point cloud data with incorrect matching, set p = 1, and proceed to step 6.3).
[0227] 6.3) The top three positions in the matching results that have the highest matching degree with the p-th bridge point cloud data with an erroneous match are selected as candidate positions, and j=1.
[0228] The candidate position is the position with the highest matching degree within the neighborhood.
[0229] 6.4) For the pth bridge point cloud data with incorrect matching, calculate the intersection area between the bridge point cloud data and other point cloud data that are not marked as incorrect matching when it is located at the alternative position j, and select the three point cloud data with the largest intersection area. Add each point cloud data mapping image to the registration template at a ratio of 5% to correct the registration template.
[0230] Calculate the matching degree between the modified registration template and the mapping image at the candidate position j.
[0231] 6.5) Let j=j+1, and determine whether j>J. If so, proceed to step 6.6), if not, return to step 6.4).
[0232] 6.6) Select the candidate position with the highest matching degree as the final position of the pth point cloud data.
[0233] 6.7) Let p=p+1, and determine whether all bridge point cloud data with incorrect matching have been corrected. If so, proceed to step 6.8), if not, proceed to step 6.3).
[0234] 6.8) According to the relative position relationship of the matched bridge point cloud data, select one bridge point cloud data as the reference position and translate the remaining bridge point cloud data.
[0235] Embodiment 16:
[0236] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of Embodiments 11 to 15, and further, the redundancy S of each bridge point cloud data i The calculation formula is as follows:
[0237]
[0238] Where i is the serial number of the bridge point cloud data with the largest intersection area of the mapped images, i = 1, 2, ..., n, n is the total number of bridge point cloud data with the largest intersection area of the mapped images, I i is the mapping image of the bridge point cloud data with the largest intersection area of the i-th mapping image. (a, b) is the coordinate position in the mapping image, a=1,2,...,A, b=1,2,...,B, A, B are the height and width of the mapping image respectively. Represents the Hadamard product.
[0239] In this example, n is 3.
[0240] Embodiment 17:
[0241] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 11 to 16. Further, the step of clustering all corrected bridge point clouds based on the overlap between each bridge point cloud data and the position of the scanner to obtain a plurality of scan blocks includes:
[0242] 7.1) Taking the bridge point cloud data as nodes, the relative position relationship between all bridge point cloud data is used to establish a fully connected position graph.
[0243] node and nodes The weight between as follows:
[0244]
[0245] Where Δx is the ratio of the x-coordinate difference between the two-node scanner positions to the bridge width, and Δz is the ratio of the z-coordinate interpolation to the bridge height.
[0246] Among them, the intersection over union (IoU) of the bounding boxes of the two nodes is as follows:
[0247]
[0248] In the formula, Respectively represent nodes node The bounding box of .
[0249] 7.2) Use the Normalized cut algorithm to divide all bridge point cloud data into different scanning blocks.
[0250] The objective function Ncut(A 1 ,A 2 ,…,A k ) is as follows:
[0251]
[0252] In the formula, i 1 is the scan block number, i 1 =1,2,...,k, where k is the number of scanning blocks to be divided. is the i-th 1 Scan blocks. For scanning blocks The complement of .
[0253] Among them, the scanning block and scan blocks The weight of the cut graph As shown below:
[0254]
[0255] Scan Block The sum of the degrees of all nodes in As shown below:
[0256]
[0257] In the formula, i 2 For scanning blocks The node number within. For scanning blocks Neidi 2 The degree of a node.
[0258] In the example calculation of the present invention, it is ensured that the average number of point clouds in each divided scanning block is about 5, and the number of scanning blocks to be divided k=6. The division results are shown in the attached Figure 3 .
[0259] Embodiment 18:
[0260] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 11 to 17. Further, the steps of performing coarse registration, registration error identification and correction, and fine registration on any two bridge point clouds in the scan block, thereby merging all bridge point clouds in the scan block into one bridge point cloud include:
[0261] 8.1) Calculate the coarse registration transformation matrix of any two bridge point cloud data in each scanning block.
[0262] 8.1.1) Select any two bridge point cloud data in the scanning block as data P and data Q, use the random sampling method to downsample data P and data Q to N point cloud data respectively, obtain two sets of point cloud data, and translate data P and data Q so that the point cloud center of data P is used as the coordinate origin.
[0263] 8.1.2) The coarse registration problem is modeled as a maximum set search problem. The corrected bridge point cloud data state is used as the initial state, and the particle swarm algorithm is used to solve it to obtain the coarse registration matrix that makes the two sets of point cloud data have the most corresponding point pairs.
[0264] The particle represents a combination of a rotation matrix and a translation matrix.
[0265] The parameter N used in the example calculation of the present invention is 7500, the number of particles is 100, and the maximum number of iterations is 50.
[0266] 8.2) With each bridge point cloud data as a node and the coarse registration transformation matrix as an edge, a fully connected directed graph is established, and the closed-loop constraint is used to remove the erroneous coarse registration transformation matrix to obtain a fully connected graph.
[0267] 8.3) A minimum spanning tree is established based on the fully connected graph, and the minimum spanning tree is precisely aligned to merge all bridge point cloud data in each scanning block into one point cloud data.
[0268] Embodiment 19:
[0269] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of Embodiments 11 to 18. Further, the step of removing the erroneous coarse registration transformation matrix by using closed-loop constraints to obtain a fully connected graph comprises:
[0270] 8.2.1) Select all closed loops with three edges in the fully connected directed graph and calculate the rotation error and translation error.
[0271] The closed loop T with three edges ε As shown below:
[0272]
[0273] Where, T 1,2 、T 2,3 、T 3,1 are the rough registration transformation matrices of the three edges respectively. ε It is a closed loop T ε The rotation error of ε For closed loop T ε The translation error.
[0274] The rotation error θ ε and translation error t ε As shown below:
[0275]
[0276] t ε =||Δt ε || 2 (11)
[0277] 8.2.2) Calculate the comprehensive coefficient. If the comprehensive coefficient is less than 1, the closed loop T ε Valid, if the comprehensive coefficient is greater than or equal to 1, the closed loop T ε Invalid, i.e. closed loop T ε There is an incorrect coarse registration transformation matrix.
[0278] The comprehensive coefficient ψ is as follows:
[0279]
[0280] Among them, the intermediate parameter t max ,θ max As shown below:
[0281]
[0282]
[0283] Where, t a cc is the maximum translation error. a cc is the maximum rotation error.
[0284] In the example calculation of the present invention, the parameter t a cc and θ a cc The values are 5° and 0.5m respectively.
[0285] 8.2.3) Set the weights of the edges with erroneous coarse registration transformation matrices to 0, and the weights of the remaining edges are the number of corresponding point pairs in the coarse registration transformation matrix to obtain a fully connected graph.
[0286] Embodiment 20:
[0287] A multi-level multi-view registration method for bridge point cloud data based on a registration template, the main technical content of which is shown in any one of embodiments 11 to 19. Further, the step of establishing a minimum spanning tree based on a fully connected graph, and accurately registering the minimum spanning tree, and merging all bridge point cloud data in each scanning block into one point cloud data comprises:
[0288] 8.3.1) Compute the minimum spanning tree for the fully connected graph.
[0289] 8.3.2) Use the iterative nearest neighbor algorithm to accurately align each edge of the minimum spanning tree, and use the Lu–Milios algorithm to optimize the position of each edge of the minimum spanning tree.
[0290] 8.3.3) According to the merging order defined by the minimum spanning tree, all bridge point cloud data in each scanning block are merged into one point cloud data.
[0291] Embodiment 21:
[0292] See also Figures 1 to 4 , a multi-level multi-view registration method for bridge point cloud data based on registration template, comprising the following steps:
[0293] S101, pre-processing the multi-station bridge point cloud data obtained by scanning, removing background points, and retaining only the bridge point cloud data.
[0294] S102, select the designed side view of the bridge as the registration template, and obtain the grid size δ corresponding to each pixel x and δ z .
[0295] S103 . For each site cloud data, map it into a binary image based on the grid size obtained in step S102 .
[0296] S104 . For each binary image mapped by the point cloud data, match it with the registration template.
[0297] S105 . For each site cloud data, use its adjacent point cloud data to determine its redundancy, and correct the position of the incorrectly matched point cloud data.
[0298] S106 , dividing all scanned point cloud data into different scan blocks based on the overlap between the cloud data of each site and the location of the scanner.
[0299] S107 , for any two site cloud data in each scanning block, use an intelligent optimization algorithm to calculate the coarse registration transformation matrix.
[0300] S108. For each scan block, use closed-loop constraints to identify incorrect transformation matrices.
[0301] S109 , for each scan block, a minimum spanning tree is established based on the rough registration result, a fine registration is performed, and all the scanned point cloud data are merged into one point cloud data.
[0302] S110, repeating steps S102 to S109 until all scans are merged into one point cloud data.
[0303] Step S102 includes:
[0304] Select the designed side view of the bridge as the registration template, input the length L and height H of the bridge, and then the grid size δ x and δ z It can be calculated by formula (1) and formula (2).
[0305]
[0306]
[0307] Where N x and N y are the width and height of the non-empty area of the registration template, respectively.
[0308] Step S103 includes:
[0309] First, the bridge point cloud data is projected onto the xoy plane, and the corner points of its minimum convex hull are extracted. Second, the principal component analysis algorithm is used to calculate the main direction of the minimum convex hull corner points, and the point cloud data is rotated so that its main direction is parallel to the x-axis. Next, the rotated point cloud data is projected onto the xoz plane, and the grid size δ is calculated based on the grid size δ obtained in step S102. x and δ z The point cloud data is gridded and mapped into a binary image. If a data point falls into the grid, the corresponding pixel value in the binary image is set to 255, otherwise it is set to 0.
[0310] Step S104 includes:
[0311] First, a region-based image matching algorithm is used, with the registration template as the reference image and the point cloud data mapping image as the matching image. The matching image is slid on the reference image, the matching score is calculated, and the position with the largest score is taken as the matching position. Secondly, the point cloud data mapping image is horizontally mirrored and matched with the registration template again. The one with the largest matching score in the two calculation results is taken as the final matching result.
[0312] Step S105 includes:
[0313] First, for the i-th scan point cloud data, its mapping image is recorded as Ii Based on the matching position obtained in step S104, calculate I i The intersection between the image and other scanned point cloud data mapping images, and select the n scans with the largest intersection area, and record their mapping images as I 1 ,I 2 ,…,I n , use formula (3) to calculate the redundant degree score S of the i-th scan i .
[0314]
[0315] A and B are I i height and width. Represents the Hadamard product. Secondly, the redundancy scores of all point cloud data are counted and the discrete coefficient is calculated. When the discrete coefficient is less than the threshold value γ, it is considered that all point cloud data are correctly matched, and step S106 is continued. Otherwise, it is considered that there may be mismatched point cloud data, and the top 20% of point cloud data with the highest scores are screened out and recorded as point cloud data that may be mismatched. Then, for each point cloud data that may be mismatched, the top three positions with the highest matching degree obtained in step S104 are used as candidate positions. When selecting candidate positions, it should be ensured that each candidate position is the position with the highest matching degree within its certain neighborhood. Next, for the i-th point cloud data that may be mismatched, for each candidate position, calculate the intersection area between it and other scans that are not marked as mismatched, and select the three point cloud data with the largest intersection area, add each point cloud data mapping image to the matching template at a ratio of 5%, and correct the matching template. Calculate the matching degree between the modified registration template and the mapping image at each candidate position, and select the position with the highest matching degree as the final position of the i-th point cloud data. Finally, based on the relative position relationship obtained in the image matching step, select a certain site cloud data as the reference position and move the remaining scanned point cloud data.
[0316] Step S106 includes:
[0317] First, the relative position relationship between all point cloud data is used to establish a fully connected graph. Each point cloud data is regarded as a node, and the node v i and v j The weight w between ij Defined as
[0318]
[0319] Where Δx is the ratio of the x-coordinate difference of the scanner position of the cloud data of the two stations to the width of the bridge, and Δz is the ratio of the z-coordinate interpolation to the height of the bridge. IoU is the intersection over union ratio of the rectangular bounding boxes of the cloud data of the two stations, respectively expressed as Bj and B i represents the bounding box, then IoU is defined as
[0320]
[0321] Secondly, the Normalized cut algorithm is used to complete the graph partitioning process, and its objective equation is:
[0322]
[0323] Among them, A i is the i-th scanning block to be divided, A i complement of, k is the number of scan blocks to be divided, cut(A i ,A j ) is A i and A j The cut graph weight is defined as
[0324]
[0325] Among them, vol(A i ) is A i The sum of the degrees of all nodes in is defined as
[0326]
[0327] Step S107 includes:
[0328] First, for each two point cloud data P and Q in each scan block, the point cloud data is downsampled to N points using a random downsampling strategy, and P and Q are translated so that the point cloud center of P is the coordinate origin. Secondly, the coarse registration problem is modeled as a maximum set search problem, and the state obtained in step S105 is used as the initial state. The particle swarm algorithm is used to solve the problem and search for a coarse registration matrix that makes the two sets of point cloud data have the most corresponding point pairs. Among them, the particle represents the combination of the rotation matrix and the translation matrix, and the fitness matrix is the number of corresponding point pairs of the two sets of point cloud data.
[0329] Embodiment 22:
[0330] See also Figures 1 to 4 , a multi-level multi-view registration method for bridge point cloud data based on registration template, comprising the following steps:
[0331] S101, pre-processing the multi-station bridge point cloud data obtained by scanning, removing background points, and retaining only the bridge point cloud data;
[0332] The bridge used in the example calculation of the present invention is a suspension bridge with a total length of about 1.6 km and a width of about 38 m, and a total of 29 stations scan point cloud data.
[0333] S102, select the designed side view of the bridge as the registration template, and obtain the grid size δ corresponding to each pixel x and δ z ;
[0334] In the specific implementation, the design side view of the bridge is selected as the registration template, and the length L and height H of the bridge are input. Then the grid size δ x and δ z It can be calculated by formula (1) and formula (2).
[0335]
[0336]
[0337] Where N x and N y are the width and height of the non-empty area of the registration template, respectively.
[0338] The length and height of the bridge input in the example calculation of the present invention are 1671m and 200.5m respectively, and the registration template used is shown in the attached Figure 2 .
[0339] S103, for each site cloud data, mapping it into a binary image based on the grid size obtained in step S102;
[0340] In the specific implementation, first, the bridge point cloud data is projected onto the xoy plane, and the corner points of its minimum convex hull are extracted; secondly, the principal component analysis algorithm is used to calculate the main direction of the minimum convex hull corner point, and the point cloud data is rotated so that its main direction is parallel to the x-axis; then, the rotated point cloud data is projected onto the xoz plane, and the grid size δ is obtained based on the grid size δ obtained in step S102. x and δ z The point cloud data is gridded and mapped into a binary image. If a data point falls into the grid, the corresponding pixel value in the binary image is set to 255, otherwise it is set to 0.
[0341] The point cloud data mapping image example of the present invention in the example calculation is shown in the attached Figure 2 .
[0342] S104, matching each binary image mapped by the point cloud data with the registration template;
[0343] In the specific implementation, first, a region-based image matching algorithm is adopted, with the registration template as the reference image and the point cloud data mapping image as the matching image. The matching image is slid on the reference image, the matching score is calculated, and the position with the largest score is taken as the matching position; secondly, the point cloud data mapping image is horizontally mirrored and matched with the registration template again; the one with the largest matching score in the two calculation results is taken as the final matching result.
[0344] The example of the point cloud data mapping image and the registration template matching in the example calculation of the present invention is shown in the attached Figure 2 .
[0345] S105, for each site cloud data, using its adjacent point cloud data to determine its redundancy, and correcting the position of the incorrectly matched point cloud data;
[0346] In the specific implementation, first, for the i-th scan point cloud data, its mapping image is recorded as I i Based on the matching position obtained in step S104, calculate I i The intersection between the image and other scanned point cloud data mapping images, and select the n scans with the largest intersection area, and record their mapping images as I 1 ,I 2 ,…,I n , use formula (3) to calculate the redundant degree score S of the i-th scan i .
[0347]
[0348] A and B are I i height and width. Represents the Hadamard product. Secondly, the redundancy scores of all point cloud data are counted and the discrete coefficient is calculated. When the discrete coefficient is less than the threshold value γ, it is considered that all point cloud data are correctly matched, and step S106 is continued; otherwise, it is considered that there may be incorrectly matched point cloud data, and the top 20% of the point cloud data with the highest scores are screened out and recorded as point cloud data that may have mismatched points. Then, for each point cloud data that may have mismatched points, the top three positions with the highest matching degree obtained in step S104 are used as candidate positions; when selecting candidate positions, it should be ensured that each candidate position is the position with the highest matching degree within a certain neighborhood. Next, for the i-th point cloud data that may have mismatched, for each candidate position, calculate the intersection area between it and other scans that are not marked as mismatched, and select the three point cloud data with the largest intersection area, add each point cloud data mapping image to the matching template at a ratio of 5%, and correct the matching template; calculate the matching degree between the corrected registration template and the mapping image at each candidate position, and select the position with the highest matching degree as the final position of the i-th point cloud data. Finally, according to the relative position relationship obtained in the image matching step, select a certain site cloud data as the reference position, and move the remaining scanned point cloud data.
[0349] The parameters n=3 and the threshold value γ=0.2 used in the example calculation of the present invention.
[0350] S106, dividing all scanned point cloud data into different scan blocks based on the overlap between the cloud data of each site and the location of the scanner;
[0351] In the specific implementation, first, the relative position relationship between all point cloud data is used to establish a fully connected graph. Each site cloud data is regarded as a node, and the node v i and v j The weight w between ij Defined as
[0352]
[0353] Where Δx is the ratio of the x-coordinate difference of the scanner position of the cloud data of the two stations to the width of the bridge, and Δz is the ratio of the z-coordinate interpolation to the height of the bridge. IoU is the intersection over union ratio of the rectangular bounding boxes of the cloud data of the two stations, respectively expressed as B j and B i represents the bounding box, then IoU is defined as
[0354]
[0355] Secondly, the Normalized cut algorithm is used to complete the graph partitioning process, and its objective equation is:
[0356]
[0357] Among them, A i is the i-th scanning block to be divided, A i complement of, k is the number of scan blocks to be divided, cut(A i ,A j ) is A i and A j The cut graph weight is defined as
[0358]
[0359] Among them, vol(A i ) is A i The sum of the degrees of all nodes in is defined as
[0360]
[0361] In the example calculation of the present invention, it is ensured that the average number of point clouds in each divided scanning block is about 5, and the number of scanning blocks to be divided k=6. The division results are shown in the attached Figure 3 .
[0362] S107, for any two site cloud data in each scanning block, using an intelligent optimization algorithm to calculate the coarse registration transformation matrix;
[0363] In the specific implementation, first, for each two point cloud data P and Q in each scanning block, the point cloud data is downsampled to N points using a random downsampling strategy, and P and Q are translated so that the point cloud center of P is the coordinate origin; secondly, the coarse registration problem is modeled as a maximum set search problem, and the state obtained in step S105 is used as the initial state, and the particle swarm algorithm is used to solve the problem, and the coarse registration matrix that makes the two sets of point cloud data have the most corresponding point pairs is searched. Among them, the particle represents the combination of the rotation matrix and the translation matrix, and the fitness matrix is the number of corresponding point pairs of the two sets of point cloud data.
[0364] The parameter N used in the example calculation of the present invention is 7500, the number of particles is 100, and the maximum number of iterations is 50.
[0365] S108, for each scan block, using closed-loop constraints to identify the wrong transformation matrix;
[0366] In the specific implementation, first, each scanned point cloud data is regarded as a node, and a fully connected directed graph is established, and the edge is the transformation matrix calculated in step S107; then, all closed loops with three edges in the fully connected graph are calculated, and the transformation matrix of the edge is expressed as T 1,2 、T 2,3 、T 3,1 Indicates that the rotation error θ is calculated using formulas (9) to (11)ε and translation error t ε .
[0367]
[0368]
[0369] t ε =||Δt ε || 2 (11)
[0370] The rotation error and translation error are combined, and the comprehensive coefficient ψ is calculated using formulas (12) to (14). If the coefficient is less than 1, the loop is considered to be valid. Otherwise, the loop is considered to have an erroneous transformation.
[0371]
[0372]
[0373]
[0374] where t a cc and θ a cc is the maximum translation and rotation error.
[0375] In the example calculation of the present invention, the parameter t a cc and θ acc The values are 5° and 0.5m respectively.
[0376] S109, for each scan block, establish a minimum spanning tree based on the rough registration result, perform fine registration, and merge all scan point cloud data into one point cloud data;
[0377] In the specific implementation, first, each scanned point cloud data is regarded as a node, and a fully connected graph is established. The weight of the edge is the number of corresponding point pairs obtained in step S107, and the weight of the edge with the wrong transformation matrix identified in step S108 is set to 0. Secondly, the minimum spanning tree is calculated for the established graph. Then, for each edge of the minimum spanning tree, the iterative nearest neighbor algorithm is applied for precise alignment, and the Lu–Milios algorithm is used to optimize the pose. Finally, according to the merging order defined by the minimum spanning tree, the point cloud data in each scan block is merged into one point cloud data.
[0378] S110, repeating steps S102 to S109 until all scans are merged into one point cloud data.
[0379] In specific implementation, each point cloud data is first downsampled to improve calculation efficiency; then, step S102 to step S109 are repeated until all scans are merged into one point cloud data.
[0380] In the example calculation of the present invention, the number of scan blocks to be divided in step S106 is k=1, and the final registration result is shown in the attached Figure 4 .
[0381] The above experimental results prove that the template-guided hierarchical multi-view registration framework for disordered bridge point cloud data disclosed in the present invention can complete the semantic segmentation of bridge point cloud data, and the method of the present invention is practical and effective.
Claims
1. A multi-level multi-view registration method for bridge point cloud data based on registration template, characterized in that: The following steps are involved: 1) Use a scanner to obtain point cloud data at different locations of the bridge; The point cloud data includes unordered point cloud data; 2) Preprocessing the scanned bridge point cloud data, removing background points, and obtaining multiple bridge point cloud data; 3) Select the registration template and calculate the grid size corresponding to each pixel; 4) Based on the grid size, each bridge point cloud data is mapped into a binary image; 5) Matching the mapped binary image with the registration template to obtain the matching result between the binary image and the registration template and the scanner position; 6) Determine whether the matching result between the binary image and the registration template is wrong. If so, correct the position of the bridge point cloud data corresponding to the binary image. The steps include: 6.1) Calculate the redundancy of each bridge point cloud data, perform statistics on the redundancy, and calculate the discrete coefficient; 6.2) Determine whether the discrete coefficient is less than the threshold value. If so, end the calibration. If not, record the first W bridge point cloud data with the highest redundancy as bridge point cloud data with incorrect matching, set p=1, and proceed to step 6.3), where W is a positive integer; 6.3) The first J positions with the highest matching degree with the p-th bridge point cloud data with incorrect matching in the matching results are selected as candidate positions, where J is a positive integer and j=1; The candidate position is the position with the highest matching degree within the neighborhood; 6.4) For the pth bridge point cloud data with incorrect matching, calculate the intersection area between the bridge point cloud data and other point cloud data not marked as incorrect matching when it is located at the candidate position j, and select the K point cloud data with the largest intersection area, add each point cloud data mapping image to the registration template at a ratio of E%, and modify the registration template, where K is a positive integer and E is a positive number; Calculate the matching degree between the modified registration template and the mapping image at the candidate position j; 6.5) Let j = j + 1, determine whether j>J is true, if so, go to step 6.6), if not, return to step 6.4); 6.6) Select the candidate position with the highest matching degree as the final position of the pth point cloud data; 6.7) Let p = p + 1, determine whether p>W is true, if so, go to step 6.8), if not, go to step 6.3); 6.8) According to the relative position relationship of the matched bridge point cloud data, one bridge point cloud data is selected as the reference position, and the remaining bridge point cloud data are translated; 7) Based on the overlap between the point cloud data of each bridge and the location of the scanner, cluster all the corrected bridge point clouds to obtain several scan blocks, the steps include: 7.1) Taking the bridge point cloud data as nodes, a fully connected position graph is established using the relative position relationship between all bridge point cloud data; node and nodes The weight between as follows: Where Δx is the ratio of the x-coordinate difference of the two-node scanner positions to the bridge width, and Δz is the ratio of the z-coordinate interpolation to the bridge height; Among them, the intersection over union (IoU) of the bounding boxes of the two nodes is as follows: In the formula, Respectively represent nodes node The bounding box of 7.2) Use the Normalized cut algorithm to divide all bridge point cloud data into different scanning blocks; The objective function of the Normalized cut algorithm is Ncut(A1, A2, ..., A k ) is as follows: Where i1 is the scan block number, i1=1,2,...,k, k is the number of scan blocks to be divided; is the i1th scanning block to be divided; For scanning blocks The complement of Among them, the scanning block and scan blocks The weight of the cut graph As shown below: Scan Block The sum of the degrees of all nodes in As shown below: Where i2 is the scanning block The node number within; For scanning blocks The degree of the i2th node in it; Each scan block includes at least one bridge point cloud; If each scanning block includes a bridge point cloud, proceed to step 9); if any scanning block includes multiple bridge point clouds, proceed to step 8); 8) performing coarse registration, registration error identification and correction, and fine registration on any two bridge point clouds in the scan block, so as to merge all bridge point clouds in the scan block into one bridge point cloud, the steps comprising: 8.1) Calculate the coarse registration transformation matrix of any two bridge point cloud data in each scanning block; 8.1.1) Select any two bridge point cloud data in the scan block as data P and data Q, use the random sampling method to downsample data P and data Q to N point cloud data, obtain two sets of point cloud data, and translate data P and data Q so that the point cloud center of data P is used as the coordinate origin; 8.1.2) The coarse registration problem is modeled as a maximum set search problem, with the corrected bridge point cloud data state as the initial state, and the particle swarm algorithm is used to solve it, and the coarse registration matrix that makes the two sets of point cloud data have the most corresponding point pairs is obtained; The particles in the particle swarm algorithm represent the combination of rotation matrix and translation matrix; 8.2) Using each bridge point cloud data as a node and the coarse registration transformation matrix as an edge, a fully connected directed graph is established, and the closed-loop constraint is used to remove the erroneous coarse registration transformation matrix to obtain a fully connected graph; 8.3) Establish a minimum spanning tree based on the fully connected graph, and perform precise registration on the minimum spanning tree to merge all bridge point cloud data in each scanning block into one point cloud data; 9) The bridge point clouds of any two scanning blocks are roughly registered, the registration errors are identified and corrected, and the bridge point clouds of all scanning blocks are precisely registered, so as to merge the bridge point clouds of all scanning blocks into one bridge point cloud.
2. The method for multi-level and multi-view registration of bridge point cloud data based on registration template according to claim 1, characterized in that: The registration template includes a designed side view of the bridge; The grid size δ corresponding to each pixel x and δ z The calculation formula is as follows: Where L is the length of the bridge; H is the height of the bridge; N x 、N y are the width and height of the non-empty area of the registration template, respectively.
3. The multi-level multi-view registration method for bridge point cloud data based on registration template according to claim 1, characterized in that: The step of mapping each bridge point cloud data into a binary image based on the grid size includes: 4.1) Project each bridge point cloud data onto the xoy plane and extract the corner points of the minimum convex hull; 4.2) Calculate the main direction of the minimum convex hull corner point using the principal component analysis algorithm, and rotate the bridge point cloud data so that the main direction of the minimum convex hull corner point is parallel to the x-axis; 4.3) Project the rotated bridge point cloud data onto the xoz plane, and perform gridding on the bridge point cloud data based on the grid size; 4.4) Set the pixel value corresponding to the bridge point cloud data falling into the grid to q, and set the remaining pixel values to 0, and map to obtain a binary image, where q is a positive integer.
4. The method for multi-level and multi-view registration of bridge point cloud data based on registration template according to claim 1, characterized in that: The step of matching the mapped binary image with the registration template to obtain the matching result between the binary image and the registration template and the scanner position comprises: 5.1) The registration template is used as the reference image and the mapped binary image is used as the matching image; 5.2) Slide the matching image on the reference image, calculate the matching score based on the region-based image matching algorithm, and take the position with the largest matching score as the first matching position; 5.3) horizontally mirroring the mapped binary image to obtain a mirrored binary image; Slide the mirror binary image on the reference image, calculate the matching score based on the region-based image matching algorithm, and take the position with the largest matching score as the second matching position; 5.4) Select the position with the largest matching score among the two matching positions as the matching result.
5. The method for multi-level and multi-view registration of bridge point cloud data based on registration template according to claim 1, characterized in that: The redundancy S of each bridge point cloud data i The calculation formula is as follows: Where i is the serial number of the bridge point cloud data with the largest intersection area of the mapped images, i = 1, 2, ..., n, n is the total number of bridge point cloud data with the largest intersection area of the mapped images, I i is the mapping image of the bridge point cloud data with the largest intersection area of the i-th mapping image; (a, b) is the coordinate position in the mapping image, a=1,2,...,A, b=1,2,...,B, A and B are the height and width of the mapping image respectively; (°) represents the Hadamard product.
6. The method for multi-level and multi-view registration of bridge point cloud data based on registration template according to claim 1, characterized in that: The step of removing the erroneous coarse registration transformation matrix by using closed-loop constraints to obtain a fully connected graph comprises: 8.2.1) Select all closed loops with three edges in the fully connected directed graph and calculate the rotation error and translation error; The closed loop T with three edges ε As shown below: Where, T 1,2 , T 2,3 , T 3,1 are the rough registration transformation matrices of the three edges respectively; ΔR ε It is a closed loop T ε The rotation error of ε For closed loop T ε The translation error of The rotation error θ ε and translation error t ε As shown below: t ε =||Δt ε ||2 (11) 8.2.2) Calculate the comprehensive coefficient. If the comprehensive coefficient is less than c, the closed loop T ε Valid, if the comprehensive coefficient is greater than or equal to c, then the closed loop T ε Invalid, i.e. closed loop T ε There is an error in the coarse registration transformation matrix, c is a positive number; The comprehensive coefficient ψ is as follows: Among them, the intermediate parameter t max ,θ max As shown below: Where, t acc is the maximum translation error; θ acc is the maximum rotation error; 8.2.3) Set the weights of the edges with erroneous coarse registration transformation matrices to 0, and the weights of the remaining edges are the number of corresponding point pairs in the coarse registration transformation matrix to obtain a fully connected graph.
7. The method for multi-level and multi-view registration of bridge point cloud data based on registration template according to claim 1, characterized in that: The steps of establishing a minimum spanning tree based on the fully connected graph, accurately registering the minimum spanning tree, and merging all bridge point cloud data in each scanning block into one point cloud data include: 8.3.1) Compute the minimum spanning tree for the fully connected graph; 8.3.2) Use the iterative nearest neighbor algorithm to accurately align each edge of the minimum spanning tree, and use the Lu–Milios algorithm to optimize the position of each edge of the minimum spanning tree; 8.3.3) According to the merging order defined by the minimum spanning tree, all bridge point cloud data in each scanning block are merged into one point cloud data.
