CN114638765A - Low-illumination image enhancement method based on complementary gamma conversion - Google Patents
Low-illumination image enhancement method based on complementary gamma conversion Download PDFInfo
- Publication number
- CN114638765A CN114638765A CN202210325152.3A CN202210325152A CN114638765A CN 114638765 A CN114638765 A CN 114638765A CN 202210325152 A CN202210325152 A CN 202210325152A CN 114638765 A CN114638765 A CN 114638765A
- Authority
- CN
- China
- Prior art keywords
- image
- component
- low
- method based
- complementary gamma
- 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.)
- Pending
Links
- 230000000295 complement effect Effects 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000005286 illumination Methods 0.000 title claims abstract description 11
- 238000006243 chemical reaction Methods 0.000 title 1
- 230000009466 transformation Effects 0.000 claims abstract description 13
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 3
- 235000008733 Citrus aurantifolia Nutrition 0.000 description 2
- 235000011941 Tilia x europaea Nutrition 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 2
- 239000004571 lime Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种基于互补伽马变换的低照度图像增强方法,包括以下步骤:(1)将原始彩色图像从RGB空间转化到HSV空间,获取图像的照度分量V、色调分量H、饱和度分量S;(2)对照度分量V采用互补伽马变换函数进行处理得到增强照度分量V‘;(3)再将彩色图像从HSV空间转换到RGB空间,获取增强图像。本发明能够有效改善光照不均匀导致图像模糊现象,使得图像的视觉效果更佳,同时抑制图像的高曝光部分。
The invention discloses a low-illuminance image enhancement method based on complementary gamma transformation, comprising the following steps: (1) Converting an original color image from RGB space to HSV space, and obtaining the illumination component V, hue component H, saturation of the image component S; (2) use complementary gamma transform function to process the luminance component V to obtain the enhanced luminance component V ′ ; (3) convert the color image from the HSV space to the RGB space to obtain the enhanced image. The invention can effectively improve the image blur phenomenon caused by uneven illumination, so that the visual effect of the image is better, and at the same time, the high exposure part of the image is suppressed.
Description
技术领域technical field
本发明涉及图像处理技术领域,具体是涉及一种基于互补伽马变换的低照度图像增强方法。The invention relates to the technical field of image processing, in particular to a low-illuminance image enhancement method based on complementary gamma transformation.
背景技术Background technique
受到图像采集技术、成像环境等因素的限制,有时获得高质量的图像是非常困难的,在极端天气条件下或夜间拍摄的图像往往能见度低,细节模糊,质量大大下降。获得低照度的图像几乎是不可避免的。因此,有必要增强低照度图像以满足我们的需求。现有技术中,大多采用加权分布的自适应伽马校正增强图(AGCWD)或者光照估计的微光图像增强图(LIME)技术对图像进行增强,但采用以上技术进行增强的图像中存在一些高曝光的部分。Due to the limitation of image acquisition technology, imaging environment and other factors, it is sometimes very difficult to obtain high-quality images. Images captured in extreme weather conditions or at night often have low visibility, blurred details, and greatly reduced quality. Getting low-light images is almost inevitable. Therefore, it is necessary to enhance low-light images to meet our needs. In the prior art, the adaptive gamma correction enhancement map (AGCWD) of weighted distribution or the low-light image enhancement map (LIME) technology of illumination estimation are mostly used to enhance the image, but there are some high-level images in the images enhanced by the above technologies. exposed part.
发明内容SUMMARY OF THE INVENTION
发明目的:针对以上缺点,本发明提供一种基于互补伽马变换的低照度图像增强方法,能够有效改善光照不均匀导致图像模糊现象,使得图像的视觉效果更佳,同时抑制图像的高曝光部分。Purpose of the invention: In view of the above shortcomings, the present invention provides a low-illumination image enhancement method based on complementary gamma transformation, which can effectively improve the image blur caused by uneven illumination, make the visual effect of the image better, and suppress the high exposure part of the image. .
技术方案:为解决上述问题,本发明一种基于互补伽马变换的低照度图像增强方法,包括以下步骤:Technical solution: In order to solve the above problems, a low-illumination image enhancement method based on complementary gamma transformation of the present invention includes the following steps:
(1)将原始彩色图像从RGB空间转化到HSV空间,获取图像的照度分量V、色调分量H、饱和度分量S;(1) Convert the original color image from RGB space to HSV space, and obtain the illuminance component V, hue component H, and saturation component S of the image;
(2)对照度分量V采用互补伽马变换函数进行处理得到增强照度分量V′;所述的互补伽马变换函数公式为:(2) The illuminance component V is processed by the complementary gamma transformation function to obtain the enhanced illuminance component V'; the formula of the complementary gamma transformation function is:
V′=a1V1+a2V2 V'=a 1 V 1 +a 2 V 2
V1=Vr V 1 =V r
V2=1-(1-V)r V 2 =1-(1-V) r
式中,r=2.2;a1、a2均为权重系数;In the formula, r=2.2; a 1 and a 2 are weight coefficients;
(3)再将彩色图像从HSV空间转换到RGB空间,获取增强图像。(3) Convert the color image from HSV space to RGB space to obtain an enhanced image.
进一步的,步骤(2)中权重系数计算公式如下:Further, the weight coefficient calculation formula in step (2) is as follows:
式中:i取1,2;表示Vi的平均值。In the formula: i takes 1, 2; represents the average value of Vi .
进一步的,将原始彩色图像从RGB空间转化到HSV空间的公式为:Further, the formula for converting the original color image from RGB space to HSV space is:
进一步的,将彩色图像从HSV空间转换到RGB空间的公式为:Further, the formula for converting a color image from HSV space to RGB space is:
其中:hi=[H/60]mod6,f=H/60-hi,p=V′×(1-S),q=V′×(1-f×S),t=V′×(1-(1-f)×S)。Wherein: h i =[H/60]mod6,f=H/60- hi , p=V′×(1-S), q=V′×(1-f×S), t=V′× (1-(1-f)×S).
有益效果:本发明所述相对于现有技术,其显著优点是:通过使用所设计的互补伽马变换校正函数对图像的照度分量V进行处理,能够使得图像的亮度分布更加均匀,图像的细节得到有效增强,图像的视觉质量更高;并且在得到增强的图像整体亮度有所提高的同时,也抑制图像的高曝光部分,细节也得到一定的增强。Beneficial effects: Compared with the prior art, the significant advantage of the present invention is: by using the designed complementary gamma transform correction function to process the illuminance component V of the image, the brightness distribution of the image can be made more uniform, and the details of the image can be made more uniform. It is effectively enhanced, and the visual quality of the image is higher; and while the overall brightness of the enhanced image is improved, the high exposure part of the image is also suppressed, and the details are also enhanced to a certain extent.
附图说明Description of drawings
图1所示为本发明所述的方法的流程图;Fig. 1 shows the flow chart of the method of the present invention;
图2所示为图像增强对比图;图2(a)所示为原图;图2(b)所示为本发明的增强图;Fig. 2 is an image enhancement comparison diagram; Fig. 2 (a) is an original image; Fig. 2 (b) is an enhanced image of the present invention;
图3所示为各种算法增强结果对比图;图3(a)所示为原图、图3(b)所示为采用加权分布的自适应伽马校正(AGCWD)的增强图、图3(c)所示为采用光照估计的微光图像增强图(LIME)的增强图、图3(d)所示为本发明增强图。Figure 3 shows the comparison of the enhancement results of various algorithms; Figure 3(a) shows the original image, Figure 3(b) shows the enhancement map of adaptive gamma correction (AGCWD) using weighted distribution, and Figure 3 (c) shows the enhancement map of the low-light image enhancement map (LIME) using illumination estimation, and FIG. 3(d) shows the enhancement map of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明的技术方案进一步说明。The technical solutions of the present invention are further described below with reference to the accompanying drawings.
如图1所示,本发明所述一种基于互补伽马变换的低照度图像增强方法,具体包括以下步骤:As shown in FIG. 1 , a method for enhancing low-illuminance images based on complementary gamma transformation according to the present invention specifically includes the following steps:
(1)将原始彩色图像从RGB空间转化到HSV空间,获取图像的照度分量V、色调分量H、饱和度分量S;具体公式为:(1) Convert the original color image from RGB space to HSV space, and obtain the luminance component V, hue component H, and saturation component S of the image; the specific formula is:
式中:where:
(2)针对获取的照度分量V使用所设计的互补伽马校正函数进行处理:(2) Use the designed complementary gamma correction function to process the acquired illuminance component V:
(a)对V分量的拉伸公式采用传统的伽马校正函数,公式为:(a) The traditional gamma correction function is used for the stretching formula of the V component, and the formula is:
V1=Vr V 1 =V r
(b)对V分量的所设计的补偿公式如下:(b) The designed compensation formula for the V component is as follows:
V2=1-(1-V)r V 2 =1-(1-V) r
(c)所设计的互补伽马校正函数为:(c) The designed complementary gamma correction function is:
V′=a1V1+a2V2 V'=a 1 V 1 +a 2 V 2
其中,r=2.2;a1、a2均为权重系数;为了使得算法能够自适应且取值能够维持在[0,1]区间内,所设计的权重系数计算公式如下:Among them, r=2.2; a 1 and a 2 are both weight coefficients; in order to make the algorithm self-adaptive and the value can be maintained in the [0,1] interval, the designed weight coefficient calculation formula is as follows:
其中:i取1,2;表示Vi的平均值。Among them: i takes 1, 2; represents the average value of Vi .
(3)再将彩色图像从HSV空间转换到RGB空间,获取增强图像。具体的公式为:(3) Convert the color image from HSV space to RGB space to obtain an enhanced image. The specific formula is:
其中:hi=[H/60]mod6,f=H/60-hi,p=V′×(1-S),q=V′×(1-f×S),t=V′×(1-(1-f)×S)。Wherein: h i =[H/60]mod6,f=H/60- hi , p=V′×(1-S), q=V′×(1-f×S), t=V′× (1-(1-f)×S).
为验证本算法的有效性,采用多幅图像测试,对增强前后的图像进行对比测试。如图2(a)所示,原图像存在模糊、光照不均匀衡等特点;图2(b)所示,经过本发明所述方法进行图像增强处理后,图片清晰,图像亮度更加均匀,与原图像相比,增强效果显著。如图3(a)所示,原图像存在模糊、光照不均匀衡等特点,如图3(b)、图3(c)所示,虽然提高图像的整体亮度,但图片中存在一些高曝光部分,如图3(d)所示,本发明所述方法既能够提高图像的整体亮度,同时也抑制图像的高曝光部分,细节也得到一定的增强。In order to verify the effectiveness of this algorithm, multiple image tests are used to compare the images before and after enhancement. As shown in Fig. 2(a), the original image has the characteristics of blur, uneven illumination, etc. As shown in Fig. 2(b), after the image enhancement processing is performed by the method of the present invention, the picture is clear and the image brightness is more uniform, which is consistent with the Compared with the original image, the enhancement effect is remarkable. As shown in Figure 3(a), the original image has the characteristics of blurring and uneven illumination. As shown in Figure 3(b) and Figure 3(c), although the overall brightness of the image is improved, there are some high exposures in the image. As shown in Figure 3(d), the method of the present invention can not only improve the overall brightness of the image, but also suppress the high exposure part of the image, and the details are also enhanced to a certain extent.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210325152.3A CN114638765A (en) | 2022-03-30 | 2022-03-30 | Low-illumination image enhancement method based on complementary gamma conversion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210325152.3A CN114638765A (en) | 2022-03-30 | 2022-03-30 | Low-illumination image enhancement method based on complementary gamma conversion |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114638765A true CN114638765A (en) | 2022-06-17 |
Family
ID=81952657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210325152.3A Pending CN114638765A (en) | 2022-03-30 | 2022-03-30 | Low-illumination image enhancement method based on complementary gamma conversion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114638765A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106504212A (en) * | 2016-11-07 | 2017-03-15 | 湖南源信光电科技有限公司 | A kind of improved HSI spatial informations low-luminance color algorithm for image enhancement |
CN106530250A (en) * | 2016-11-07 | 2017-03-22 | 湖南源信光电科技有限公司 | Low illumination color image enhancement method based on improved Retinex |
CN110706172A (en) * | 2019-09-27 | 2020-01-17 | 郑州轻工业学院 | Low-illumination color image enhancement method based on adaptive chaotic particle swarm optimization |
CN111861899A (en) * | 2020-05-20 | 2020-10-30 | 河海大学 | A method and system for image enhancement based on uneven illumination |
-
2022
- 2022-03-30 CN CN202210325152.3A patent/CN114638765A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106504212A (en) * | 2016-11-07 | 2017-03-15 | 湖南源信光电科技有限公司 | A kind of improved HSI spatial informations low-luminance color algorithm for image enhancement |
CN106530250A (en) * | 2016-11-07 | 2017-03-22 | 湖南源信光电科技有限公司 | Low illumination color image enhancement method based on improved Retinex |
CN110706172A (en) * | 2019-09-27 | 2020-01-17 | 郑州轻工业学院 | Low-illumination color image enhancement method based on adaptive chaotic particle swarm optimization |
CN111861899A (en) * | 2020-05-20 | 2020-10-30 | 河海大学 | A method and system for image enhancement based on uneven illumination |
Non-Patent Citations (1)
Title |
---|
智宁等: "基于双伽马函数的煤矿井下低亮度图像增强算法", 辽宁工程技术大学学报(自然科学版), vol. 37, no. 1, 15 February 2018 (2018-02-15), pages 1 - 4 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106886985B (en) | A kind of adaptive enhancement method of low-illumination image reducing colour cast | |
CN106780368B (en) | An underwater image enhancement method based on foreground model | |
CN107680056B (en) | Image processing method and device | |
CN109816608B (en) | An adaptive brightness enhancement method for low-illumination images based on noise suppression | |
CN105205794B (en) | A kind of synchronous enhancing denoising method of low-light (level) image | |
CN109785240B (en) | A low-illuminance image enhancement method, device and image processing device | |
CN109146826A (en) | A kind of image enchancing method and device | |
CN105046663A (en) | Human visual perception simulation-based self-adaptive low-illumination image enhancement method | |
CN110827225A (en) | A method for underwater image enhancement with non-uniform illumination based on double exposure framework | |
CN101742340B (en) | Image optimization editing method and device | |
CN111968065B (en) | Self-adaptive enhancement method for image with uneven brightness | |
JP5701640B2 (en) | Image processing device | |
CN110211070A (en) | A kind of low-luminance color image enchancing method based on local extremum | |
CN112435184B (en) | Image recognition method for haze days based on Retinex and quaternion | |
CN107392879B (en) | A low-illumination surveillance image enhancement method based on reference frames | |
CN111696052A (en) | Underwater image enhancement method and system based on red channel weakness | |
JP2023509744A (en) | Super night view image generation method, device, electronic device and storage medium | |
CN112215767A (en) | Anti-blocking effect image video enhancement method | |
CN116188339A (en) | A Dark Vision Image Enhancement Method Based on Retinex and Image Fusion | |
CN107358592B (en) | An Iterative Global Adaptive Image Enhancement Method | |
CN114140344A (en) | Image enhancement method and system for low-illumination image | |
CN114638765A (en) | Low-illumination image enhancement method based on complementary gamma conversion | |
CN111861899A (en) | A method and system for image enhancement based on uneven illumination | |
CN101938597B (en) | Video recording system | |
CN114549358A (en) | Low-illumination image enhancement method and system based on camera characteristics of guided filtering |
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 |