Rapid underwater 3D reconstruction method and system based on sonar and optical image fusion

Through the fusion method of sonar and optical images, combined with the symbolic distance field grid and the radiation characteristic grid, the highly blurred problem in the three-dimensional reconstruction of underwater sonar is solved, fast and high-precision three-dimensional shape reconstruction is achieved, and the speed and accuracy are significantly improved. .

CN118470220BActive Publication Date: 2024-09-03OCEAN UNIV OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410917489.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-03
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing underwater sonar 3D reconstruction methods suffer from a high degree of ambiguity in underwater environments, and most methods impose restrictions on robot/sensor settings or rely on costly, large labeled training sets, making it difficult to effectively perform 3D reconstruction in underwater environments. .

Method used

Using a fusion method based on sonar and optical images, through the rough reconstruction stage of the sonar image and the detail reconstruction stage of the optical image, combined with the symbolic distance field grid and the radiation characteristic grid, the volume rendering calculation formula and the marching cube method are used to extract the three-dimensional mesh of the object , achieving fast and high-precision underwater 3D reconstruction.

Benefits of technology

Achieve high-precision three-dimensional shape reconstruction of objects within 5 minutes, with a speed increase of 10 to 20 times, which is ahead of the current state-of-the-art methods, taking into account high efficiency and high accuracy, and is superior to existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470220B
    Figure CN118470220B
Patent Text Reader

Abstract

The present invention discloses a method and system for rapid underwater three-dimensional reconstruction based on the fusion of sonar and optical images, and belongs to the field of computer vision. The present invention utilizes the fusion of sonar images and optical images for three-dimensional reconstruction. The rough reconstruction stage of the sonar image is responsible for reconstructing the rough shape of the object, and the detailed reconstruction stage of the optical image is responsible for reconstructing the details of the object. The characteristics of the acoustic image and the optical image are fully utilized. The acoustic image includes more rough geometric shape information of the object, while the optical image includes more detailed information of the object. After actual verification, the present invention can reconstruct the three-dimensional shape of an object with high precision within 5 minutes. While the accuracy is ahead of the most advanced methods currently available, the speed is increased by 10 to 20 times, achieving the most advanced performance in the field of underwater three-dimensional sonar. The method and system constructed by the present invention have excellent reconstruction effects, and take into account both high efficiency and high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a rapid underwater three-dimensional reconstruction method and system based on sonar and optical image fusion, and belongs to the field of computer vision. Background Art

[0002] Forward-looking sonar is a widely used sensor for underwater robots and equipment. The main reason for using forward-looking sonar sensors is the ability to provide long-range measurements, while the range of optical cameras is severely limited in turbid water or under the sea. Their versatility has led to their inclusion in the core sensor modality of several applications, including robotic path planning, localization, and automation tasks.

[0003] The sensor outputs 2D image measurements of 3D structures by emitting acoustic pulses and measuring the energy intensity of the reflected waves. While sonar images can resolve azimuth radius and range, altitude angles are uncertain, and an object with a specific distance and azimuth can be located anywhere on the altitude arc. Therefore, the task of 3D reconstruction using forward-looking sonar can be equivalently described as the task of resolving altitude ambiguity from image readings.

[0004] Existing algorithms for 3D reconstruction from forward-looking sonar images can be divided into geometry-based, physics-based, and most recently, learning-based methods. However, most existing methods either impose limitations on the robot / sensor setup (altitude aperture, etc.); rely on volumetric meshes that are prohibitively expensive for large scenes or scenes with fine-grained geometry; or, specific to deep learning methods, require the use of large labeled training sets that are difficult to collect in underwater environments. Summary of the invention

[0005] In order to solve the problem of underwater sonar three-dimensional reconstruction, the purpose of the present invention is to provide a fast underwater three-dimensional reconstruction method and system based on sonar and optical image fusion to make up for the shortcomings of the prior art.

[0006] In order to achieve the above-mentioned invention object, the specific technical scheme adopted by the present invention is as follows:

[0007] A rapid underwater three-dimensional reconstruction method based on sonar and optical image fusion, the method comprising the following steps:

[0008] 1. Rough reconstruction stage of sonar images:

[0009] S1: Collect sonar images and calculate the scene sampling points corresponding to the pixels from the sonar image information;

