An underwater image enhancement method based on light scattering characteristics

Through the underwater image enhancement method based on light scattering characteristics, it is divided into five color casts, and the color loss rate of the RGB channel is estimated and compensated, and the contrast factor stretching is set, which solves the problem of color deviation and insufficient contrast of the underwater image. Significantly improves image quality.

CN114418876BActive Publication Date: 2024-11-12DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210006725.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-05
Publication Date
2024-11-12
Estimated Expiration
2042-01-05

AI Technical Summary

Technical Problem

The quality of underwater image imaging is lower than expected, mainly due to the color deviation and insufficient contrast caused by light scattering. The existing methods have failed to effectively deal with the color attenuation problems caused by different scene depths.

Method used

Based on the light scattering characteristics, it is divided into five color casts. The color loss rate of the RGB channel is estimated. The color deviation is corrected by automatic compensation method, and multiple contrast factors are set according to different scenes to stretch the image to enhance the contrast.

Benefits of technology

It effectively improves the problem of color distortion and low contrast in underwater images. It is suitable for a variety of color cast images, restores the image color and enhances the contrast without affecting the color constant.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418876B_ABST
    Figure CN114418876B_ABST
Patent Text Reader

Abstract

The present invention provides an underwater image enhancement method based on light scattering characteristics, which includes the following three processes: first, according to the average value ratio of the red, green and blue channels of the underwater original image, the color cast of the underwater image is divided into five types, namely: no color cast, blue-green, green-blue, green and blue. Then, without considering the color cast, the color loss rate of the RGB channels of underwater images in different scenes is calculated by optical attenuation characteristics. Considering the color cast, a multi-scene color restoration method is proposed, the loss rate error is calculated, and the final color loss rate is obtained to correct the color cast problem of the underwater image. Finally, while maintaining color constancy, a multi-contrast factor image histogram method is set to redistribute the grayscale values ​​of the red, green and blue channels of the underwater image after color correction. The present invention can effectively improve the effect of enhancing the contrast of underwater images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to an underwater image enhancement method based on light scattering characteristics. Background Art

[0002] In recent years, underwater computer vision technology has garnered increasing attention, driving rapid development in underwater environmental surveys, marine biological research, marine resource development, and maritime military operations. This has given underwater image research practical application value and significant strategic significance. When light propagates through water, selective absorption by the water and scattering by suspended microparticles prevent imaging devices from capturing high-quality underwater images. Degraded underwater images typically exhibit low contrast and color deviation. Therefore, obtaining clear underwater images has become a pressing challenge in the field of computer vision.

[0003] The quality of underwater images depends on the distance between the camera and the target object. The Jaffe-McGlamery underwater optical imaging model incorporates the light source, object reflectance properties, medium, and sensor characteristics. Water scatters light, which, according to the Jaffe-McGlamery underwater optical imaging model, is categorized into three types: direct scattering (Edirt), forward scattering (Efront), and backscattering (Eback). Underwater images can be viewed as a linear superposition of these three scattering components. Direct scattering (Edirt) occurs when light reflected from an object directly impacts the imaging system. Forward scattering (Efront) occurs when light reflected from an underwater object deviates from its original direction at a small angle during its transmission to the camera, blurring details. Backscattering (Eback) occurs when light encounters impurities in the water and is directly received by the camera. The varying depths and angles of objects in underwater images result in varying degrees of color attenuation at different depths. Most underwater image enhancement methods do not consider the image color cast caused by underwater scenes. Instead, they apply the assumption to all underwater images, resulting in oversaturation of local color compensation in the red, green, and blue channels. Summary of the Invention

[0004] The present invention proposes an underwater image enhancement method based on light scattering characteristics. The present invention classifies underwater images into five color cast conditions, uses optical attenuation characteristics to estimate the color loss rate of the three RGB channels of underwater images in different scenes, and proposes a method for automatically compensating for the pixel loss rate of the RGB channels to correct the color cast problem of underwater images. Without affecting color constancy, multiple contrast factors are set according to different scenes to stretch the image and enhance the contrast of the image. Experimental results show that this paper achieves good results in both subjective visual and objective quality indicator detection for underwater images in different scenes, effectively improving the problems of color distortion, low contrast and detail loss in the original underwater images.

