An underwater image enhancement method based on a low-coupling Retinex model of an optimization algorithm

By using a loosely coupled Retinex model based on an optimization algorithm, the problems of color cast and low brightness in underwater image enhancement are solved, and the image clarity and contrast are improved, which is superior to existing technologies.

CN117541520BActive Publication Date: 2026-11-27DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311304890.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-10
Publication Date
2026-11-27
Estimated Expiration
2043-10-10

AI Technical Summary

Technical Problem

Existing underwater image enhancement technologies are insufficient in terms of robustness, generalization, and efficiency, and are unable to effectively solve problems such as color cast, low brightness, and noise in underwater images.

Method used

A loosely coupled Retinex model based on optimization algorithms is adopted. By compensating for channel attenuation levels and stretching, combined with Rayleigh distribution to adjust pixel distribution, the illumination and reflectivity components are separated, and gamma correction is performed to finally obtain a clear underwater image.

Benefits of technology

It effectively solves the color cast problem in underwater images, improves image brightness and contrast, and achieves image enhancement and color constancy, outperforming other algorithms in terms of brightness and detail recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117541520B_ABST
    Figure CN117541520B_ABST
Patent Text Reader

Abstract

The application provides an underwater image enhancement method based on a low-coupling Retinex model of an optimization algorithm, and comprises the following steps: first, based on an RGB color space, total pixel values of each channel of an original image are subdivided to obtain a channel attenuation level; according to the level, a strong attenuation channel is compensated, a stretching factor is calculated, and then pixel distribution remapping of each channel is stretched; in order to further compensate for image brightness loss, a variational method of an optimization Retinex model is used for enhancement; first, an optimization model is constructed, and according to underwater image characteristics and various priors, a regular term and a weight component are constructed; then, a suitable solving method is selected to solve the model to obtain a light component and a reflectivity component; finally, the light component is adjusted through gamma correction, and the reflectivity component is fused to obtain a final output image. The application effectively solves the problems of color deviation and overcompensation of decay color, improves the image brightness, and avoids overexposure.
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 an underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm. Background Technology

[0002] Underwater image processing remains challenging due to the complexity of the underwater environment. In many cases, acquired underwater images suffer from color casts, blurriness, and low brightness. This is primarily because water absorbs different wavelengths of light to varying degrees; red light, with its longer wavelength, is most easily absorbed underwater. Conversely, blue and green light, with their shorter wavelengths, are less easily absorbed, leading to color casts in underwater images. Furthermore, the complex underwater environment, suspended particles, and plankton absorb and scatter light, introducing unwanted noise. Degraded underwater images have limitations in extracting valuable information from the seabed, such as for marine environmental monitoring, marine ecological protection, and marine resource exploration. Therefore, obtaining clear underwater images is crucial. Existing underwater image enhancement techniques can be categorized into three types: the first is direct image enhancement methods, such as white balance, the gray-world assumption, and limited contrast histogram equalization. However, due to the unique characteristics of the underwater environment, these direct enhancement methods have poor robustness. The second type is underwater image restoration methods based on physical models, such as dark channel prior, UDCP, and ULAP. These physical model-based methods require estimating a large number of parameters, and due to the complexity of the underwater environment, the estimated parameters are often inaccurate, resulting in poor visual quality of the restored images. The third type is deep learning-based augmentation methods, such as Water-Net, UWCNN, and PUIE. However, limited by real-world underwater datasets, deep learning-based methods exhibit poor generalization ability, require long training times, and are dependent on hardware. Summary of the Invention

[0003] To address the technical problems raised in the background section, this invention provides an underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm. The invention primarily uses compensation and stretching methods based on channel attenuation levels to correct color casts in underwater images, while avoiding over-enhancing the red channel. Rayleigh distribution is used to adjust the pixel distribution curve to obtain a natural underwater image. Then, an optimized Retinex model is constructed to separate the illumination and reflectance components from the underwater image. Finally, gamma correction is applied to adjust the illumination component, resulting in the final enhanced underwater image.

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

[0005] An underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm includes the following steps:

[0006] Step 01: Obtain the initial image and calculate the total pixels of each of the R, G, and B channels of the initial image;

[0007] Step 02: Perform channel classification on the initial image to determine the attenuation level of each channel (R, G, B) of the initial image;