[0010] S2: Establishing the signed distance field grid and the radiation characteristic grid;

[0011] S3: According to the scene sampling points corresponding to each pixel in the image calculated in S1, the signed distance value and radiation feature vector of the sampling point are obtained, and the radiation intensity of the sampling point is calculated;

[0012] S4: Calculate the radiation intensity of the pixel through the sampling point attributes obtained in S3 and the volume rendering calculation formula;

[0013] S5: Calculate the loss function of the rough reconstruction stage of the sonar image, optimize the signed distance field grid, radiation feature grid and radiation intensity decoder;

[0014] 2. Optical image detail reconstruction stage:

[0015] S6: Collect the optical image, process the optical image into a single-channel grayscale value, and calculate the scene sampling point corresponding to the pixel from the image information;

[0016] S7: Obtain the signed distance value and radiation characteristic vector of the scene sampling point, and calculate the radiation intensity of the sampling point;

[0017] S8: Calculate the radiation intensity of the pixel through the sampling point attributes obtained in S7 and the volume rendering calculation formula;

[0018] S9: Calculate the loss function and optimize the signed distance field grid, radiation feature grid and radiation intensity decoder;

[0019] S10: Through the marching cube method, the object 3D grid is extracted from the signed distance field grid to complete the 3D reconstruction.

[0020] Furthermore, the S1 is specifically:

[0021] S1-1: First, select the forward-looking sonar dataset, which includes several sonar images and the transformation matrix , the minimum operating radius of the sonar equipment and maximum working radius , elevation angle and horizontal angle ; Sonar image Contains, scope and direction Corresponding pixels, each pixel value and the arc corresponding to the pixel All reflection points is proportional to the sum of the sound energies;

[0022] S1-2: In the sonar image In order to obtain a balanced dataset of zero and non-zero intensity samples when processing images, we randomly sample image pixels, and the intensity Greater than a certain threshold (which can be set by yourself, such as 0.3) pixels; is the set of all sampled pixels in the dataset; for each pixel , use uniform sampling to obtain sampling points along the arc; set the elevation range The equidistance discretization is Angles, get a set of points on the arc ;

[0023] S1-3: For each sampling point , first construct the sonar acoustic ray , which starts at the acoustic center of the sonar and ends at , and then randomly sample along each ray points, get the point set ; Point set Constitute along the ray points (along the ray points + 1 point on the arc); the number of sampling points corresponding to each pixel is ;

[0024] S1-4: Point Expressed in spherical coordinates in the local sonar coordinate system , r represents the radial distance, θ represents the azimuth, Ф represents the polar angle; therefore it needs to be re-expressed in a global reference frame common to all sonars; convert the sample points to Cartesian coordinates:

[0025] ;

[0026] The sampling point is represented in the Cartesian coordinate system as (x, y, z), where x, y, and z are the values ​​of the point on the x, y, and z axes respectively;

[0027] Then by transforming the matrix Multiply and map to the world coordinate system, where is the rotation matrix of the local sonar coordinate system relative to the world coordinate system, is the offset of the origin of the local sonar coordinate system relative to the origin of the world coordinate system; the generated sampling point set is represented in the world coordinate system as { }, the direction of each ray is defined by a unit vector as follows:

[0028] .

[0029] Furthermore, the S2 is specifically:

[0030] Create a scene information Signed Distance Field Grid and radiation feature grid , the lengths of the grid on the three axes are , the number of cubic voxels in the grid is , voxel side length ; The number of voxels on the X, Y, and Z axes ;

[0031] The grid storage length is 1 Signed distance value,The signed distance function is a continuous function. For a given spatial point, the output point is the distance to the nearest surface of the object. Its sign indicates whether the point is inside (negative) or outside (positive) the surface of the object.

[0032] The grid stores a 16-length radiation intensity feature vector, which can then be decoded by the radiation decoder Get the radiation intensity at the sampling point.

[0033] Furthermore, the S3 is specifically:

[0034] S3-1: Pixel The corresponding sampling point set , the size is , for the points in the set , according to the previously obtained Location ,direction , the distance to the next adjacent sampling point , get the signed distance value , the radiation intensity eigenvector is , Function is in the grid The three interpolation methods are used to obtain The value of the point;

