A method, system, device, and medium for quantifying the geometric features of underwater structure surface deposits.
By reconstructing, correcting, and segmenting the underwater pile foundation point cloud model, and combining it with the cylindrical point cloud downsampling method, the accuracy and efficiency issues of quantizing the three-dimensional morphology of underwater structure surface attachments were solved, achieving high-precision geometric feature quantization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SOUTHEAST UNIV
- Filing Date
- 2026-02-02
- Publication Date
- 2026-05-26
AI Technical Summary
Existing technologies struggle to accurately quantify the three-dimensional morphological characteristics of underwater structures in underwater environments, especially the thickness and volume of organisms or debris. Furthermore, existing methods are sensitive to changes in lighting and background noise, making it difficult to accurately segment complex and irregular fouling features.
By acquiring underwater pile foundation images, a three-dimensional point cloud model was reconstructed and corrected. The least squares optimization method with multiple known dimensions was used for scale correction. The point cloud was segmented by combining RANSAC cylindrical fitting and feature point registration. Finally, the geometric features of the attachments were quantified by the cylindrical point cloud downsampling method.
It achieves efficient and accurate quantification of underwater structure surface attachments, overcomes the problems of scale ambiguity and low point cloud overlap, improves segmentation accuracy and robustness, and is suitable for rapid evaluation in engineering sites.
Smart Images

