[go: up one dir, main page]

CN111696052A - Underwater image enhancement method and system based on red channel weakness - Google Patents

Underwater image enhancement method and system based on red channel weakness Download PDF

Info

Publication number
CN111696052A
CN111696052A CN202010430434.0A CN202010430434A CN111696052A CN 111696052 A CN111696052 A CN 111696052A CN 202010430434 A CN202010430434 A CN 202010430434A CN 111696052 A CN111696052 A CN 111696052A
Authority
CN
China
Prior art keywords
channel
pixel value
red channel
red
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010430434.0A
Other languages
Chinese (zh)
Other versions
CN111696052B (en
Inventor
李昌利
汤世强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hohai University HHU
Original Assignee
Hohai University HHU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hohai University HHU filed Critical Hohai University HHU
Priority to CN202010430434.0A priority Critical patent/CN111696052B/en
Publication of CN111696052A publication Critical patent/CN111696052A/en
Application granted granted Critical
Publication of CN111696052B publication Critical patent/CN111696052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明公开了一种基于红通道衰弱的水下图像增强方法及系统,获取水下图像的红通道,绿通道,以及蓝通道像素值;对于红通道的每一个像素值,通过该像素值领域里的绿通道和蓝通道的像素值进行补偿,得到色彩补偿后的图像;使用白平衡算法对色彩补偿后的图像进行色彩调整。优点:本发明对红通道衰弱严重的水下图像通过利用水下衰减相对较小的绿通道和蓝通道对红通道的像素值进行补偿,然后通过白平衡算法对图像色彩进行调整;本发明能够自适应的补偿红通道的像素值,使其最大程度接近原本值,同时不会产生颜色过曝或伪影等不利现象。

Figure 202010430434

The invention discloses an underwater image enhancement method and system based on the attenuation of the red channel, which obtains the pixel values of the red channel, the green channel and the blue channel of the underwater image; Compensate the pixel values of the green channel and blue channel in the color compensation to obtain the color-compensated image; use the white balance algorithm to adjust the color of the color-compensated image. Advantages: the present invention compensates the pixel value of the red channel by using the green channel and the blue channel with relatively small underwater attenuation for the underwater image with severe red channel attenuation, and then adjusts the image color through the white balance algorithm; the present invention can Adaptively compensates the pixel value of the red channel to make it as close to the original value as possible without causing adverse phenomena such as color overexposure or artifacts.

Figure 202010430434

Description

一种基于红通道衰弱的水下图像增强方法及系统A method and system for underwater image enhancement based on red channel attenuation

技术领域technical field

本发明涉及一种基于红通道衰弱的水下图像增强方法及系统,属于图像处理技术领域。The invention relates to an underwater image enhancement method and system based on red channel attenuation, and belongs to the technical field of image processing.

背景技术Background technique

现今,陆地上的资源开采难以满足科技和经济发展的需求,人们已经将目标转向占据地球表面七成以上的海洋。而水下环境十分复杂,首先海水对不同波长的光线具有不同的吸收特性,自然光或人工光源在水中传播2米后其红色分量就会被完全吸收,传播10米左右时就只剩下绿色和蓝色分量;其次海水中还存在着各种不同的悬浮颗粒,光在传播时受到这些悬浮介质微粒的影响,偏离原来直线传播的方向,变为各个不同的方向,出现散射特性。这些原因不仅导致图像传感器直接获取的水下图像的背景呈现蓝绿色,还使得采集的图像出现对比度低、边缘细节模糊、亮度不均匀、清晰度差等状况。Nowadays, resource exploitation on land is difficult to meet the needs of technological and economic development, and people have turned to the ocean, which occupies more than 70% of the earth's surface. The underwater environment is very complicated. First of all, seawater has different absorption characteristics for light of different wavelengths. After natural light or artificial light source travels for 2 meters in water, the red component will be completely absorbed, and only green and The blue component; secondly, there are various suspended particles in the seawater, and the light is affected by these suspended medium particles when it propagates. These reasons not only cause the background of the underwater image directly obtained by the image sensor to appear blue-green, but also cause the collected image to have low contrast, blurred edge details, uneven brightness, and poor sharpness.

水下图像增强算法种类繁多,主要可以分为空域法和变换域法。其中,空域的方法是对图像上的像素直接进行处理,一般是灰度级上的映射处理,包括直方图均衡化和限灰度世界假设、白平衡以及Retinex增强理论等。变换域的方法是通过某种映射关系将空间域转换到变化域,并利于变化域的特点来对图像进行处理,最后再转回空间域。常见的变换域方法包括利用傅里叶变换以及小波变换等。但是现有的算法虽然在一定程度上改善了水下图像的视觉效果,但是在处理红通道衰减严重的水下图像时会出现图像过曝现象。There are many kinds of underwater image enhancement algorithms, which can be mainly divided into spatial domain method and transform domain method. Among them, the method of the spatial domain is to directly process the pixels on the image, which is generally the mapping process on the gray level, including histogram equalization and limited gray world hypothesis, white balance and Retinex enhancement theory. The transform domain method is to convert the spatial domain to the change domain through a certain mapping relationship, and process the image in favor of the characteristics of the change domain, and finally return to the spatial domain. Common transform domain methods include the use of Fourier transform and wavelet transform. However, although the existing algorithm improves the visual effect of underwater images to a certain extent, the phenomenon of image overexposure occurs when dealing with underwater images with severe red channel attenuation.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是克服现有技术的缺陷,提供一种基于红通道衰弱的水下图像增强方法及系统。The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide an underwater image enhancement method and system based on the attenuation of the red channel.

为解决上述技术问题,本发明提供一种基于红通道衰弱的水下图像增强方法,获取水下图像的红通道,绿通道,以及蓝通道像素值;In order to solve the above-mentioned technical problems, the present invention provides an underwater image enhancement method based on the attenuation of the red channel, and obtains the pixel values of the red channel, the green channel, and the blue channel of the underwater image;

对于红通道的每一个像素值,通过该像素值领域里的绿通道和蓝通道的像素值进行补偿,得到色彩补偿后的图像;For each pixel value of the red channel, the pixel value of the green channel and the blue channel in the pixel value field is compensated to obtain a color-compensated image;

使用白平衡算法对色彩补偿后的图像进行色彩调整。Use the white balance algorithm to color-adjust the color-compensated image.

进一步的,所述获取水下图像的红通道,绿通道,以及蓝通道像素值步骤之后还包括:Further, after the step of acquiring the red channel, green channel, and blue channel pixel values of the underwater image, it also includes:

对像素值进行归一化处理。Normalize pixel values.

进一步的,所述通过该像素值领域里的绿通道和蓝通道的像素值进行补偿采用的补偿公式如下:Further, the compensation formula used for compensation by the pixel values of the green channel and the blue channel in the pixel value field is as follows:

Figure BDA0002500374780000021
Figure BDA0002500374780000021

α+β=1α+β=1

式中,Ir,com(x,y)表示红通道补偿后的像素值;Ir(x,y)、Ig(x,y)和Ib(x,y)分别表示红通道、绿通道、蓝通道的像素值;α和β均是一个小于1常系数;Ig表示该像素值领域中绿色通道的归一化平均值,Ib表示该像素值领域中蓝色通道的归一化平均值。In the formula, I r, com (x, y) represents the pixel value after red channel compensation; I r (x, y), I g (x, y) and I b (x, y) represent the red channel, green The pixel values of the channel and blue channel; α and β are both a constant coefficient less than 1; I g represents the normalized average value of the green channel in the pixel value field, and I b represents the normalization of the blue channel in the pixel value field. average value.

进一步的,所述通过该像素值领域里的绿通道和蓝通道的像素值进行补偿步骤之后还包括:Further, after the step of compensating through the pixel values of the green channel and the blue channel in the pixel value field, the step further includes:

进行逆归一化,合成色彩补偿后的图像。Perform inverse normalization to synthesize the color-compensated image.

一种基于红通道衰弱的水下图像增强系统,包括:An underwater image enhancement system based on red channel attenuation, comprising:

获取模块,用于获取水下图像的红通道,绿通道,以及蓝通道像素值;The acquisition module is used to acquire the pixel values of the red channel, green channel and blue channel of the underwater image;

补偿模块,用于对于红通道的每一个像素值,通过该像素值领域里的绿通道和蓝通道的像素值进行补偿,得到色彩补偿后的图像;The compensation module is used to compensate each pixel value of the red channel through the pixel values of the green channel and the blue channel in the pixel value field to obtain a color-compensated image;

调整模块,用于使用白平衡算法对色彩补偿后的图像进行色彩调整。The adjustment module is used to adjust the color of the color-compensated image using the white balance algorithm.

进一步的,所述获取模块还包括:Further, the acquisition module also includes:

归一化处理模块,用于对像素值进行归一化处理。The normalization processing module is used to normalize the pixel values.

进一步的,所述补偿模块包括计算模块,用于通过下式对红通道的每一个像素值进行补偿计算:Further, the compensation module includes a calculation module for performing compensation calculation on each pixel value of the red channel by the following formula:

Figure BDA0002500374780000022
Figure BDA0002500374780000022

α+β=1α+β=1

式中,Ir,com(x,y)表示红通道补偿后的像素值;Ir(x,y)、Ig(x,y)和Ib(x,y)分别表示红通道、绿通道、蓝通道的像素值;α和β均是一个小于1常系数;Ig表示该像素值领域中绿色通道的归一化平均值,Ib表示该像素值领域中蓝色通道的归一化平均值。In the formula, I r, com (x, y) represents the pixel value after red channel compensation; I r (x, y), I g (x, y) and I b (x, y) represent the red channel, green The pixel values of the channel and blue channel; α and β are both a constant coefficient less than 1; I g represents the normalized average value of the green channel in the pixel value field, and I b represents the normalization of the blue channel in the pixel value field. average value.

进一步的,所述补偿模块包括逆归一化处理模块,用于进行逆归一化,合成色彩补偿后的图像。Further, the compensation module includes an inverse normalization processing module for performing inverse normalization and synthesizing the color-compensated image.

本发明所达到的有益效果:Beneficial effects achieved by the present invention:

本发明基于红通道衰弱的水下图像增强算法,对红通道衰弱严重的水下图像通过利用水下衰减相对较小的绿通道和蓝通道对红通道的像素值进行补偿,然后通过白平衡算法对图像色彩进行调整。经过实验表明,该算法能够有效解决水下图像的色彩恢复问题,提高图像的对比度。The invention is based on the underwater image enhancement algorithm with the attenuation of the red channel, and compensates the pixel value of the red channel by using the green channel and the blue channel with relatively small underwater attenuation for the underwater image with serious red channel attenuation, and then uses the white balance algorithm to compensate the pixel value of the red channel. Adjust the color of the image. Experiments show that the algorithm can effectively solve the problem of color recovery of underwater images and improve the contrast of images.

与现有水下图像增强算法相比,该算法能够自适应的补偿红通道的像素值,使其最大程度接近原本值,同时不会产生颜色过曝或伪影等不利现象。Compared with the existing underwater image enhancement algorithm, the algorithm can adaptively compensate the pixel value of the red channel to make it close to the original value to the greatest extent, and at the same time, it will not produce unfavorable phenomena such as color overexposure or artifacts.

附图说明Description of drawings

图1为本发明为基于红通道衰弱的水下图像增强算法流程图;Fig. 1 is the flow chart of the underwater image enhancement algorithm based on the weakening of the red channel of the present invention;

图2(a)和图2(b)图2(c)图2(d)分别为本发明实施例原图、红通道补偿后图、原图中红通道灰度直方图以及补偿后红通道灰度直方图;Figures 2(a) and 2(b), Figure 2(c), and Figure 2(d) are the original image, the red channel after compensation, the red channel grayscale histogram in the original image, and the red channel after compensation, respectively, according to the embodiment of the present invention. grayscale histogram;

图3(a)、3(b)、图3(c)分别为本发明实施例算法实现过程中的效果对比图,其中图3(a)为原图,图3(b)为红通道补充后图,图3(c)为白平衡后图。Figures 3(a), 3(b), and 3(c) are respectively the effect comparison diagrams in the process of implementing the algorithm according to the embodiment of the present invention, in which Figure 3(a) is the original image, and Figure 3(b) is the supplementary red channel The latter picture, Figure 3(c) is the after picture of white balance.

具体实施方式Detailed ways

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。The technical solutions of the present invention are further described below with reference to the accompanying drawings and through specific embodiments.

如图1所示,本发明公开了一种基于红通道衰弱的水下图像增强算法,具体包括以下步骤As shown in Figure 1, the present invention discloses an underwater image enhancement algorithm based on red channel attenuation, which specifically includes the following steps

(1)获取水下图像的红通道,绿通道,以及蓝通道像素值;(1) Obtain the red channel, green channel, and blue channel pixel values of the underwater image;

(2)对于红通道的每一个像素值,通过绿通道和蓝通道的像素值进行补偿;(2) For each pixel value of the red channel, compensation is performed by the pixel value of the green channel and the blue channel;

(3)使用白平衡算法对色彩补偿后的图像进行调整。(3) Use the white balance algorithm to adjust the color-compensated image.

所述步骤(1)中,在获取水下图像的红通道、绿通道、蓝通道的像素值后,对像素值进行归一化处理,即将像素值从[0,255]归一化到[0,1]区间内。In the step (1), after acquiring the pixel values of the red channel, green channel, and blue channel of the underwater image, the pixel values are normalized, that is, the pixel values are normalized from [0, 255] to [0, 1] within the interval.

所述步骤2中色彩补偿的具体方案如下:The specific scheme of color compensation in the step 2 is as follows:

由于邻域像素值具有相关性,而且相对于水下失真图像的蓝通道和绿通道,红通道的衰减过于严重,所以通过某一像素领域里的绿通道和蓝通道像素值补偿红通道的像素值,使得图像中红通道接近原本值。具体公式如下:Since the pixel values of the neighborhood are correlated, and the attenuation of the red channel is too serious compared to the blue channel and green channel of the underwater distorted image, the pixels of the red channel are compensated by the pixel values of the green channel and the blue channel in a certain pixel field. value, so that the red channel in the image is close to the original value. The specific formula is as follows:

Figure BDA0002500374780000041
Figure BDA0002500374780000041

α+β=1α+β=1

式中,Ir,com(x,y)表示红通道补偿后的像素值;Ir(x,y)、Ig(x,y)和Ib(x,y)分别表示红通道、绿通道、蓝通道的像素值,α和β是一个小于1常系数;

Figure BDA0002500374780000042
表示该窗口中绿色通道的归一化平均值,
Figure BDA0002500374780000043
表示该窗口中蓝色通道的归一化平均值α在[0.7,1]区间内取值效果较好,本实验中取α为0.9,β为0.1,领域大小为3*3。In the formula, I r, com (x, y) represents the pixel value after red channel compensation; I r (x, y), I g (x, y) and I b (x, y) represent the red channel, green The pixel value of the channel and blue channel, α and β are a constant coefficient less than 1;
Figure BDA0002500374780000042
represents the normalized mean of the green channel in this window,
Figure BDA0002500374780000043
It means that the normalized average value α of the blue channel in this window is better in the [0.7,1] interval. In this experiment, α is 0.9, β is 0.1, and the field size is 3*3.

进一步,在图像的红通道像素值得到补偿后,对红、绿、蓝三通道的像素值进行逆归一化处理,把像素值乘以255并向下取整,得到Ir逆(x,y)、Ig逆(x,y)、Ib逆(x,y),合成新的图像。Further, after the pixel value of the red channel of the image is compensated, inverse normalization is performed on the pixel value of the red, green and blue channels, and the pixel value is multiplied by 255 and rounded down to obtain I r inverse (x, y), I g inverse (x, y), I b inverse (x, y), and synthesize a new image.

白平衡是指对原本材质为白色物体的图像进行色彩还原。下面以白平衡中的灰度世界算法为例对图像进行色彩调整。当图像的颜色转变量大时,灰度世界假说认为该图像的三个颜色通道的像素平均值近似相等,即有同一个灰度值。White balance refers to the color reproduction of an image that is originally a white object. The following takes the grayscale world algorithm in white balance as an example to adjust the color of the image. When the color transition of the image is large, the gray-scale world hypothesis considers that the pixel averages of the three color channels of the image are approximately equal, that is, they have the same gray value.

其具体思想及计算公式如下:The specific idea and calculation formula are as follows:

假设I(x,y)是一幅像素为M×N的图像,x和y为像素具体位置,红、绿、蓝三个颜色通道的平均值计算公式如下:Assuming that I(x,y) is an image with M×N pixels, x and y are the specific positions of the pixels, and the average calculation formula of the three color channels of red, green, and blue is as follows:

Figure BDA0002500374780000051
Figure BDA0002500374780000051

K=(Ravg+Gavg+Bavg)/3K=(R avg +G avg +B avg )/3

其中Ir逆(x,y)、Ig逆(x,y)、Ib逆(x,y)为逆归一化后的红、绿、蓝通道像素值,RGB三通道的值分别改写为:Among them, I r inverse (x, y), I g inverse (x, y), and I b inverse (x, y) are the red, green, and blue channel pixel values after inverse normalization, and the values of the three RGB channels are rewritten respectively. for:

Figure BDA0002500374780000052
Figure BDA0002500374780000052

接着可以利用改写后的新通道对原图进行加权后得到颜色纠正后的图像。Then you can use the rewritten new channel to weight the original image to get a color-corrected image.

相应的,本发明还提供一种基于红通道衰弱的水下图像增强系统,包括:Correspondingly, the present invention also provides an underwater image enhancement system based on red channel attenuation, comprising:

获取模块,用于获取水下图像的红通道,绿通道,以及蓝通道像素值;The acquisition module is used to acquire the pixel values of the red channel, green channel and blue channel of the underwater image;

补偿模块,用于对于红通道的每一个像素值,通过该像素值领域里的绿通道和蓝通道的像素值进行补偿,得到色彩补偿后的图像;The compensation module is used to compensate each pixel value of the red channel through the pixel values of the green channel and the blue channel in the pixel value field to obtain a color-compensated image;

调整模块,用于使用白平衡算法对色彩补偿后的图像进行色彩调整。The adjustment module is used to adjust the color of the color-compensated image using the white balance algorithm.

进所述获取模块还包括:The said acquisition module also includes:

归一化处理模块,用于在获取水下图像的红通道,绿通道,以及蓝通道像素值后,对像素值进行归一化处理。The normalization processing module is used to normalize the pixel values after acquiring the pixel values of the red channel, the green channel and the blue channel of the underwater image.

所述补偿模块包括计算模块,用于通过下式对红通道的每一个像素值进行补偿计算:The compensation module includes a calculation module for performing compensation calculation on each pixel value of the red channel by the following formula:

Figure BDA0002500374780000053
Figure BDA0002500374780000053

α+β=1α+β=1

式中,Ir,com(x,y)表示红通道补偿后的像素值;Ir(x,y)、Ig(x,y)和Ib(x,y)分别表示红通道、绿通道、蓝通道的像素值;α和β均是一个小于1常系数;

Figure BDA0002500374780000061
表示该像素值领域中绿色通道的归一化平均值,
Figure BDA0002500374780000062
表示该像素值领域中蓝色通道的归一化平均值。In the formula, I r, com (x, y) represents the pixel value after red channel compensation; I r (x, y), I g (x, y) and I b (x, y) represent the red channel, green The pixel value of the channel and blue channel; α and β are both a constant coefficient less than 1;
Figure BDA0002500374780000061
represents the normalized mean of the green channel in this field of pixel values,
Figure BDA0002500374780000062
Represents the normalized mean of the blue channel in this field of pixel values.

所述补偿模块包括逆归一化处理模块,用于在通过该像素值领域里的绿通道和蓝通道的像素值进行补偿后,进行逆归一化,合成色彩补偿后的图像。The compensation module includes an inverse normalization processing module, which is used to perform inverse normalization after compensation is performed by the pixel values of the green channel and the blue channel in the pixel value field to synthesize a color-compensated image.

使用的白平衡算法还可以采用gray edge(灰度边缘)、shades of gray(灰度阴影)、max rgb(最大rgb)等算法。The white balance algorithm used can also adopt algorithms such as gray edge (gray edge), shades of gray (gray shadow), max rgb (maximum rgb).

为验证本算法的有效性,采用色彩恢复测试,多幅图像测试对恢复前后的图像进行对比测试,如图2(a)、2(b)、2(c)、2(d)、3(a)、3(b)、3(c)所示。In order to verify the effectiveness of this algorithm, the color recovery test is used to test the images before and after restoration, as shown in Figure 2(a), 2(b), 2(c), 2(d), 3( a), 3(b), 3(c).

a颜色恢复测试a color recovery test

对比算法增强后的图像及色板,存在色差的色板均正确恢复。The images and color swatches enhanced by the contrast algorithm, the swatches with chromatic aberration are restored correctly.

b多图测试b Multi-image test

原图像存在模糊、对比度低、色彩不均衡等特点。经过算法处理后,图片清晰,图像色彩均衡,对比度提高,与原图像相比,增强效果显著。The original image is characterized by blur, low contrast, and uneven color. After algorithm processing, the picture is clear, the color of the image is balanced, and the contrast is improved. Compared with the original image, the enhancement effect is remarkable.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. An underwater image enhancement method based on red channel attenuation is characterized in that,
acquiring pixel values of a red channel, a green channel and a blue channel of an underwater image;
for each pixel value of the red channel, compensating through the pixel values of the green channel and the blue channel in the field of the pixel value to obtain an image after color compensation;
and performing color adjustment on the image after color compensation by using a white balance algorithm.
2. The red channel attenuation-based underwater image enhancement method according to claim 1, wherein the step of obtaining the pixel values of the red channel, the green channel, and the blue channel of the underwater image is further followed by the steps of:
and carrying out normalization processing on the pixel values.
3. The underwater image enhancement method based on red channel attenuation according to claim 1, characterized in that the compensation formula for the pixel values of the green channel and the blue channel in the pixel value field is as follows:
Figure FDA0002500374770000011
α+β=1
in the formula Ir,com(x, y) represents the red channel compensated pixel value; i isr(x,y)、Ig(x, y) and Ib(x, y) represent pixel values for the red channel, green channel, and blue channel, respectively, α and β are each a constant less than 1;
Figure FDA0002500374770000013
representing the normalized average of the green channel in the pixel value domain,
Figure FDA0002500374770000012
representing the normalized average of the blue channel in the pixel value domain.
4. The method of claim 1, wherein the step of compensating for the pixel values of the green channel and the blue channel in the pixel value field further comprises:
and carrying out inverse normalization and synthesizing the image after color compensation.
5. An underwater image enhancement system based on red channel fading, comprising:
the acquisition module is used for acquiring pixel values of a red channel, a green channel and a blue channel of the underwater image;
the compensation module is used for compensating each pixel value of the red channel through the pixel values of the green channel and the blue channel in the field of the pixel value to obtain an image after color compensation;
and the adjusting module is used for adjusting the color of the image after the color compensation by using a white balance algorithm.
6. The red channel attenuation-based underwater image enhancement system of claim 5, wherein the acquisition module further comprises:
and the normalization processing module is used for performing normalization processing on the pixel values.
7. The red channel attenuation-based underwater image enhancement method according to claim 5, wherein the compensation module comprises a calculation module for performing compensation calculation on each pixel value of the red channel by the following formula:
Figure FDA0002500374770000021
α+β=1
in the formula Ir,com(x, y) represents the red channel compensated pixel value; i isr(x,y)、Ig(x, y) and Ib(x, y) represent pixel values for the red channel, green channel, and blue channel, respectively, α and β are each a constant less than 1;
Figure FDA0002500374770000023
representing the normalized average of the green channel in the pixel value domain,
Figure FDA0002500374770000022
representing the normalized average of the blue channel in the pixel value domain.
8. The red channel attenuation-based underwater image enhancement system according to claim 1, wherein said compensation module includes an inverse normalization processing module for performing inverse normalization to synthesize a color compensated image.
CN202010430434.0A 2020-05-20 2020-05-20 A method and system for underwater image enhancement based on red channel attenuation Active CN111696052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010430434.0A CN111696052B (en) 2020-05-20 2020-05-20 A method and system for underwater image enhancement based on red channel attenuation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010430434.0A CN111696052B (en) 2020-05-20 2020-05-20 A method and system for underwater image enhancement based on red channel attenuation

Publications (2)

Publication Number Publication Date
CN111696052A true CN111696052A (en) 2020-09-22
CN111696052B CN111696052B (en) 2022-08-12

Family

ID=72477978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010430434.0A Active CN111696052B (en) 2020-05-20 2020-05-20 A method and system for underwater image enhancement based on red channel attenuation

Country Status (1)

Country Link
CN (1) CN111696052B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496474A (en) * 2021-06-15 2021-10-12 中汽创智科技有限公司 Image processing method, device, all-round viewing system, automobile and storage medium
WO2022083765A1 (en) * 2020-10-23 2022-04-28 影石创新科技股份有限公司 Underwater image color restoration method and apparatus, and underwater video color restoration method and apparatus
CN115423724A (en) * 2022-11-03 2022-12-02 中国石油大学(华东) Underwater image enhancement method, device and medium for reinforcement learning parameter optimization
WO2022253014A1 (en) * 2021-05-31 2022-12-08 影石创新科技股份有限公司 Underwater image color restoration method and apparatus
WO2024056014A1 (en) * 2022-09-14 2024-03-21 影石创新科技股份有限公司 Image white balance processing method, apparatus, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369699B1 (en) * 2003-08-29 2008-05-06 Apple Inc. Methods and apparatuses for restoring color and enhancing electronic images
CN105631834A (en) * 2015-12-16 2016-06-01 安徽创世科技有限公司 Night vision image enhancement method
CN108596843A (en) * 2018-04-10 2018-09-28 山东大学 A kind of underwater picture color recovery algorithm based on bright channel
CN110728647A (en) * 2019-10-16 2020-01-24 紫光展讯通信(惠州)有限公司 Underwater image enhancement method and device, storage medium and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369699B1 (en) * 2003-08-29 2008-05-06 Apple Inc. Methods and apparatuses for restoring color and enhancing electronic images
CN105631834A (en) * 2015-12-16 2016-06-01 安徽创世科技有限公司 Night vision image enhancement method
CN108596843A (en) * 2018-04-10 2018-09-28 山东大学 A kind of underwater picture color recovery algorithm based on bright channel
CN110728647A (en) * 2019-10-16 2020-01-24 紫光展讯通信(惠州)有限公司 Underwater image enhancement method and device, storage medium and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022083765A1 (en) * 2020-10-23 2022-04-28 影石创新科技股份有限公司 Underwater image color restoration method and apparatus, and underwater video color restoration method and apparatus
US20230401674A1 (en) * 2020-10-23 2023-12-14 Arashi Vision Inc. Underwater image color restoration method and apparatus, and underwater video color restoration method and apparatus
WO2022253014A1 (en) * 2021-05-31 2022-12-08 影石创新科技股份有限公司 Underwater image color restoration method and apparatus
CN113496474A (en) * 2021-06-15 2021-10-12 中汽创智科技有限公司 Image processing method, device, all-round viewing system, automobile and storage medium
WO2024056014A1 (en) * 2022-09-14 2024-03-21 影石创新科技股份有限公司 Image white balance processing method, apparatus, computer device and storage medium
CN115423724A (en) * 2022-11-03 2022-12-02 中国石油大学(华东) Underwater image enhancement method, device and medium for reinforcement learning parameter optimization

Also Published As

Publication number Publication date
CN111696052B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN111696052B (en) A method and system for underwater image enhancement based on red channel attenuation
CN101971612B (en) Image processing device and method
CN110889812B (en) A method of underwater image enhancement based on multi-scale fusion of image feature information
CN110689587B (en) Underwater image enhancement method based on color correction and detail enhancement
CN104408752B (en) A kind of high dynamic range images compression method based on mixed shades mapping algorithm
EP1742178B1 (en) Contrast enhancement of images
CN108765342A (en) A kind of underwater image restoration method based on improvement dark
CN107507145A (en) A kind of underwater picture Enhancement Method based on the stretching of different colours spatially adaptive histogram
CN110689504B (en) Underwater image restoration method based on secondary guide transmission diagram
CN108596843B (en) Underwater image color recovery algorithm based on bright channel
CN102722868A (en) Tone mapping method for high dynamic range image
EP1139284A2 (en) Method and apparatus for performing local color correction
CN107424124B (en) Image enhancement method and device
CN116630198A (en) A multi-scale fusion underwater image enhancement method combined with adaptive gamma correction
CN107358578B (en) Yin-yang face treatment method and device
CN117173041A (en) An underwater image enhancement method, device, equipment and medium
CN119648588B (en) Image enhancement method based on high-frequency low-frequency self-adaptive fusion
JP2003076985A (en) Image processing method and device
Li et al. Soft binary segmentation-based backlit image enhancement
CN118071634B (en) Self-adaptive enhancement method for low-illumination color cast image
CN116385568A (en) Underwater Image Enhancement Method Based on Dynamic Color Channel Compensation
CN118195909A (en) Underwater image enhancement method and system based on color correction and histogram pruning
CN117876233A (en) Mapping image enhancement method based on unmanned aerial vehicle remote sensing technology
CN110807748A (en) New tone mapping image enhancement method based on high dynamic range
CN111292263B (en) An Image Enhancement Method Based on Color Correction and Deblurring

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant