Underwater image sharpening enhancement method and device based on adaptive gain control

By employing adaptive gain control, and utilizing LMS and HSV color space transformations and adaptive gain functions, the problems of color cast and blurring in underwater images were solved, achieving image sharpness enhancement and improving image quality and detection performance.

CN117635483BActive Publication Date: 2026-11-24KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing underwater image sharpening technologies are not robust enough to address varying degrees of color cast and blur, making it difficult to effectively improve the visual quality of underwater images.

Method used

An adaptive gain control method is adopted, which involves LMS color space transformation, linear stretching, HSV color space transformation, V channel sharpness enhancement, and H and S channel color balancing, combined with an adaptive gain control function to enhance the clarity of underwater images.

Benefits of technology

It effectively corrects color casts in underwater images, significantly enhances texture details, and improves image visibility and contrast. It has good universality and robustness, does not rely on prior knowledge, and is suitable for preprocessing of underwater vision tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117635483B_ABST
    Figure CN117635483B_ABST
Patent Text Reader

Abstract

This invention discloses an underwater image sharpening enhancement method and apparatus based on adaptive gain control. The method includes: performing a color space transformation on the original underwater image to obtain an LMS color space; linearly stretching the LMS color space to obtain a color-corrected image; performing a color space transformation on the color-corrected image to convert it to an HSV color space; enhancing the sharpness of the V channel image of the color-corrected image converted to HSV color space to obtain a sharpened V channel image; performing color balancing on the H and S channels of the color-corrected image converted to HSV color space; and converting the H and S channels of the color-balanced color-corrected image and the sharpened V channel image to an RGB color space image to obtain an enhanced underwater image. This invention does not rely on prior knowledge or model unknown parameter estimation, has good universality and robustness, and is simple in method and scientifically sound in principle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method and apparatus for enhancing underwater image sharpness based on adaptive gain control, belonging to the field of digital image processing technology. Background Technology

[0002] In recent years, an increasing number of researchers have been using underwater robots equipped with underwater cameras to explore the marine world. However, due to the unique characteristics of water, the acquired underwater images suffer from varying degrees of degradation, such as low visibility, color distortion, and blurring. Degraded underwater images limit the application of vision-based technologies in fields such as marine exploration, underwater equipment inspection, and autonomous underwater vehicles. Therefore, effectively improving the visual quality of degraded underwater images is crucial to promoting the practical application of vision-based technologies underwater.

[0003] Due to the unique optical properties of water and the influence of underwater impurities, underwater images suffer from various types of degradation, such as a greenish appearance, blurring, and low contrast. Existing image restoration techniques heavily rely on pre-designed prior knowledge; however, when this prior knowledge is not suitable for the specific characteristics of the underwater scene, the quality of the restored image is often poor. Therefore, there is a need to design a robust and universal underwater sharpening enhancement method to effectively correct color casts in underwater images and improve image visibility and contrast. Summary of the Invention

[0004] The purpose of this invention is to overcome the problem of low robustness of existing underwater image sharpening technologies when faced with underwater images of varying degrees of color cast and blurriness. This invention provides an underwater image sharpening enhancement method and apparatus based on adaptive gain control.

[0005] The technical solution of this invention is:

[0006] According to a first aspect of the present invention, an underwater image sharpening enhancement method based on adaptive gain control is provided, comprising: S1, performing a color space transformation on the original underwater image to obtain an LMS color space; S2, linearly stretching the LMS color space to obtain a color-corrected image; S3, performing a color space transformation on the color-corrected image to convert it to an HSV color space; S4, enhancing the sharpness of the V channel image of the color-corrected image converted to the HSV color space to obtain a sharpened V channel image; S5, performing color balancing on the H and S channels of the color-corrected image converted to the HSV color space; S6, converting the H and S channels of the color-balanced color-corrected image and the sharpened V channel image to an RGB color space image to obtain an enhanced underwater image.

