CN105096278B - The image enchancing method adjusted based on illumination and equipment - Google Patents

The image enchancing method adjusted based on illumination and equipment Download PDF

Info

Publication number
CN105096278B
CN105096278B CN201510608275.8A CN201510608275A CN105096278B CN 105096278 B CN105096278 B CN 105096278B CN 201510608275 A CN201510608275 A CN 201510608275A CN 105096278 B CN105096278 B CN 105096278B
Authority
CN
China
Prior art keywords
image
component
luminance component
illumination
retinex
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.)
Expired - Fee Related
Application number
CN201510608275.8A
Other languages
Chinese (zh)
Other versions
CN105096278A (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.)
Nanyang Institute of Technology
Original Assignee
Nanyang Institute of Technology
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 Nanyang Institute of Technology filed Critical Nanyang Institute of Technology
Priority to CN201510608275.8A priority Critical patent/CN105096278B/en
Publication of CN105096278A publication Critical patent/CN105096278A/en
Application granted granted Critical
Publication of CN105096278B publication Critical patent/CN105096278B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The present invention proposes a kind of self adaptation Gamma Enhancement Method theoretical based on Retinex, utilize luminance component and the reflecting component of Retinex theory separate picture, luminance component is carried out the correction of self adaptation Gamma, finally utilizes reflecting component to recover details and the color of image.The present invention solves existing Retinex algorithm poor in timeliness and the undesirable problem for the treatment of effect, and the inhomogeneous illumination image of process has optimal contrast, visibility, naturality and ageing.

Description