[0008] Step 03: Based on the attenuation levels of each of the R, G, and B channels obtained in Step 02, compensate for the R, G, and B channels respectively;

[0009] Step 04: Based on the attenuation levels of each channel R, G, and B obtained in Step 02, and combined with the characteristics of underwater optical attenuation, calculate the gain factor corresponding to each channel R, G, and B.

[0010] Step 05: Based on the gain factors corresponding to each of the R, G, and B channels obtained in Step 04, stretch each of the R, G, and B channels and remap the pixel distribution curves of each of the R, G, and B channels to obtain a preliminary enhanced image.

[0011] Step 06: Based on the preliminary enhanced image obtained in Step 05, construct an optimization model, and combine it with underwater priors to construct regularization terms and weight matrices;

[0012] Step 07: Based on the optimization model constructed in Step 06, the block coordinate descent method is selected to solve the problem and obtain the illumination component and reflectance component of the preliminary enhanced image;

[0013] Step 08: Perform gamma correction on the illumination component, and then fuse it with the reflectivity component to obtain the final output image.

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

[0015] 1. This invention first determines the attenuation level of each channel by the total pixel value of each channel, pre-compensates for channels with strong attenuation to prevent overcompensation, then calculates the gain factor, and then stretches the pixel distribution curves of each channel of the image by combining the correlation information between channels and the gain factor to enhance the image contrast. Furthermore, the Rayleigh distribution has been proven to conform to the pixel distribution curves of underwater images; therefore, the stretched pixel distribution curves of each channel are further remapped to the curve characteristics of the Rayleigh distribution. This solves the problems of image color cast caused by different attenuation coefficients of each channel underwater, and low contrast caused by image degradation.

[0016] 2. This invention employs the Retinex method to separate the illumination component and reflectance component. Then, gamma correction is applied to the illumination component to enhance the brightness of the underwater image. Finally, it is fused with the reflectance component to obtain the final image. To better separate the illumination and reflectance components and avoid overexposure and detail loss in the enhanced image due to excessive coupling between the illumination component and the original image, an optimization model is constructed to better decouple the illumination component and the original image. Furthermore, the optimization model also considers unnecessary noise in the image caused by suspended particles in the water. This effectively solves the problem of low image brightness after light is absorbed by water.

[0017] Based on the above reasons, this invention can be widely applied in fields such as image processing. 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 schematic diagram of the overall process of the present invention.

[0020] Figure 2This image shows a comparison of the enhancement effects of this invention and other algorithms on underwater fish images. (a) represents the initial image before enhancement; (b) represents the image processed using the RGHS (Shallow-Water Image Enhancement Using Relative Global Histogram Stretching Based on Adaptive Parameter Acquisition) method; (c) represents the image processed using the ULAP (A Rapid Scene Depth Estimation Model Based on Underwater Light Attenuation Prior for Underwater Image Restoration) method; (d) represents the image processed using the ICSP (Non-uniform Illumination Underwater Image Restoration via Illumination Channel Sparsity Prior) method; (e) represents the image processed using the UNTV (A Variational Framework for Underwater Image Dehazing and Deblurring) method; and (f) represents the image processed using this invention.

[0021] Figure 3This image shows a comparison of the enhancement effects of this invention and other algorithms on underwater coral images. (a) represents the initial image before enhancement; (b) represents the image processed using the RGHS (Shallow-Water Image Enhancement Using Relative Global Histogram Stretching Based on Adaptive Parameter Acquisition) method; (c) represents the image processed using the ULAP (A Rapid Scene Depth Estimation Model Based on Underwater Light Attenuation Prior for Underwater Image Restoration) method; (d) represents the image processed using the ICSP (Non-uniform Illumination Underwater Image Restoration via Illumination Channel Sparsity Prior) method; (e) represents the image processed using the UNTV (A Variational Framework for Underwater Image Dehazing and Deblurring) method; and (f) represents the image processed using this invention.