[0007] The step of sharpening the V channel image of the color-corrected image converted to the HSV color space to obtain a sharpened V channel image includes: performing integral image-based calculations on the V channel image of the color-corrected image converted to the HSV color space to obtain a low-frequency image; obtaining a high-frequency image based on the V channel image of the color-corrected image converted to the HSV color space and the low-frequency image; and sharpening the high-frequency image according to an adaptive gain control function to obtain a sharpened V channel image.

[0008] The step of linearly stretching the LMS color space to obtain a color-corrected image is specifically expressed as follows:

[0009]

[0010] in, Color-corrected image; and These are the minimum and maximum pixel intensities for each channel in the LMS color space, respectively. and These represent the grayscale ranges that need to be stretched.

[0011] The V channel image of the color-corrected image converted to the HSV color space is used for integral image calculation to obtain the low-frequency image, specifically expressed as follows:

[0012]

[0013] Among them, V low (x,y) represents the low-frequency image, where H and W represent the height and width of the V channel image converted to the HSV color space for color correction, respectively, and h and w represent the height and width of a local region block in the image, respectively. The sum of pixel intensities of a local region block in the V channel image V(x,y) of a color-corrected image converted to the HSV color space. Each represents a sequence of integers.

[0014] The high-frequency image is obtained by using the V channel image of the color-corrected image converted to the HSV color space and the low-frequency image, specifically expressed as follows:

[0015] V high (x,y)=2V(x,y)-V low (x,y)-1

[0016] Among them, V high (x,y) represents a high-frequency image; V low (x,y) is the low-frequency image, and V(x,y) is the V channel image converted to the color-corrected image in the HSV color space.

[0017] The step of enhancing the sharpness of the high-frequency image according to the adaptive gain control function to obtain the sharpened V-channel image includes: calculating the high-frequency image using the adaptive gain control function to obtain an adaptive gain image of the high-frequency information; and enhancing the sharpness of the high-frequency image using the adaptive gain image to obtain the sharpened V-channel image.

[0018] The adaptive gain control function is used to calculate the high-frequency image to obtain an adaptive gain image of the high-frequency information. The specific expression is as follows:

[0019]

[0020] Among them, Γ(V high (x,y)) is the adaptive gain image, ρ is the attenuation rate, and θ is the attenuation rate. max V is the sharpening intensity factor. high (x,y) represents the high-frequency image, and e is the natural constant.

[0021] The high-frequency image is sharpened using an adaptive gain image to obtain a sharpened V-channel image, specifically expressed as follows:

[0022]

[0023] Among them, V enc (x,y) represents the sharpened V channel image; Γ(V high (x,y)) is the adaptive gain image, V high (x,y) represents a high-frequency image, V low (x,y) represents the low-frequency image, and · represents element-wise multiplication.

[0024] The specific expression for performing color balancing on the H and S channels of the color-corrected image converted to the HSV color space is as follows:

[0025]

[0026] Among them, I cH ,I cS To convert the H and S channels of a color-corrected image to the HSV color space, To calculate the mean values ​​of the H and S channels of a color-corrected image converted to the HSV color space, I BH ,I BS These are the H and S channels after corresponding color balance.

[0027] According to a second aspect of the present invention, an underwater image sharpening and enhancement device based on adaptive gain control is provided, comprising: a first transformation module for performing color space transformation on an original underwater image to obtain an LMS color space; a first obtaining module for linearly stretching the LMS color space to obtain a color-corrected image; a second transformation module for performing color space transformation on the color-corrected image to convert it to an HSV color space; a second obtaining module for sharpening the V channel image of the color-corrected image converted to the HSV color space to obtain a sharpened V channel image; a balancing module for performing color balancing on the H and S channels of the color-corrected image converted to the HSV color space; and a third obtaining module for converting the H and S channels of the color-balanced color-corrected image and the sharpened V channel image to an RGB color space image to obtain an enhanced underwater image.