The image enchancing method adjusted based on illumination and equipment
Technical field
The present invention relates to image processing field, particularly to the image enhaucament side adjusted based on illumination Method and equipment.
Background technology
Along with mobile device performance is constantly upgraded and popularizes, in daily life, people are increasingly Get used to anywhere or anytime things interested being taken pictures or imaging, but these images or video Generation be often under conditions of non-limiting, this results in and can there is uneven illumination in image Even situation.Process for inhomogeneous illumination image has become image processing field in the urgent need to solving Problem certainly.
In order to solve the even problem of uneven illumination, scientific research personnel has carried out substantial amounts of research.Retinex (Retina and Cortex) theory is widely used in the enhancing of the even image of uneven illumination.Should Theory hypothesis image is to be combined into by luminance component and reflecting component, and two components are permissible Separating treatment.Retinex algorithm in early days, while compensating illumination, has suppressed image Dynamic range, and there will be halation and cross-color phenomenon.In order to solve halation and color distortion Problem, use the method that multiple dimensioned Retinex tone maps to strengthen inhomogeneous illumination image, But strengthen image and seem the most natural.In conjunction with Retinex principle and double-log luminance filter, Improve visibility and the naturality of image further, but its computation complexity is the highest, the most greatly, Brightness flop is big.
Summary of the invention
The present invention solves existing algorithm poor real and the undesirable problem of reinforced effects, propose A kind of self adaptation Gamma theoretical based on Retinex strengthens algorithm, utilizes Retinex theory to divide From luminance component and the reflecting component of image, luminance component is carried out the correction of self adaptation Gamma, Reflecting component is finally utilized to recover details and the color of image.The results show, carried algorithm Having image definition higher, reinforced effects is the most natural, the ageing advantage such as more preferably.
This method is divided into several step:
Step one: acquisition observed image I (x, y);
Step 2: the image observed is decomposed, picture breakdown is become reflecting component and Luminance component;
Retinex theory thinks that image is made up of luminance component and reflecting component, it is assumed that RGB Image I (x, y) each passage has identical brightness, it may be assumed that
Ic(x, y)=Rc(x,y) ·L(x,y),c∈{r,g,b} (1)
R in formulac(x, y) represents the reflecting component of each passage, and (x y) represents that the brightness of image divides to L Amount, generally, using the maximum of RGB channel as eye-observation illumination V (x, y),
V ( x , y ) = m a x c ∈ { r , g , b } I c ( x , y ) - - - ( 2 )
Theoretical according to Retinex, with 2D Gaussian filter G, (x, y) to illumination image V, (x y) is carried out Convolution can obtain image luminance component L (x, y),
L (x, y)=G (x, y) * V (x, y) (3)
Thus, reflecting component Rc(x, y) can be separated,
Rc(x, y)=Ic(x,y)/L(x,y),c∈{r,g,b} (4)
Reflecting component mainly contains the radio-frequency component of image, including edge and details,
Step 3: after obtaining luminance component image, it is carried out the correction of self adaptation Gamma;
Len(x, y)=L (x, y)γ(x,y) (5)
γ ( l ) = 1 - Σ v = 0 l [ P ω ( v ) / s p ] - - - ( 6 )
s p = Σ l = 0 l m a x P ω ( l ) - - - ( 7 )
Len(x, y) represents enhanced luminance component, γ (x, y) represents Gamma correction coefficient matrix, P ω (l) is the weights distribution function corresponding to each brightness value:
P ω ( l ) = P ( l ) - p min p m a x - p min - - - ( 8 )
In formula, P (l) is the probability density function of luminance component, pmaxFor the maximum of P (l), pminFor the minima of P (l), P (l) can be tried to achieve by following formula:
P (l)=nl/np (9)
In formula, nlPixel count contained by corresponding brightness, npThe pixel comprised for luminance component is total Number;
Step 4: merge Len(x, y) and Rc(x y) i.e. can get final enhancing image Ien(x, y),
I e n c ( x , y ) = R c ( x , y ) · L e n ( x , y ) , c ∈ { r , g , b } - - - ( 10 ) .
Further, high-performance image signal processor ISP, employ the process described above.
Accompanying drawing explanation
Fig. 1 is the image enchancing method adjusted based on illumination;
Fig. 2 is the enhancing result of image Boy;
Fig. 3 is the enhancing result of image Museum;
Fig. 4 is the enhancing result of image Cockpit;
Fig. 5 is the enhancing result of image Girl;
Fig. 6 is the enhancing result of image Hall;
Fig. 7 is the enhancing result of image Building;
Fig. 8 is application image Enhancement Method in ISP chip.
Technical scheme
As it is shown in figure 1, Fig. 1 gives the algorithm for image enhancement flow chart adjusted based on illumination, Proposed algorithm for image enhancement will be passed through carry out for several different types of degraded image herein Process, and contrast from different algorithms respectively, verify the performance of carried algorithm herein with Versatility.
The algorithm for image enhancement adjusted based on illumination is divided into several step:
Step one: acquisition observed image I (x, y);
Step 2: the image observed is decomposed, picture breakdown is become reflecting component and Luminance component;
Retinex theory thinks that image is made up of luminance component and reflecting component.Assume RGB Image I (x, y) each passage has identical brightness, it may be assumed that
Ic(x, y)=Rc(x,y)·L(x,y),c∈{r,g,b} (1)
R in formulac(x, y) represents the reflecting component of each passage, and (x y) represents that the brightness of image divides to L Amount.Generally, using the maximum of RGB channel as eye-observation illumination V (x, y).
V ( x , y ) = m a x c ∈ { r , g , b } I c ( x , y ) - - - ( 2 )
Theoretical according to Retinex, with 2D Gaussian filter G, (x, y) to illumination image V, (x y) is carried out Convolution can obtain image luminance component L (x, y).
L (x, y)=G (x, y) * V (x, y) (3)
Thus, reflecting component Rc(x y) can be separated.
Rc(x, y)=Ic(x,y)/L(x,y),c∈{r,g,b} (4)
Reflecting component mainly contains the radio-frequency component of image, including edge and details.
Step 3: luminance component is carried out Gamma conversion;
After obtaining luminance component image, it is carried out the correction of self adaptation Gamma.
Len(x, y)=L (x, y)γ(x,y) (5)
γ ( l ) = 1 - Σ v = 0 l [ P ω ( v ) / s p ] - - - ( 6 )
s p = Σ l = 0 l m a x P ω ( l ) - - - ( 7 )
Len(x, y) represents enhanced luminance component, γ (x, y) represents Gamma correction coefficient matrix, PωL () is the weights distribution function corresponding to each brightness value:
P ω ( l ) = P ( l ) - p min p max - p min - - - ( 8 )
In formula, P (l) is the probability density function of luminance component, pmaxFor the maximum of P (l), pminFor the minima of P (l), P (l) can be tried to achieve by following formula:
P (l)=nl/np (9)
In formula, nlPixel count contained by corresponding brightness, npThe pixel comprised for luminance component is total Number.
Step 4: by the luminance component synthesis after reflecting component and conversion;
Merge Len(x, y) and Rc(x y) i.e. can get final enhancing image Ien(x,y)。
I e n c ( x , y ) = R c ( x , y ) · L e n ( x , y ) , c ∈ { r , g , b } - - - ( 10 )
Step 5: form the image strengthened.
The image quality evaluation strengthened:
For evaluating the performance of algorithm herein, the Retinex inhomogeneous illumination image choosing advanced person increases Strong algorithms, carries out subjective assessment, objective evaluation and ageing comparison.
1. subjective assessment
Fig. 2~7 is the inhomogeneous illumination processing result image of different scene.Fig. 2 artwork is fine day family Outward, the face of boy is in shade, face's low visibility.Fig. 3 artwork is that indoor weak light shines Image, the scene scenery after showcase is unintelligible.Fig. 4 artwork has glass reflecting, aircraft cabin Interior things low visibility.In Fig. 5 artwork, owing to illumination is blocked, right side seems the darkest. Fig. 6 artwork is indoor inhomogeneous illumination image.Fig. 7 is the result of outdoor cloudy day building photo, In artwork red block, the result of topography is listed in the lower section strengthening image of correspondence.
Document 1 (Zhang Shangwei, Zeng Ping, Luo Xuemei, etc. there is details and compensate and color recovery Multiple dimensioned Retinex tone-mapping algorithm [J]. XI AN JIAOTONG UNIVERSITY Subject Index, 2012,46 (4): 32-37) the result reinforced effects of algorithm is obvious not, the dynamic range of image Compressed.Document 2 (Wang S, Zheng J, Hu H, et al.Naturalness preserved enhancement algorithm for non-uniform illumination images[J].IEEE Transactions on Image Processing,2013,22 (9): 3,538 3548.) result of algorithm makes image at the definition of global and local It is largely increased, but the dynamic range of image is also pressed.Inventive algorithm can not only be notable Improve image overall and the definition of regional area, and make image have good dynamic range With subjective natural sense.
2. objective evaluation
In order to process image is carried out objective appraisal, introduce EBCM (edge based herein Contrast measure), VE (visible edges), NIQE (naturalness image Quality evaluator) etc. evaluation index.Wherein EBCM is for the contrast of evaluation image, This parameter values is the biggest, then the contrast of image is the highest.VE be used for evaluating enhancing image relative to The ratio that the visibility of artwork improves, its value is the biggest, then in image, things visibility is the highest.NIQE For the naturality of evaluation image, its value is the least, and the naturality of explanatory diagram picture is the best.
Table 1~3 lists the evaluation index result of image in Fig. 2~7 respectively.As can be seen from the table, After each algorithm process, image is relative to artwork at contrast, visibility, three aspects of naturality all It is significantly improved.Methods herein obviously has more than algorithm in document [1] and document [2] Good performance: in terms of contrast, the most averagely improve 49.7% and 10.8%;At visibility Aspect, the most averagely improves 102.4% and 38.5%;In terms of naturality, it is respectively increased 31% and 16.4%.
The EBCM result of each algorithm of table 1
The VE result of each algorithm of table 2
The NIQE result of each algorithm of table 3
The most ageing comparison
In order to compare the ageing of each algorithm, table 4 shows that size is by various algorithm 2000 × 1312 images average time-consuming, these data are at hardware parameter 3.3GHz CPU, 4GB The test result of Matlab 2014 is utilized on RAM computer.Obviously, the timeliness of institute's extracting method herein Property best, 11% and document [7] that only document [6] is time-consuming time-consuming 2%.
Process 2000 × 1312 image of each algorithm of table 4 average time-consuming
It can be observed that self adaptation Gamma proposed by the invention strengthens calculation from experimental result One width observation RGB image can be separated into luminance picture and albedo image by method.Due to only pin Brightness to image processes, and does not introduce colouring information.The most isolated luminance picture Being gray level image with albedo image, wherein luminance picture has reacted surrounding well Monochrome information, has the character of space smoothing simultaneously.Albedo image then remains image self Edge and detailed information, these features have been well demonstrated that the new target that this title of the song is proposed Function, the i.e. reasonability of formula (10).And under rgb space, luminance picture and reflectance Image, in addition to having the characteristic of the result of calculation under HSV space, also show colouring information. As can be seen from the results, by Gamma rectification, illumination is adjusted in conjunction with reflectance institute The enhancing image obtained, except strengthening detail section, while promoting the brightness of dark area, Subjective vision effect also has to be improved definitely.
The algorithm that the present invention proposes can be applied at image and videos such as TV, mobile phone, video cameras On relevant common apparatus.May apply to specific occasion (medical science, military affairs, public safety etc.) Figure strengthen.This section introduces algorithm application on high-definition camera.
Generally, in order to improve graphics process performance, high-definition camera be all integrated with image letter Number processor ISP (Image Singal Processor), for imageing sensor (CCD Or CMOS) signal that exports carries out later stage process (such as: the accumulation of 3D noise reduction, frame, high light press down System), and then the quality of the exported image of enhancing, meet the demand of application-specific.Can be by this The algorithm integration of literary composition is in ISP chip, it is achieved to the image enhaucament under the conditions of inhomogeneous illumination. System forms as shown in Figure 7.
The present invention proposes a kind of self adaptation Gamma Enhancement Method theoretical based on Retinex, utilizes The luminance component of Retinex theory separate picture and reflecting component, carry out adaptive to luminance component Answer Gamma to correct, finally utilize reflecting component to recover details and the color of image.Algorithm herein Solve existing Retinex algorithm poor in timeliness and the undesirable problem for the treatment of effect, this algorithm The inhomogeneous illumination image processed has optimal contrast, visibility, naturality and ageing. Herein algorithm to hardware without particular/special requirement, may migrate to various TV, mobile phone, video camera or its He has in the electronic product of image displaying function.