[0005] The technical solution adopted in the present invention is as follows:

[0006] An underwater image enhancement method based on optical scattering characteristics comprises the following steps:

[0007] Step S01: Decomposing the input original underwater image according to R, G, and B channels to obtain the average value ratio of the R, G, and B channels of the input image;

[0008] Step S02: Classifying the input original underwater image into five color casts according to the average value ratio of each channel in step S01: no color cast, cyan, green-blue, green, and blue;

[0009] Step S03: calculating the color compensation error of the input original underwater image according to different color cast types;

[0010] Step S04: Calculating the attenuation rate of the R, G, and B channels of the input original underwater image, and calculating the color compensation rate of the R, G, and B channels, and finally normalizing the pixel values ​​of the color-compensated image to [0, 255] to obtain a color-corrected underwater image;

[0011] Step S05: performing block processing on the color-corrected underwater image obtained in step S04, setting a contrast factor value, and performing corresponding contrast factor stretching for underwater images of different color cast types;

[0012] Step S06: Bilinear interpolation is used to resolve the blocking effect, and contrast stretching is performed on the grayscale values ​​of the R, G, and B channels to obtain an enhanced underwater image.

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

[0014] The method presented here, based on light scattering characteristics, can restore the color and enhance the contrast of underwater images with multiple color casts, not just one. It classifies underwater images into five color cast conditions and estimates the color loss rate of the three RGB channels of underwater images in different scenes using optical attenuation characteristics, effectively correcting the color cast of underwater images. Furthermore, without affecting color constancy, the method stretches the image using multiple contrast factors according to different scenes to enhance contrast.

[0015] Based on the above reasons, the present invention can be promoted and applied in the fields of digital image processing and the like. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative labor.

[0017] Figure 1 It is a schematic diagram of the overall process of the present invention;

[0018] Figure 2 The following is a comparison of the color restoration effects of the color correction algorithm of the present invention and other algorithms for underwater scene images, and a 3D color scatter plot corresponding to each algorithm. Figure 2-1 -1 indicates the original image before color restoration; Figure 2-1 -2 indicates the result graph processed by Grayworld method; Figure 2-1 -3 indicates the result image after processing by MaxRGB method; Figure 2-2 -1 represents the 3D color scatter plot of the original image; Figure 2-2 -2 indicates the result of Gray world method processing Figure 3 D color scatter plot; Figure 2-2 -3 indicates the result after MaxRGB method processing Figure 3 D color scatter plot; Figure 2-3 -1 represents the result graph processed by the Shade of Gray method; 2-3-2 represents the result graph processed by the AWB method; Figure 2-3 -3 represents the result after treatment by the method of the present invention Figure 3 D color scatter plot; Figure 2-4 -1 indicates the result of Shade of Gray method processing Figure 3 D color scatter plot; Figure 2-4 -2 indicates the result graph of AWB method processing; Figure 2-4 -3 represents the result after treatment by the method of the present invention Figure 3D Color scatter plot.

[0019] Figure 3 Comparison of the histogram distribution before and after color correction and the corresponding 3D color model diagram.

[0020] in, Figure 3-1 -1 means the original image; Figure 3-1 -2 represents the color correction image of the present invention; Figure 3-1 -3 represents the contrast-enhanced image of the present invention; Figure 3-2 -1 represents the original image 3D histogram; Figure 3-2 -2 represents the 3D histogram of the color-corrected image of the present invention; Figure 3-2 -3 represents the 3D histogram of the contrast-enhanced image of the present invention.

[0021] Figure 4 This is the comparison result between the present invention and other algorithms. Figure 4-1 -1 means the original image; Figure 4-1 -2 indicates the result graph of the UDCP method; Figure 4-1 -3 represents the result graph of the TSP method; Figure 4-2 -1 indicates the GBDRC method result graph; Figure 4-2 -2 indicates the BRUIE method result graph; Figure 4-2 -3 represents the result diagram of the method of the present invention. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions 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 embodiments described 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 making creative efforts should fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first", "second", etc. in the description 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 numbers 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] like Figure 1 As shown, the present invention provides an underwater image enhancement method based on optical scattering characteristics, comprising the following steps:

[0025] Step S01: Decompose the input original underwater image into R, G, and B channels to obtain the average value ratio of the R, G, and B channels of the input image. In this application, the algorithm in step S01, the average value weight formula of the three channels is:

[0026]

[0027]

[0028] Among them, the obtained W R ,W G ,W B R(x,y), G(x,y), B(x,y) represent the average proportion of the three components R, G, and B, respectively. R(x,y), G(x,y), and B(x,y) represent the pixel values ​​of the R, G, and B channels with coordinates (x,y), respectively. m and n represent the number of pixels in the horizontal and vertical directions of the underwater image, respectively. i represents the horizontal row of each pixel value in the underwater image, and j represents the vertical column of each pixel value.

[0029] According to the mean ratio of the three channels R, G, and B, the mean ratio of the three channels R, G, and B of the input original underwater image is obtained:

[0030]

[0031] in, Represents the mean and proportion of the three RGB channels.

[0032] Furthermore, step S02: based on the average value ratio of each channel in step S01, the input original underwater image is divided into five color casts: no color cast, cyan, green-blue, green, and blue. In step S02, without considering the color cast, the color loss rate of each RGB channel is defined as:

[0033]

[0034] Among them, LR r Indicates the R channel color loss rate, LR g Indicates the color loss rate of the G channel, LR b Indicates the color loss rate of B channel;

[0035] In order to remove the color cast problem more accurately, the blue and green casts are further divided into underwater non-color cast I no 、Blue-green I bg 、Green Blue I gb 、Blue I b 、Green Ig Five degrees of color cast; the color cast coefficient of the input original underwater image is determined based on the mean ratio of each RGB channel:

[0036]

[0037] Among them, according to the average value ratio of each RGB channel in the clear and color-free underwater image, W can be obtained. R ≈W G ≈W B , α value is 0.333, β value is 0.1; I represents the underwater image with final color cast.

[0038] As a preferred embodiment, in this application, step S03: for different color cast types, the color compensation error of the input original underwater image is calculated; the loss rate error matrix and the color compensation formula are solved according to the color cast coefficient in step S03 as follows:

[0039]

[0040] Set when I is I bg When η1 is 1, I is I gb When η1 is 0, the value of η1 is 0; when I is I b When η2 is 1, I is 1 g When , the value of η2 is 0; ~ means negation operation;

[0041] The final loss rate error of the input original underwater image is determined according to the color cast of the underwater image and is defined as follows:

[0042]

[0043] Among them, a i1 ,a i2 ,a i3 is the i-th row vector of the E matrix; σ r represents the R channel loss rate error, σ g represents the G channel loss rate error, σ b Indicates the B channel loss rate error;

[0044] The loss rate of each RGB channel of the input original underwater image is defined as:

[0045] K r =LR r +σ r ,K g =LR g +σ g ,K b =LR b +σ b ;

[0046] Among them, K r , K g , K b Respectively represent the loss rates of the R, G, and B channels of the input original underwater image;

[0047] The color correction of each channel of the original underwater image R, G, B three-channel pixel inverse compensation experiment is defined as:

[0048] I R (x,y)=I r (x,y) / K r

[0049] I G (x,y)=I g (x,y) / K g

[0050] I B (x,y)=I b (x,y) / K b ;

[0051] Among them, I r (x,y),I g (x,y),I b (x, y) represent the pixel values ​​before R, G, and B channels are balanced, respectively. R (x,y),I G (x,y),I B (x, y) represents the pixel value after R, G, and B channels are balanced;

[0052] Finally, limit the grayscale value range of each channel to [0, 255]:

[0053]

[0054] Where s∈{R,G,B}, I s (x,y) represents the pixel value with coordinates (x,y) in the s channel.