[0028] According to a third aspect of the present invention, a terminal device is provided, including a memory, a processor, and a program stored in the memory and executable by the processor, wherein the processor executes the program to implement the underwater image sharpening enhancement method based on adaptive gain control as described above.

[0029] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium comprising a stored program, wherein, when the program is executed, the device on which the computer-readable storage medium is located executes the underwater image sharpening enhancement method based on adaptive gain control as described above.

[0030] The beneficial effects of this invention are as follows: Compared with existing underwater image sharpening techniques, the underwater sharpening enhancement method based on adaptive gain control provided by this invention has the following advantages: First, it effectively corrects the color cast of underwater images through color space transformation theory; second, it significantly enhances the texture details of underwater images by introducing an adaptive gain control function; third, it does not rely on prior knowledge or the estimation of unknown model parameters, has good universality and robustness, and the method is simple and its principle is scientifically reliable. It can be combined with other technologies or used as a preprocessing step in mainstream visual tasks to improve the detection performance of underwater models. Attached Figure Description

[0031] Figure 1 This is a schematic diagram of the process of the present invention;

[0032] Figure 2 The following diagrams show the underwater images and output results of the main stages in Embodiment 2 of the present invention, where (a) is the original underwater image, (b) is the color-corrected image, (c) is the low-frequency image, (d) is the high-frequency image, (e) is the V-channel image after sharpness enhancement, and (f) is the final enhanced underwater image.

[0033] Figure 3 The original underwater image (a) in Embodiment 2 of the present invention is compared with the sharpened and enhanced underwater image (b) generated by the technical solution of Embodiment 1.

[0034] Figure 4 The images shown are the original underwater checkerboard image and the output results of various mainstream methods in the industrial underwater scene of Application Example 3 of the present invention. Among them, (a) is the original checkerboard underwater image, (b) is the enhanced image of the UNTV algorithm, (c) is the enhanced image of the IBLA algorithm, (d) is the enhanced image of the GDCP algorithm, (e) is the enhanced image of the BRUIE algorithm, and (f) is the enhanced underwater image of Example 3.

[0035] Figure 5 The output results of the technical solution and variants of the application embodiment 1 of the present invention are shown in (a) as the original checkerboard underwater image, (b) as the enhanced underwater image with color correction method retained, (c) as the enhanced underwater image with sharpness enhancement method with adaptive gain control retained, and (d) as the enhanced underwater image with the method of the present invention. Detailed Implementation

[0036] The invention will be further described below with reference to the accompanying drawings and embodiments, but the scope of the invention is not limited to the description.

[0037] Example 1: As Figures 1-5 As shown, according to a first aspect of the present invention, an underwater image sharpening enhancement method based on adaptive gain control is provided, comprising:

[0038] S1. Based on the color space transformation theory, the original underwater image is transformed to obtain the LMS color space;

[0039] S2. Linearly stretch the LMS color space to obtain a color-corrected image;

[0040] S3. Perform a color space transformation on the color-corrected image to convert it to the HSV color space;

[0041] S4. Sharpen the V channel image of the color-corrected image converted to HSV color space to obtain the sharpened V channel image.

[0042] S5. Perform color balancing on the H and S channels of the color-corrected image converted to the HSV color space;

[0043] S6. Convert the H and S channels of the color-balanced color-corrected image and the sharpness-enhanced V channel image into RGB color space images to obtain an enhanced underwater image.

[0044] Further, the step of sharpening the V channel image of the color-corrected image converted to the HSV color space to obtain a sharpened V channel image includes: performing integral image-based calculation on the V channel image of the color-corrected image converted to the HSV color space to obtain a low-frequency image; obtaining a high-frequency image based on the V channel image of the color-corrected image converted to the HSV color space and the low-frequency image; and sharpening the high-frequency image according to an adaptive gain control function to obtain a sharpened V channel image.

[0045] Furthermore, the original underwater image is subjected to color space transformation based on color space transformation theory to obtain the LMS color space, the specific expression of which is:

[0046]