[0035] S3-2: Next calculation Gradient of a point , for Coordinates of the point The signed distance value at the point ;

[0036] S3-3: Set the sampling point Location ,direction ,gradient , the radiation intensity vector Input Radiance Decoder In the decoder, there are 5 layers of fully connected layers with a length of 32, and the radiation intensity of the output sampling point is .

[0037] Furthermore, the S4 is specifically:

[0038] After obtaining the above information, the sampling point Location ,direction , the normal vector , distance value ,and The next neighbor of , calculate the opacity of the sampling point , the calculation formula is as follows:

[0039] ;

[0040] in for Activation function.

[0041] Next, calculate the sampling points on the arc Transmittance :

[0042] ;

[0043] Next, calculate the pixels The radiation intensity :

[0044] ;

[0045] Refers to the sampling point The radiation intensity at .

[0046] Furthermore, the S5 is specifically:

[0047] The network loss function in the rough optimization stage of sonar images includes radiation intensity loss and implicit geometric regularization loss , as follows:

[0048] ;

[0049] ;

[0050] Refers to the number of pixels randomly sampled on the sonar image. refers to the number of pixels whose intensity is greater than the set threshold, P refers to the set of sampled pixels, is the rendered radiance of the pixel, is the true radiation intensity of the pixel, Refers to the number of sampling points corresponding to a single pixel, X is the set of sampling points, Refers to the normal vector at the sampling point; radiation intensity loss Encourages the predicted intensity to match the intensity of the original input sonar image; implicit geometric regularization loss For regularization Signed distance fields encourage the network to produce smooth reconstructions.

[0051] Furthermore, the S6 is specifically:

[0052] S6-1: Selecting an optical image dataset containing object detail information , which includes several optical images and transformation matrices , the camera intrinsic parameter matrix ; for image set The three-channel RGB values ​​are processed into one-channel grayscale values;

[0053] S6-2: Different from sonar images, each pixel in the optical image corresponds to a ray starting from the camera center and oriented to the pixel center. For each pixel in the image, the ray corresponding to the pixel is and Far Plane Intercept the line segment and evenly sample 64 sampling points on the line segment. Each pixel The set of sampling points corresponding to the ray is , the number is 64, and the sampling point set of all pixels is , the number is ; Calculate the coordinates of all sampling points and direction .

[0054] Further, the S7 is specifically:

[0055] S7-1: For a point in a sampling point set , based on the already obtained Location ,direction , the distance to the next adjacent sampling point , get the signed distance value , the radiation intensity eigenvector is , Function is in the grid The three interpolation methods are used to obtain The value of the point;

[0056] S7-2: Next, calculate the gradient of point x , for Coordinates of the point The signed distance value at the point ;

[0057] S7-3: Set the position of sampling point x ,direction ,gradient , the radiation intensity vector Input Radiance Decoder In the output, the radiation intensity of the sampling point x is .

[0058] Furthermore, the S8 is specifically:

[0059] S8-1: After obtaining the above information, the position of the sampling point x ,direction , the normal vector , distance value , and the next neighbor of x , calculate the opacity of sampling point x , the calculation formula is as follows:

[0060] ;

[0061] in for Activation function;

[0062] S8-2: Next, calculate the sampling point Transmittance ,in The corresponding sampling point x is in pixel Corresponding to the serial number on the light:

[0063] ;

[0064] in, for The opacity of a point;

[0065] S8-3: Next, calculate the pixel The radiation intensity :

[0066] ;

[0067] in, Refers to the set of sampling points on the light corresponding to the pixel, refers to The transmittance of a point, refers to The opacity of a point, refers to The radiation intensity at a point.

[0068] Furthermore, the S9 is specifically:

[0069] The network loss function in the computational optical image optimization phase includes radiation intensity loss and implicit geometric regularization loss , as follows:

[0070] ;

[0071] ;

[0072] Where P refers to the set of pixels in the optical image, is the number of pixels in the set P, Refers to the radiance of the pixel's rendering, Refers to the true radiance of the pixel, X refers to the set of sampling points on all pixels, refers to x The normal vector of a point, is the number of sampling points corresponding to the set X; radiation intensity loss Encourages the predicted intensity to match the intensity of the original input optical image, implicitly using a geometric regularization loss For regularization Signed distance fields encourage the network to produce smooth reconstructions.