Claims (2)

1. the image enchancing method adjusted based on illumination, it is characterised in that this method is divided into several Step:
Step one: acquisition observed image I (x, y);
Step 2: the image observed is decomposed, picture breakdown is become reflecting component and Luminance component;
Retinex theory thinks that image is made up of luminance component and reflecting component, it is assumed that RGB Image I (x, y) each passage has identical brightness, it may be assumed that
Ic(x, y)=Rc(x,y)·L(x,y),c∈{r,g,b} (1)
R in formulac(x, y) represents the reflecting component of each passage, and (x y) represents that the brightness of image divides to L Amount, generally, using the maximum of RGB channel as eye-observation illumination V (x, y),
V ( x , y ) = m a x c ∈ { r , g , b } I c ( x , y ) - - - ( 2 )
Theoretical according to Retinex, with 2D Gaussian filter G, (x, y) to illumination image V, (x y) is carried out Convolution can obtain image luminance component L (x, y),
L (x, y)=G (x, y) * V (x, y) (3)
Thus, reflecting component Rc(x, y) can be separated,
Rc(x, y)=Ic(x,y)/L(x,y),c∈{r,g,b} (4)
Reflecting component mainly contains the radio-frequency component of image, including edge and details,
Step 3: after obtaining luminance component image, it is carried out the correction of self adaptation Gamma;
Len(x, y)=L (x, y)γ(x,y) (5)
γ ( l ) = 1 - Σ v = 0 l [ P ω ( v ) / s p ] - - - ( 6 )
s p = Σ l = 0 l m a x P ω ( l ) - - - ( 7 )
Len(x, y) represents enhanced luminance component, γ (x, y) represents Gamma correction coefficient matrix, P ω (l) is the weights distribution function corresponding to each brightness value:
P ω ( l ) = P ( l ) - p min p m a x - p min - - - ( 8 )
In formula, P (l) is the probability density function of luminance component, pmaxFor the maximum of P (l), pminFor the minima of P (l), P (l) can be tried to achieve by following formula:
P (l)=nl/np (9)
In formula, nlPixel count contained by corresponding brightness, npThe pixel comprised for luminance component is total Number;
Step 4: merge Len(x, y) and Rc(x y) i.e. can get final enhancing image Ien(x, y), I e n c ( x , y ) = R c ( x , y ) · L e n ( x , y ) , c ∈ { r , g , b } - - - ( 10 ) .
2. a high-performance image signal processor ISP, it is characterised in that employ claim 1 Described method.
CN201510608275.8A 2015-09-22 2015-09-22 The image enchancing method adjusted based on illumination and equipment Expired - Fee Related CN105096278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510608275.8A CN105096278B (en) 2015-09-22 2015-09-22 The image enchancing method adjusted based on illumination and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510608275.8A CN105096278B (en) 2015-09-22 2015-09-22 The image enchancing method adjusted based on illumination and equipment