[0047] Among them, I R ,I G ,I B These represent the red, green, and blue color channels of the original underwater image, respectively; I L ,I M ,I S These represent the long, medium, and short wavelength channels of the converted LMS color space, respectively; * indicates a matrix polynomial multiplication operation.

[0048] Furthermore, the step of linearly stretching the LMS color space to obtain a color-corrected image is specifically expressed as follows:

[0049]

[0050] in, Color-corrected image; and These are the minimum and maximum pixel intensities for each channel in the LMS color space, respectively. and These represent the grayscale ranges that need to be stretched, which are set to 0 and 1 respectively in this embodiment of the invention.

[0051] Furthermore, the V channel image of the color-corrected image converted to the HSV color space is used for integral image calculation to obtain the low-frequency image, specifically expressed as follows:

[0052]

[0053] Among them, V low (x,y) represents the low-frequency image, where H and W represent the height and width of the V channel image converted to the HSV color space for color correction, respectively, and h and w represent the height and width of a local region block in the image, respectively. The sum of pixel intensities of a local region block in the V channel image V(x,y) of a color-corrected image converted to the HSV color space. Both represent an integer sequence. In the embodiments of the present invention, h and w are both set to 5. To maintain the size of the input and output images, a zero-padding operation is used.

[0054] Furthermore, the high-frequency image is obtained based on the V channel image of the color-corrected image converted to the HSV color space and the low-frequency image, specifically expressed as follows:

[0055] V high (x,y)=2V(x,y)-V low (x,y)-1

[0056] Among them, V high (x,y) represents a high-frequency image; V low (x,y) is the low-frequency image, and V(x,y) is the V channel image converted to the color-corrected image in the HSV color space.

[0057] Further, the step of enhancing the sharpness of the high-frequency image according to the adaptive gain control function to obtain the sharpened V-channel image includes: calculating the high-frequency image using the adaptive gain control function to obtain an adaptive gain image of the high-frequency information; and enhancing the sharpness of the high-frequency image using the adaptive gain image to obtain the sharpened V-channel image.

[0058] Furthermore, the adaptive gain control function is used to calculate the high-frequency image to obtain an adaptive gain image of the high-frequency information, the specific expression of which is:

[0059]

[0060] Among them, Γ(V) high (x,y)) is the adaptive gain image, ρ is the attenuation rate, and θ is the attenuation rate. max V is the sharpening intensity factor. high (x,y) represents a high-frequency image, and e is a natural constant. In this embodiment of the invention, the sharpening intensity coefficient θ max Set to 7, the attenuation rate ρ is 0.25.

[0061] Furthermore, the high-frequency image is sharpened using an adaptive gain image to obtain a sharpened V-channel image, specifically expressed as follows:

[0062]

[0063] Among them, V enc(x,y) represents the sharpened V channel image; Γ(V high (x,y)) is the adaptive gain image, V high (x,y) represents a high-frequency image, V low (x,y) represents the low-frequency image, and · represents element-wise multiplication.

[0064] The specific expression for performing color balancing on the H and S channels of the color-corrected image converted to the HSV color space is as follows:

[0065]

[0066] Among them, I cH ,I cS To convert the H and S channels of a color-corrected image to the HSV color space, To calculate the mean values ​​of the H and S channels of a color-corrected image converted to the HSV color space, I BH ,I BS These are the H and S channels after corresponding color balance.

[0067] According to a second aspect of the present invention, an underwater image sharpening and enhancement device based on adaptive gain control is provided, comprising: a first transformation module for performing color space transformation on an original underwater image according to color space transformation theory to obtain an LMS color space; a first obtaining module for linearly stretching the LMS color space to obtain a color-corrected image; a second transformation module for performing color space transformation on the color-corrected image to convert it into an HSV color space; a second obtaining module for sharpening the V channel image of the color-corrected image converted to HSV color space to obtain a sharpened V channel image; a balancing module for performing color balancing on the H and S channels of the color-corrected image converted to HSV color space; and a third obtaining module for converting the H and S channels of the color-balanced color-corrected image and the sharpened V channel image into an RGB color space image to obtain an enhanced underwater image.

