Underwater new view angle synthesis method based on medium sampling and hybrid rendering
Through a new perspective synthesis method of media sampling and mixed rendering, the properties of underwater media and objects are predicted and rendered, the problem of underwater image quality attenuation is solved, and high-quality underwater three-dimensional scenes are generated, suitable for marine environmental monitoring and other fields.
Patent Information
- Application Number
- CN202410929689.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-01
AI Technical Summary
Forward and backscattering in underwater environments lead to image blurring and loss of details. The existing new perspective synthesis technology has failed to effectively solve the quality attenuation problem of underwater three-dimensional scenes.
A new underwater perspective synthesis method based on media sampling and hybrid rendering is adopted to predict the color and density of media and objects through a fully connected neural network, and a volume rendering formula is used to combine media and object images to form a high-quality underwater three-dimensional scene.
It effectively corrects the blur and detail loss of underwater images, and generates realistic underwater three-dimensional scenes, which are suitable for marine environmental monitoring and resource exploration and other fields.
Smart Images

Figure CN118887102A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of underwater image processing, and in particular to a method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering. Background Art
[0002] The physical properties of the underwater environment pose a great challenge to underwater image processing. Due to the absorption and scattering properties of water molecules, images collected underwater are often affected by quality degradation. In this process, forward scattering and backscattering are identified as the main quality reduction factors. Forward scattering causes the image to be blurred, while backscattering obscures the details of the image. Existing new perspective synthesis technologies do not fully consider the quality attenuation of underwater images. If the attenuated underwater images are directly used to train the neural radiation field, the expressed three-dimensional scene will be affected by color deviation and blur at a distance. In the fields of marine environmental monitoring, marine ecological protection, archeology, and marine resource exploration, it is crucial to express high-quality underwater three-dimensional scenes.
[0003] In order to address the adverse effects of underwater environments on image quality, researchers are committed to developing various technologies and methods. For example, in the face of the challenges of forward scattering and backscattering, people have developed a variety of image enhancement algorithms, including deblurring, denoising, image restoration and enhancement methods to improve the clarity and visibility of underwater images. In the face of the challenge of underwater three-dimensional scenes being affected by the medium, people have studied the physical formulas of underwater imaging embedded in the neural radiation field to remove the medium effect. Summary of the invention
[0004] According to the above-mentioned technical problem of the adverse effect of underwater environment on image quality, a new underwater perspective synthesis method based on medium sampling and hybrid rendering is provided.
[0005] The technical means adopted by the present invention are as follows:
[0006] A method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering includes the following steps:
[0007] S01: Obtain a dataset of underwater low-quality images of a single scene, and estimate the camera pose of the underwater low-quality image data; pair each image in the underwater low-quality image dataset with each image and the corresponding estimated pose data, and randomly divide the paired data into a training set and a validation set according to a certain ratio;
[0008] S02: Calculating the camera ray vector emitted by the camera to the imaging plane according to the camera pose estimated data;
[0009] S03: evenly setting a number of medium sampling points on the camera ray vector obtained in S02 for sampling, and calculating the three-dimensional position data of the medium sampling points;
[0010] S04: evenly setting a number of object sampling points on the camera ray vector obtained in S02 for sampling, and calculating the three-dimensional position data of the object sampling points;
[0011] S05: Input the three-dimensional position data of the medium sampling point obtained in S03 into the fully connected neural network to obtain the color c of the medium in the three-dimensional space med , the density of the medium σ med ;
[0012] S06: Input the three-dimensional position data of the object sampling point obtained in S04 into the fully connected neural network to obtain the color C of the object in the three-dimensional space obj , the density of the object σ obj ;
[0013] S07: According to the volume rendering formula, the color c of the medium in the three-dimensional space obtained in S05 is converted into med and the density of the medium σ med Perform integration to obtain the rendered underwater medium image;
[0014] S08: The color c of the object in the three-dimensional space obtained in S06 is converted into obj and the density of the object σ obj Perform integration to obtain the rendered image of the underwater object;
[0015] S09: combining the underwater medium image with the underwater object image to form a complete underwater image, calculating the reconstruction loss between the complete underwater image and the real underwater image, and waiting for the reconstruction loss to converge to obtain the final underwater new perspective synthesis model.
[0016] Furthermore, in S01, the camera pose estimation is performed on the underwater low-quality image dataset using COLMAP software.
[0017] Furthermore, in S02, the camera ray calculation method is:
[0018] Ray=(x,y,z) pixel -(x,y,z) camera ;
[0019] Among them, (x, y, Z) pixel Represents the three-dimensional space coordinates of the target pixel position, (x, y, z) camera Represents the three-dimensional space coordinates of the camera center, and Ray represents the vector of the camera ray.
[0020] Furthermore, in S03, the method for calculating the medium sampling point data on the camera is:
[0021]
[0022] Among them, (x, y, z) med represents the medium sampling point on the camera ray, d uniform Represents the sampling distance of the medium uniformly distributed on the camera ray, Ray represents the vector of the camera ray, |Ray| represents the vector length of the camera ray, (x, y, z) camera Represents the 3D space coordinate position of the camera origin.
[0023] Furthermore, in S04, the method for calculating the object sampling point data on the camera is:
[0024]
[0025] Among them, (x, y, z) obj represents the object sampling point on the camera ray, d represents the sampling distance of the object distributed on the camera ray, |Ray| represents the vector length of the camera ray, (x,y,z) cdmera Represents the 3D space position of the camera origin.
[0026] Furthermore, in S05, the color c of the medium in the three-dimensional space med , the density of the medium σ med The calculation formula is:
[0027] α med =MLP med ((x,y,z) med );
[0028] σ med =Variable(·);
[0029] β med =MLP med (α med ,Ray);
[0030] c med =Color med (β med );
[0031] Among them, MLP med () represents a fully connected neural network for predicting medium properties, α med represents the output of the neural network, σ med Represents the density of the medium in space, Variable() represents the optimizable variable used to predict the density of sampling points; βmed represents the output of the medium fully connected neural network, c med Indicates the color of the medium in space, Color med () represents a fully connected neural network used to predict the color of the medium sampling point; (x, y, z) med Represents a medium sampling point on a camera ray.
[0032] Furthermore, in S06, the color c of the object in the three-dimensional space obj , the density of the object σ obj The calculation formula is:
[0033] α obj =MLP obj ((x,y,z) obj );
[0034] σ obj =Density obj (α obj );
[0035] β obj =MLP obj (α obj ,Ray);
[0036] c obj =Color obj (β obj );
[0037] Among them, MLP obj () represents a fully connected neural network for predicting object attributes, α obj represents the output of the neural network, σ obj Indicates the density of objects in space; Density obj () represents a fully connected neural network used to predict the density of object sampling points, β obj represents the output of the fully connected neural network of the object, c obj Represents the color of an object in space, Color obj () represents a fully connected neural network used to predict the color of the object sampling point; (x, y, z) obj Represents an object sampling point on a camera ray.
[0038] Furthermore, in S07, the volume rendering formula of the underwater medium image is:
[0039]
[0040] in, represents the underwater medium rendering color of the pixel on the target plane of the camera ray r, N represents the total number of sampling points on a single ray, T(i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, that is, the probability that the camera ray is blocked at this sampling point, represents the spatial density at the jth sampling point on the ray, δ i Indicates the spacing between sampling points on the camera ray.
[0041] Furthermore, in S08, the volume rendering formula of the underwater object image is:
[0042]
[0043] in, represents the underwater object rendering color of the pixel on the target plane of the camera ray r, N represents the total number of sampling points on a single ray, T(i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, that is, the probability that the camera ray is blocked at this sampling point, represents the spatial density at the jth sampling point on the ray, δ i Indicates the spacing between sampling points on the camera ray.
[0044] Furthermore, in S09, the reconstruction loss function formula is:
[0045]
[0046] Among them, r represents a single pixel, R represents the total set of pixels, and C(r) represents the true value of the underwater pixel. Indicates the color of the rendered underwater medium; Indicates the color of the rendered underwater object, L C Represents the reconstruction loss
[0047] Compared with the prior art, the present invention has the following advantages:
[0048] In order to solve the problem of detail loss and imaging blur caused by medium effects in underwater three-dimensional scene expression, the present invention proposes to use additional sampling points to capture the medium in the scene, and to obtain a realistic underwater three-dimensional scene by rendering and combining the medium sampling points and the object sampling points separately. In the imaging process, the generation of underwater degraded images and corresponding underwater restored images can be controlled by controlling whether the medium interference part is added to the volume rendering formula.
[0049] Based on the above reasons, the present invention is widely promoted in the field of underwater image restoration, and is particularly suitable for underwater three-dimensional scene perception tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0051] Figure 1 It is a model flow chart of the present invention.
[0052] Figure 2 The figure is a comparison of the reconstruction effect of the present invention and other algorithms for real underwater images. Among them, (a) represents a real image of an underwater scene, (b) represents a new perspective synthesis result using the Seathru-NeRF algorithm, (c) represents a new perspective synthesis result using the 3DGS (3D Gaussian splatting.) algorithm, (d) represents a new perspective synthesis result using the Mip-splatting algorithm, (e) represents a new perspective synthesis result using the Zipnerf algorithm, and (f) represents a new perspective synthesis result using the present invention.
[0053] Figure 3 The figure is a comparison of the reconstruction effect of the present invention and other algorithms for synthesizing underwater images. Among them, (a) represents the synthesized underwater scene image, (b) represents the new perspective synthesis result using the Seathru-NeRF algorithm method, (c) represents the new perspective synthesis result using the 3DGS (3D Gaussian splatting.) algorithm method, (d) represents the result of synthesizing the new perspective using the Mip-splatting algorithm, (e) represents the result of synthesizing the new perspective using the Zipnerf algorithm, and (f) represents the result of synthesizing the new perspective using the present invention. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0056] like Figure 1 As shown, the present invention provides a method for synthesizing a new underwater perspective based on medium sampling and hybrid rendering, comprising the following steps:
[0057] S01: Obtain an underwater low-quality image dataset of a single scene, and estimate the camera pose of the underwater low-quality image data; pair each image in the underwater low-quality image dataset with each image and the corresponding estimated pose data, and randomly divide the paired data into a training set and a validation set according to a certain ratio; in this application, the certain ratio is set to 9:1.
[0058] S02: Calculating the camera ray vector emitted by the camera to the imaging plane according to the camera pose estimated data;
[0059] S03: evenly setting a number of medium sampling points on the camera ray vector obtained in S02 for sampling, and calculating the three-dimensional position data of the medium sampling points;
[0060] S04: evenly setting a number of object sampling points on the camera ray vector obtained in S02 for sampling, and calculating the three-dimensional position data of the object sampling points;
[0061] S05: Input the three-dimensional position data of the medium sampling point obtained in S03 into the fully connected neural network to obtain the color c of the medium in the three-dimensional space med , the density of the medium σ med ;
[0062] S06: Input the three-dimensional position data of the object sampling point obtained in S04 into the fully connected neural network to obtain the color c of the object in the three-dimensional space obj , the density of the object σ obj ;
[0063] S07: According to the volume rendering formula, the color c of the medium in the three-dimensional space obtained in S05 is converted into medand the density of the medium σ med Perform integration to obtain the rendered underwater medium image;
[0064] S08: The color c of the object in the three-dimensional space obtained in S06 is converted into obj and the density of the object σ obj Perform integration to obtain the rendered image of the underwater object;
[0065] S09: combining the underwater medium image with the underwater object image to form a complete underwater image, calculating the reconstruction loss between the complete underwater image and the real underwater image, and waiting for the reconstruction loss to converge to obtain the final underwater new perspective synthesis model.
[0066] As a preferred implementation, in the present application, in S01, the camera pose estimation is performed on the underwater low-quality image dataset using COLMAP software.
[0067] As a preferred implementation, in S02, the camera ray calculation method is:
[0068] Ray=(x,y,z) pixel -(x,y,z) camera ;
[0069] Among them, (x, y, z) pixel Represents the three-dimensional space coordinates of the target pixel position, (x, y, z) camera Represents the three-dimensional space coordinates of the camera center, and Ray represents the vector of the camera ray.
[0070] Preferably, in S03, the method for calculating the medium sampling point data on the camera is:
[0071]
[0072] Among them, (x, y, z) med represents the medium sampling point on the camera ray, d uniform Represents the sampling distance of the medium uniformly distributed on the camera ray, Ray represents the vector of the camera ray, |Ray| represents the vector length of the camera ray, (x, y, z) camera Represents the 3D space coordinate position of the camera origin.
[0073] As a preferred implementation, in the present application, in S04, the method for calculating the object sampling point data on the camera is:
[0074]
[0075] Among them, (x, y, z) objrepresents the object sampling point on the camera ray, d represents the sampling distance of the object distributed on the camera ray, |Ray| represents the vector length of the camera ray, (x,y,z) camera Represents the 3D space position of the camera origin.
[0076] As a preferred embodiment, in the present application, in S05, the color c of the medium in the three-dimensional space med , the density of the medium σ med The calculation formula is:
[0077] α med =MLP med ((x,y,z) med );
[0078] σ med =Variable(·);
[0079] β med =MLP med (α ded ,Ray);
[0080] c med =Color med ( med );
[0081] Among them, MLP med () represents a fully connected neural network for predicting medium properties, α med represents the output of the neural network, σ med Represents the density of the medium in space, Variable() represents the optimizable variable used to predict the density of sampling points; β med represents the output of the medium fully connected neural network, c med Indicates the color of the medium in space, Color med () represents a fully connected neural network used to predict the color of the medium sampling point; (x, y, z) med Represents a medium sampling point on a camera ray.
[0082] As a preferred embodiment, in the present application, in S06, the color c of the object in the three-dimensional space is obj , the density of the object σ obj The calculation formula is:
[0083] α obj =MLP obj ((x,y,z) obj );
[0084] σ obj =Density obj (α obj);
[0085] β obj =MLP obj (α obj ,Ray);
[0086] c obj =Color obj (β obj );
[0087] Among them, MLP obj () represents a fully connected neural network for predicting object attributes, α obj represents the output of the neural network, σ obj Indicates the density of objects in space; Density obj () represents a fully connected neural network used to predict the density of object sampling points, β obj represents the output of the fully connected neural network of the object, c obj Represents the color of an object in space, Color obj () represents a fully connected neural network used to predict the color of the object sampling point; (x, y, z) obj Represents an object sampling point on a camera ray.
[0088] As a preferred implementation, in S07, the volume rendering formula of the underwater medium image is:
[0089]
[0090] in, represents the underwater medium rendering color of the pixel on the target plane of the camera ray r, N represents the total number of sampling points on a single ray, T(i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, that is, the probability that the camera ray is blocked at this sampling point, represents the spatial density at the jth sampling point on the ray, δ i Indicates the spacing between sampling points on the camera ray.
[0091] As a preferred implementation, in the present application, in S08, the volume rendering formula of the underwater object image is:
[0092]
[0093]
[0094] in, represents the underwater object rendering color of the pixel on the target plane of the camera ray r, N represents the total number of sampling points on a single ray, T(i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, that is, the probability that the camera ray is blocked at this sampling point, represents the spatial density at the jth sampling point on the ray, δ i Indicates the spacing between sampling points on the camera ray.
[0095] Preferably, in S09, the reconstruction loss function formula is:
[0096]
[0097] Among them, r represents a single pixel, R represents the total set of pixels, and C(r) represents the true value of the underwater pixel. Indicates the color of the rendered underwater medium; Indicates the color of the rendered underwater object, L C represents the reconstruction loss.
[0098] In order to verify the generalization of the present invention to complex underwater scenes, underwater scenes of different scenes are selected as test sets, and the experimental results of the Seathru-NeRF (Neural Radiance Fields in Scattering Media) algorithm, 3DGS (3DGaussian Splatting.) algorithm, Mip-splatting algorithm (Alias-free 3DGaussian Splatting.) algorithm, and Zipnerf (Anti-Aliased Grid-Based Neural RadianceFields) algorithm are compared and analyzed from both qualitative and quantitative aspects.
[0099] Example 1
[0100] like Figure 2 As shown, the present invention provides a comparison diagram of reconstruction effects of images captured in underwater scenes with other algorithms. The result diagram of the Seathru-nerf algorithm has a poor reconstruction effect at a distance, with blurred imaging and background tearing problems. The 3DGS algorithm incorrectly predicts the medium as an object, causing errors in the reconstruction of the reconstructed image at a distance. The Mipsplatting algorithm alleviates the problem of reconstruction distortion, but still reconstructs the medium as an object, resulting in erroneous reconstruction results in the distance of the scene. The Zipnerf algorithm fails to take into account the medium interference in the scene, and the reconstructed image has background tearing problems. The algorithm of the present invention corrects the quality problem of the synthesized image while ensuring that the synthesized new perspective image does not lose details.
[0101] like Figure 3 As shown, the present invention provides a comparison diagram of the reconstruction effects of images captured in underwater synthetic scenes with other algorithms. The result diagram of the Seathru-nerf algorithm has a poor reconstruction effect at a distance, with blurred imaging and background tearing problems. The 3DGS algorithm incorrectly predicts the medium as an object, causing errors in the reconstruction of the reconstructed image at a distance. The Mipsplatting algorithm alleviates the problem of reconstruction distortion, but still reconstructs the medium as an object, resulting in erroneous reconstruction results in the distance of the scene. The Zipnerf algorithm fails to take into account the medium interference in the scene, and the reconstructed image has background tearing problems. The algorithm of the present invention corrects the quality problem of the synthetic image while ensuring that the synthesized new perspective image does not lose details.
[0102] This embodiment compares the experimental results of different algorithms from three objective indicators: PSNR, SSIM, and LPIPS; PSNR represents the ratio of the maximum possible signal power to the destructive noise power that affects its representation accuracy. SSIM describes the similarity of two pictures from three aspects: brightness, contrast, and structure. LPIPS represents the similarity of images perceived from the features of the two images. This can be seen from Table 1.
[0103] However, the new perspective images synthesized by this method are significantly improved compared to the results of other methods, and have achieved the highest objective index results among all new perspective synthesis methods. The present invention mainly uses degraded underwater images to establish underwater neural radiation fields. By controlling the number and properties of sampling points used to capture the medium during the sampling process, and rendering them as a mixture with the sampling points of the captured object, a new perspective image of the underwater scene is obtained. Therefore, the present invention has greatly improved the PSNR, SSIM and LPIPS indicators of the original image, and is superior to other underwater new perspective synthesis methods.
[0104] Table 1 The processing results of the model of the present invention and other advanced algorithms Figure 3 PSNR and SSIM comparison on
[0105]
[0106] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A new underwater perspective synthesis method based on medium sampling and hybrid rendering, characterized in that: The following steps are involved: S01: Obtain a dataset of underwater low-quality images of a single scene, and estimate the camera pose of the underwater low-quality image data; pair each image in the underwater low-quality image dataset with each image and the corresponding estimated pose data, and randomly divide the paired data into a training set and a validation set according to a certain ratio; S02: Calculating the camera ray vector emitted by the camera to the imaging plane according to the camera pose estimated data; S03: evenly setting a number of medium sampling points on the camera ray vector obtained in S02 for sampling, and calculating the three-dimensional position data of the medium sampling points; S04: evenly setting a number of object sampling points on the camera ray vector obtained in S02 for sampling, and calculating the three-dimensional position data of the object sampling points; S05: Input the three-dimensional position data of the medium sampling point obtained in S03 into the fully connected neural network to obtain the color c of the medium in the three-dimensional space med , the density of the medium σ med ; S06: Input the three-dimensional position data of the object sampling point obtained in S04 into the fully connected neural network to obtain the color c of the object in the three-dimensional space obj , the density of the object σ obj ; S07: According to the volume rendering formula, the color c of the medium in the three-dimensional space obtained in S05 is converted into med and the density of the medium σ med Perform integration to obtain the rendered underwater medium image; S08: The color c of the object in the three-dimensional space obtained in S06 is converted into obj and the density of the object σ obj Perform integration to obtain the rendered image of the underwater object; S09: combining the underwater medium image with the underwater object image to form a complete underwater image, calculating the reconstruction loss between the complete underwater image and the real underwater image, and waiting for the reconstruction loss to converge to obtain the final underwater new perspective synthesis model.
2. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S01, the camera pose estimation is performed on the underwater low-quality image dataset using COLMAP software.
3. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S02, the camera ray calculation method is: Ray=(x,y,z) pixel -(x,y,z) camera ; Among them, (x, y, z) pixel Represents the three-dimensional space coordinates of the target pixel position, (x, y, z) camera Represents the three-dimensional space coordinates of the camera center, and Ray represents the vector of the camera ray.
4. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S03, the method for calculating the medium sampling point data on the camera is: Among them, (x, y, z) med represents the medium sampling point on the camera ray, d uniform Represents the sampling distance of the medium uniformly distributed on the camera ray, Ray represents the vector of the camera ray, |Ray| represents the vector length of the camera ray, (x, y, z) camera Represents the 3D space coordinate position of the camera origin.
5. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S04, the method for calculating the object sampling point data on the camera is: Among them, (x, y, z) obj represents the object sampling point on the camera ray, d represents the sampling distance of the object distributed on the camera ray, |Ray| represents the vector length of the camera ray, (x, y, z) camera Represents the 3D space position of the camera origin.
6. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S05, the color c of the medium in the three-dimensional space med , the density of the medium σ med The calculation formula is: α med =MLP med ((x,y,z) med ); σ med Variable(·); β med =MLP med (α med Ray); c med =Color med (β med ); Among them, MLP med ( ) represents a fully connected neural network for predicting medium properties, α med represents the output of the neural network, σ med Represents the density of the medium in space, Variable() represents the optimizable variable used to predict the density of sampling points; β med represents the output of the medium fully connected neural network, c med Indicates the color of the medium in space, Color med ( ) represents a fully connected neural network used to predict the color of the medium sampling point; (x, y, z) med Represents a medium sampling point on a camera ray.
7. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S06, the color c of the object in the three-dimensional space obj , the density of the object σ obj The calculation formula is: α obj =MLP obj ((x,y,z) obj ); s obj =Density obj (a obj ); β obj =MLP obj (α obj Ray); c obj =Color obj (β obj ); Among them, MLP obj ( ) represents a fully connected neural network for predicting object attributes, α obj represents the output of the neural network, σ obj Indicates the density of objects in space; Density obj ( ) represents a fully connected neural network used to predict the density of object sampling points, β obj represents the output of the fully connected neural network of the object, c obj Represents the color of an object in space, Color obj ( ) represents a fully connected neural network used to predict the color of the object sampling point; (x, y, z) obj Represents an object sampling point on a camera ray.
8. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S07, the volume rendering formula of the underwater medium image is: in, represents the underwater medium rendering color of the pixel on the target plane of the camera ray r, N represents the total number of sampling points on a single ray, T(i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, that is, the probability that the camera ray is blocked at this sampling point, represents the spatial density at the jth sampling point on the ray, δ i Indicates the spacing between sampling points on the camera ray.
9. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S08, the volume rendering formula of the underwater object image is: in, represents the underwater object rendering color of the pixel on the target plane of the camera ray r, N represents the total number of sampling points on a single ray, T(i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, that is, the probability that the camera ray is blocked at this sampling point, represents the spatial density at the jth sampling point on the ray, δ i Indicates the spacing between sampling points on the camera ray.
10. The method for synthesizing underwater new perspectives based on medium sampling and hybrid rendering according to claim 1, characterized in that: In S09, the reconstruction loss function formula is: Among them, r represents a single pixel, R represents the total set of pixels, and C(r) represents the true value of the underwater pixel. Indicates the color of the rendered underwater medium; Indicates the color of the rendered underwater object, L C represents the reconstruction loss.