Publications (2)

Publication Number Publication Date
CN105096278A CN105096278A (en) 2015-11-25
CN105096278B true CN105096278B (en) 2016-08-17

Family

ID=54576629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510608275.8A Expired - Fee Related CN105096278B (en) 2015-09-22 2015-09-22 The image enchancing method adjusted based on illumination and equipment

Country Status (1)

Country Link
CN (1) CN105096278B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255756B (en) * 2017-07-14 2020-12-29 北京大学 Low-illumination image enhancement method and device
CN109712097B (en) * 2019-01-04 2021-04-30 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN109816608B (en) * 2019-01-22 2020-09-18 北京理工大学 Low-illumination image self-adaptive brightness enhancement method based on noise suppression
CN109919869B (en) * 2019-02-28 2021-06-04 腾讯科技(深圳)有限公司 Image enhancement method and device and storage medium
CN110458768B (en) * 2019-07-16 2022-03-01 上海联影智能医疗科技有限公司 Image processing method, computer device, and readable storage medium
CN110782400B (en) * 2019-09-12 2024-03-01 南宁师范大学 Self-adaptive illumination uniformity realization method and device
CN112767256A (en) * 2019-11-05 2021-05-07 福州瑞芯微电子股份有限公司 Retinex model-based image enhancement method and terminal
CN110889348A (en) * 2019-11-15 2020-03-17 亚信科技(中国)有限公司 Method and device for improving success rate of face recognition under complex light
CN111899197B (en) * 2020-08-05 2024-04-30 广州市百果园信息技术有限公司 Image brightening and denoising method and device, mobile terminal and storage medium
CN112580672A (en) * 2020-12-28 2021-03-30 安徽创世科技股份有限公司 License plate recognition preprocessing method and device suitable for dark environment and storage medium
CN114565563B (en) * 2022-01-31 2022-12-02 扬州江净空调制造有限公司 Color steel plate surface abnormity detection method based on artificial intelligence

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044070A (en) * 2011-01-10 2011-05-04 北京师范大学 Retinex based nonlinear color image enhancement method
CN102682436A (en) * 2012-05-14 2012-09-19 陈军 Image enhancement method on basis of improved multi-scale Retinex theory
CN103236040A (en) * 2013-04-19 2013-08-07 华为技术有限公司 Color enhancement method and color enhancement device
CN103413275A (en) * 2013-07-26 2013-11-27 北京工业大学 Retinex night image enhancement method based on gradient zero norm minimum

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044070A (en) * 2011-01-10 2011-05-04 北京师范大学 Retinex based nonlinear color image enhancement method
CN102682436A (en) * 2012-05-14 2012-09-19 陈军 Image enhancement method on basis of improved multi-scale Retinex theory
CN103236040A (en) * 2013-04-19 2013-08-07 华为技术有限公司 Color enhancement method and color enhancement device
CN103413275A (en) * 2013-07-26 2013-11-27 北京工业大学 Retinex night image enhancement method based on gradient zero norm minimum

