An underwater inpainting novel view synthesis method based on histogram equalization guidance

By introducing a novel underwater reconstruction method based on histogram equalization, the problems of color shift and blurring caused by scattering in underwater images are solved, achieving high-quality underwater 3D scene representation. This method is applicable to fields such as marine environmental monitoring, marine ecological protection, and marine resource exploration.

CN117635448BActive Publication Date: 2026-12-04DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311683093.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2026-12-04
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

Existing novel perspective synthesis techniques have failed to effectively address the color shift and blurring issues caused by forward and backward scattering in underwater images, affecting the representation quality of underwater 3D scenes and posing challenges, particularly in fields such as marine environmental monitoring, marine ecological protection, and marine resource exploration.

Method used

A novel underwater reconstruction method based on histogram equalization is adopted. By acquiring a low-quality underwater image dataset and estimating the camera pose, camera rays and 3D position data are calculated. Fully connected neural networks are used to predict color, density and illumination attenuation. Image reconstruction and loss function optimization are performed by combining volumetric rendering formulas. Histogram equalized images are introduced as pseudo-ground images to correct color distribution.

Benefits of technology

It effectively corrects the color cast and blurring problems of underwater images, improves the expression quality of underwater 3D scenes, and enhances the clarity and visibility of images, especially performing well in underwater 3D scene perception tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117635448B_ABST
    Figure CN117635448B_ABST
Patent Text Reader

Abstract

This invention provides a novel underwater reconstruction method based on histogram equalization-guided synthesis. The invention primarily uses degraded underwater images and histogram-equalized pseudo-ground images to learn and establish an underwater ray tracing field. Details of the original underwater image are learned under supervision using the original image, and the color distribution of the reconstructed image is guided by the histogram-equalized pseudo-ground image. This tracing field accurately estimates density, color, and illumination attenuation in three-dimensional space, and the pixel colors of the target imaging plane can be rendered using a volumetric rendering formula. By controlling whether to include an illumination attenuation component in the volumetric rendering formula, the underwater images before and after reconstruction can be rendered separately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of underwater image processing technology, and more particularly to a novel perspective synthesis model for underwater restoration based on histogram equalization guidance. Background Technology

[0002] The physical properties of the underwater environment pose a significant challenge to underwater image processing. Due to the absorption and scattering characteristics of water molecules, underwater images are frequently affected by quality degradation. Forward scattering and backscattering have been identified as the main factors contributing to this degradation. Forward scattering leads to image blurring, while backscattering obscures image details. Existing novel perspective synthesis techniques do not adequately consider the quality degradation of underwater images. Directly using attenuated underwater images to train neural radiation fields results in color casts and blurring of the represented 3D scenes. Representing high-quality underwater 3D scenes is crucial in fields such as marine environmental monitoring, marine ecological protection, archaeology, and marine resource exploration. To address the adverse effects of the underwater environment on image quality, researchers have dedicated themselves to developing various techniques and methods. For example, to address the challenges of forward and backscattering, various image enhancement algorithms have been developed, including deblurring, denoising, image restoration, and enhancement methods, to improve the clarity and visibility of underwater images. Furthermore, to address the challenge of underwater 3D scenes being affected by the medium, researchers have investigated embedding physical formulas for underwater imaging into neural radiation fields to remove the medium's influence. Summary of the Invention

[0003] The physical properties of the underwater environment pose a significant challenge to underwater image processing. Due to the absorption and scattering characteristics of water molecules, underwater images are frequently affected by quality degradation. Forward scattering and backscattering have been identified as the main factors contributing to this degradation. Forward scattering leads to image blurring, while backscattering obscures image details. Existing novel perspective synthesis techniques do not adequately consider the quality degradation of underwater images. Directly using attenuated underwater images to train neural radiation fields results in color casts and blurring of the represented 3D scenes. Representing high-quality underwater 3D scenes is crucial in fields such as marine environmental monitoring, marine ecological protection, archaeology, and marine resource exploration. To address the adverse effects of the underwater environment on image quality, researchers have dedicated themselves to developing various techniques and methods. For example, to address the challenges of forward and backscattering, various image enhancement algorithms have been developed, including deblurring, denoising, image restoration, and enhancement methods, to improve the clarity and visibility of underwater images. Furthermore, to address the challenge of underwater 3D scenes being affected by the medium, researchers have investigated embedding physical formulas for underwater imaging into neural radiation fields to remove the medium's influence.

