CN108961172A - A kind of method for enhancing picture contrast based on Gamma correction - Google Patents

A kind of method for enhancing picture contrast based on Gamma correction Download PDF

Info

Publication number
CN108961172A
CN108961172A CN201810475733.9A CN201810475733A CN108961172A CN 108961172 A CN108961172 A CN 108961172A CN 201810475733 A CN201810475733 A CN 201810475733A CN 108961172 A CN108961172 A CN 108961172A
Authority
CN
China
Prior art keywords
image
low
frequency
gamma correction
contrast
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
CN201810475733.9A
Other languages
Chinese (zh)
Other versions
CN108961172B (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.)
Beijing Youjuxi Technology Co ltd
Original Assignee
Guizhou Nzhou Xi Technology Co Ltd
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 Guizhou Nzhou Xi Technology Co Ltd filed Critical Guizhou Nzhou Xi Technology Co Ltd
Priority to CN201810475733.9A priority Critical patent/CN108961172B/en
Publication of CN108961172A publication Critical patent/CN108961172A/en
Application granted granted Critical
Publication of CN108961172B publication Critical patent/CN108961172B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20048Transform domain processing
    • G06T2207/20064Wavelet transform [DWT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20182Noise reduction or smoothing in the temporal domain; Spatio-temporal filtering

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)

Abstract

The invention discloses a kind of method for enhancing picture contrast based on Gamma correction, are related to digital image processing techniques field.This method obtains low-frequency image I by carrying out wavelet decomposition to input pictureAWith three high frequency imaging IH、IVAnd ID;And to low-frequency image IAAdaptive Gamma correction is carried out, the low-frequency image of contrast enhancing is obtained;Simultaneously respectively to high frequency imaging IH、IVAnd IDCarry out denoising, the high frequency imaging denoised;Finally the low-frequency image to contrast enhancing and the high frequency imaging of denoising carry out wavelet inverse transformation, obtain reconstructed image, the result shows that, this method effectively improves the subjective vision effect of image, the noise of image has obtained effective inhibition, the Luminance Distribution of image is improved, and the overall contrast of image is improved.

Description