[0022] Figure 4This image shows a comparison of the enhancement effects of this invention and other algorithms on underwater bowl-shaped images. (a) represents the initial image before enhancement; (b) represents the image processed using the RGHS (Shallow-Water Image Enhancement Using Relative Global Histogram Stretching Based on Adaptive Parameter Acquisition) method; (c) represents the image processed using the ULAP (A Rapid Scene Depth Estimation Model Based on Underwater Light Attenuation Prior for Underwater Image Restoration) method; (d) represents the image processed using the ICSP (Non-uniform Illumination Underwater Image Restoration via Illumination Channel Sparsity Prior) method; (e) represents the image processed using the UNTV (A Variational Framework for Underwater Image Dehazing and Deblurring) method; and (f) represents the image processed using this invention. Detailed Implementation

[0023] 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.

[0024] 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.

[0025] like Figure 1 As shown, this invention provides an underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm, comprising the following steps:

[0026] Step 01: Obtain the initial image and calculate the total pixels of each of the R, G, and B channels of the initial image;

[0027] Step 02: Perform channel classification on the initial image to determine the attenuation level of each channel (R, G, B) of the initial image;

[0028] Step 03: Based on the attenuation levels of each of the R, G, and B channels obtained in Step 02, compensate for the R, G, and B channels respectively;

[0029] Step 04: Based on the attenuation levels of each channel R, G, and B obtained in Step 02, and combined with the characteristics of underwater optical attenuation, calculate the gain factor corresponding to each channel R, G, and B.

[0030] Step 05: Based on the gain factors corresponding to each of the R, G, and B channels obtained in Step 04, stretch each of the R, G, and B channels and remap the pixel distribution curves of each of the R, G, and B channels to obtain a preliminary enhanced image.

[0031] Step 06: Based on the preliminary enhanced image obtained in Step 05, construct an optimization model, and combine it with underwater priors to construct regularization terms and weight matrices;

[0032] Step 07: Based on the optimization model constructed in Step 06, the block coordinate descent method is selected to solve the problem and obtain the illumination component and reflectance component of the preliminary enhanced image;

[0033] Step 08: Perform gamma correction on the illumination component, and then fuse it with the reflectivity component to obtain the final output image.

[0034] In this invention, as a preferred embodiment, the method for calculating the total pixels of each channel in step 01 and the channel classification in step 02 is as follows:

[0035]

[0036] Max c =Max(Sum R Sum G Sum B );

[0037] Med c =Med(Sum R Sum G Sum B );

[0038] Min c =Min(Sum) R Sum G Sum B );

[0039] Among them, I c This represents the initial image, where c represents the R, G, and B color channels, x and y represent the pixel positions in the horizontal and vertical directions respectively, M and N represent the dimensions of the initial image in the horizontal and vertical directions respectively, Sum represents the summation operation, Max represents the maximum value operation, Med represents the median value operation, and Min represents the minimum value operation; Max c Med c Min c These represent the sum of pixel values ​​for the weak, medium, and strong attenuation channels, respectively.

[0040] Preferably, the method for compensating for strong attenuation channels in step 03 is as follows:

[0041]

[0042] Among them, I min This represents the pixel value of the strongly attenuated channel, where x and y represent the pixel positions in the horizontal and vertical directions, respectively. I represents the average value of the weak attenuation channel and the strong attenuation channel, respectively. Minout This represents the pixel value after strong attenuation channel compensation, and α represents a constant parameter.

[0043] In a preferred embodiment, the method for obtaining the gain factor in step S04 is as follows:

[0044]

[0045] Where 'c' represents the R, G, and B color channels, and 'Max' represents the maximum color depth. c Medc Min c ω1 and ω2 represent the sum of pixel values ​​for the weak, medium, and strong attenuation channels, respectively; ω1 and ω2 represent the stretching factors for the medium and strong attenuation channels, respectively.

[0046] Preferably, the channel stretching and pixel distribution remapping in step 05 includes the following steps:

[0047] Step 051: Since different wavelengths of light have different loss rates underwater, different stretching strategies should be adopted for each color channel. The formula for solving the channel stretching is as follows:

[0048]

[0049] Among them, I max ,I med ,I min These represent the pixel values ​​of the weak, medium, and strong attenuation channels, respectively, with x and y representing the pixel positions in the horizontal and vertical directions, respectively. Max Imax Min Imin Let ω1 and ω2 represent the maximum and minimum values ​​of a pixel in the weak attenuation channel, respectively, and let I represent the gain factors of the medium and strong attenuation channels, respectively. maxout ,I medout ,I minout These represent the pixel values ​​after stretching the weak, medium, and strong attenuation channels, respectively.