[0004] The technical means employed in this invention are as follows:

[0005] A novel underwater reconstruction method based on histogram equalization guidance includes the following steps:

[0006] S01: Obtain a low-quality underwater image dataset for a single scene and a corresponding histogram-equalized image dataset, and perform camera pose estimation on the image dataset. Randomly divide the image and the pose data corresponding to each image into a training set and a validation set in a 9:1 ratio.

[0007] S02: Calculate the camera ray data emitted by the camera onto the imaging plane based on the pose data of the image dataset;

[0008] S03: Sample several points on the camera ray obtained in S02, and calculate the three-dimensional position data of the points;

[0009] S04: Input the three-dimensional position data of the sampling points obtained in S03 into a fully connected neural network to obtain the color c and density σ in three-dimensional space;

[0010] S05: Input the three-dimensional position data of the sampling points obtained in S03 into a fully connected neural network to obtain the illumination attenuation in three-dimensional space.

[0011] S06: Integrate the color c and density σ of the three-dimensional space obtained in S04 according to the volume rendering formula to obtain the rendered water degradation image;

[0012] S07: Based on the volumetric rendering formula, combine the color c and density σ of the three-dimensional space obtained in S04 with the illumination attenuation of the three-dimensional space obtained in S05. Integrate to obtain the rendered restored image;

[0013] S08: Calculate the image reconstruction loss between the underwater image rendered in S06 and the input image, and calculate the color distribution loss between the restored image rendered in S07 and the histogram equalized image, and wait for the combined loss to converge.

[0014] Compared with the prior art, the present invention has the following advantages:

[0015] To address the impact of illumination attenuation caused by media effects in underwater 3D scene representation, this invention first proposes an underwater ray tracing field, incorporating color, density, and illumination attenuation in the underwater space, to represent the imaging scene in underwater 3D space. During the imaging process, the generation of degraded underwater images and corresponding underwater restored images can be controlled by adjusting whether or not an illumination attenuation component is included in the volumetric rendering formula.

[0016] To overcome the shortcomings of existing methods that lack supervised images, this invention introduces a histogram equalization image as a pseudo-true image. By using the histogram equalization image to guide the restored image, the restored image in the water can have the correct color distribution.

[0017] Based on the above reasons, this invention has been widely adopted in the field of underwater image restoration, and is especially suitable for underwater 3D scene perception tasks. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of the model of the present invention.

[0020] Figure 2 The images show a comparison of the restoration effects of this invention and other algorithms on images captured from water tanks. (a) represents the initial image before restoration; (b) represents the result of processing the synthesized new perspective using the CIFM+ (Improving visual perception via adaptive darkpixel prior and color correction) algorithm; (c) represents the result of processing the synthesized new perspective using the FUNIE-GAN (Fast underwater image enhancement for improved visual perception) algorithm; (d) represents the result of synthesizing the new perspective using the Seathru-NeRF (Neural radiance fields in scattering media) algorithm; (e) represents the result of synthesizing the new perspective using the Neural-Sea (Learning neural reflectance fields for true color correction of marineimagery) algorithm; and (f) represents the result of synthesizing the new perspective using this invention.

[0021] Figure 3The images show a comparison of the restoration effects of this invention and other algorithms on synthetic underwater images. (a) represents the initial image before restoration; (b) represents the result of processing the new perspective using the CIFM+ (Improving visual perception via adaptive darkpixel prior and color correction) algorithm; (c) represents the result of processing the new perspective using the FUNIE-GAN (Fast underwater image enhancement for improved visual perception) algorithm; (d) represents the result of synthesizing the new perspective using the Seathru-NeRF (Neural radiance fields in scattering media) algorithm; (e) represents the result of synthesizing the new perspective using the Neural-Sea (Learning neural reflectance fields for true color correction of marineimagery) algorithm; and (f) represents the result of synthesizing the new perspective using this invention. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] To verify the generalization ability of this invention to complex underwater scenes, underwater scenes of different types were selected as test sets. The results were then compared and analyzed qualitatively and quantitatively with those of the CIFM+ (Improving visual perception via adaptive dark pixel prior and color correction) algorithm, the FUNIE-GAN (Fast underwater image enhancement for improved visual perception) algorithm, the Seathru-NeRF (Neural radiance fields in scattering media) algorithm, and the Neural-Sea (Learning neural reflectance fields for true color correction of marine imagery) algorithm.

[0025] like Figure 1 As shown, this invention provides a novel underwater reconstruction method based on histogram equalization guidance, comprising the following steps:

[0026] S01: Obtain a low-quality underwater image dataset for a single scene and a corresponding histogram-equalized image dataset, and perform camera pose estimation on the image dataset. Randomly divide the image and the pose data corresponding to each image into a training set and a validation set in a 9:1 ratio.

[0027] S02: Calculate the camera ray data emitted by the camera onto the imaging plane based on the pose data of the image dataset;

[0028] S03: Sample several points on the camera ray obtained in S02, and calculate the three-dimensional position data of the points;

[0029] S04: Input the three-dimensional position data of the sampling points obtained in S03 into a fully connected neural network to obtain the color c and density σ in three-dimensional space;

[0030] S05: Input the three-dimensional position data of the sampling points obtained in S03 into a fully connected neural network to obtain the illumination attenuation in three-dimensional space.

[0031] S06: Integrate the color c and density σ of the three-dimensional space obtained in S04 according to the volume rendering formula to obtain the rendered water degradation image;

[0032] S07: Based on the volumetric rendering formula, combine the color c and density σ of the three-dimensional space obtained in S04 with the illumination attenuation of the three-dimensional space obtained in S05. Integrate to obtain the rendered restored image;

[0033] S08: Calculate the image reconstruction loss between the underwater image rendered in S06 and the input image, and calculate the color distribution loss between the restored image rendered in S07 and the histogram equalized image, and wait for the combined loss to converge.

[0034] In a preferred embodiment, the pose data of the S01 camera is estimated using COLMAP.

[0035] As a preferred embodiment, the method for calculating camera rays in step S02 is as follows:

[0036] Ray = (x, y, z) pixel -(x,y,z) camera ;

[0037] Where (x,y,z) pixel The three-dimensional spatial coordinates (x, y, z) represent the location of the target pixel. camera Represents the three-dimensional spatial coordinates of the camera center, and Ray represents the vector of the camera ray.

[0038] In a preferred embodiment, the method for calculating the sampling point data on the camera in step S03 is as follows:

[0039]

[0040] Where (x,y,z) sample Let (x, y, z) represent the sampling points on the camera ray, d represent the sampling distance on the camera ray, and |Ray| represent the vector length of the camera ray. camera The three-dimensional spatial position representing the origin of the camera.

[0041] In a preferred embodiment, the formulas for calculating the color c and density σ in the three-dimensional space in step S04 are as follows:

[0042] σ=MLP8((x,y,z) sample );

[0043] σ = Density(σ);

[0044] β = MLP8(σ,Ray);

[0045] c = Color(β);

[0046] Where MLP8(·) represents an eight-layer fully connected neural network, α represents the output of the neural network, Density(·) represents the fully connected neural network used to predict the density of sampling points, β represents the output of the second eight-layer fully connected neural network, and Color(·) represents the fully connected neural network used to predict the color of sampling points.

[0047] In a preferred embodiment, the illumination attenuation in three-dimensional space during step S05 The calculation formula is:

[0048]

[0049] Here, Attenuation(·) represents a fully connected neural network used to predict the illumination attenuation at sampling points.

[0050] In a preferred embodiment, the volume rendering formula for the water degradation image in step S06 is:

[0051]

[0052]