Gamma correction-based image contrast enhancement method
Technical Field
The invention relates to the technical field of digital image processing, in particular to an image contrast enhancement method based on Gamma correction.
Background
Image enhancement is an important pre-processing step in image processing. The method can effectively improve the quality of the image, improve the subjective visual effect of the image and highlight the useful characteristics of the image. Gamma correction is one of the most widely used image enhancement algorithms. Gamma correction adopts power function to correct the image gray level, thus achieving the purpose of improving the image brightness distribution. However, when the power exponent is small, the contrast of the Gamma-corrected image tends to be low. To solve this problem, researchers have proposed a number of correction algorithms based on Gamma correction. However, these algorithms often face problems such as image noise amplification, insignificant contrast improvement, or excessive calculation.
Disclosure of Invention
The present invention is directed to an image contrast enhancement method based on Gamma correction, so as to solve the foregoing problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
an image contrast enhancement method based on Gamma correction comprises the following steps:
s1, carrying out wavelet decomposition on the input image to obtain a low-frequency image IAAnd three high frequency images IH、IVAnd ID
S2, for low-frequency image IASelf-adaptive Gamma correction is carried out to obtain a low-frequency image with enhanced contrast;
S3, respectively aligning the high-frequency images IH、IVAnd IDCarrying out denoising treatment to obtain a denoised high-frequency image;
and S4, performing wavelet inverse transformation on the contrast-enhanced low-frequency image obtained in the S2 and the de-noised high-frequency image obtained in the S3 to obtain a reconstructed image.
Preferably, S2 includes the steps of: s1 concretely, performing one-layer wavelet decomposition on the input image by using a Haar wavelet basis to obtain a low-frequency image IAAnd three high-frequency images IH、IVAnd ID
Preferably, S2 includes the steps of:
s201, aiming at the low-frequency image IABilateral filtering is carried out to obtain a filtered low-frequency image FA
S202, based on the filtered low-frequency image FAFor the low-frequency image IAThe adaptive Gamma correction is performed according to the following formula:
wherein,
IMAXfor low-frequency images IAThe maximum value of the gray scale is,
m x N is the original image size,
gamma is a correction parameter.
Preferably, the correction parameter γ is based on the low-frequency image IAIs selected, the smaller the grey value is, the larger the correction factor gamma is.
Preferably, in the bilateral filtering, the window size, the distance variance, and the gray variance are set to [5,10], [30,50], and [30,50], respectively, and the correction parameter is [0.5,0.9 ].
Preferably, S3 is embodied as follows, based on the relative detail image R, respectively for the high frequency image IH、IVAnd IDCarrying out threshold denoising:
wherein,
t is the threshold value of the noise removal,
Norm(Iinput) Representing the image IinputThe grey value normalization operation is carried out and,
max(Iinput) And min (I)input) Respectively represent IinputA gray maximum value and a gray minimum value.
Preferably, the denoising threshold T is selected empirically according to the noise level of the image to be processed.
Preferably, the denoising threshold T is selected to be [0.02,0.1 ].
The invention has the beneficial effects that: according to the image contrast enhancement method based on Gamma correction provided by the embodiment of the invention, the low-frequency image I is obtained by performing wavelet decomposition on the input imageAAnd three high frequency images IH、IVAnd ID(ii) a And for low frequency image IACarrying out self-adaptive Gamma correction to obtain a low-frequency image with enhanced contrast; for high-frequency images I simultaneouslyH、IVAnd IDCarrying out denoising treatment to obtain a denoised high-frequency image; finally, the contrast-enhanced low-frequency image is denoisedThe high-frequency image is subjected to wavelet inverse transformation to obtain a reconstructed image, and the result shows that the method effectively improves the subjective visual effect of the image, effectively inhibits the noise of the image, improves the brightness distribution of the image and improves the overall contrast of the image.
Drawings
FIG. 1 is a schematic flow chart of an image contrast enhancement method based on Gamma correction according to the present invention;
FIG. 2 is an original image before processing in an exemplary embodiment;
FIG. 3 is a relative detail image obtained during implementation of the method;
fig. 4 is an image obtained by processing an original image by applying the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides an image contrast enhancement method based on Gamma correction, including the following steps:
s1, carrying out wavelet decomposition on the input image to obtain a low-frequency image IAAnd three high frequency images IH、IVAnd ID
S2, for low-frequency image IACarrying out self-adaptive Gamma correction to obtain a low-frequency image with enhanced contrast;
s3, respectively aligning the high-frequency images IH、IVAnd IDDe-noising to obtainDe-noising the high-frequency image;
and S4, performing wavelet inverse transformation on the contrast-enhanced low-frequency image obtained in the S2 and the de-noised high-frequency image obtained in the S3 to obtain a reconstructed image.
Wherein, S1 may specifically be, performing one-layer wavelet decomposition on the input image by using Haar wavelet basis to obtain a low-frequency image IAAnd three high-frequency images IH、IVAnd ID
S2 may include the steps of:
s201, aiming at the low-frequency image IABilateral filtering is carried out to obtain a filtered low-frequency image FA
S202, based on the filtered low-frequency image FAFor the low-frequency image IAThe adaptive Gamma correction is performed according to the following formula:
wherein,
IMAXfor low-frequency images IAThe maximum value of the gray scale is,
m x N is the original image size,
gamma is a correction parameter.
Wherein, in the correction process, the correction parameter gamma can be based on the low-frequency image IAIs selected, the smaller the grey value is, the larger the correction factor gamma is.
In the embodiment of the present invention, in the bilateral filtering, the window size, the distance variance, and the gray variance may be set as [5,10], [30,50], and [30,50], respectively, and the correction parameter is [0.5,0.9 ].
Experimental results show that the subjective visual effect of the image can be effectively improved by adopting the parameter combination.
In a preferred embodiment of the present invention, S3 may be specifically that the high-frequency images I are respectively processed based on the relative detail image R according to the following formulaH、IVAnd IDCarrying out threshold denoising:
wherein,
t is the threshold value of the noise removal,
Norm(Iinput) Representing the image IinputPerforming a grey value normalization operation IinputComprises IA、IH、IVAnd ID
max(Iinput) And min (I)input) Respectively represent IinputA gray maximum value and a gray minimum value.
In particular, the method comprises the following steps of,
in the method, the high-frequency image contains detail information and noise of the image, and the noise of the image can be effectively removed by carrying out threshold denoising on the high-frequency image based on the relative detail image R.
According to the method provided by the embodiment of the invention, the denoising threshold T can be selected based on experience according to the noise level of the image to be processed.
The larger the denoising threshold value is, the more obvious the denoising effect is, and the more details are retained by the image.
In a preferred embodiment of the present invention, the denoising threshold T may be selected to be [0.02,0.1 ].
Experimental results show that the noise level of the image can be effectively reduced for most of the images to be processed by selecting the denoising threshold value in the range, and meanwhile, the details of the image are not lost.
In the embodiment of the present invention, wavelet inverse transformation is performed on the contrast-enhanced low-frequency image obtained in S2 and the denoised high-frequency image obtained in S3 by using the prior art, so as to obtain a reconstructed image.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
In the embodiment of the present invention, the contrast enhancement method for an image based on Gamma correction provided by the present invention is adopted to perform contrast enhancement on the original image shown in fig. 2, wherein the size of the bilateral filtering window, the distance variance and the gray variance are respectively set to 5, 30 and 30; the denoising threshold T is 0.02, the correction coefficient γ is 0.8, the obtained relative detail image R is shown in fig. 3, and the finally obtained processed enhanced image is shown in fig. 4. By comparing fig. 4 and fig. 2, it can be seen that the method provided by the present invention can effectively improve the subjective visual effect of the image: the noise of the image is effectively suppressed; the brightness distribution of the image is improved; the overall contrast of the image is improved. Therefore, the method provided by the invention has the advantages of effectiveness, reasonability, feasibility and scientificity.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained: according to the image contrast enhancement method based on Gamma correction provided by the embodiment of the invention, the low-frequency image I is obtained by performing wavelet decomposition on the input imageAAnd three high frequency images IH、IVAnd ID(ii) a And for low frequency image IACarrying out self-adaptive Gamma correction to obtain a low-frequency image with enhanced contrast; for high-frequency images I simultaneouslyH、IVAnd IDCarrying out denoising treatment to obtain a denoised high-frequency image; and finally, performing wavelet inverse transformation on the low-frequency image with enhanced contrast and the denoised high-frequency image to obtain a reconstructed image, wherein the result shows that the method effectively improves the subjective visual effect of the image, effectively inhibits the noise of the image, improves the brightness distribution of the image and improves the overall contrast of the image.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (8)