[0055] Furthermore, step S04: calculating the attenuation rate of the R, G, and B channels of the input original underwater image, and obtaining the color compensation rate of the R, G, and B channels, and finally normalizing the pixel values ​​of the color-compensated image to [0, 255] to obtain a color-corrected underwater image;

[0056] Finally, step S05: the color-corrected underwater image obtained in step S04 is subjected to block processing, contrast factor values ​​are set, and corresponding contrast factor stretching is performed for underwater images of different color cast types. In step S05, the value of the multi-contrast factor λ is determined to prevent oversaturation in homogeneous areas of the image. The larger the value of the contrast factor λ, the higher the contrast of the processed image. The multi-contrast factor is defined as follows:

[0057]

[0058] in, The value of I is 0.001, no , I bg , I gb , I b , I g They represent the non-color cast image, blue-green image, green-blue image, blue image, and green image respectively.

[0059] Step S06: Bilinear interpolation is used to solve the blocking effect, and the grayscale values ​​of the R, G, and B channels are contrast stretched to obtain an enhanced underwater image. The formula for bilinear interpolation to solve the blocking effect in step S06 is:

[0060]

[0061] f s (i+u,j+v)=(1-u)(1-v)f(i,j)+v(1-u)f(i,j+1)+u(1-v)f(i+1,j)+uvf(i+1,j+1);

[0062] Among them, I s (x,y) represents the grayscale value of a point in the s channel, s∈{R,G,B}, p i Indicates the four pixels above, below, left and right of the current pixel, w i Indicates the weights corresponding to the four pixels above, below, left and right.

[0063] Example:

[0064] like Figure 2 As shown in the figure, the color restoration effect comparison of the color correction algorithm of the present invention and other algorithms for underwater scene images and the corresponding 3D color model diagram of each algorithm are shown. The 3D scatter plot clearly shows the color distribution of the underwater image. The three coordinates of the scatter plot represent the grayscale values ​​of the three RGB channels of the underwater image, which can intuitively judge the color cast problem of the underwater image. In the comparison results, it can be seen that the present invention has Figure 2-1 -2 is the result of color compensation using the Gray World method. The red channel of the image is over-compensated, and the shell has become seriously reddish. Figure 2-2-2 is the 3D scatter plot of the color compensation result of the Gray World method, in which the image has the most red pixels. Figure 2-1 -3 is the result of color compensation using the MaxRGB method. It cannot correct the color cast of underwater images well, and the image still appears green. Figure 2-2 -3 is the 3D scatter plot of the color compensation result of the MaxRG method. The image color restoration result is overall bluish-green, and the 3D scatter plot clearly shows that the color of the image is bluish-green. Figure 2-2 -1 is the result of color compensation using the Shades of Grey method, where the red channel is over-compensated in the white area. Figure 2-2 -1 is the result of color compensation of the hades ofGrey method 3D scatter plot. Figure 2-3 -2 is the result of color compensation using the AWB method. The white shells are yellowish, and a new color cast is introduced when color correcting the green image. Figure 2-4 -2 is the result of color compensation using the AWB method Figure 3 D scatter plot, there are more yellow points in the scatter plot. Figure 2-3 -3 is the color correction result of the method of the present invention, and the shell is restored to white. Figure 2-4 -2 is the result of color compensation of the method of the present invention Figure 3 D. Scatter plot. The red, green and blue colors in the scatter plot are evenly distributed, and no new color cast is introduced.

[0065] like Figure 3 As shown, the histogram distribution comparison of the present invention and before color correction and the corresponding 3D histogram. Figure 3-1 -1 is the original image, Figure 3-2 -1 is the 3D histogram of the original image, where the red channel pixel values ​​are mainly distributed between 0 and 150, the grayscale values ​​of the cyan channel are widely distributed, and the underwater image is cyan-colored. Figure 3-1 -2 is the color correction method result of the method of the present invention. Figure 3-2 -2 is a 3D histogram of the color correction method result of the method of the present invention. Figure 3-1 -3 is the result after being processed by the contrast stretching method of the present invention. Figure 3-2 -3 is the 3D histogram of the result after the contrast stretching method of the present invention is processed, wherein the grayscale values ​​of the RGB three channels are distributed to about 150, and the channel with a grayscale value above 200 is the green channel. Figure 3 The grayscale value of the red channel is mainly concentrated in the range of 0-100. The color correction method of the present invention controls the grayscale value of the red channel between 100-200. After the histogram is stretched, the grayscale value distribution of the three RGB channels is more uniform.

[0066] like Figure 4 Figure 2 shows the comparison results between the present invention and other algorithms. Figure 4-1-1 is the original image. Figure 4-1 -2 is the result image after UDCP method processing, which has a poor effect on green image processing. Figure 4-1 -3 is the result image after TSP processing. It has a better processing effect on the green-leaning image, but overcompensation occurs in the red channel when processing the green-blue image. Figure 4-2 -1 is the result image after GBDRC method processing. The red channel is severely overcompensated and the color is distorted. Figure 4-2 -2 is the result image after processing by the BRUIE method, which can restore the color of the underwater image but blurs the edge details of the image. Figure 4-2 -3 is the result image after processing by the present invention, which can correct the color of the underwater image, enhance the contrast, and enrich the color, thereby effectively improving the quality of the underwater image.

[0067] In order to avoid ensuring the reliability of the evaluation, the underwater image enhancement algorithm in this embodiment mainly corrects color and enhances contrast. In this section, the present invention uses four objective indicators to verify the effectiveness of the method of the present invention, including mean square error (MSE), block-based contrast quality (PCQI), underwater color image quality evaluation (UCIQE) and underwater image quality measure (UIQM). The higher the PCQI patch-based contrast quality index, the higher the contrast of the image, and the PCQI value of the original image is 1. The core of the MSE indicator lies in the sum of the squares of the corresponding pixel differences between the two images. The larger the value, the greater the color contrast between the two images. The higher the UCIQE, the higher the image color saturation and the better the underwater image quality. UIQM evaluates the overall quality of the image from a combination of color, sharpness and contrast attributes. The larger the value, the better the image quality. The present invention randomly selects 100 underwater images from the UCCS dataset, calculates the four indicators of UDCP, TSP, IBLA, GDCP, RGHS, GBDRC, and BRUIE for each result image, and finally calculates the average value of each indicator of the 100 images, as shown in Table 1.

[0068] To ensure the reliability of the evaluation and verify the superiority of the method of the present invention for underwater image enhancement, this embodiment performs a blind contrast enhancement evaluation using the gradient ratio in a visible edge contrast experiment. First, the method calculates the parameter , which is the ratio of new visible edges in the resulting image. The larger the value of , the more edges are restored in the resulting image. The parameter is then calculated, representing the contrast enhancement quality of the method. Five underwater images were randomly selected from the UCCS dataset and compared against each other, as shown in Table 2.

[0069] Table 1 Comparison of average values ​​of the algorithm of the present invention and other algorithms

[0070]

[0071] Table 2 Comparison of edge detection index values ​​of the algorithm of the present invention and other algorithms

[0072]

[0073] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0074] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0075] 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 above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above 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. An underwater image enhancement method based on optical scattering characteristics, characterized in that: The following steps are involved: Step S01: decomposing the input original underwater image according to R, G, and B channels to obtain the average value ratio of the R, G, and B channels of the input original underwater image; Step S02: according to the average value ratio of each channel in step S01, the input original underwater image is divided into five color casts: no color cast, blue-green, green-blue, green and blue; Step S03: calculating the color compensation error of the input original underwater image according to different color cast types; Step S04: Calculate the attenuation rate of the R, G, and B channels of the input original underwater image, and calculate the color compensation rate of the R, G, and B channels, and finally normalize the pixel value of the image after color compensation to [0, 255] to obtain a color-corrected underwater image; Step S05: performing block processing on the color-corrected underwater image obtained in step S04, setting a contrast factor value, and performing corresponding contrast factor stretching for underwater images of different color cast types; Step S06: bilinear interpolation is used to solve the blocking effect, and the grayscale values ​​of the three channels R, G, and B are contrast stretched to obtain an enhanced underwater image; the formula for bilinear interpolation to solve the blocking effect in step S06 is: f s (i+u,j+v)=(1-u)(1-v)f(i,j)+v(1-u)f(i,j+1)+u(1-v)f(i+1,j)+uvf(i+1,j+1); Among them, I s (x, y) represents the gray value of a point in channel s, s∈{R,G,B}, p i Indicates the four pixels above, below, left and right of the current pixel, w i Indicates the weights corresponding to the four pixels above, below, left and right.