Figure CN121616638B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of underwater pile foundation monitoring technology, and particularly relates to a method, system, equipment and medium for quantifying the geometric characteristics of underwater structural surface attachments. Background Technology
[0002] Underwater bridge foundations and other structures are exposed to complex aquatic environments for extended periods, making their surfaces susceptible to the adhesion of algae, shellfish, and other organisms or debris. These deposits alter the hydrodynamic properties of the structure, accelerate corrosion, and pose a potential threat to structural safety. Existing detection methods primarily rely on manual diving observation or acoustic testing, which suffers from low accuracy, discontinuous data, and the inability to perform quantitative analysis. In recent years, underwater inspection technologies based on optical images have been developed. However, the underwater environment presents challenges such as light attenuation, scattering, and limited field of view, making it difficult to accurately quantify the three-dimensional morphological characteristics (such as thickness and volume) of deposits using two-dimensional images.
[0003] Image-based 3D reconstruction technology has shown great potential in the field of underwater fouling morphology detection. However, due to the similarity in color and texture between the surface deposits and the structure itself, and the problems of scale uncertainty and noise interference in the reconstructed point cloud, it is particularly difficult to accurately segment the deposits and calculate their geometric features from the point cloud. Existing underwater point cloud processing methods mostly rely on manual point cloud segmentation or threshold-based classification, which are highly sensitive to changes in illumination, background noise, and image quality. Moreover, most algorithms are designed for rigid geometries and are difficult to accurately represent the complex and irregular morphology of fouling. Summary of the Invention
[0004] Purpose of the invention: The purpose of this invention is to provide a method, system, device and medium for quantifying the geometric features of underwater structure surface attachments, which achieves high efficiency and high accuracy in extracting quantitative features of attachments from disordered images.
[0005] Technical solution: To achieve the above objectives, the present invention provides a method for quantifying the geometric features of underwater structure surface attachments, comprising the following steps:
[0006] S1. Acquire images of underwater pile foundations containing surface attachments, reconstruct and correct the 3D point cloud model of the underwater pile foundations containing surface attachments. Simultaneously, a 3D point cloud model of the underwater pile foundation without surface attachments was obtained by measurement. Then, the two point cloud models were registered to obtain a reconstructed point cloud of the underwater pile foundation with surface attachments and unified coordinates. Reference point cloud of underwater pile foundations without surface attachments ;
[0007] S2, Based on the reconstructed point cloud and reference surface point cloud Based on the distribution characteristics of point clouds, the reconstruction of point clouds is performed. Perform coarse segmentation to obtain coarsely segmented point clouds. Then, based on the RGB color information of the point cloud, the coarsely segmented point cloud is further processed. Fine segmentation was performed to obtain the point cloud of surface attachments. ;
[0008] S3. Use cylindrical point cloud downsampling method to analyze the point cloud of surface attachments. and reference surface point cloud Simplify by downsampling, and then analyze the point cloud of the downsampled surface attachments. and downsampled reference surface point cloud Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface deposits.
[0009] Optionally, step S1 specifically includes the following steps:
[0010] S1.1. Underwater pile foundation image datasets were obtained by taking close-up, full-view photos using an underwater camera. Zhang's calibration method was used to correct distortion in the image datasets. Based on the corrected image datasets, a 3D point cloud model of the underwater pile foundations, including surface attachments, was reconstructed. , of which The points are in For the first The three-dimensional coordinates of the points For the first The RGB color channel values of each point;
[0011] S1.2. The global scale factor is solved using a least-squares optimization method based on multiple known dimensions. This enables the physicalization of point cloud units and the correction of point cloud scale.
[0012] Specifically, this involves constructing the objective function.
[0013] ,
[0014] Optimize the scaling factor using the least squares method. ,
[0015] ,
[0016] In the formula, A 3D point cloud model of underwater pile foundations containing surface attachments. The Middle The distance between points, For underwater 3D point cloud model containing surface attachments The Middle The true distance between points Point-to-point quantity;
[0017] Based on global scale factor Perform coordinate correction.
[0018] ,
[0019] Three-dimensional point cloud model of underwater pile foundation containing surface attachments The underwater pile foundation 3D point cloud model was updated to the corrected model, resulting in a reconstructed point cloud of the underwater pile foundation including surface attachments. Among them, the corrected first The points are ;
[0020] S1.3. A three-dimensional point cloud model of the underwater pile foundation without surface attachments is obtained by measuring with a laser scanner, thus obtaining the reference surface point cloud. The underwater pile foundation axis was determined using the RANSAC cylindrical fitting algorithm. Then, a point cloud was reconstructed using a coordinate rigid body transformation with the axis as the Z-axis, and a feature point-based registration method was employed. Point cloud of reference surface Registration.
[0021] Optionally, the registration method in step S1.3 specifically involves: based on the uniqueness of the intersection points of the three planes in the point cloud (plane-plane-surface), extracting the corrected and reconstructed point cloud respectively. Point cloud of reference surface The three intersection points in the diagram are used as salient feature matching point pairs. Then, the optimal spatial transformation parameters are estimated using the salient feature matching point pairs, where the transformation matrix is... The function is:
[0022] ,
[0023] In the formula, This represents finding the spatial transformation parameters that minimize the function; the spatial transformation parameters include the rotation matrix. Translation matrix , To reconstruct salient feature points within the point cloud, These are the significant feature points within the reference surface element. and Constitute a pair of points that match significant features;
[0024] Registration yields a reconstructed point cloud of underwater pile foundations containing surface attachments, with coordinates unified. Reference point cloud of underwater pile foundations without surface attachments Reconstructing point clouds It includes surface attachment points, underwater pile foundation points, noise points, and background points.
[0025] Optionally, step S2 specifically includes the following steps:
[0026] S2.1 Calculate the reference surface point cloud using the RANSAC cylindrical fitting function in Matlab. axial direction vector and a point on the axis Calculate and reconstruct point clouds Distance from the axis :
[0027] ,
[0028] In the formula, Let the magnitude of the vector be .
[0029] Will Sort in descending order, denoted as ;based on Point clouds are classified into surface attachment point clouds and background point clouds; a brute-force search method is used to find... The location of the two optimal inflection points is determined by iterating through the two possible inflection point locations and... Divide the data into three segments, perform linear fitting on each segment, calculate the overall fitting error, and find the two indices of the inflection points where the error is minimized. These indices are then denoted by their ordinates from largest to smallest. and Reconstructing point clouds middle satisfy The points are segmented to obtain a coarsely segmented point cloud. Point cloud after coarse segmentation This includes surface attachment points, noise points, and underwater pile foundation points;
[0030] S2.2, For point clouds after coarse segmentation An adaptive surface attachment point cloud segmentation method based on RGB color statistical characteristics is adopted. The statistical features of the RGB color values of all points are calculated, including the mean vector. and standard deviation vector Define an adaptive color threshold range for identifying point cloud regions containing surface attachments:
[0031] ,
[0032] Finally, points within the adaptive color threshold range are considered as surface attachments, and their corresponding spatial coordinates and color information are extracted to construct a surface attachment point cloud. .
[0033] Optionally, step S3 specifically includes the following steps:
[0034] S3.1. Use cylindrical point cloud downsampling method to sample the point cloud of surface attachments. and reference surface point cloud To simplify the sampling process, a cylindrical coordinate system is established, the point cloud is meshed, and sampling is performed within the mesh cells to obtain the downsampled point cloud of surface attachments. and the downsampled reference surface point cloud ;
[0035] S3.2, Point cloud based on downsampled surface attachments and the downsampled reference surface point cloud For each grid cell Feature quantification is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface adherents.
[0036] Optionally, step S3.1 specifically includes the following steps:
[0037] S3.1.1, Points in Cartesian coordinates Convert to cylindrical coordinates (lower point) The radial distance is azimuth angle is ,
[0038] S3.1.2, Mesh the point cloud. For each mesh, the first... Each angle grid for:
[0039] ,
[0040] In the formula, For the number of angle grids, For angular resolution;
[0041] No. Each height grid for:
[0042] ,
[0043] In the formula, For the number of height grids, For height resolution; This represents the minimum Z-axis coordinate of the point cloud in polar coordinates.
[0044] For the Points , No. Angle index of the grid cell to which the point belongs for:
[0045] ,
[0046] No. Height index of the grid cell to which each point belongs for:
[0047] ,
[0048] Each grid cell Defined as Each cylindrical voxel The radius parameter is downsampled by mean, and the calculation formula is as follows:
[0049] ,
[0050] Obtain the point cloud of surface attachments after downsampling. and the downsampled reference surface point cloud .
[0051] Optionally, step S3.2 specifically includes the following steps:
[0052] S3.2.1, For each grid cell The thickness of the surface attachment is defined as the distance between the point of attachment on the surface and the reference surface. The calculation formula is:
[0053] ,
[0054] In the formula, For grid cells The radius in cylindrical coordinates corresponding to the point cloud of surface attachments. For grid cells The radius of the cylindrical coordinate system corresponding to the reference surface point element;
[0055] S3.2.2 Calculate the effective area occupied by the surface attachment region on the cylindrical development diagram, remove background points and defect voids, and obtain the actual attachment area of the surface attachment. The calculation formula is:
[0056] ,
[0057] In the formula, The radius of the underwater pile foundation reference surface. The height of the underwater pile foundation reference surface. The number of grid cells occupied by the point cloud of surface attachments. The number of grids on the underwater pile foundation reference surface. , For the number of angle grids, The number of grid cells at height;
[0058] S3.2.3. Using the cylindrical area integral method, the attached volume of the surface deposit is obtained by multiplying the local thickness of each grid cell by its projected area and summing the results. The calculation formula is as follows:
[0059] ,
[0060] For high resolution, The radius of the underwater pile foundation reference surface. For angular resolution; For each grid cell Thickness of the material adhering to the lower surface.
[0061] The geometric feature quantification system for underwater structure surface attachments according to the present invention includes:
[0062] The pile foundation point cloud model reconstruction module is used to acquire underwater pile foundation images containing surface attachments, and to reconstruct and correct the 3D point cloud model of the underwater pile foundation containing surface attachments. Simultaneously, a 3D point cloud model of the underwater pile foundation without surface attachments was obtained by measurement. Then, the two point cloud models were registered to obtain a reconstructed point cloud of the underwater pile foundation with surface attachments and unified coordinates. Reference point cloud of underwater pile foundations without surface attachments ;
[0063] The attachment point cloud segmentation module is used to segment the reconstructed point cloud. and reference surface point cloud Based on the distribution characteristics of point clouds, the reconstruction of point clouds is performed. Perform coarse segmentation to obtain coarsely segmented point clouds. Then, based on the RGB color information of the point cloud, the coarsely segmented point cloud is further processed. Fine segmentation was performed to obtain the point cloud of surface attachments. ;
[0064] The attachment geometric feature extraction module is used to extract surface attachment point clouds using a cylindrical point cloud downsampling method. and reference surface point cloud Simplify by downsampling, and then analyze the point cloud of the downsampled surface attachments. and downsampled reference surface point cloud Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface deposits.
[0065] Based on the same inventive concept, the present invention provides an electronic device including a processor and a storage medium;
[0066] The storage medium is used to store instructions;
[0067] The processor is configured to operate according to the instructions to perform the steps of the method described above.
[0068] Based on the same inventive concept, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.
[0069] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0070] (1) The present invention can accurately construct the three-dimensional morphology of surface attachments and accurately and efficiently quantify the geometric features of surface attachments;
[0071] (2) This invention proposes an optimization correction method based on multiple known physical dimensions. The least squares method is used to solve the optimal scale factor and perform scale correction on the three-dimensional point cloud reconstructed from the image, converting its units into real physical units, thereby overcoming the scale ambiguity problem and improving the correction accuracy and robustness.
[0072] (3) In view of the problem of low overlap between the reconstructed point cloud and the reference point cloud, the present invention adopts a registration method based on feature points to replace the traditional iterative nearest point algorithm, thereby achieving high-precision spatial alignment between the corrected point cloud and the reference point cloud.
[0073] (4) This invention proposes a two-level segmentation strategy to accurately extract attachment point clouds: First, coarse segmentation is performed. The structural axis is determined based on the RANSAC cylindrical fitting algorithm. The distance from each point in the point cloud to the axis is calculated. Based on the distance sequence, a brute-force search method based on inflection point theory is used to initially classify the point cloud into attachments and background noise. Then, for the coarse segmentation results, an adaptive fine segmentation method based on RGB color statistical characteristics is proposed. By calculating the mean and standard deviation of the RGB channels of the point cloud, an adaptive color threshold range dominated by the green channel is constructed to accurately extract the green attachment point cloud and effectively eliminate the basic structure of the pile and residual noise.
[0074] (5) This invention proposes a fixed object feature quantization algorithm based on cylindrical point cloud downsampling. It adopts an improved radius mean downsampling strategy, that is, only the radius parameters of points in each grid cell are averaged, while the original distribution of angle and height information is preserved, which is conducive to the feature alignment of time series data. It can directly analyze the point cloud, avoiding the errors and complexity of traditional surface reconstruction methods. It has more direct and reliable results, high computational efficiency, and can reduce the complexity of cylindrical pile foundation point cloud analysis. It is particularly suitable for rapid evaluation and long-term monitoring in engineering sites. Attached Figure Description
[0075] Figure 1 This is a schematic diagram of the process of the present invention;
[0076] Figure 2 This is a flowchart illustrating the application process of the present invention. Detailed Implementation
[0077] The technical solution of the present invention will be further described below with reference to the accompanying drawings.
[0078] like Figure 1 and Figure 2 As shown, the present invention provides a method for quantifying the geometric features of underwater structure surface attachments, comprising the following steps:
[0079] S1. Acquire images of underwater pile foundations containing surface attachments, reconstruct and correct the 3D point cloud model of the underwater pile foundation containing surface attachments, and simultaneously measure and obtain the 3D point cloud model of the underwater pile foundation without surface attachments. Then, register the two point cloud models to obtain a reconstructed point cloud of the underwater pile foundation containing surface attachments with unified coordinates. Reference point cloud of underwater pile foundations without surface attachments .
[0080] Step S1 specifically includes the following steps:
[0081] S1.1. Underwater pile foundation image datasets were obtained by taking close-up, full-view photos using an underwater camera. Zhang's calibration method was used to correct distortion in the image dataset. Based on the corrected image dataset, the Colmap open-source program was used to reconstruct a 3D point cloud model of the underwater pile foundation including surface attachments. , of which The points are ,in For the first The three-dimensional coordinates of the points For the first The RGB color channel values of each point.
[0082] S1.2 To address the scale ambiguity issue in Colmap reconstruction, a least-squares optimization method based on multiple known physical dimensions is employed to solve for the global scale factor. This enables the physicalization of point cloud units and the correction of point cloud scale.
[0083] Specifically, this involves constructing the objective function.
[0084] ,
[0085] Optimize the scaling factor using the least squares method. ,
[0086] ,
[0087] In the formula, A 3D point cloud model of underwater pile foundations containing surface attachments. The Middle The distance between points, 3D point cloud model The Middle The actual distance between each pair of points can be obtained by querying. Point-to-point quantity;
[0088] Based on global scale factor Perform coordinate correction.
[0089] ,
[0090] Three-dimensional point cloud model of underwater pile foundation containing surface attachments The corrected 3D point cloud model of the underwater pile foundation is updated to obtain the corrected reconstructed point cloud. Among them, the corrected first The points are .
[0091] S1.3. A three-dimensional point cloud model of the underwater pile foundation without surface attachments is obtained by measuring with a laser scanner, thus obtaining the reference surface point cloud. The underwater pile foundation axis was determined using the RANSAC cylindrical fitting algorithm. A coordinate rigid body transformation was then performed with the axis as the Z-axis, and a feature point-based registration method was used to reconstruct the point cloud after correction. Point cloud of reference surface Registration.
[0092] The registration method is as follows: based on the uniqueness of the intersection points of the three planes in the point cloud, the corrected and reconstructed point cloud is extracted. Point cloud of reference surface The three intersection points in the diagram are used as salient feature matching point pairs. Then, the optimal spatial transformation parameters are estimated using the salient feature matching point pairs, where the transformation matrix is... The function is:
[0093] ,
[0094] In the formula, This represents finding the spatial transformation parameters that minimize the function; the spatial transformation parameters include the rotation matrix. Translation matrix , To identify salient feature points within the reconstructed point cloud after correction. These are the significant feature points within the reference surface element. and These constitute a pair of points that match significant features.
[0095] Registration yields a reconstructed point cloud of underwater pile foundations containing surface attachments, with coordinates unified. Reference point cloud of underwater pile foundations without surface attachments Reconstructing point clouds It includes surface attachment points, underwater pile foundation points, noise points, and background points.
[0096] S2, Based on the reconstructed point cloud and reference surface point cloud Based on the distribution characteristics of point clouds, the reconstruction of point clouds is performed. Perform coarse segmentation to obtain coarsely segmented point clouds. Then, based on the RGB color information of the point cloud, the coarsely segmented point cloud is further processed. Fine segmentation was performed to obtain the point cloud of surface attachments. .
[0097] Step S2 specifically includes the following steps:
[0098] S2.1 Calculate the reference surface point cloud using the RANSAC cylindrical fitting function pcfitcylinder in the Matlab program. axial direction vector and a point on the axis Calculate and reconstruct point clouds Distance from the axis :
[0099] ,
[0100] In the formula, Let the magnitude of the vector be .
[0101] Will Sort in descending order, denoted as Since the adhesion thickness of the underwater pile foundation surface is less than the distance from the background point cloud to the underwater pile foundation surface, therefore based on Point clouds are classified into surface attachment point clouds and background point clouds; a brute-force search method is used to find... The location of the two optimal inflection points is determined by iterating through the two possible inflection point locations and... Divide the data into three segments, perform linear fitting on each segment, calculate the overall fitting error, and find the two indices of the inflection points where the error is minimized. These indices are then denoted by their ordinates from largest to smallest. and ,Will middle satisfy The points are segmented to obtain a coarsely segmented point cloud. Point cloud after coarse segmentation This includes surface attachment points, noise points, and underwater pile foundation points.
[0102] S2.2, For point clouds after coarse segmentation An adaptive surface attachment point cloud segmentation method based on RGB color statistical characteristics is adopted. The statistical features of the RGB color values of all points are calculated, including the mean vector. and standard deviation vector Define an adaptive color threshold range for identifying point cloud regions containing surface attachments:
[0103] ,
[0104] Finally, points within the adaptive color threshold range are considered as surface attachments, and their corresponding spatial coordinates and color information are extracted to construct a surface attachment point cloud. This method has good adaptability and can autonomously adjust the green extraction boundary according to the statistical characteristics of the point cloud color distribution under different specimens or shooting conditions, effectively improving the accuracy and robustness of point cloud extraction of algae surface attachments.
[0105] S3. Use cylindrical point cloud downsampling method to analyze the point cloud of surface attachments. and reference surface point cloud Simplify by downsampling, and then analyze the point cloud of the downsampled surface attachments. and downsampled reference surface point cloud Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface deposits.
[0106] Step S3 specifically includes the following steps:
[0107] S3.1. Use cylindrical point cloud downsampling method to sample the point cloud of surface attachments. and reference surface point cloud To simplify the sampling process, a cylindrical coordinate system is established, the point cloud is meshed, and sampling is performed within the mesh cells to obtain the downsampled point cloud of surface attachments. and the downsampled reference surface point cloud .
[0108] Step S3.1 specifically includes the following steps:
[0109] S3.1.1, Points in Cartesian coordinates Convert to cylindrical coordinates (lower point) The radial distance is azimuth angle is .
[0110] S3.1.2. Mesh the point cloud. For each mesh, the angle mesh is as follows:
[0111] ,
[0112] In the formula, For the number of angle grids, For angular resolution;
[0113] The height grid is:
[0114] ,
[0115] In the formula, For the number of height grids, For height resolution; This represents the minimum Z-axis coordinate of the point cloud in polar coordinates.
[0116] For the Points , No. Angle index of the grid cell to which the point belongs for:
[0117] ,
[0118] No. Height index of the grid cell to which each point belongs for:
[0119] ,
[0120] Each grid cell Defined as Each cylindrical voxel Traditional methods use mean downsampling to generate representative points, but this method is difficult to align voxel features in temporal point clouds. Therefore, this invention only performs mean downsampling on the radius parameter, and the calculation formula is as follows:
[0121] ,
[0122] Obtain the point cloud of surface attachments after downsampling. and the downsampled reference surface point cloud .
[0123] S3.2, Point cloud based on downsampled surface attachments and the downsampled reference surface point cloud For each grid cell Feature quantification is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface adherents.
[0124] Step S3.2 specifically includes the following steps:
[0125] S3.2.1, For each grid cell The thickness of the surface attachment is defined as the distance between the point of attachment on the surface and the reference surface. The calculation formula is:
[0126] ,
[0127] In the formula, For grid cells The radius in cylindrical coordinates corresponding to the point cloud of surface attachments. For grid cells The radius in the cylindrical coordinate system corresponding to the reference surface point element.
[0128] S3.2.2 Calculate the effective area occupied by the surface attachment region on the cylindrical development diagram, remove background points and defect voids, and obtain the actual attachment area of the surface attachment. The calculation formula is:
[0129] ,
[0130] In the formula, The radius of the underwater pile foundation reference surface. The height of the underwater pile foundation reference surface. The number of grid cells occupied by the point cloud of surface attachments. The number of grids on the underwater pile foundation reference surface. , For the number of angle grids, This represents the number of grid cells at height.
[0131] S3.2.3. Using the cylindrical area integral method, the attached volume of the surface deposit is obtained by multiplying the local thickness of each grid cell by its projected area and summing the results. The calculation formula is as follows:
[0132] ,
[0133] For high resolution, The radius of the underwater pile foundation reference surface. For angular resolution; For each grid cell Thickness of the material adhering to the lower surface.
[0134] This invention proposes a processing flow from disordered images to quantitative features of attachments. Through a technical chain of 3D reconstruction, point cloud segmentation, and cylindrical quantization, it effectively solves the shortcomings of existing methods in terms of accuracy, efficiency, and adaptability. It is particularly suitable for the accurate quantification of the 3D morphology of attachments such as algae and shellfish on the surface of underwater structures such as bridge pile foundations.
[0135] Example 2: A geometric feature quantification system for underwater structure surface attachments according to the present invention includes:
[0136] The pile foundation point cloud model reconstruction module is used to acquire underwater pile foundation images containing surface attachments, reconstruct and correct the 3D point cloud model of the underwater pile foundation containing surface attachments, and simultaneously measure and obtain the 3D point cloud model of the underwater pile foundation without surface attachments. The two point cloud models are then registered to obtain a reconstructed point cloud of the underwater pile foundation containing surface attachments with unified coordinates. Reference point cloud of underwater pile foundations without surface attachments .
[0137] The pile foundation point cloud model reconstruction module specifically includes:
[0138] A dataset of underwater pile foundation images was obtained by capturing close-up, full-view images using an underwater camera. Zhang's calibration method was used to correct distortion in the image dataset. Based on the corrected image dataset, a 3D point cloud model of the underwater pile foundation, including surface attachments, was reconstructed using the Colmap open-source program. , of which The points are ,in For the first The three-dimensional coordinates of the points For the first The RGB color channel values of each point.
[0139] To address the scale ambiguity issue in Colmap reconstruction, a least-squares optimization method based on multiple known dimensions is employed to solve for the global scale factor. This enables the physicalization of point cloud units and the correction of point cloud scale.
[0140] Specifically, this involves constructing the objective function.
[0141] ,
[0142] Optimize the scaling factor using the least squares method. ,
[0143] ,
[0144] In the formula, A 3D point cloud model of underwater pile foundations containing surface attachments. The Middle The distance between points, 3D point cloud model The Middle The actual distance between each pair of points can be obtained by querying. Point-to-point quantity;
[0145] Based on global scale factor Perform coordinate correction.
[0146] ,
[0147] Three-dimensional point cloud model of underwater pile foundation containing surface attachments The corrected 3D point cloud model of the underwater pile foundation is updated to obtain the corrected reconstructed point cloud. Among them, the corrected first The points are .
[0148] A three-dimensional point cloud model of the underwater pile foundation without surface attachments is obtained by measuring with a laser scanner, thus obtaining the reference surface point cloud. The underwater pile foundation axis was determined using the RANSAC cylindrical fitting algorithm. A coordinate rigid body transformation was then performed with the axis as the Z-axis, and a feature point-based registration method was used to reconstruct the point cloud after correction. Point cloud of reference surface Registration;
[0149] The registration method is as follows: based on the uniqueness of the intersection points of the three planes in the point cloud, the corrected and reconstructed point cloud is extracted. Point cloud of reference surface The three intersection points in the diagram are used as salient feature matching point pairs. Then, the optimal spatial transformation parameters are estimated using the salient feature matching point pairs, where the transformation matrix is... The function is:
[0150] ,
[0151] In the formula, This represents finding the spatial transformation parameters that minimize the function; the spatial transformation parameters include the rotation matrix. Translation matrix , To identify salient feature points within the reconstructed point cloud after correction. These are the significant feature points within the reference surface element. and Constitute a pair of points that match significant features;
[0152] Registration yields a reconstructed point cloud of underwater pile foundations containing surface attachments, with coordinates unified. Reference point cloud of underwater pile foundations without surface attachments Reconstructing point clouds It includes surface attachment points, underwater pile foundation points, noise points, and background points.
[0153] The attachment point cloud segmentation module is used to segment the reconstructed point cloud. and reference surface point cloud Based on the distribution characteristics of point clouds, the reconstruction of point clouds is performed. Perform coarse segmentation to obtain coarsely segmented point clouds. Then, based on the RGB color information of the point cloud, the coarsely segmented point cloud is further processed. Fine segmentation was performed to obtain the point cloud of surface attachments. .
[0154] The attachment point cloud segmentation module specifically includes:
[0155] The reference surface point cloud was calculated using the RANSAC cylindrical fitting function pcfitcylinder in Matlab. axial direction vector and a point on the axis Calculate and reconstruct point clouds Distance from the axis :
[0156] ,
[0157] In the formula, Let the magnitude of the vector be .
[0158] Will Sort in descending order, denoted as Since the adhesion thickness of the underwater pile foundation surface is less than the distance from the background point cloud to the underwater pile foundation surface, therefore based on Point clouds are classified into surface attachment point clouds and background point clouds; a brute-force search method is used to find... The location of the two optimal inflection points is determined by iterating through the two possible inflection point locations and... Divide the data into three segments, perform linear fitting on each segment, calculate the overall fitting error, and find the two indices of the inflection points where the error is minimized. These indices are then denoted by their ordinates from largest to smallest. and ,Will middle satisfy The points are segmented to obtain a coarsely segmented point cloud. Point cloud after coarse segmentation This includes surface attachment points, noise points, and underwater pile foundation points;
[0159] For point clouds after coarse segmentation An adaptive surface attachment point cloud segmentation method based on RGB color statistical characteristics is adopted. The statistical features of the RGB color values of all points are calculated, including the mean vector. and standard deviation vector Define an adaptive color threshold range for identifying point cloud regions containing surface attachments:
[0160] ,
[0161] Finally, points within the adaptive color threshold range are considered as surface attachments, and their corresponding spatial coordinates and color information are extracted to construct a surface attachment point cloud. This method has good adaptability and can autonomously adjust the green extraction boundary according to the statistical characteristics of the point cloud color distribution under different specimens or shooting conditions, effectively improving the accuracy and robustness of point cloud extraction of algae surface attachments.
[0162] The attachment geometric feature extraction module is used to extract surface attachment point clouds using a cylindrical point cloud downsampling method. and reference surface point cloud Simplify by downsampling, and then analyze the point cloud of the downsampled surface attachments. and downsampled reference surface point cloud Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface deposits.
[0163] The attachment geometric feature extraction module specifically includes:
[0164] Cylindrical point cloud downsampling method for surface attachment point clouds and reference surface point cloud To simplify the sampling process, a cylindrical coordinate system is established, the point cloud is meshed, and sampling is performed within the mesh cells to obtain the downsampled point cloud of surface attachments. and the downsampled reference surface point cloud Specifically, it includes:
[0165] Points in Cartesian coordinates Convert to cylindrical coordinates (lower point) The radial distance is azimuth angle is ,
[0166] The point cloud is meshed, and for each mesh, its angle mesh is as follows:
[0167] ,
[0168] In the formula, For the number of angle grids, For angular resolution;
[0169] The height grid is:
[0170] ,
[0171] In the formula, For the number of height grids, For height resolution; This represents the minimum Z-axis coordinate of the point cloud in polar coordinates.
[0172] For the Points , No. Angle index of the grid cell to which the point belongs for:
[0173] ,
[0174] No. Height index of the grid cell to which each point belongs for:
[0175] ,
[0176] Each grid cell Defined as Each cylindrical voxel Traditional methods use mean downsampling to generate representative points, but this method is difficult to align voxel features in temporal point clouds. Therefore, this invention only performs mean downsampling on the radius parameter, and the calculation formula is as follows:
[0177] ,
[0178] Obtain the point cloud of surface attachments after downsampling. and the downsampled reference surface point cloud .
[0179] Based on the downsampled surface attachment point cloud and the downsampled reference surface point cloud For each grid cell Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface deposits; specifically including:
[0180] For each grid cell The thickness of the surface attachment is defined as the distance between the point of attachment on the surface and the reference surface. The calculation formula is:
[0181] ,
[0182] In the formula, For grid cells The radius in cylindrical coordinates corresponding to the point cloud of surface attachments. For grid cells The radius of the cylindrical coordinate system corresponding to the reference surface point element;
[0183] On the cylindrical unfolded diagram, the effective area occupied by the surface attachment region is counted, and background points and defect voids are removed to obtain the actual attachment area of the surface attachment. The calculation formula is:
[0184] ,
[0185] In the formula, The radius of the underwater pile foundation reference surface. The height of the underwater pile foundation reference surface. The number of grid cells occupied by the point cloud of surface attachments. The number of grids on the underwater pile foundation reference surface. , For the number of angle grids, The number of grid cells at height;
[0186] Using the cylindrical area integral method, the attached volume of the surface deposits is obtained by summing the local thickness of each grid cell multiplied by its projected area. The calculation formula is as follows:
[0187] ,
[0188] For high resolution, The radius of the underwater pile foundation reference surface. For angular resolution; For each grid cell Thickness of the material adhering to the lower surface.
[0189] Example 3: An electronic device according to the present invention includes a processor and a storage medium;
[0190] Storage media are used to store instructions;
[0191] The processor is configured to operate according to the instructions to perform the steps of the method described above.
[0192] Example 4: The computer-readable storage medium of the present invention stores a computer program thereon, which, when executed by a processor, implements the steps of the method described above.
Claims
1. A method for quantifying the geometric features of underwater structure surface attachments, characterized in that, Includes the following steps: S1. Acquire images of underwater pile foundations containing surface attachments, reconstruct and correct the 3D point cloud model of the underwater pile foundations containing surface attachments. Simultaneously, a 3D point cloud model of the underwater pile foundation without surface attachments was obtained by measurement. Then, the two point cloud models were registered to obtain a reconstructed point cloud of the underwater pile foundation with surface attachments and unified coordinates. Reference point cloud of underwater pile foundations without surface attachments ; S2, Based on the reconstructed point cloud and reference surface point cloud Based on the distribution characteristics of point clouds, the reconstruction of point clouds is performed. Perform coarse segmentation to obtain coarsely segmented point clouds. Then, based on the RGB color information of the point cloud, the coarsely segmented point cloud is further processed. Fine segmentation was performed to obtain the point cloud of surface attachments. ; Step S2 specifically includes the following steps: S2.1 Calculate the reference surface point cloud using the RANSAC cylindrical fitting function in Matlab. axial direction vector and a point on the axis Calculate and reconstruct point clouds Distance from the axis : , In the formula, Let the magnitude of the vector be . Will Sort in descending order, denoted as ;based on Point clouds are classified into surface attachment point clouds and background point clouds; a brute-force search method is used to find... The location of the two optimal inflection points is determined by iterating through the two possible inflection point locations and... Divide the data into three segments, perform linear fitting on each segment, calculate the overall fitting error, and find the two indices of the inflection points where the error is minimized. These indices are then denoted by their ordinates from largest to smallest. and Reconstructing point clouds middle satisfy The points are segmented to obtain a coarsely segmented point cloud. Point cloud after coarse segmentation This includes surface attachment points, noise points, and underwater pile foundation points; S2.2, For point clouds after coarse segmentation An adaptive surface attachment point cloud segmentation method based on RGB color statistical characteristics is adopted, and the statistical characteristics of the RGB color values of all points are calculated separately. Statistical features include the mean vector and standard deviation vector Define an adaptive color threshold range for identifying point cloud regions containing surface attachments: , Finally, points within the adaptive color threshold range are considered as surface attachments, and their corresponding spatial coordinates and color information are extracted to construct a surface attachment point cloud. ; S3. Use cylindrical point cloud downsampling method to analyze the point cloud of surface attachments. and reference surface point cloud Simplify by downsampling, and then analyze the point cloud of the downsampled surface attachments. and downsampled reference surface point cloud Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface adherents.
2. The method for quantifying the geometric features of underwater structure surface attachments according to claim 1, characterized in that, Step S1 specifically includes the following steps: S1.
1. Underwater pile foundation image datasets were obtained by taking close-up, full-view photos using an underwater camera. Zhang's calibration method was used to correct distortion in the image datasets. Based on the corrected image datasets, a 3D point cloud model of the underwater pile foundations, including surface attachments, was reconstructed. , of which The points are in For the first The three-dimensional coordinates of the points For the first The RGB color channel values of each point; S1.
2. The global scale factor is solved using a least-squares optimization method based on multiple known dimensions. This enables the physicalization of point cloud units and the correction of point cloud scale. Specifically, this involves constructing the objective function. , Optimize the scaling factor using the least squares method. , , In the formula, A 3D point cloud model of underwater pile foundations containing surface attachments. The Middle The distance between points, For underwater 3D point cloud model containing surface attachments The Middle The true distance between points Point-to-point quantity; Based on global scale factor Perform coordinate correction. , Three-dimensional point cloud model of underwater pile foundation containing surface attachments The underwater pile foundation 3D point cloud model was updated to the corrected model, resulting in a reconstructed point cloud of the underwater pile foundation including surface attachments. Among them, the corrected first The points are ; S1.
3. A three-dimensional point cloud model of the underwater pile foundation without surface attachments is obtained by measuring with a laser scanner, thus obtaining the reference surface point cloud. The underwater pile foundation axis was determined using the RANSAC cylindrical fitting algorithm. Then, a point cloud was reconstructed using a coordinate rigid body transformation with the axis as the Z-axis, and a feature point-based registration method was employed. Point cloud of reference surface Registration.
3. The method for quantifying the geometric features of underwater structure surface attachments according to claim 2, characterized in that, The registration method in step S1.3 is as follows: based on the uniqueness of the intersection points of the three planes in the point cloud, the corrected and reconstructed point cloud is extracted respectively. Point cloud of reference surface The three intersection points in the diagram are used as salient feature matching point pairs. Then, the optimal spatial transformation parameters are estimated using the salient feature matching point pairs, where the transformation matrix is... The function is: , In the formula, This represents finding the spatial transformation parameters that minimize the function; the spatial transformation parameters include the rotation matrix. Translation matrix , To reconstruct salient feature points within the point cloud, These are the significant feature points within the reference surface element. and Constitute a pair of points that match significant features; Registration yields a reconstructed point cloud of underwater pile foundations containing surface attachments, with coordinates unified. Reference point cloud of underwater pile foundations without surface attachments Reconstructing point clouds It includes surface attachment points, underwater pile foundation points, noise points, and background points.
4. The method for quantifying the geometric features of underwater structure surface attachments according to claim 3, characterized in that, Step S3 specifically includes the following steps: S3.
1. Use cylindrical point cloud downsampling method to sample the point cloud of surface attachments. and reference surface point cloud To simplify the sampling process, a cylindrical coordinate system is established, the point cloud is meshed, and sampling is performed within the mesh cells to obtain the downsampled point cloud of surface attachments. and the downsampled reference surface point cloud ; S3.2, Point cloud based on downsampled surface attachments and the downsampled reference surface point cloud For each grid cell Feature quantification is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface adherents.
5. The method for quantifying the geometric features of underwater structure surface attachments according to claim 4, characterized in that, Step S3.1 specifically includes the following steps: S3.1.1, Points in Cartesian coordinates Convert to cylindrical coordinates (lower point) The radial distance is azimuth angle is , S3.1.2, Mesh the point cloud. For each mesh, the first... Each angle grid for: , In the formula, For the number of angle grids, For angular resolution; No. Each height grid for: , In the formula, For the number of height grids, For height resolution; This represents the minimum Z-axis coordinate of the point cloud in polar coordinates. For the Points , No. Angle index of the grid cell to which the point belongs for: , No. Height index of the grid cell to which each point belongs for: , Each grid cell Defined as Each cylindrical voxel The radius parameter is downsampled by mean, and the calculation formula is as follows: , Obtain the point cloud of surface attachments after downsampling. and the downsampled reference surface point cloud .
6. The method for quantifying the geometric features of underwater structure surface attachments according to claim 5, characterized in that, Step S3.2 specifically includes the following steps: S3.2.1, For each grid cell The thickness of the surface attachment is defined as the distance between the point of attachment on the surface and the reference surface. The calculation formula is: , In the formula, For grid cells The radius in cylindrical coordinates corresponding to the point cloud of surface attachments. For grid cells The radius of the cylindrical coordinate system corresponding to the reference surface point element; S3.2.2 Calculate the effective area occupied by the surface attachment region on the cylindrical development diagram, remove background points and defect voids, and obtain the actual attachment area of the surface attachment. The calculation formula is: , In the formula, The radius of the underwater pile foundation reference surface. The height of the underwater pile foundation reference surface. The number of grid cells occupied by the point cloud of surface attachments. The number of grids on the underwater pile foundation reference surface. , For the number of angle grids, The number of grid cells at height; S3.2.
3. Using the cylindrical area integral method, the attached volume of the surface deposit is obtained by multiplying the local thickness of each grid cell by its projected area and summing the results. The calculation formula is as follows: , For high resolution, The radius of the underwater pile foundation reference surface. For angular resolution; For each grid cell Thickness of the material adhering to the lower surface.
7. A system for quantifying the geometric features of underwater structure surface attachments, characterized in that, include: The pile foundation point cloud model reconstruction module is used to acquire underwater pile foundation images containing surface attachments, and to reconstruct and correct the 3D point cloud model of the underwater pile foundation containing surface attachments. Simultaneously, a 3D point cloud model of the underwater pile foundation without surface attachments was obtained by measurement. Then, the two point cloud models were registered to obtain a reconstructed point cloud of the underwater pile foundation with surface attachments and unified coordinates. Reference point cloud of underwater pile foundations without surface attachments ; The attachment point cloud segmentation module is used to segment the reconstructed point cloud. and reference surface point cloud Based on the distribution characteristics of point clouds, the reconstruction of point clouds is performed. Perform coarse segmentation to obtain coarsely segmented point clouds. Then, based on the RGB color information of the point cloud, the coarsely segmented point cloud is further processed. Fine segmentation was performed to obtain the point cloud of surface attachments. ; The attachment point cloud segmentation module uses the RANSAC cylindrical fitting function in Matlab to calculate the reference surface point cloud. axial direction vector and a point on the axis Calculate and reconstruct point clouds Distance from the axis : , In the formula, Let the magnitude of the vector be . Will Sort in descending order, denoted as ;based on Point clouds are classified into surface attachment point clouds and background point clouds; a brute-force search method is used to find... The location of the two optimal inflection points is determined by iterating through the two possible inflection point locations and... Divide the data into three segments, perform linear fitting on each segment, calculate the overall fitting error, and find the two indices of the inflection points where the error is minimized. These indices are then denoted by their ordinates from largest to smallest. and Reconstructing point clouds middle satisfy The points are segmented to obtain a coarsely segmented point cloud. Point cloud after coarse segmentation This includes surface attachment points, noise points, and underwater pile foundation points; For point clouds after coarse segmentation An adaptive surface attachment point cloud segmentation method based on RGB color statistical characteristics is adopted. The statistical features of the RGB color values of all points are calculated, including the mean vector. and standard deviation vector Define an adaptive color threshold range for identifying point cloud regions containing surface attachments: , Finally, points within the adaptive color threshold range are considered as surface attachments, and their corresponding spatial coordinates and color information are extracted to construct a surface attachment point cloud. ; The attachment geometric feature extraction module is used to extract surface attachment point clouds using a cylindrical point cloud downsampling method. and reference surface point cloud Simplify by downsampling, and then analyze the point cloud of the downsampled surface attachments. and downsampled reference surface point cloud Feature quantization is performed to obtain the adhesion thickness, adhesion area, and adhesion volume of the surface adherents.
8. An electronic device, characterized in that, Including processor and storage media; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1 to 6.