[0073] A rapid underwater 3D reconstruction system based on sonar optical image fusion includes a data set processing module, a sonar image rough geometry reconstruction module, an optical image detail reconstruction module and a 3D grid extraction module.

[0074] The data set processing module calculates various attributes of sampling points on sonar images and optical images, including position and direction.

[0075] The sonar image rough geometry reconstruction module is used to establish a signed distance field grid and a radiation feature grid, and optimize a rough geometry shape through corresponding sampling points on the sonar image.

[0076] The optical image detail reconstruction module continues to optimize the signed distance field grid through optical image sampling points to optimize the geometric details of the object.

[0077] The three-dimensional mesh extraction module: after training, extracts the object Mesh from the signed distance field by the marching cube method.

[0078] Advantages and beneficial effects of the present invention:

[0079] The present invention utilizes the fusion of sonar images and optical images for three-dimensional reconstruction. The rough reconstruction stage of the sonar image is responsible for reconstructing the rough shape of the object, and the detailed reconstruction stage of the optical image is responsible for reconstructing the details of the object. The characteristics of the acoustic image and the optical image are fully utilized. The acoustic image includes more information on the rough geometric shape of the object, while the optical image includes more information on the detailed shape of the object.

[0080] After actual verification, the present invention can reconstruct the high-precision three-dimensional shape of an object within 5 minutes. While the accuracy is ahead of the most advanced methods currently available, the speed is increased by 10 to 20 times, achieving the most advanced performance in the field of underwater three-dimensional sonar. The method and system constructed by the present invention have excellent reconstruction effects and take into account both high efficiency and high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 It is the overall flow chart of the present invention.

[0082] Figure 2 It is a framework diagram of the present invention.

[0083] Figure 3 is the sampling method of the sampling point.

[0084] Figure 4 This is a result diagram of Example 3 of the present invention. DETAILED DESCRIPTION

[0085] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0086] Embodiment 1:

[0087] A fast underwater 3D reconstruction method based on sonar optical image fusion. The overall process is as follows: Figure 1 As shown, the following steps are included:

[0088] S1: First, the sonar image optimization stage is to prepare the forward-looking sonar data set, including 1,200 aircraft sonar images and the corresponding world coordinate transformation matrix. Pixel sampling is performed on all images to obtain a pixel set , calculate the pixel The corresponding sampling point set The sampling process is as follows Figure 3 shown.

[0089] S2: Establishing scene information Signed Distance Field Grid and radiation feature grid , the lengths of the grid on the three axes are , the number of cubic voxels in the grid is , voxel side length The number of voxels on the X, Y, and Z axes .

[0090] S3: Pixel The corresponding sampling point set , the size is , for the points in the set , according to the previously obtained Location ,direction The distance to the next adjacent sampling point , get the signed distance value , the radiation intensity eigenvector is .calculate Gradient of a point .

[0091] The sampling point Location ,direction ,gradient , the radiation intensity vector Input Radiance Decoder The radiation intensity at the output sampling point is .

[0092] S4: After obtaining the above information, the sampling point Location ,direction , the normal vector , distance value ,and The next neighbor of , calculate the opacity of the sampling point Next, calculate the sampling points on the arc Transmittance Finally, calculate the pixel The radiation intensity .

[0093] S5: Calculate the loss function including radiation intensity loss and implicit geometric regularization loss , gradient backpropagation optimizes the network.

[0094] S6: Obtaining aircraft optical image dataset , which includes several optical images and transformation matrices , the camera intrinsic parameter matrix . For image sets The three-channel RGB values ​​are processed into one-channel grayscale values.

[0095] Different from sonar images, each pixel in an optical image corresponds to a ray starting from the camera center and directed to the pixel center. For each image, the pixel set is , 64 sampling points are uniformly sampled on the line segment of the intercept ray between the near plane and the plane, and each pixel The set of sampling points corresponding to the ray is , the number is 64. The sampling point set in the optical image dataset is , the number is . Calculate the coordinates of all sampling points and direction .