2. The underwater image enhancement method based on optical scattering characteristics according to claim 1, further characterized by: In the algorithm of step S01, the average weight formula of the three channels is: Among them, the obtained W R ,W G ,W B R(x,y), G(x,y), B(x,y) represent the pixel values ​​of R, G, B channels with coordinates (x,y), m and n represent the number of pixels in the horizontal and vertical directions of the underwater image, i represents the horizontal row of each pixel value, and j represents the vertical column of each pixel value. According to the average proportion of the three channels R, G, and B, the average proportion of the three channels R, G, and B of the input original underwater image is obtained: in, Represents the average and proportion of the three RGB channels.

3. The underwater image enhancement method based on optical scattering characteristics according to claim 1, further characterized by: In step S02, without considering color cast, the color loss rate of each RGB channel is defined as: Among them, LR r Indicates the color loss rate of the R channel, LR g Indicates the color loss rate of the G channel, LR b Indicates the color loss rate of the B channel; In order to more accurately remove the color cast problem, the blue and green casts are further divided into underwater non-color cast I no 、Blue Green I bg , Green Blue I gb , Blue I b 、Green I g Five degrees of color cast; the color cast coefficient of the input original underwater image is determined according to the average value ratio of each RGB channel: Among them, according to the average proportion of each RGB channel in the clear underwater image without color difference, W can be obtained R ≈W G ≈W B , α value is 0.333, β value is 0.1; I represents the underwater image with final color cast.

4. The underwater image enhancement method based on optical scattering characteristics according to claim 1, further characterized by: The loss rate error matrix and color compensation formula solved according to the color cast coefficient in step S03 are: Set when I is I bg When η1 is 1, I is gb When η1 is 0, the value of η1 is 0; when I is I b When η2 is 1, I is 1 g When , the value of η2 is 0; ~ means negation operation; The final loss rate error of the input original underwater image is determined according to the color cast of the underwater image, and is defined as follows: Among them, a i1 ,a i2 ,a i3 is the i-th row vector of the E matrix; σ r represents the R channel loss rate error, σ g represents the G channel loss rate error, σ b Indicates the B channel loss rate error; The loss rate of each RGB channel of the input original underwater image is defined as: K r =LR r +σ r ,K g =LR g +σ g ,K b =LR b +σ b ; Among them, K r , K g , K b Respectively represent the loss rates of the R, G, and B channels of the input original underwater image; The color correction of each channel of the original underwater image R, G, B three-channel pixel inverse compensation experiment is defined as: I R (x,y)=I r (x,y) / K r I G (x,y)=I g (x,y) / K g I B (x,y)=I b (x,y) / K b ; Among them, I r (x,y),I g (x,y),I b (x, y) represent the pixel values ​​before R, G, and B channels are balanced, respectively. R (x,y),I G (x,y),I B (x, y) represent the pixel values ​​after R, G, and B channels are balanced respectively; Finally, limit the grayscale value range of each channel to [0, 255]: Where s∈{R,G,B}, I s (x,y) represents the pixel value with coordinates (x,y) in the s channel.

5. The underwater image enhancement method based on optical scattering characteristics according to claim 1, further characterized by: In step S05, the multi-contrast factor λ value is determined to prevent oversaturation in homogeneous areas of the image; the larger the value of the contrast factor λ, the higher the contrast of the processed image; the multi-contrast factor is defined as follows: in, The value of I is 0.001, no ,I bg ,I gb ,I b ,I g They represent the non-color cast image, cyan image, green-blue image, blue image, and green image respectively.