[0053] in, T represents the water degradation rendering color of a pixel on the target plane where the camera ray r is located. c (i) represents the accumulated transmission value after attenuation at each underwater sampling point of the camera ray, i.e., the probability that the camera ray is blocked at that sampling point, δ i d represents the distance between sampling points on the camera ray, and d represents the vector of the camera ray direction.

[0054] In a preferred embodiment, the volumetric rendering formula for the underwater restored image in S07 is:

[0055]

[0056]

[0057] in, Let T(i) represent the underwater rendering color of the pixel on the target plane where the camera ray r is located, and let T(i) represent the unattenuated accumulated transmission value at each underwater sampling point of the camera ray.

[0058] In a preferred embodiment, the formula for the combined loss function in step S08 is:

[0059]

[0060]

[0061] L = L C+Sinkhorn·L S ;

[0062] Where C(r) represents the ground truth value of the underwater pixel. This indicates the rendered color of the underwater pixels; C represents the rendered restored pixel color. HE (r) represents the pixel color after histogram equalization, Sinkhorn(·) represents the use of the Sinkhorn-Knopp method to calculate the Wassertein Distance of two pixel colors to measure the similarity of color distributions; L represents the model loss after combination.

[0063] Example 1

[0064] like Figure 2 As shown, this invention provides a comparison of the restoration effects of other algorithms on images captured in a water tank dataset. The CIFM+ algorithm shows poor correction at the sharp edges of rocks, and the restored image still exhibits a noticeable green color cast. The UNIE-GAN algorithm over-restores the original image, causing the restored image to appear reddish overall. The Seathru-NeRF algorithm incorrectly estimates the extent of the medium and objects, resulting in a restored image that is a deeper green than the original. The Neural-Sea algorithm is not suitable for regular datasets, appearing blurry and severely losing details in typical datasets. The algorithm of this invention corrects the color cast problem in the synthesized image while ensuring that the synthesized new perspective image does not lose details.

[0065] like Figure 3 As shown, this invention provides a comparison of the restoration effects of other algorithms on underwater synthetic images. The CIFM+ algorithm's result shows color inconsistencies in the head of the triangular dragon, producing green and white with different regional differences. The FUNIE-GAN algorithm over-restores the image colors, making the entire image appear reddish. The Seathru-NeRF algorithm fails to recover the color shift of the synthesized new perspective, resulting in a green color cast in the entire image. Due to the specific nature of the required dataset, the Neural-Sea algorithm fails to reconstruct the image well in underwater synthetic scenes, resulting in a blurry effect. The algorithm of this invention corrects the color cast problem of the synthesized image while ensuring that the synthesized new perspective image does not lose details.

[0066] This embodiment compares the experimental results of different algorithms using four objective metrics: PSNR, SSIM, LPIPS, and NRMSE. PSNR represents the ratio of the maximum possible power of a signal to the power of destructive noise that affects its representation accuracy. SSIM describes the similarity between two images in terms of brightness, contrast, and structure. LPIPS represents the similarity of images perceived from their features. NRMSE represents the pixel-wise similarity between two images. As shown in Table 1, the restored new perspective image synthesized by this method is significantly improved compared to the original image, and achieves the highest objective metric results among all methods for restoring new perspectives. This invention uses histogram equalization of the image and the original image to reconstruct the underwater ray tracing field. By controlling whether the volumetric rendering formula includes an illumination attenuation component, we can control the restored perspective before and after degradation. Therefore, this invention significantly improves the PSNR, SSIM, LPIPS, and NRMSE metrics of the original image, and is superior to other underwater image restoration and underwater new perspective synthesis methods.

[0067] Table 1 shows the processing results of the model of this invention compared with other advanced algorithms. Figure 3 PSNR and SSIM comparison

[0068]

[0069] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In the above embodiments of the present invention, the descriptions of each embodiment have their own emphasis; parts not described in detail in a certain embodiment can be referred to in the relevant descriptions of other embodiments. It should be understood that the disclosed technical content in the several embodiments provided in this application can be implemented in other ways.

[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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.