1. An image contrast enhancement method based on Gamma correction is characterized by comprising the following steps:
s1, carrying out wavelet decomposition on the input image to obtain a low-frequency image IAAnd three high frequency images IH、IVAnd ID
S2, for low-frequency image IACarrying out self-adaptive Gamma correction to obtain a low-frequency image with enhanced contrast;
s3, respectively aligning the high-frequency images IH、IVAnd IDCarrying out denoising treatment to obtain denoised noiseThe high-frequency image of (2);
and S4, performing wavelet inverse transformation on the contrast-enhanced low-frequency image obtained in the S2 and the de-noised high-frequency image obtained in the S3 to obtain a reconstructed image.
2. The method for enhancing image contrast based on Gamma correction according to claim 1, wherein S2 comprises the following steps: s1 concretely, performing one-layer wavelet decomposition on the input image by using a Haar wavelet basis to obtain a low-frequency image IAAnd three high-frequency images IH、IVAnd ID
3. The method for enhancing image contrast based on Gamma correction according to claim 1, wherein S2 comprises the following steps:
s201, aiming at the low-frequency image IABilateral filtering is carried out to obtain a filtered low-frequency image FA
S202, based on the filtered low-frequency image FAFor the low-frequency image IAThe adaptive Gamma correction is performed according to the following formula:
wherein,
IMAXfor low-frequency images IAThe maximum value of the gray scale is,
m x N is the original image size,
gamma is a correction parameter.
4. The method of claim 3, wherein the Gamma correction-based image contrast enhancement method is performed according to the low-frequency image IAIs selected, the smaller the grey value is, the larger the correction factor gamma is.
5. The method of claim 4, wherein in the bilateral filtering, the window size, the distance variance and the gray variance are set to [5,10], [30,50] and [30,50], respectively, and the correction parameter is [0.5,0.9 ].
6. The method for enhancing image contrast based on Gamma correction according to claim 1, wherein S3 is specifically that the high frequency image I is respectively processed based on the relative detail image R according to the following formulaH、IVAnd IDCarrying out threshold denoising:
wherein,
t is the threshold value of the noise removal,
Norm(Iinput) Representing the image IinputThe grey value normalization operation is carried out and,
max(Iinput) And min (I)input) Respectively represent IinputA gray maximum value and a gray minimum value.
7. The method of claim 6, wherein the denoising threshold T is selected empirically according to the noise level of the image to be processed.
8. The Gamma correction based image contrast enhancement method according to claim 7, wherein the denoising threshold T is selected to be [0.02,0.1 ].
CN201810475733.9A 2018-05-17 2018-05-17 Gamma correction-based image contrast enhancement method Expired - Fee Related CN108961172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810475733.9A CN108961172B (en) 2018-05-17 2018-05-17 Gamma correction-based image contrast enhancement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810475733.9A CN108961172B (en) 2018-05-17 2018-05-17 Gamma correction-based image contrast enhancement method