[0050] Step S42: Adjust the pixel distribution curves of each channel after stretching by pixel value remapping. The Rayleigh distribution has been proven to conform to the pixel value distribution law of underwater images, so the pixel distribution of the image is adjusted to follow the Rayleigh distribution. The Rayleigh distribution probability density function and the formula for pixel value remapping are as follows:

[0051]

[0052]

[0053] Where 'o' represents input data, PDF R_Imax PDF R_Imed PDF R_Imin Let I represent the probability density functions after remapping the weak, medium, and strong attenuation channels, respectively. Let θ represent the RD parameters. max ,I med ,I min These represent the pixel values ​​of the weak, medium, and strong attenuation channels, respectively.

[0054] As a preferred embodiment, the optimization model and the corresponding regularization term and weight matrix formulas in step 06 are as follows:

[0055]

[0056] Where, ||*||2 represents calculating the L2 norm, I, R, N, S represent the illumination component, reflectivity component, noise component, and preliminary enhanced image, respectively, and α, β, λ, δ represent the constant parameters set for each regularization term. S represents the gradient of the illumination component and the reflectivity component, respectively. tmax This represents the maximum value obtained by comparing pixel values ​​in the R, G, and B color channels together; G I G R W L All represent weight matrices, and the specific construction method is as follows:

[0057]

[0058]

[0059]

[0060]

[0061] Where I represents the illumination component, and max and min represent the operations to find the maximum value, respectively. Let these represent the gradients of the illumination component and the reflectivity component, respectively. These represent the calculation of the gradients in the horizontal and vertical directions, respectively. Ω, C, σ, and ò are constant parameters, and I... tamx This represents the brightness value of the top 10% of the maximum values ​​of the illumination component.

[0062] As a preferred implementation, the steps for solving the optimization model are as follows:

[0063] Step 71: Solve for the optimal solution of the optimization model using the block coordinate descent method; decompose the optimization model into three sub-problems, with the following decomposition formula:

[0064]

[0065] Where, ||*||2 represents calculating the L2 norm, I, R, N, S represent the illumination component, reflectivity component, noise component, and preliminary enhanced image, respectively, and α, β, λ, δ represent the constant parameters set for each regularization term. S represents the gradient of the illumination component and the reflectivity component, respectively. tmax I represents the maximum value obtained by comparing pixel values ​​in the R, G, and B color channels together. K ,R K N K These represent the Kth time in which the three subproblems are solved;

[0066] Step S62: Rewrite the loss function of the three sub-problems using matrix representation, and re-represent the solution results as follows:

[0067]

[0068] Where I, R, N, and S represent the illumination component, reflectivity component, noise component, and preliminary enhanced image, respectively; α, β, λ, and δ represent constant parameters set for each regularization term; and S... tmax This represents the maximum value obtained by comparing pixel values ​​in the R, G, and B color channels together. (*) T This represents the matrix transpose operation, where H represents a five-point positive definite Laplace matrix. D represents the Toeplitz matrix of the discrete gradient operator. G represents I diagonal matrix, I K ,R K N K These represent the Kth iteration of solving the three subproblems. To achieve a time complexity of O(N), as a preferred implementation, this application uses a fast solver called preprocessed conjugate gradient (PCG) to accelerate the solution of the three rewritten subproblems.

[0069] Preferably, the formula for performing gamma correction and fusion on the illumination components to output the final image is:

[0070] I Gamma =I End γ ;

[0071] S Fin =I Gamma *R End ;

[0072] Among them, I Gamma I represents the light component after gamma correction. End ,R End These represent the illumination component and reflectivity component after solving in step 07, respectively, where γ represents the calibration constant, and S... Fin This represents the final output image.

[0073] Example

[0074] like Figure 2As shown in the diagram, this invention provides a comparison of the enhancement effects of other algorithms on underwater fish images. The experimental results show that all five algorithms restored the underwater image to some extent and improved its brightness. However, the RGHS algorithm failed to effectively improve the image brightness and still suffers from color retention. The ULAP algorithm exhibits incorrect color restoration, resulting in an overall yellowish tint to the image. The ICSP algorithm failed to effectively correct color shifts, and the enhanced image shows overexposure. The UNTV algorithm resulted in a darker image compared to the original. The algorithm of this invention better addresses the color cast problem compared to other algorithms, improving the quantity and contrast of both distant and near-field elements in the underwater image. Therefore, this invention has a better enhancement effect, effectively solving the color cast problem in underwater images, improving global contrast, and achieving contrast enhancement and color constancy.

