CN109767399B - Underwater image enhancement method based on unsupervised color correction - Google Patents
Underwater image enhancement method based on unsupervised color correction Download PDFInfo
- Publication number
- CN109767399B CN109767399B CN201910032545.3A CN201910032545A CN109767399B CN 109767399 B CN109767399 B CN 109767399B CN 201910032545 A CN201910032545 A CN 201910032545A CN 109767399 B CN109767399 B CN 109767399B
- Authority
- CN
- China
- Prior art keywords
- image
- underwater
- color
- channel
- avg
- 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.)
- Active
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/30—Assessment of water resources
Landscapes
- Image Processing (AREA)
Abstract
Description
技术领域Technical Field
本发明属于海洋工程领域,具体涉及一种基于无监督色彩校正的水下图像增强方法。The invention belongs to the field of marine engineering, and in particular relates to an underwater image enhancement method based on unsupervised color correction.
背景技术Background Art
由于受到水下复杂且恶劣成像环境的影响,所拍摄到的水下图像一般具有低对比度、模糊和偏色等不足。图像视觉质量的下降将对后续特征提取和目标识别过程的性能有着严重的不良影响,故对水下图像进行增强预处理有着很大的意义。Due to the complex and harsh underwater imaging environment, the underwater images captured generally have deficiencies such as low contrast, blur and color cast. The degradation of image visual quality will have a serious adverse impact on the performance of subsequent feature extraction and target recognition processes, so it is of great significance to enhance the preprocessing of underwater images.
在国内,哈尔滨工程大学海洋技术研究中心通过对光学声学图像的处理在2003和2004的海洋工程试验中得到了水下目标的方位和尺寸等信息,取得了巨大的成就,从而证明了水下图像的处理算法是真实可靠的。北京理工大学光电成像实验室可以通过研究序列图像从而获取距离信息,并可以重建水下三维图像;在2008年华中科技大学使用二维小波变换成功分割水下图像,达到了增强了局部方向性的对比度。2012年,陈从平等人提出一种有效的低对比度水下图像增强算法,成功提高了高频增益抑制了低频成分。In China, the Marine Technology Research Center of Harbin Engineering University obtained information such as the position and size of underwater targets in marine engineering experiments in 2003 and 2004 by processing optical acoustic images, and achieved great success, thus proving that the underwater image processing algorithm is authentic and reliable. The Optoelectronic Imaging Laboratory of Beijing Institute of Technology can obtain distance information by studying sequence images and reconstruct underwater three-dimensional images; in 2008, Huazhong University of Science and Technology successfully segmented underwater images using two-dimensional wavelet transform, achieving enhanced local directional contrast. In 2012, Chen Congping et al. proposed an effective low-contrast underwater image enhancement algorithm, which successfully improved high-frequency gain and suppressed low-frequency components.
在深海里,太阳光是无法传输到这里,在这里我们只能依靠点光源去拍摄图像,在其中心是最亮的,并且光从周围发射,即使是肉眼也能看到,但离光源越远,光线越弱。因此,当在图像上表示光能信息时,就会出现灰度分布不均匀的情况。由于水下复杂环境的影响,光不断地被水体所吸收,导致了光能量的不断减小,水分子和杂质在水中的散射导致光线的偏移。也正是因为如此,水下图像成像才会如此困难,采集到的信息也不完整。不同波长波段水下介质的散射和吸收特性不一致,水体因为反射天空的蓝色,导致水下图像基本呈现出蓝色,这就导致了水下图像颜色失真(偏绿或偏蓝)。In the deep sea, sunlight cannot be transmitted here. Here we can only rely on point light sources to capture images. The brightest light is in the center, and light is emitted from the surroundings. Even the naked eye can see it, but the farther away from the light source, the weaker the light. Therefore, when the light energy information is represented on the image, there will be an uneven grayscale distribution. Due to the influence of the complex underwater environment, light is constantly absorbed by the water body, resulting in a continuous decrease in light energy. The scattering of water molecules and impurities in the water causes the light to shift. It is precisely because of this that underwater imaging is so difficult and the information collected is incomplete. The scattering and absorption characteristics of underwater media in different wavelength bands are inconsistent. Because the water body reflects the blue of the sky, the underwater image basically appears blue, which leads to color distortion of the underwater image (green or blue).
发明内容Summary of the invention
本发明的目的在于解决现有技术中存在的不足,提供一种基于无监督色彩校正的水下图像增强方法,能够有效地克服原方法处理非蓝偏色图像时出现失真的问题。The purpose of the present invention is to solve the deficiencies in the prior art and to provide an underwater image enhancement method based on unsupervised color correction, which can effectively overcome the problem of distortion when the original method processes non-blue cast images.
本发明的有益效果在于:The beneficial effects of the present invention are:
本发明的一种基于无监督色彩校正的水下图像增强方法有效地鉴别图像偏色,解决了原方法处理非蓝偏色的水下图像的颜色失真问题。本发明将RGB空间与HIS空间结合运用,加上各方向上的对比度校正方法有效地消除了水下图像的偏色问题,提高原图像的照度和真彩色。与其他方法相比,该方法能显著提高水下图像的视觉质量,一致的增强了水下图像的客观质量。The underwater image enhancement method based on unsupervised color correction of the present invention effectively identifies the color cast of the image, and solves the color distortion problem of the original method in processing underwater images with non-blue color cast. The present invention combines the RGB space with the HIS space, and adds the contrast correction method in each direction to effectively eliminate the color cast problem of the underwater image, and improve the illumination and true color of the original image. Compared with other methods, this method can significantly improve the visual quality of underwater images and consistently enhance the objective quality of underwater images.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为一种基于无监督色彩监督校正方法的实施步骤图。FIG1 is a diagram showing the implementation steps of an unsupervised color correction method.
图2(a)为A图水下典型目标视觉图像。Figure 2(a) is a typical underwater target visual image of Figure A.
图2(b)为B图水下典型目标视觉图像。Figure 2(b) is a typical underwater target visual image in Figure B.
图3(a)为原方法处理后的A图的图像。Figure 3(a) is the image of Figure A after being processed by the original method.
图3(b)为原方法处理后的B图的图像。Figure 3(b) is the image of image B after being processed by the original method.
图4(a)为本发明处理后的A图的图像。FIG. 4( a ) is an image of FIG. A after being processed by the present invention.
图4(b)为本发明处理后的B图的图像。FIG4( b ) is an image of the B image after being processed by the present invention.
具体实施方式DETAILED DESCRIPTION
下面结合具体实施例,进一步阐述本发明。应理解这些实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲述的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content described in the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
随着海洋、湖泊、河流资源的勘探,水下图像已成为一个重要的研究领域。然而,由于受到水下复杂且恶劣成像环境的影响,所拍摄到的水下图像常常会出现颜色畸变和对比度低等问题。水下成像可以表示为前向散射分量和后向散射分量的线性叠加,前向散射导致图像特征的模糊,而后向散射掩盖了场景的细节。由于每种颜色子图都有不同的波长和能量级别,在水中会以不同的速率被吸收。红光或者橙光等较长波长的光分量往往在水中被迅速吸收,因此水下图像通常呈现出绿色或蓝色基调。图像视觉质量的下降将对后续特征提取和目标识别过程的性能有着严重的不良影响。图像增强是处理图像的基本方法,是解决水下拍摄图像模糊不清、质量严重低下的有效手段之一。为了确保图像的信息完整,开发出一种处理效果更佳的水下图像增强方法变得十分的有必要。With the exploration of ocean, lake and river resources, underwater images have become an important research field. However, due to the complex and harsh underwater imaging environment, the underwater images captured often have problems such as color distortion and low contrast. Underwater imaging can be expressed as a linear superposition of forward scattering components and backscattering components. Forward scattering causes blurring of image features, while backscattering obscures the details of the scene. Since each color sub-image has a different wavelength and energy level, it is absorbed at different rates in water. Light components with longer wavelengths, such as red or orange light, tend to be quickly absorbed in water, so underwater images usually appear green or blue tones. The degradation of image visual quality will have a serious adverse effect on the performance of subsequent feature extraction and target recognition processes. Image enhancement is a basic method for processing images and is one of the effective means to solve the problem of blurred and severely low quality underwater images. In order to ensure the integrity of image information, it is very necessary to develop an underwater image enhancement method with better processing effect.
为了增强原始的水下图像,本发明提出了一种基于无监督色彩校正的水下图像增强方法,该方法包括以下主要步骤:In order to enhance the original underwater image, the present invention proposes an underwater image enhancement method based on unsupervised color correction, which includes the following main steps:
步骤一:利用RGB颜色模型对图像进行计算处理。设IR(i,j),IG(i,j),IJ(i,j)分别为尺寸为M×N的RGB图像红,绿,蓝分量,其中i=1,…,M;j=1,…,N。接着计算各个颜色分量Rmax,Rmin,Gmax,Gmin和Bmax,Bmin的最大及最小像素值:Step 1: Use the RGB color model to calculate and process the image. Let IR (i, j), IG (i, j), IJ (i, j) be the red, green, and blue components of an RGB image of size M×N, respectively, where i=1,…,M; j=1,…,N. Then calculate the maximum and minimum pixel values of each color component R max , R min , G max , G min and B max , B min :
使用上述等式得到最突出与最不突出的偏色通道。Use the above equation to get the most and least prominent color cast channels.
步骤二:使用乘法器来确定颜色通道以匹配m阶来产生平衡图像。首先计算RGB颜色模型中各个颜色成分Ravg,Gavg和Bavg的平均值:Step 2: Use a multiplier to determine the color channel to match the m-order to produce a balanced image. First, calculate the average value of each color component R avg , G avg and B avg in the RGB color model:
其次利用步骤一得到突出的偏色通道,并使用高分量来增加其他颜色以使图像平衡,当Rmax最大时,图像为红偏色;当Gmax最大时,图像为绿偏色;当Bmax最大时,图像为蓝偏色。基于主导色偏,计算两个增益因子,将最高颜色通道设置为目标平均值,并且使用乘法器来确定颜色通道以匹配m阶来产生平衡图像。所提出的方法使用两个颜色通道来减少受影响图像的偏色。Secondly, the prominent color cast channel is obtained by using step 1, and the high component is used to increase other colors to balance the image. When R max is the largest, the image is red cast; when G max is the largest, the image is green cast; when B max is the largest, the image is blue cast. Based on the dominant color cast, two gain factors are calculated, the highest color channel is set to the target average, and a multiplier is used to determine the color channel to match the m-order to produce a balanced image. The proposed method uses two color channels to reduce the color cast of the affected image.
R通道为突出通道时:When the R channel is a prominent channel:
a=Ravg/Gavg a=R avg /G avg
b=Ravg/Bavg b=R avg /B avg
G'=a×GG'=a×G
B'=b×BB'=b×B
其中G和B是原始图像中的像素值,而G'和B'是经调整后的像素值。Where G and B are the pixel values in the original image, and G' and B' are the adjusted pixel values.
G通道为突出通道时:When the G channel is a prominent channel:
a=Gavg/Ravg a=G avg /R avg
b=Gavg/Bavg b=G avg /B avg
R'=a×RR'=a×R
B'=b×BB'=b×B
其中R和B是原始图像中的像素值,而R'和B'是经调整后的像素值。Where R and B are the pixel values in the original image, and R' and B' are the adjusted pixel values.
B通道为突出通道时:When channel B is the prominent channel:
a=Bavg/Ravg a=B avg /R avg
b=Bavg/Gavg b=B avg /G avg
R'=a×RR'=a×R
G'=b×GG'=b×G
其中R和G是原始图像中的像素值,而R'和G'是经调整后的像素值。Where R and G are the pixel values in the original image, and R' and G' are the adjusted pixel values.
步骤三:应用对比度校正方法于与处理之后的图像。对比度校正公式为:Step 3: Apply contrast correction method to the processed image. The contrast correction formula is:
其中P0是经过对比度校正的像素值;Pi是所考虑的像素值;a是0的下限值;b是255的上限值;c是图像中当前存在的最小像素值;d是图像中当前存在的最大像素值。依次对上侧、下侧、两侧使用对比度校正方法,当应用于上侧时,下限更改为最低颜色值分量的最小值;当应用于上侧时,上限更改为最突出颜色通道的最大值;当应用于两侧时,公式不变。Where P0 is the contrast-corrected pixel value; Pi is the pixel value under consideration; a is the lower limit of 0; b is the upper limit of 255; c is the minimum pixel value currently in the image; d is the maximum pixel value currently in the image. The contrast correction method is applied to the upper side, the lower side, and the two sides in turn. When applied to the upper side, the lower limit is changed to the minimum value of the lowest color value component; when applied to the upper side, the upper limit is changed to the maximum value of the most prominent color channel; when applied to both sides, the formula remains unchanged.
步骤四:将图像从RGB空间转换到HIS空间。其转换公式为:Step 4: Convert the image from RGB space to HIS space. The conversion formula is:
步骤五:在应用对比度校正方法于HIS颜色空间的图像。在这里我们仅对两侧进行对比度校正,方法同步骤三。Step 5: Apply contrast correction to the image in HIS color space. Here we only perform contrast correction on both sides, using the same method as step 3.
通过以上五个步骤的操作,最终得到增强后的水下图像。与其他现有技术相比,本发明有效地利用图像中的高偏色增加其他的颜色来平衡图像;对比校正方法在色彩增强方面起着至关重要的作用,因为使用这种方法可以通过将高偏色颜色直方图拉伸到最小侧来减少高偏色。类似地,通过将低偏色颜色直方图拉向最大侧来增加低偏色,以便生成高质量的图像。通过HSI彩色模型的强度和饱和度参数增加了水下图像的照明和真彩色,因此图像看起来更亮更丰富。考虑了图像的属性并根据其特性而不是静态标准来增强图像,因此该发明比现有的一些方法能够更好地对水下图像进行增强处理。相比较于原方法,很好地解决了原方法处理非蓝偏色的水下图像的颜色失真问题。Through the operation of the above five steps, the enhanced underwater image is finally obtained. Compared with other existing technologies, the present invention effectively utilizes the high color cast in the image to add other colors to balance the image; the contrast correction method plays a vital role in color enhancement, because the use of this method can reduce the high color cast by stretching the high color cast color histogram to the minimum side. Similarly, the low color cast is increased by pulling the low color cast color histogram to the maximum side to generate high-quality images. The illumination and true color of the underwater image are increased by the intensity and saturation parameters of the HSI color model, so the image looks brighter and richer. The properties of the image are taken into account and the image is enhanced according to its characteristics rather than static standards, so the invention can better enhance the underwater image than some existing methods. Compared with the original method, the color distortion problem of the original method in processing underwater images with non-blue color cast is well solved.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910032545.3A CN109767399B (en) | 2019-01-14 | 2019-01-14 | Underwater image enhancement method based on unsupervised color correction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910032545.3A CN109767399B (en) | 2019-01-14 | 2019-01-14 | Underwater image enhancement method based on unsupervised color correction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109767399A CN109767399A (en) | 2019-05-17 |
CN109767399B true CN109767399B (en) | 2023-04-07 |
Family
ID=66453650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910032545.3A Active CN109767399B (en) | 2019-01-14 | 2019-01-14 | Underwater image enhancement method based on unsupervised color correction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109767399B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110189268A (en) * | 2019-05-23 | 2019-08-30 | 西安电子科技大学 | Underwater image color correction method based on GAN network |
CN114418876B (en) * | 2022-01-05 | 2024-11-12 | 大连海事大学 | An underwater image enhancement method based on light scattering characteristics |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5548697A (en) * | 1994-12-30 | 1996-08-20 | Panasonic Technologies, Inc. | Non-linear color corrector having a neural network and using fuzzy membership values to correct color and a method thereof |
CN107886486A (en) * | 2017-12-01 | 2018-04-06 | 天津大学 | Based on dark channel prior and variation Retinex underwater picture Enhancement Methods |
CN108053374B (en) * | 2017-12-05 | 2020-08-04 | 天津大学 | Underwater image enhancement method combining bilateral filtering and Retinex |
-
2019
- 2019-01-14 CN CN201910032545.3A patent/CN109767399B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109767399A (en) | 2019-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhang et al. | Underwater image enhancement via minimal color loss and locally adaptive contrast enhancement | |
CN111161170B (en) | Underwater image comprehensive enhancement method for target recognition | |
CN106056559B (en) | Nonuniform illumination Underwater Target Detection image enchancing method based on dark channel prior | |
CN104240194B (en) | A kind of enhancement algorithm for low-illumination image based on parabolic function | |
Wang et al. | Variational single nighttime image haze removal with a gray haze-line prior | |
CN108765342A (en) | A kind of underwater image restoration method based on improvement dark | |
CN108876735A (en) | A kind of blind denoising method of true picture based on depth residual error network | |
CN111292258A (en) | Image defogging method based on dark channel prior and bright channel prior | |
CN111861896A (en) | A UUV-Oriented Color Compensation and Restoration Method for Underwater Images | |
CN107507145A (en) | A kind of underwater picture Enhancement Method based on the stretching of different colours spatially adaptive histogram | |
CN102903081A (en) | Low-light Image Enhancement Method Based on RGB Color Model | |
CN107067386B (en) | A Shallow Sea Underwater Image Enhancement Method Based on Relative Global Histogram Stretching | |
CN105447833A (en) | Foggy weather image reconstruction method based on polarization | |
CN109767399B (en) | Underwater image enhancement method based on unsupervised color correction | |
CN111311503A (en) | A low-brightness image enhancement system at night | |
CN105354801A (en) | HSV color space based image enhancement method | |
CN107705258A (en) | A kind of underwater picture Enhancement Method of three primary colours joint preequalization and deblurring | |
Mishra et al. | Fusion of multiscale gradient domain enhancement and gamma correction for underwater image/video enhancement and restoration | |
Yang et al. | Underwater image enhancement method based on golden jackal optimization | |
Ma et al. | Low-Light Image Enhancement using Retinex-based Network with Attention Mechanism. | |
CN104809697B (en) | A kind of improved high quick sea fog image enchancing method of boostfiltering | |
Bi et al. | Perception and recognition of underwater cable based on deep learning | |
Dogra et al. | Underwater image dehazing using non-local prior method and air-light estimation | |
Qing et al. | Underwater image enhancement with an adaptive dehazing framework | |
Zhang et al. | A depth estimation model from a single underwater image with non-uniform illumination correction |
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 |