Publications (2)

Publication Number Publication Date
CN108961172A true CN108961172A (en) 2018-12-07
CN108961172B CN108961172B (en) 2021-05-28

Family

ID=64499825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810475733.9A Expired - Fee Related CN108961172B (en) 2018-05-17 2018-05-17 Gamma correction-based image contrast enhancement method

Country Status (1)

Country Link
CN (1) CN108961172B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064413A (en) * 2018-07-03 2018-12-21 赛诺微医疗科技(浙江)有限公司 Method for enhancing picture contrast and the Image Acquisition Medical Devices for using it
CN110136084A (en) * 2019-05-16 2019-08-16 哈尔滨工业大学(深圳) Automatic CLAHE image enchancing method, device, system and storage medium based on wavelet transform
CN110288546A (en) * 2019-06-27 2019-09-27 华侨大学 A kind of enhancement method of low-illumination image using two-way gamma transformation
CN112862711A (en) * 2021-01-29 2021-05-28 山东建筑大学 Method and device for correcting gray value of image
CN113256532A (en) * 2021-06-13 2021-08-13 石家庄职业技术学院 Low-contrast character image enhancement method
CN113610717A (en) * 2021-07-16 2021-11-05 江苏师范大学 Method for enhancing ultraviolet fluorescence image of skin disease

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110279643A1 (en) * 2010-05-14 2011-11-17 Canon Kabushiki Kaisha Image processing apparatus and control method thereof
CN104240203A (en) * 2014-09-09 2014-12-24 浙江工业大学 Medical ultrasound image denoising method based on wavelet transform and quick bilateral filtering
CN104268843A (en) * 2014-10-16 2015-01-07 桂林电子科技大学 Image self-adaptation enhancing method based on histogram modification
CN105931201A (en) * 2016-04-20 2016-09-07 北京航空航天大学 Image subjective visual effect enhancing method based on wavelet transformation
CN107403416A (en) * 2017-07-26 2017-11-28 温州大学 Improvement filtering and the medical ultrasound image denoising method of threshold function table based on NSCT
CN107862666A (en) * 2017-11-22 2018-03-30 新疆大学 Mixing Enhancement Methods about Satellite Images based on NSST domains

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110279643A1 (en) * 2010-05-14 2011-11-17 Canon Kabushiki Kaisha Image processing apparatus and control method thereof
CN104240203A (en) * 2014-09-09 2014-12-24 浙江工业大学 Medical ultrasound image denoising method based on wavelet transform and quick bilateral filtering
CN104268843A (en) * 2014-10-16 2015-01-07 桂林电子科技大学 Image self-adaptation enhancing method based on histogram modification
CN105931201A (en) * 2016-04-20 2016-09-07 北京航空航天大学 Image subjective visual effect enhancing method based on wavelet transformation
CN107403416A (en) * 2017-07-26 2017-11-28 温州大学 Improvement filtering and the medical ultrasound image denoising method of threshold function table based on NSCT
CN107862666A (en) * 2017-11-22 2018-03-30 新疆大学 Mixing Enhancement Methods about Satellite Images based on NSST domains

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A.K.BHANDARI: "improved knee transfer function and gamma correction based method for contrast and brightness enhancement of satellite image", 《AEU-INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATIONS》 *
ZHAO WEI 等: "Combination of contrast limited adaptive hidtogram equalisation and discrete wavelet transform for image enhancement", 《IET IMAGE PROCESSING》 *
周飞等: "基于剪切波域改进Gamma校正的医学图像增强算法", 《光电子·激光》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064413A (en) * 2018-07-03 2018-12-21 赛诺微医疗科技(浙江)有限公司 Method for enhancing picture contrast and the Image Acquisition Medical Devices for using it
CN109064413B (en) * 2018-07-03 2021-05-18 赛诺微医疗科技(浙江)有限公司 Image contrast enhancement method and image acquisition medical equipment adopting same
CN110136084A (en) * 2019-05-16 2019-08-16 哈尔滨工业大学(深圳) Automatic CLAHE image enchancing method, device, system and storage medium based on wavelet transform
CN110288546A (en) * 2019-06-27 2019-09-27 华侨大学 A kind of enhancement method of low-illumination image using two-way gamma transformation
CN110288546B (en) * 2019-06-27 2022-11-01 华侨大学 Low-illumination image enhancement method adopting bidirectional gamma conversion
CN112862711A (en) * 2021-01-29 2021-05-28 山东建筑大学 Method and device for correcting gray value of image
CN113256532A (en) * 2021-06-13 2021-08-13 石家庄职业技术学院 Low-contrast character image enhancement method
CN113610717A (en) * 2021-07-16 2021-11-05 江苏师范大学 Method for enhancing ultraviolet fluorescence image of skin disease
CN113610717B (en) * 2021-07-16 2024-01-19 江苏师范大学 Enhancement method for ultraviolet fluorescence image of skin disease