[0068] According to a third aspect of the present invention, a terminal device is provided, including a memory, a processor, and a program stored in the memory and executable by the processor, wherein the processor executes the program to implement the underwater image sharpening enhancement method based on adaptive gain control as described above.

[0069] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the underwater image sharpening enhancement method based on adaptive gain control as described above.

[0070] Example 2: Using the technical solution of Example 1 above, the original underwater image ( Figure 2 (a)) Enhancement and clarification are performed, and the output results at each stage are shown in the figure. Figure 2 As shown, (a) is the original underwater image, (b) is the color-corrected image, (c) is the low-frequency image, (d) is the high-frequency image, (e) is the V-channel image after sharpening, and (f) is the final enhanced underwater image. Figure 2 (b) It can be seen that the color correction method based on color transfer using LMS directly effectively corrects the color deviation of the original underwater image and restores the true color of the underwater image; finally, the color correction method obtained through the technical solution of this invention is as follows: Figure 2 (f) demonstrates the performance of the underwater image sharpening enhancement method based on adaptive gain control, which effectively improves the details and edge information of underwater images.

[0071] To further illustrate the effectiveness of the present invention, this embodiment uses the technical solution of Embodiment 1 to process multiple original underwater images ( Figure 3 (a)) Enhance the clarity to obtain the following result: Figure 3 As shown in (b), it is further intuitively demonstrated that the present invention can achieve sharpening and enhancement of the original underwater image.

[0072] Example 3: This example uses the technical solution of Example 1 and other mainstream underwater image enhancement methods to enhance the clarity of industrial underwater images. The results are as follows: Figure 4 As shown, (a) is the original underwater image in an industrial setting, (b) is the enhanced image using the UNTV (A Variational Framework for Underwater Image Dehazing and Deblurring) algorithm, (c) is the enhanced image using the IBLA (Underwater image restoration based on image blurriness and light absorption) algorithm, (d) is the enhanced image using the GDCP (Generalization of the dark channel prior for single image restoration) algorithm, (e) is the enhanced image using the BRUIE (Bayesian retinex underwater image enhancement) algorithm, and (f) is the enhanced underwater image of this invention. Table 1 presents the quantitative evaluation results obtained through binocular stereo calibration. The results verify the effectiveness of the proposed technical solution and also demonstrate that this invention has advantages over existing advanced algorithms. It should be noted that the actual distance between each grid in the calibration board image is 30 mm.

[0073] Table 1

[0074] Image metrics Reprojection error Actual distance (mm) Original underwater images 0.163 27.960 UNTV 0.318 26.592 IBLA 0.180 27.660 GDCP 0.172 27.902 BRUIE 0.181 27.567 Method of the present invention 0.155 28.483

[0075] Example 4: This example adopts the technical solution of Example 1. To better illustrate the effectiveness of the color correction method and sharpness enhancement method proposed in this invention, the invention is further described, and the results are as follows. Figure 5 As shown, (a) is the original underwater image, (b) is the enhanced underwater image with color correction retained (i.e., the result obtained by steps S1+S2 of this invention), (c) is the enhanced underwater image with sharpness enhancement retained by adaptive gain control (i.e., the color correction step is omitted, the original underwater image is used as the input of S3, and the image is obtained through S4-S6), and (d) is the enhanced underwater image obtained by steps S1-S6 of this invention. Table 2 shows the quantitative results of the underwater image quality index (UIQM) and average gradient (AG), which verify the performance of the proposed technical solution. The results of this invention show that adaptive gain control based on color correction yields better image quality.

[0076] Table 2

[0077]

[0078] The specific embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.

Claims

