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
- illumination
- component
- low
- 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
- 238000005286 illumination Methods 0.000 title claims abstract description 30
- 230000000295 complement effect Effects 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 9
- 230000009466 transformation Effects 0.000 claims abstract description 6
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 abstract description 3
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 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
The invention discloses a low-illumination image enhancement method based on complementary gamma conversion, which comprises the following steps: (1) converting an original color image from an RGB space to an HSV space, and acquiring an illumination component V, a hue component H and a saturation component S of the image; (2) processing the illumination component V by adopting a complementary gamma transformation function to obtain an enhanced illumination component V‘(ii) a (3) And then converting the color image from the HSV space to the RGB space to obtain an enhanced image. The invention can effectively improve the image blurring phenomenon caused by uneven illumination, so that the visual effect of the image is better, and the high exposure part of the image is inhibited.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a low-illumination image enhancement method based on complementary gamma conversion.
Background
Due to the limitations of image acquisition technology, imaging environment and other factors, it is sometimes very difficult to obtain high-quality images, and images taken under extreme weather conditions or at night often have low visibility, blurred details and greatly reduced quality. Obtaining an image with low illumination is almost unavoidable. Therefore, it is necessary to enhance the low-illuminance image to meet our needs. In the prior art, the image is enhanced by adopting a weighted distribution adaptive gamma correction enhancement map (AGCWD) or a low-light-level image enhancement map (LIME) technology for illumination estimation, but some high-exposure parts exist in the image enhanced by adopting the above technology.
Disclosure of Invention
The purpose of the invention is as follows: in view of the above disadvantages, the present invention provides a low-illumination image enhancement method based on complementary gamma conversion, which can effectively improve the image blurring 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.
The technical scheme is as follows: in order to solve the above problems, the present invention provides a low illumination image enhancement method based on complementary gamma transformation, comprising the following steps:
(1) converting an original color image from an RGB space to an HSV space, and acquiring an illumination component V, a hue component H and a saturation component S of the image;
(2) processing the illumination component V by adopting a complementary gamma transformation function to obtain an enhanced illumination component V'; the formula of the complementary gamma transformation function is as follows:
V′=a1V1+a2V2
V1=Vr
V2=1-(1-V)r
wherein r is 2.2; a is1、a2Are all weight coefficients;
(3) and then converting the color image from the HSV space to the RGB space to obtain an enhanced image.
Further, the weight coefficient calculation formula in step (2) is as follows:
Further, the formula for converting the original color image from the RGB space to the HSV space is as follows:
further, the formula for converting the color image from HSV space to RGB space is:
wherein: h isi=[H/60]mod6,f=H/60-hi,p=V′×(1-S),q=V′×(1-f×S),t=V′×(1-(1-f)×S)。
Has the advantages that: compared with the prior art, the invention has the following remarkable advantages: the designed complementary gamma conversion correction function is used for processing the illumination component V of the image, so that the brightness distribution of the image is more uniform, the details of the image are effectively enhanced, and the visual quality of the image is higher; and the brightness of the whole enhanced image is improved, and simultaneously, the high exposure part of the image is restrained, and the details are enhanced to a certain extent.
Drawings
FIG. 1 is a flow chart of a method according to the present invention;
FIG. 2 is a graph illustrating image contrast enhancement; FIG. 2(a) shows an original drawing; FIG. 2(b) shows an enhancement of the present invention;
FIG. 3 is a graph showing the comparison of the enhancement results of various algorithms; fig. 3(a) shows an original, fig. 3(b) shows an enhancement map of Adaptive Gamma Correction (AGCWD) using a weight distribution, fig. 3(c) shows an enhancement map of low-light-level image enhancement map (LIME) using illumination estimation, and fig. 3(d) shows an enhancement map of the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the attached drawings.
As shown in fig. 1, the method for enhancing low-illumination images based on complementary gamma conversion according to the present invention specifically includes the following steps:
(1) converting an original color image from an RGB space to an HSV space, and acquiring an illumination component V, a hue component H and a saturation component S of the image; the concrete formula is as follows:
in the formula:
(2) the acquired illumination component V is processed using the designed complementary gamma correction function:
(a) the stretching formula for the V component uses a conventional gamma correction function, and the formula is:
V1=Vr
(b) the designed compensation formula for the V component is as follows:
V2=1-(1-V)r
(c) the complementary gamma correction function is designed as:
V′=a1V1+a2V2
wherein r is 2.2; a is1、a2Are all weight coefficients; in order to enable the algorithm to be adaptive and the value to be maintained at 0,1]In the interval, the designed weight coefficient calculation formula is as follows:
(3) And then converting the color image from the HSV space to the RGB space to obtain an enhanced image. The concrete formula is as follows:
wherein: h isi=[H/60]mod6,f=H/60-hi,p=V′×(1-S),q=V′×(1-f×S),t=V′×(1-(1-f)×S)。
In order to verify the effectiveness of the algorithm, a plurality of image tests are adopted to carry out comparison tests on the images before and after enhancement. As shown in fig. 2(a), the original image has the characteristics of blur, uneven illumination, and the like; as shown in fig. 2(b), after the image enhancement processing is performed by the method of the present invention, the image is clear, the image brightness is more uniform, and the enhancement effect is significant compared with the original image. As shown in fig. 3(a), the original image has the characteristics of blurring and uneven illumination, and as shown in fig. 3(b) and 3(c), although the overall brightness of the image is improved, the image has some high-exposure portions, as shown in fig. 3(d), and the method of the present invention can improve the overall brightness of the image, and simultaneously can inhibit the high-exposure portions of the image, and certain details are enhanced.
Claims (4)
1. A low-illumination image enhancement method based on complementary gamma conversion is characterized by comprising the following steps:
(1) converting an original color image from an RGB space to an HSV space, and acquiring an illumination component V, a hue component H and a saturation component S of the image;
(2) processing the illumination component V by adopting a complementary gamma transformation function to obtain an enhanced illumination component V'; the formula of the complementary gamma transformation function is as follows:
V′=a1V1+a2V2
V1=Vr
V2=1-(1-V)r
wherein r is 2.2; a is1、a2Are all weight coefficients;
(3) and then converting the color image from the HSV space to the RGB space to obtain an enhanced image.
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 | 河海大学 | Image enhancement method and system based on illumination nonuniformity |
-
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 | 河海大学 | Image enhancement method and system based on illumination nonuniformity |
Non-Patent Citations (1)
Title |
---|
智宁等: "基于双伽马函数的煤矿井下低亮度图像增强算法", 辽宁工程技术大学学报(自然科学版), vol. 37, no. 1, 15 February 2018 (2018-02-15), pages 1 - 4 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4662190B2 (en) | Image processing apparatus, image processing method, and image processing program | |
CN104021532B (en) | A kind of image detail enhancement method of infrared image | |
CN107680056B (en) | Image processing method and device | |
JP4415236B2 (en) | Image processing apparatus and image processing method | |
CN109816608B (en) | Low-illumination image self-adaptive brightness enhancement method based on noise suppression | |
CN108280836B (en) | Image processing method and device | |
CN111968065B (en) | Self-adaptive enhancement method for image with uneven brightness | |
US7903900B2 (en) | Low complexity color de-noising filter | |
CN105931206B (en) | A kind of color image definition enhancing method of color constancy | |
CN112435184B (en) | Image recognition method for haze days based on Retinex and quaternion | |
CN109118437B (en) | Method and storage medium capable of processing muddy water image in real time | |
US9014503B2 (en) | Noise-reduction method and apparatus | |
JP5701640B2 (en) | Image processing device | |
CN112288646A (en) | Stack noise reduction method and device, electronic equipment and storage medium | |
CN116681606A (en) | Underwater uneven illumination image enhancement method, system, equipment and medium | |
CN107358578B (en) | Yin-yang face treatment method and device | |
CN114998122A (en) | Low-illumination image enhancement method | |
CN112488968B (en) | Image enhancement method for hierarchical histogram equalization fusion | |
TWI711005B (en) | Method for adjusting luminance of images and computer program product | |
CN114638765A (en) | Low-illumination image enhancement method based on complementary gamma conversion | |
JP4273748B2 (en) | Image processing apparatus and method | |
CN111861899A (en) | Image enhancement method and system based on illumination nonuniformity | |
CN116245760A (en) | Low-quality LDR image enhancement method based on pseudo HDR image generation | |
CN112991240B (en) | Image self-adaptive enhancement algorithm for real-time image enhancement | |
CN109886901B (en) | Night image enhancement method based on multi-channel decomposition |
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 |