Also Published As

Publication number Publication date
CN108961172B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN108961172B (en) Gamma correction-based image contrast enhancement method
WO2019091270A1 (en) Image enhancement method and system
CN105931201B (en) A kind of image subjective vision effect reinforcing method based on wavelet transformation
CN110889812B (en) Underwater image enhancement method for multi-scale fusion of image characteristic information
JP4858610B2 (en) Image processing method
TWI433053B (en) Method and system for image sharpness enhancement based on local feature of the image
Hossain et al. Medical image enhancement based on nonlinear technique and logarithmic transform coefficient histogram matching
CN112419162A (en) Image defogging method and device, electronic equipment and readable storage medium
US20070237418A1 (en) Image processing apparatus, image processing method, and computer product
CN111105371B (en) Enhancement method of low-contrast infrared image
WO2009013057A1 (en) Method of generating a multiscale contrast enhanced image
CN112598607B (en) Endoscope image blood vessel enhancement algorithm based on improved weighted CLAHE
CN109064413B (en) Image contrast enhancement method and image acquisition medical equipment adopting same
JP2007018379A (en) Image processing method and image processing device
CN106067164B (en) Color image contrast enhancement algorithms based on the processing of adaptive wavelet domain
CN109658350A (en) A kind of enhancing of night facial video image and noise-reduction method
CN107025640A (en) The Medical Image Denoising method of non-local mean based on optimization
CN113487505A (en) Infrared image mixed noise reduction method based on noise identification
Teranishi et al. Improvement of robustness blind image restoration method using failing detection process
CN104036457A (en) Image noise reduction method
CN117593218B (en) Adaptive gain adjustment image sharpening method based on guided filtering
CN114565535A (en) Image enhancement method and device based on adaptive gradient gamma correction
CN114418906A (en) Image contrast enhancement method and system
CN103886558A (en) Improved adaptive threshold wavelet denoising algorithm based on LoG operator
CN108629740B (en) Image denoising processing method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20200317

Address after: 100012 102, floor 1, building 1, yard 6, Shuangying Road, Chaoyang District, Beijing

Applicant after: Beijing youjuxi Technology Co.,Ltd.

Address before: 551400 Guizhou Province Guiyang Qingzhen Vocational Education City East District Baihua Road Guizhou Construction Vocational and Technical College Public Rental Housing Training Base

Applicant before: GUIZHOU YOUJUXI TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210528

CF01 Termination of patent right due to non-payment of annual fee