[0075] like Figure 3 As shown, this invention provides a comparison of the enhancement effects of other algorithms on underwater corals. The experimental results show that all five algorithms restored the underwater image to some extent and improved its quality. However, while the RGHS algorithm addressed the color shift problem to some extent, it failed to effectively improve image brightness. The ULAP algorithm exhibited incorrect color restoration, and the image was darker and more yellowish compared to the original. The ICSP algorithm failed to effectively restore the true colors of the image, and the enhanced image was generally yellowish with overexposure. The UNTV algorithm resulted in a darker image and reduced contrast compared to the original. The algorithm of this invention better addresses the color shift problem compared to other algorithms, improving the brightness and contrast of both distant and near-field areas in the underwater image. Therefore, this invention has a better enhancement effect, effectively solving the color shift problem in underwater images, improving image brightness, and achieving enhanced visibility and color constancy.

[0076] like Figure 4As shown in the diagram, this invention provides a comparison of the enhancement effects of other algorithms on underwater bowl-shaped images. The experimental results show that all five algorithms restored the underwater image to some extent and improved its contrast. However, while the RGHS algorithm addressed the color shift problem to some extent, the edges of the bowls became blurred, and it failed to effectively improve the image brightness. ULAP's correction of color distortion was also insufficient, and the image was darker than the original. The ICSP algorithm failed to effectively restore the true image colors and exhibited blurred bowl edges and overall overexposure. Although the UNTV algorithm improved the image contrast, the processed image was darker than the original and still suffered from color shift. The algorithm of this invention, compared to other algorithms, better addresses the color cast problem in underwater images, improving both brightness and contrast. Therefore, this invention has a better enhancement effect, effectively solving the color cast problem in underwater images, improving global contrast, and achieving contrast enhancement and color constancy.

[0077] This embodiment compares the experimental results of different algorithms using two objective metrics: UIQM and CEQI. As shown in Tables 1 and 2, the average gradients of the ULAP, RGHS, UDCP, and the present invention are all greater than those of the original image. The PCQIs of the ULAP and the present invention are also higher than those of the original image. However, the PCQIs of the UDCP and RGHS algorithms are lower than those of the original image in some cases. This indicates that while the UDCP and RGHS algorithms effectively improve the detail information of underwater images, the contrast of some results from the UDCP and RGHS algorithms is lower than that of the original image. The present invention uses wavelength compensation to compensate for the wavelength attenuation of different colors from the water surface to the scene and from the scene to the camera, effectively enhancing image color and underwater image detail. Simultaneously, it uses a contrast-limited adaptive histogram method to improve the contrast of the underwater image. Therefore, the present invention significantly improves the average gradient and PCQI of the original image and outperforms other underwater image enhancement algorithms.

[0078] Table 1. Comparison of UIQM results between the algorithm of this invention and other algorithms.

[0079]

[0080] Table 2 Comparison of CEIQ results between the algorithm of this invention and other algorithms.

[0081]

[0082] 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.

[0083] 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 therein. Such 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.

Claims