[0096] S7: For points in the sampling point set , according to the previously obtained Location ,direction , the distance to the next adjacent sampling point , get the signed distance value , the radiation intensity eigenvector is , Function is in the grid The three interpolation methods are used to obtain The value of the point.

[0097] Next, calculate the gradient at point x , for Coordinates of the point The signed distance value at the point .

[0098] The position of the sampling point x ,direction ,gradient , the radiation intensity vector Input Radiance Decoder In the output, the radiation intensity of the sampling point x is .

[0099] S8: After obtaining the above information, the sampling point Location ,direction , the normal vector , distance value , and the next neighbor of x , calculate the opacity of sampling point x , the calculation formula is as follows:

[0100] ;

[0101] in for Activation function.

[0102] Next, calculate the sampling points Transmittance , where i corresponds to the number of the sampling point x on the ray corresponding to pixel P:

[0103] ;

[0104] Next, calculate the pixels The radiation intensity :

[0105] ;

[0106] S9: Calculate the network loss function in the optical image optimization stage including radiation intensity loss and implicit geometric regularization loss , gradient backpropagation optimizes the network.

[0107] S10: Perform the same processing on the pixels in the dataset image until the object is reconstructed, and finally extract the surface mesh of the object from the signed distance field mesh by the marching cube method.

[0108] Embodiment 2:

[0109] A fast underwater 3D reconstruction system based on sonar optical image fusion, the framework diagram is as follows Figure 2 As shown, it includes a data set processing module, a sonar image rough geometry reconstruction module, an optical image detail reconstruction module and a three-dimensional mesh extraction module.

[0110] The data set processing module calculates various attributes of sampling points on sonar images and optical images, including position and direction.

[0111] The sonar image rough geometry reconstruction module is used to establish a signed distance field grid and a radiation feature grid, and optimize a rough geometry shape through corresponding sampling points on the sonar image.

[0112] The optical image detail reconstruction module continues to optimize the signed distance field grid through optical image sampling points to optimize the geometric details of the object.

[0113] The three-dimensional mesh extraction module: after training, extracts the object Mesh from the signed distance field by the marching cube method.

[0114] Embodiment 3:

[0115] This embodiment is based on the above method and system for example verification. In order to verify the reconstruction effect of the model proposed by the present invention, an experiment was conducted on an aircraft data set. The following results were obtained after 5 minutes of network training: Figure 4The final results show that the model constructed by the present invention has excellent effect, taking into account both high efficiency and high accuracy.

[0116] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A rapid underwater 3D reconstruction method based on sonar and optical image fusion, characterized in that: The method comprises the following steps: S1: Collect sonar images and calculate the scene sampling points corresponding to the pixels from the sonar image information; S2: Establishing the signed distance field grid and the radiation characteristic grid; S3: According to the scene sampling points corresponding to each pixel in the image calculated in S1, the signed distance value and radiation feature vector of the sampling point are obtained, and the radiation intensity of the sampling point is calculated; specifically: S3-1: The sampling point set X corresponding to the pixel p∈P p , size is N arc_sample *N ray_sample , for a point x∈X in the set p , according to the position p of x that has been obtained x , Direction d x , the distance to the next adjacent sampling point dist x , get the signed distance value sdf x = interp(p, V), the radiation intensity characteristic vector is f x feature =interp(p,V (feature) ), interp(p, V) function is to obtain the value at point p on the grid V by triple interpolation method; S3-2: Next, calculate the gradient n of point x x =(sdf x 1+ -sdf x 1- ) / (2*s), sdf x 1± is the signed distance value at the point with coordinates (x, y, z) ± (s, s, s); S3-3: Set the position of the sampling point x to p x , direction dir x , gradient n x , radiation intensity vector f x feature In the input radiation decoder M, the decoder consists of 5 layers of full connection layers with a length of 32, and the radiation intensity m of the output sampling point x ; S4: Calculate the radiation intensity of the pixel through the sampling point attributes obtained in S3 and the volume rendering calculation formula; S5: Calculate the loss function of the rough reconstruction stage of the sonar image, optimize the signed distance field grid, radiation feature grid and radiation intensity decoder; specifically: The network loss function in the rough optimization stage of sonar images includes the radiation intensity loss L int and the implicit geometric regularization loss L eik , as follows: refers to the number of pixels randomly sampled on the sonar image I, refers to the number of pixels whose intensity is greater than the set threshold, P refers to the set of sampled pixels, is the rendered radiant intensity of pixel p, E p is the actual radiation intensity of pixel p, N sample Refers to the number of sampling points corresponding to a single pixel, X is the set of sampling points, n x Refers to the normal vector of the sampling point; radiation intensity loss L int Encourages the predicted intensity to match the intensity of the original input sonar image; implicit geometric regularization loss L eik Used to regularize the SDF signed distance field, encouraging the network to produce smooth reconstructions; S6: Collect the optical image, process the optical image into a single-channel grayscale value, and calculate the scene sampling point corresponding to the pixel from the image information; S7: Obtain the signed distance value and radiation characteristic vector of the scene sampling point, and calculate the radiation intensity of the sampling point; S8: Calculate the radiation intensity of the pixel through the sampling point attributes obtained in S7 and the volume rendering calculation formula; S9: Calculate the loss function and optimize the signed distance field grid, radiation feature grid and radiation intensity decoder; specifically: The network loss function in the computational optical image optimization stage includes the radiation intensity loss L int and the implicit geometric regularization loss L eik , as follows: Where P refers to the set of pixels in the optical image, N P is the number of pixels in the set P, Refers to the radiance of the pixel rendering, E p Refers to the true radiance of the pixel, X refers to the set of sampling points on all pixels, n x Refers to the normal vector of point x, N X is the number of sampling points corresponding to the set X; the radiation intensity loss L int Encourage the predicted intensity to match the intensity of the original input optical image, implicitly using the geometric regularization loss L eik Used to regularize the SDF signed distance field, encouraging the network to produce smooth reconstructions; S10: Through the marching cube method, the object 3D grid is extracted from the signed distance field grid to complete the 3D reconstruction.