1. A method for underwater image sharpening and enhancement based on adaptive gain control, characterized in that, include: S1. Perform color space transformation on the original underwater image to obtain the LMS color space; S2. Linearly stretch the LMS color space to obtain a color-corrected image; S3. Perform a color space transformation on the color-corrected image to convert it to the HSV color space; S4. Sharpen the V channel image of the color-corrected image converted to HSV color space to obtain the sharpened V channel image. S5. Perform color balancing on the H and S channels of the color-corrected image converted to the HSV color space; S6. Convert the H and S channels of the color-balanced color-corrected image and the V channel image with enhanced sharpness into RGB color space images to obtain an enhanced underwater image; The process of sharpening the V channel image of the color-corrected image converted to the HSV color space to obtain a sharpened V channel image includes: The V channel image of the color-corrected image converted to the HSV color space is used for integral image calculation to obtain the low-frequency image; Based on the V channel image of the color-corrected image converted to the HSV color space and the low-frequency image, a high-frequency image is obtained; The high-frequency image is sharpened according to the adaptive gain control function to obtain the sharpened V-channel image; The V channel image of the color-corrected image converted to the HSV color space is used for integral image calculation to obtain the low-frequency image, specifically expressed as follows: in, For low-frequency images, and These represent the height and width of the V channel image after conversion to the HSV color space for color correction. and These represent the height and width of a local region block in the image, respectively. The sum of pixel intensities of a local region block in the V channel image V(x,y) of a color-corrected image converted to the HSV color space. , Each represents a sequence of integers; The high-frequency image is obtained by using the V channel image of the color-corrected image converted to the HSV color space and the low-frequency image, specifically expressed as follows: in, It is a high-frequency image; For low-frequency images, The V channel image for a color-corrected image converted to the HSV color space; The step of enhancing the sharpness of the high-frequency image according to the adaptive gain control function to obtain the sharpened V-channel image includes: An adaptive gain control function is used to calculate the high-frequency image to obtain an adaptive gain image of the high-frequency information; The high-frequency image is sharpened using an adaptive gain image to obtain a sharpened V-channel image; The adaptive gain control function is used to calculate the high-frequency image to obtain an adaptive gain image of the high-frequency information. The specific expression is as follows: in, For adaptive gain images, The attenuation rate, This is the sharpening intensity factor. For high-frequency images, It is a natural constant; The high-frequency image is sharpened using an adaptive gain image to obtain a sharpened V-channel image, specifically expressed as follows: in, This is the V channel image after sharpening. For adaptive gain images, For high-frequency images, For low-frequency images, This is element-wise multiplication.

2. The underwater image sharpening and enhancement method based on adaptive gain control according to claim 1, characterized in that, The step of linearly stretching the LMS color space to obtain a color-corrected image is specifically expressed as follows: in, Color-corrected image; and These are the minimum and maximum pixel intensities for each channel in the LMS color space, respectively. and These represent the grayscale ranges that need to be stretched.

3. The underwater image sharpening and enhancement method based on adaptive gain control according to claim 1, characterized in that, The specific expression for performing color balancing on the H and S channels of the color-corrected image converted to the HSV color space is as follows: in, To convert the H and S channels of a color-corrected image to the HSV color space, The mean values ​​of the H and S channels of a color-corrected image converted to the HSV color space. These are the H and S channels after corresponding color balance.

4. An underwater image sharpening and enhancement system based on adaptive gain control, performing the method of claim 1, characterized in that, include: The first transformation module is used to perform color space transformation on the original underwater image to obtain the LMS color space; The first obtaining module is used to linearly stretch the LMS color space to obtain a color-corrected image. The second transformation module is used to transform the color-corrected image into the HSV color space. The second acquisition module is used to enhance the sharpness of the V channel image of the color-corrected image converted to the HSV color space, and obtain the sharpened V channel image. The balancing module is used to perform color balancing on the H and S channels of the color-corrected image converted to the HSV color space. The third acquisition module is used to convert the H and S channels of the color-balanced color-corrected image and the V channel image with enhanced sharpness into RGB color space images to obtain enhanced underwater images.