Also Published As

Publication number Publication date
CN105096278A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105096278B (en) The image enchancing method adjusted based on illumination and equipment
CN104240194B (en) A kind of enhancement algorithm for low-illumination image based on parabolic function
CN106780417B (en) method and system for enhancing uneven-illumination image
CN106897981A (en) A kind of enhancement method of low-illumination image based on guiding filtering
CN103049888A (en) Image/video demisting method based on combination of dark primary color of atmospheric scattered light
CN103268598B (en) Based on the low-light (level) low altitude remote sensing image Enhancement Method of Retinex theory
CN106897972A (en) A kind of self-adapting histogram underwater picture Enhancement Method of white balance and dark primary
CN102903081A (en) Low-light image enhancement method based on red green blue (RGB) color model
CN108198155B (en) Self-adaptive tone mapping method and system
CN105959510B (en) A kind of video rapid defogging method
CN104021532A (en) Image detail enhancement method for infrared image
CN105354801B (en) A kind of image enchancing method based on HSV color space
CN110473152B (en) Image enhancement method based on improved Retinex algorithm
Thanh et al. Single image dehazing based on adaptive histogram equalization and linearization of gamma correction
CN106683056A (en) Airborne photoelectric infrared digital image processing method and apparatus thereof
CN103607589B (en) JND threshold value computational methods based on hierarchy selection visual attention mechanism
CN105096272A (en) De-hazing method based on dual-tree complex wavelet
CN105931208A (en) Physical model-based low-illuminance image enhancement algorithm
CN106934770B (en) A kind of method and apparatus for evaluating haze image defog effect
CN107481214A (en) A kind of twilight image and infrared image fusion method
CN110298796A (en) Based on the enhancement method of low-illumination image for improving Retinex and Logarithmic image processing
Cai et al. Perception preserving decolorization
CN103996179B (en) Fast real-time image enhancement method based on single-scale Retinex
CN109859138B (en) Infrared image enhancement method based on human visual characteristics
Ein-shoka et al. Quality enhancement of infrared images using dynamic fuzzy histogram equalization and high pass adaptation in DWT

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817

Termination date: 20170922