1. An underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm, characterized in that, Includes the following steps: Step 01: Obtain the initial image and calculate the total pixels of each of the R, G, and B channels of the initial image; Step 02: Perform channel classification on the initial image to determine the attenuation level of each channel (R, G, B) of the initial image; Step 03: Based on the attenuation levels of each of the R, G, and B channels obtained in Step 02, compensate for the R, G, and B channels respectively; Step 04: Based on the attenuation levels of each channel R, G, and B obtained in Step 02, and combined with the characteristics of underwater optical attenuation, calculate the gain factor corresponding to each channel R, G, and B. Step 05: Based on the gain factors corresponding to each of the R, G, and B channels obtained in Step 04, stretch each of the R, G, and B channels and remap the pixel distribution curves of each of the R, G, and B channels to obtain a preliminary enhanced image. Step 06: Based on the preliminary enhanced image obtained in Step 05, construct an optimization model, and combine it with underwater priors to construct a regularization term and weight matrix; the formulas for the optimization model and the corresponding regularization term and weight matrix in Step 06 are as follows: ; in, This indicates a search for the L2 norm; These represent the illumination component, reflectivity component, noise component, and preliminary enhanced image, respectively. These represent the constant parameters set for each regular expression term; These represent the gradients of the illumination component and the reflectivity component, respectively. This represents the maximum value after comparing pixel values ​​in the R, G, and B color channels together. All represent weight matrices, constructed as follows: in, These represent operations to find the maximum and minimum values, respectively. These represent calculating the gradient in the horizontal and vertical directions, respectively. These are constant parameters; The brightness value of the first 10% of the maximum values ​​of the illumination component; Step 07: Based on the optimization model constructed in Step 06, the block coordinate descent method is selected to solve the problem and obtain the illumination component and reflectance component of the preliminary enhanced image; Step 08: Perform gamma correction on the illumination component, and then fuse it with the reflectivity component to obtain the final output image.

2. The underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm according to claim 1, characterized in that, The methods for calculating the total pixels of each channel in step 01 and for channel classification in step 02 are as follows: in, Indicates the initial image; This represents the three color channels: R, G, and B. These represent the pixel positions in the horizontal and vertical directions, respectively. These represent the horizontal and vertical dimensions of the initial image, respectively. This represents the summation operation; This indicates the operation to find the maximum value; This indicates the midpoint operation; This represents the operation of finding the minimum value; These represent the sum of pixel values ​​for the weak, medium, and strong attenuation channels, respectively.

3. The underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm according to claim 2, characterized in that, The method for compensating for the strong attenuation channel in step 03 is as follows: ; in, This represents the pixel value of the strongly decaying channel. These represent the pixel positions in the horizontal and vertical directions, respectively. These represent the average values ​​of the weak attenuation channel and the strong attenuation channel, respectively. This represents the pixel value after strong attenuation channel compensation. Indicates a constant parameter.

4. The underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm according to claim 3, characterized in that, The method for obtaining the gain factor in step 04 is as follows: in, This represents the R, G, and B color channels. These represent the sum of pixel values ​​for the weak, medium, and strong attenuation channels, respectively. These represent the stretching factor of the strong attenuation channel, respectively.

5. The underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm according to claim 4, characterized in that, The channel stretching and pixel distribution remapping in step 05 includes the following steps: Step 051: Since different wavelengths of light have different loss rates underwater, different stretching strategies should be adopted for each color channel. The formula for solving the channel stretching is as follows: in, These represent the pixel values ​​of the weak, medium, and strong attenuation channels, respectively. These represent the pixel positions in the horizontal and vertical directions, respectively. These represent the maximum and minimum values ​​of a pixel in the weak attenuation channel, respectively. These represent the gain factors of the strong attenuation channel, respectively. These represent the pixel values ​​after stretching the weak, medium, and strong attenuation channels, respectively. Step 052: Adjust the pixel distribution curves of each channel after stretching by pixel value remapping; adjust the pixel distribution of the image to follow the Rayleigh distribution; the Rayleigh distribution probability density function and the formula for pixel value remapping are: ; ; in, Indicates input data; Let represent the probability density functions after remapping the weak, medium, and strong attenuation channels, respectively; Indicates the RD parameter; These represent the pixel values ​​of the weak, medium, and strong attenuation channels, respectively.

6. The underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm according to claim 5, characterized in that, The steps to solve the optimization model are as follows: Step 071: Solve for the optimal solution of the optimization model using the block coordinate descent method; decompose the optimization model into three sub-problems, with the following decomposition formula: in, These represent the Kth time in which the three subproblems are solved; Step 072: Rewrite the loss function of the three sub-problems using matrix representation, and re-represent the solution results as follows: in, This represents the matrix transpose operation. Represented as a five-point positive definite Laplace matrix, , The Toeplitz matrix represents the discrete gradient operator. express A diagonal matrix.

7. The underwater image enhancement method based on a loosely coupled Retinex model using an optimization algorithm according to claim 6, characterized in that, The formula for gamma correction and fusion of the illumination components to output the final image is: ; ; in, This represents the light component after gamma correction. These represent the illumination component and reflectivity component after solving step 07, respectively. Indicates normal calibration quantity. This represents the final output image.