2. The rapid underwater 3D reconstruction method according to claim 1, characterized in that: The S1 is specifically: S1-1: First, select the forward-looking sonar dataset, which includes several sonar images I and transformation matrices Minimum operating radius of sonar equipment r min and maximum working radius r max , elevation angle φ and horizontal angle θ; the sonar image I contains the range and azimuth (r i ,θ i ) corresponding to the pixel, each pixel value is related to the arc p corresponding to the pixel i =(r i ,θ i ) on all reflection points {P i =(r i ,θ i ,φ i );φ min <φ i <φ max } is proportional to the sum of the sound energies; S1-2: Random sampling on sonar image I image pixels, and the intensity I = (r i ,θ i ) is greater than the set threshold pixels; Let P be the set of all sampled pixels in the dataset; for each pixel p i ∈P, use uniform sampling to obtain sampling points along the arc; set the elevation angle range [-φ min ,φ max ] is discretized into N equal distances arc_sample Angles, get a set of points on the arc S1-3: For each sampling point P p , first construct the sonar acoustic ray The ray starts from the acoustic center of the sonar and ends at P p , and then randomly sample N along each ray rays_sample -1 point, get the point set Point Set Constitutes N along the ray R points, along the ray rays_sample -1 point plus 1 point on the arc; the number of sampling points corresponding to each pixel is N sample =N arc_sample *N ray_sample ; S1-4: Point In the local sonar coordinate system, spherical coordinates (r, θ, φ) are used, where r represents the radial distance, θ represents the azimuth, and Ф represents the polar angle; the sampling points are converted into Cartesian coordinates: x=rcos(θ)cos(φ) y=rsin(θ)cos(φ) z = rsin(φ); The sampling point is represented in the Cartesian coordinate system as (x, y, z), where x, y, and z are the values ​​of the point on the x, y, and z axes respectively; then through the transformation matrix Multiply and map to the world coordinate system, where is the rotation matrix of the local sonar coordinate system relative to the world coordinate system, is the offset of the origin of the local sonar coordinate system relative to the origin of the world coordinate system; the generated sampling point set is expressed in the world coordinate system as The direction of each ray is defined by a unit vector as follows:

3. The rapid underwater 3D reconstruction method according to claim 1, characterized in that: The S2 is specifically: Create an SDF symbol distance field grid V representing the scene information (sdf) and radiation characteristic grid V (feature) The lengths of the grid on the three axes are L x , L y , L z , the number of cubic voxels in the grid is M, and the length of the voxel edge is The number of voxels N on the x, y, and z axes x =L x / s,N y =L y / s,N z =L z / s; V (sdf) The grid stores SDF signed distance values ​​of length 1. The signed distance function is a continuous function that outputs the distance from a given spatial point to the nearest surface of the object, and its sign indicates whether the point is inside or outside the surface of the object. V (feature) The grid stores the radiation intensity feature vector of length 16, and then the radiation intensity of the sampling point is obtained through the radiation decoder.

4. The rapid underwater 3D reconstruction method according to claim 1, characterized in that: The S4 is specifically: From the position p of the sampling point x x , direction dir x , normal vector n x , distance value dist x , and the sdf of the next adjacent point of x x+1 , calculate the opacity α of the sampling point, the calculation formula is as follows: where Φ s (x) = (1 + e -sx ) -1 is the sigmoid activation function; Next, calculate the sampling point P on the arc p Transmittance T: Next, calculate the radiation intensity of pixel p in, Refers to the sampling point P p The radiation intensity at .

5. The rapid underwater 3D reconstruction method according to claim 1, characterized in that: The S6 is specifically: S6-1: Selecting optical image dataset I containing object detail information rgb , which includes several optical images and transformation matrices Camera intrinsic parameter matrix K; process the image set I into a channel value grayscale value; S6-2: For each pixel of the image, a line segment is intercepted between the near plane near and the far plane far, and the sampling is uniform on the line segment. The sampling point set of each pixel p corresponding to the ray is X p , the sampling point set of all pixels is X, and the number is N X ; Calculate the coordinates p and directions d of all sampling points.

6. The rapid underwater 3D reconstruction method according to claim 1, characterized in that: The S7 is specifically: S7-1: For a point x∈X in the sampling point set, according to the position p of x that has been obtained x , Direction d x , the distance to the next adjacent sampling point dist x , get the signed distance value sdf x = interp(p, V), the radiation intensity characteristic vector is f x feature =interp(p,V (feature) ), interp(p, V) function is to obtain the value at point p on the grid V by triple interpolation method; S7-2: Calculate the gradient n at point x x =(sdf x 1+ -sdf x 1- ) / (2*s), sdf x 1± is the signed distance value at the point with coordinates (x, y, z) ± (s, s, s); S7-3: Set the position of the sampling point x to p x , direction dir x , gradient n x , radiation intensity vector f x feature Input radiation decoder M, output radiation intensity m at sampling point x x .

7. The rapid underwater 3D reconstruction method according to claim 1, characterized in that: The S8 is specifically: S8-1: From the position p of the sampling point x x , direction dir x , normal vector n x , distance value dist x , and the sdf of the next adjacent point of x x+1 , calculate the opacity α of the sampling point x, the calculation formula is as follows: where Φ s (x) = (1 + e -sx ) -1 is the sigmoid activation function; S8-2: Calculate sampling point x i ∈X P The transmittance T x , where i corresponds to the number of the sampling point x on the ray corresponding to pixel p: in, For x j The opacity of a point; S8-3: Next, calculate the radiation intensity of pixel p Among them, X P Refers to the set of sampling points on the light corresponding to pixel p, Refers to x i The transmittance of a point, Refers to x i The opacity of a point, Refers to x i The radiation intensity at a point.

8. A rapid underwater 3D reconstruction system based on sonar and optical image fusion, using the rapid underwater 3D reconstruction method as claimed in claim 1, characterized in that: It includes a data set processing module, a sonar image rough geometry reconstruction module, an optical image detail reconstruction module, and a 3D mesh extraction module; The data set processing module calculates various attributes of the sampling points on the sonar image and the optical image, including the position and direction; The sonar image rough geometry reconstruction module: establishes a signed distance field grid and a radiation feature grid, and optimizes a rough geometric shape through corresponding sampling points on the sonar image; The optical image detail reconstruction module: continues to optimize the signed distance field grid through optical image sampling points to optimize the geometric details of the object; The three-dimensional mesh extraction module: after training, extracts the object Mesh from the signed distance field by the marching cube method.

Citation Information

Cited By

  • Underwater rock mass deterioration geometric parameter extraction method based on rover multi-source perception

    CN122945160A