CN104182947A - Low-illumination image enhancement method and system - Google Patents

Low-illumination image enhancement method and system Download PDF

Info

Publication number
CN104182947A
CN104182947A CN201410458453.9A CN201410458453A CN104182947A CN 104182947 A CN104182947 A CN 104182947A CN 201410458453 A CN201410458453 A CN 201410458453A CN 104182947 A CN104182947 A CN 104182947A
Authority
CN
China
Prior art keywords
illumination
pixel
image
value
mean
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
CN201410458453.9A
Other languages
Chinese (zh)
Other versions
CN104182947B (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.)
Baileqi Technology Inc
Original Assignee
China Security and Surveillance Technology PRC Inc
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 China Security and Surveillance Technology PRC Inc filed Critical China Security and Surveillance Technology PRC Inc
Priority to CN201410458453.9A priority Critical patent/CN104182947B/en
Publication of CN104182947A publication Critical patent/CN104182947A/en
Application granted granted Critical
Publication of CN104182947B publication Critical patent/CN104182947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a low-illumination image enhancement method and system, and belongs to the technical field of image processing. The method comprises the steps of converting an input original image into an HIS space from an RGB space, keeping the saturability and the hue component of the image unchanged, enhancing the brightness component, converting the image with the brightness enhanced into the RGB space from the HIS space and outputting the image. According to the low-illumination image enhancement method and system, the image brightness is improved, extremely-dark areas (the areas close to black) are prevented from being changed into bright-colored areas after being enhanced, and the image adapts to the human visual characteristics better. Meanwhile, the complexity is low, the calculation amount is small, high-definition images can be processed in real time, and the performance requirement for hardware can be lowered.

Description

A kind of enhancement method of low-illumination image and system
Technical field
The present invention relates to technical field of image processing, relate in particular to a kind of enhancement method of low-illumination image and system.
Background technology
In the application of image acquisition or video monitoring, often have the situation of night vision or the low-light (level) such as backlight, the figure kine bias collecting is dark, can identification low, need to carry out just specifically applying after image enhancement processing.Figure image intensifying is exactly the brightness range of expanded view picture and the overall brightness that improves image, improves the subjective quality of image, make cannot identification image detail can be by human eye or machine recognition.
Common image enhancement processing method comprises luminance transformation method, homomorphic filtering method, gradient field Enhancement Method and Retinex Enhancement Method etc.The luminance transformation method that the histogram equalization method of take is representative can make image brightness distribution more even, and strengthens picture contrast, but easily produces enhancing phenomenon.Homomorphic filtering method based on illumination-reflection model is divided into high and low frequency two parts by image, reaches and strengthens the picture contrast object of compressed image dynamic range simultaneously, but there will be enhancing phenomenon, to specular, shadow enhancement weak effect.Gradient field Enhancement Method is processed the gradient of original image, by reducing image gradient value compressed image dynamic range, increases partial gradient value and strengthens image border.Shortcoming is to make image sharpening to a certain extent, and in gradient field, rebuilds the numerical algorithm that image need to be certain, is not suitable for real-time use.Retinex Enhancement Method is used the luminance component of Gaussian smoothing Function Estimation original image, application illumination compensation method is approached reflected image, can when keeping brightness of image, strengthen the information of image dark place, but exist the problem that operand is large, be difficult to process in real time high-definition image, lack universality, and directly image is strengthened and processes easily generation color loss under RGB color space, do not meet people's visual signature.
Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of strong robustness, is easy to realize, be more suitable for enhancement method of low-illumination image and the system of people's visual signature, large to solve current enhancement method of low-illumination image operand, lack universality, be difficult to process in real time the technical matters of high-definition image.
It is as follows that the present invention solves the problems of the technologies described above adopted technical scheme:
According to an aspect of the present invention, a kind of enhancement method of low-illumination image providing comprises:
The original image of input is transformed into HIS space by rgb space;
Keep saturation degree and the tone component of image constant, luminance component is strengthened;
Image after brightness is strengthened is transformed into rgb space output by HIS space.
Preferably, the original image of input being transformed into HIS space by rgb space further comprises as follows and changing:
I = R + G + B 3
H = arccos { 1 2 [ ( R - G ) + ( R - B ) ] [ ( R - G ) 2 + ( R - B ) ( G - B ) ] 1 2 }
S = 1 - min ( R , G , B ) + 1 A · mean ( R , G , B ) mean ( R , G , B ) + 1 A · mean ( R , G , B )
Wherein, I represents brightness, and S represents saturation degree, and H represents tone; R, G, B represent respectively three color channels of red, green, blue; Min () represents minimum value, and mean () represents average; The span of A is [200,255].
Preferably, keep saturation degree and the tone component of image constant, luminance component strengthened further and comprised:
Luminance component is carried out to auto adapted filtering, obtain illumination pattern;
Calculate the reflectogram of original image;
Adjust the contrast of illumination pattern;
According to the luminance graph after synthetic enhancing of illumination pattern after reflectogram and contrast adjustment.
Preferably, luminance component is carried out to auto adapted filtering, obtains illumination pattern and further comprise:
The template window of default M different N*N; Wherein, M gets the integer that is greater than 1, and N gets the odd number comprising more than 3; Value in template window forms by 0 and 1, and the polygonal shape that the point that is 1 by value forms is different, and all polygons combine and will cover whole template window;
For each pixel, calculate the brightness average Mean of each template window mand corresponding variance δ m, wherein, m is 1 to M integer;
Obtain the minimum variance δ of each pixel mthe brightness average Mean of corresponding templates window mas the value after the luminance filtering of this pixel, obtain the illumination value of this pixel.
Preferably, the contrast of adjustment illumination pattern further comprises:
In rejecting illumination pattern, illumination value two ends proportion is less than the pixel of default ratio value;
Calculate the average illumination value of remaining pixel;
The illumination value of remaining each pixel of pixel is deducted respectively to average illumination value, obtain illumination differential chart;
The illumination difference of each pixel in illumination differential chart is multiplied by respectively to the default adjustment factor;
Illumination difference after the adjustment of each pixel in illumination differential chart is added respectively to average illumination value, obtain the illumination pattern after contrast is adjusted.
According to another aspect of the present invention, a kind of low-light (level) image intensifier device providing comprises:
The first modular converter, for being transformed into HIS space by the original image of input by rgb space;
Luminance enhancement module, for keeping saturation degree and the tone component of image constant, strengthens luminance component;
The second modular converter, is transformed into rgb space output for the image after brightness is strengthened by HIS space.
Preferably, the first modular converter is specifically for changing as follows:
I = R + G + B 3
H = arccos { 1 2 [ ( R - G ) + ( R - B ) ] [ ( R - G ) 2 + ( R - B ) ( G - B ) ] 1 2 }
S = 1 - min ( R , G , B ) + 1 A · mean ( R , G , B ) mean ( R , G , B ) + 1 A · mean ( R , G , B )
Wherein, I represents brightness, and S represents saturation degree, and H represents tone; R, G, B represent respectively three color channels of red, green, blue; Min () represents minimum value, and mean () represents average; The span of A is [200,255].
Preferably, luminance enhancement module comprises:
Auto adapted filtering unit, for luminance component is carried out to auto adapted filtering, obtains illumination pattern;
Reflectogram computing unit, for calculating the reflectogram of original image;
Contrast adjustment unit, for adjusting the contrast of illumination pattern;
Image synthesis unit, for synthesizing the luminance graph after strengthening according to the illumination pattern after reflectogram and contrast adjustment.
Preferably, auto adapted filtering unit comprises:
Template-setup subelement, for the template window of default M different N*N; Wherein, M gets the integer that is greater than 1, and N gets the odd number comprising more than 3; Value in template window forms by 0 and 1, and the polygonal shape that the point that is 1 by value forms is different, and all polygons combine and will cover whole template window;
Computation subunit, for for each pixel, calculates the brightness average Mean of each template window mand corresponding variance δ m, wherein, m is 1 to M integer;
Determine subelement, for obtaining the minimum variance δ of each pixel mthe brightness average Mean of corresponding templates window mas the value after the luminance filtering of this pixel, obtain the illumination value of this pixel.
Preferably, contrast adjustment unit comprises:
Filter subelement, for rejecting illumination pattern illumination value two ends proportion, be less than the pixel of default ratio value;
Illumination mean value computation subelement, for calculating the average illumination value of remaining pixel;
Differential chart computation subunit, for the illumination value of remaining each pixel of pixel is deducted respectively to average illumination value, obtains illumination differential chart;
Adjust subelement, for the illumination difference of each pixel of illumination differential chart is multiplied by respectively to the default adjustment factor;
Syndrome unit, for the illumination difference after the adjustment of each pixel of illumination differential chart is added respectively to average illumination value, obtains the illumination pattern after contrast is adjusted.
The enhancement method of low-illumination image of the embodiment of the present invention and system, compared with prior art, by the brightness of image being strengthened in HIS space, can avoid utmost point dark areas (connecing pullous region) after enhancing, to become bright-coloured colour, more meet people's visual signature; Meanwhile, enhancing algorithm complex is low, operand is little, can not only process in real time high-definition image, and can reduce the performance requirement to hardware.In addition, by improving calculating the formula of saturation degree when the color space conversion, after the pixel of any brightness is strengthened, there will not be image to become flower phenomenon, visual effect is fine, stable performance.In addition, by adaptive filter method, in Automatic-searching neighborhood of pixel points to be filtered, pixel value changes mild region, then calculates the filtered value of pending point according to the pixel value in mild region, can keep well image edge information, avoids image blurring.
Accompanying drawing explanation
The process flow diagram of a kind of enhancement method of low-illumination image that Fig. 1 provides for the embodiment of the present invention.
The process flow diagram of a kind of luminance component Enhancement Method that Fig. 2 provides for the preferred embodiment of the present invention.
The process flow diagram of a kind of brightness adaptive filter method that Fig. 3 provides for the preferred embodiment of the present invention.
The schematic diagram of a kind of template window that Fig. 4 provides for the preferred embodiment of the present invention.
The process flow diagram of a kind of contrast method of adjustment that Fig. 5 provides for the preferred embodiment of the present invention.
The modular structure figure of a kind of low-light (level) image intensifier device that Fig. 6 provides for the embodiment of the present invention.
A kind of luminance component that Fig. 7 provides for the preferred embodiment of the present invention strengthens the structural representation of module.
The structural representation of a kind of brightness auto adapted filtering module that Fig. 8 provides for the preferred embodiment of the present invention.
The structural representation of a kind of contrast adjusting module that Fig. 9 provides for the preferred embodiment of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearer, clear, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment mono-
As shown in Figure 1, a kind of enhancement method of low-illumination image that the embodiment of the present invention provides, comprises the following steps:
S10, the original image of input is transformed into HIS space by rgb space.
Preferably, can adopt following formula to change:
I = R + G + B 3 - - - ( 1 )
H = arccos { 1 2 [ ( R - G ) + ( R - B ) ] [ ( R - G ) 2 + ( R - B ) ( G - B ) ] 1 2 } - - - ( 2 )
S 0 = 1 - 3 · min ( R , G , B ) R + G + B - - - ( 3 )
S = 1 - min ( R , G , B ) + 1 A · mean ( R , G , B ) mean ( R , G , B ) + 1 A · mean ( R , G , B ) - - - ( 4 )
Wherein, I represents brightness, and S represents saturation degree, and H represents tone; R, G, B represent respectively three color channels of red, green, blue; Min () represents minimum value, and mean () represents average; The span of A is [200,255].The value of A is to make when certain pixel is very dark, and the S value of this pixel approaches 0, and when the color of certain pixel is very bright-coloured, S value is tending towards 1, and therefore, the span of A is [200,255].
Specifically, saturation degree S reflects colour purity, span from 0 to 1, and saturation degree is larger, and it is more bright-coloured that color seems.But when the value of three passages of pixel other two when larger, as (0,0.003 relatively of very little and values of having a passage all, 0), human eye looks like black, and saturation degree should be close to 0, but the saturation degree of calculating according to traditional calculations saturation degree formula (3) is 1, therefore formula (3) is inapplicable to some pixel, especially when brightness value increases, visually, this point has become green by black, therefore, may become colored after figure image intensifying, visual effect is bad.By formula (3) is improved to after above-mentioned formula (4), when in formula (4), the value of A is 255, the pixel saturation degree that is (0,0.003,0) according to formula (4) calculating pixel point triple channel value is 0.00025.Visible, the saturation degree of utilizing formula (4) to calculate more approaches human eye vision, after the pixel of any brightness is strengthened, there will not be image to become flower phenomenon, and visual effect is fine, stable performance.
It should be noted that, when the original image of input picture is not R, G, B spatial image, need first convert thereof into R, G, B space.
Saturation degree and the tone component of S20, maintenance image are constant, and luminance component is strengthened.
Refer to Fig. 2, as a kind of preferred embodiment, this step S20 is further comprising the steps:
S201, luminance component is carried out to auto adapted filtering, obtain illumination pattern.
The reflectogram of S202, calculating original image.
Particularly, at log-domain, the brightness value I of each pixel in original image is deducted to the brightness value L of corresponding pixel points in illumination pattern, obtain the brightness value R of corresponding pixel points in the reflectogram on log-domain, that is:
logR=logI-logL
The contrast of S203, adjustment illumination pattern.
Luminance graph I after S204, the synthetic enhancing of illumination pattern after adjusting according to reflectogram and contrast out.
Particularly, at log-domain, by the brightness value R of each pixel in reflectogram add corresponding pixel points in the illumination pattern after contrast reduces brightness value L ', the brightness value I after obtaining brightness on log-domain and strengthening out, that is:
logI out=logL'+logR
S30, the image after brightness is strengthened are transformed into rgb space output by HIS space.
Particularly, H, S component remain unchanged, the I after strengthening with brightness out, HIS space is transformed into rgb space, the RGB coloured image after being enhanced.For instance, conversion formula is as follows:
When 120 ° of 0≤H <,
R out = I out [ 1 + S &CenterDot; cos H cos ( &pi; / 3 - H ) ] G out = 3 I out [ 1 - R out + B out 3 I out ] B out = I out ( 1 - S ) - - - ( 7 )
When 240 ° of 120 °≤H <,
When 240 °≤H≤360 °,
By above-mentioned three color channel R that calculate after enhancing out, G out, B outand output image.
The enhancement method of low-illumination image of the embodiment of the present invention, by the brightness of image being strengthened in HIS space, can avoid utmost point dark areas (connecing pullous region) after enhancing, to become bright-coloured colour, more meets people's visual signature; Meanwhile, enhancing algorithm complex is low, operand is little, can not only process in real time high-definition image, and can reduce the performance requirement to hardware.In addition, by improving calculating the formula of saturation degree when the color space conversion, after the pixel of any brightness is strengthened, there will not be image to become flower phenomenon, visual effect is fine, stable performance.
Embodiment bis-
As shown in Figure 3, a kind of brightness adaptive filter method that the preferred embodiment of the present invention provides, the method is to take template window computing as basis, comprises the following steps:
The template window of S2011, default M different N*N.
Wherein, M gets the integer that is greater than 1, and N gets the odd number comprising more than 3; Value in template window forms by 0 and 1, and the polygonal shape that the point that is 1 by value forms is different, and all polygons combine and will cover whole template window;
Particularly, set in advance the template window of M different N*N, value in this template window forms by 0,1, M gets the integer that is greater than 1, N gets the odd number comprising more than 3, the polygonal shape that the point that is 1 by value in the template window of this M different N*N forms is different, and the selected principle of polygon is that all polygons will cover whole template window.Take get M as 9, N is 5, the template window of also getting 9 5*5 is example, but is not limited to this template window, makes 9 kinds of different windows, the number of window also can be set according to user's actual needs.Please refer to Fig. 4, the totally 9 kinds of different template window as shown in Fig. 4 (a)~Fig. 4 (i), 4 pentagons that the point that it is 1 that these 9 kinds of difform template window comprise by value forms, 4 hexagons, 1 square that the length of side is 3.
S2012, for each pixel, calculate the brightness average Mean of each template window mand corresponding variance δ m.
Wherein, m is 1 to M integer; The window of M N*N is slided in entire image, can calculate according to formula (5), (6) the brightness average Mean of the template window of this pixel to be filtered mand corresponding variance δ m, wherein, the point that value is 1 in these a plurality of template window represents with k, k=1, and 2,3 ..., P, the number that P is 1 for each template window intermediate value, the pixel value of some k correspondence position in luminance picture I that this value is 1 represents with I (i, j):
Mean m = &Sigma; k = 1 k = P I ( i , j ) P - - - ( 5 )
The computing formula of variance is:
&delta; m = &Sigma; k = 1 k = P ( I 2 ( i , j ) - Mean m 2 ) - - - ( 6 )
Thereby, for each pixel to be filtered, can obtain M variance yields σ of this pixel m.
S2013, obtain the minimum variance δ of each pixel mthe brightness average Mean of corresponding templates window mas the value after the luminance filtering of this pixel.
Particularly, for each pixel, by the M a calculating σ msort, find minimum σ mthe brightness average Mean of corresponding templates mas filtering result.The window of N*N is slided in entire image, utilize said method just can realize the filtered value to all pixels, obtain image irradiation information.
In the embodiment of the present invention, by pixel value in Automatic-searching neighborhood of pixel points to be filtered, change mild region, then calculate the filtered value of pending point according to the pixel value in mild region, can keep well image edge information, avoid fuzzy.
Embodiment tri-
As shown in Figure 5, a kind of illumination pattern contrast method of adjustment that the preferred embodiment of the present invention provides, comprises the following steps:
In S2031, rejecting illumination pattern, illumination value two ends proportion is less than the pixel of default ratio value.
Particularly, reject the impact that the very little pixel of illumination value proportion can further be eliminated noise, default ratio value is generally got 1% pixel.
S2032, calculate the average illumination value of remaining pixel.
S2033, the illumination value of remaining each pixel of pixel is deducted respectively to average illumination value, obtain illumination differential chart.
S2034, the illumination difference of each pixel in illumination differential chart is multiplied by respectively to the default adjustment factor.
Wherein, the default adjustment factor is got the numerical value between 0 to 2.
S2035, the illumination difference after the adjustment of each pixel in illumination differential chart is added respectively to average illumination value, obtain the illumination pattern after contrast is adjusted.
In the present embodiment, the ultimate facts being formed by illumination information, object edge information and three parts of random noise based on image, by in the situation that Retain edge information is constant, when adjusting illumination contrast, can keep preferably the detailed information of the original image of input.
Embodiment tetra-
As shown in Figure 6, a kind of low-light (level) image intensifier device that the embodiment of the present invention provides, comprises with lower module:
The first modular converter 10, for being transformed into HIS space by the original image of input by rgb space.
Luminance enhancement module 20, for keeping saturation degree and the tone component of image constant, strengthens luminance component.
The second modular converter 30, is transformed into rgb space output for the image after brightness is strengthened by HIS space.
Preferably, the first modular converter 10 can adopt following formula to change:
I = R + G + B 3 - - - ( 1 )
H = arccos { 1 2 [ ( R - G ) + ( R - B ) ] [ ( R - G ) 2 + ( R - B ) ( G - B ) ] 1 2 } - - - ( 2 )
S 0 = 1 - 3 &CenterDot; min ( R , G , B ) R + G + B - - - ( 3 )
S = 1 - min ( R , G , B ) + 1 A &CenterDot; mean ( R , G , B ) mean ( R , G , B ) + 1 A &CenterDot; mean ( R , G , B ) - - - ( 4 )
Wherein, wherein, I represents brightness, and S represents saturation degree, and H represents tone; R, G, B represent respectively three color channels of red, green, blue; Min () represents minimum value, and mean () represents average; The span of A is [200,255].The value of A is to make when certain pixel is very dark, and the S value of this pixel approaches 0, and when the color of certain pixel is very bright-coloured, S value is tending towards 1, and therefore, the span of A is [200,255].
Specifically, saturation degree S reflects colour purity, span from 0 to 1, and saturation degree is larger, and it is more bright-coloured that color seems.But when the value of three passages of pixel other two when larger, as (0,0.003 relatively of very little and values of having a passage all, 0), human eye looks like black, and saturation degree should be close to 0, but the saturation degree of calculating according to traditional calculations saturation degree formula (3) is 1, therefore formula (3) is inapplicable to some pixel, especially when brightness value increases, visually, this point has become green by black, therefore, may become colored after figure image intensifying, visual effect is bad.By formula (3) is improved to after above-mentioned formula (4), when in formula (4), the value of A is 255, the pixel saturation degree that is (0,0.003,0) according to formula (4) calculating pixel point triple channel value is 0.00025.Visible, the saturation degree of utilizing formula (4) to calculate more approaches human eye vision, after the pixel of any brightness is strengthened, there will not be image to become flower phenomenon, and visual effect is fine, stable performance.
Preferably, refer to Fig. 7, luminance enhancement module 20 comprises auto adapted filtering unit 201, reflectogram computing unit 202, contrast adjustment unit 203 and image synthesis unit 204, wherein:
Auto adapted filtering unit 201, for luminance component is carried out to auto adapted filtering, obtains illumination pattern;
Reflectogram computing unit 202, for calculating the reflectogram of original image; Particularly, at log-domain, the brightness value I of each pixel in original image is deducted to the brightness value L of corresponding pixel points in illumination pattern, obtain the brightness value R of corresponding pixel points in the reflectogram on log-domain, that is:
logR=logI-logL
Contrast adjustment unit 203, for adjusting the contrast of illumination pattern;
Image synthesis unit 204, for synthesizing the luminance graph after strengthening according to the illumination pattern after reflectogram and contrast adjustment.Particularly, at log-domain, by the brightness value R of each pixel in reflectogram add corresponding pixel points in the illumination pattern after contrast reduces brightness value L ', the brightness value I after obtaining brightness on log-domain and strengthening out, that is:
logI out=logL'+logR
The second 30 pairs of modular converters H, S component remain unchanged, with the I after strengthening out, HIS space is transformed into rgb space, the RGB coloured image after being enhanced.For instance, conversion formula is as follows:
When 120 ° of 0≤H <,
R out = I out [ 1 + S &CenterDot; cos H cos ( &pi; / 3 - H ) ] G out = 3 I out [ 1 - R out + B out 3 I out ] B out = I out ( 1 - S ) - - - ( 7 )
When 240 ° of 120 °≤H <,
When 240 °≤H≤360 °,
By above-mentioned three color channel R that calculate after enhancing out, G out, B outand output image.
It should be noted that, when the original image of input picture is not R, G, B spatial image, need first convert thereof into R, G, B space.
The low-light (level) image intensifier device of the embodiment of the present invention, by the brightness of image being strengthened in HIS space, can avoid utmost point dark areas (connecing pullous region) after enhancing, to become bright-coloured colour, more meets people's visual signature; Meanwhile, enhancing algorithm complex is low, operand is little, can not only process in real time high-definition image, and can reduce the performance requirement to hardware.In addition, by improving calculating the formula of saturation degree when the color space conversion, after the pixel of any brightness is strengthened, there will not be image to become flower phenomenon, visual effect is fine, stable performance.
Embodiment five
As shown in Figure 8, a kind of auto adapted filtering unit that the embodiment of the present invention provides comprises following subelement:
Template-setup subelement 2011, for the template window of default M different N*N; Wherein, M gets the integer that is greater than 1, and N gets the odd number comprising more than 3; Value in template window forms by 0 and 1, and the polygonal shape that the point that is 1 by value forms is different, and all polygons combine and will cover whole template window;
Particularly, set in advance the template window of M different N*N, value in this template window forms by 0,1, M gets the integer that is greater than 1, N gets the odd number comprising more than 3, the polygonal shape that the point that is 1 by value in the template window of this M different N*N forms is different, and the selected principle of polygon is the window that all polygons will cover whole template window.Take get M as 9, N is 5, the template window of also getting 9 5*5 is example, but is not limited to this template window, makes 9 kinds of different windows, the number of window also can be set according to user's actual needs.Please refer to Fig. 4, the totally 9 kinds of different template window as shown in Fig. 4 (a)~Fig. 4 (i), 4 pentagons that the point that it is 1 that these 9 kinds of difform template window comprise by value forms, 4 hexagons, 1 square that the length of side is 3.
Computation subunit 2012, for for each pixel, calculates the brightness average Mean of each template window mand corresponding variance δ m, wherein, m is 1 to M integer.
Particularly, the window of M N*N is slided in entire image, can calculate according to formula (5), (6) the brightness average Mean of the template window of this pixel to be filtered mand corresponding variance δ m, wherein, the point that value is 1 in these a plurality of template window represents with k, k=1, and 2,3 ..., P, the number that P is 1 for each template window intermediate value, the pixel value of some k correspondence position in luminance picture I that this value is 1 represents with I (i, j):
Mean m = &Sigma; k = 1 k = P I ( i , j ) P - - - ( 5 )
The computing formula of variance is:
&delta; m = &Sigma; k = 1 k = P ( I 2 ( i , j ) - Mean m 2 ) - - - ( 6 )
Thereby, for each pixel to be filtered, can obtain M variance yields σ of this pixel m.
Determine subelement 2013, for obtaining the minimum variance δ of each pixel mthe brightness average Mean of corresponding templates window mas the value after the luminance filtering of this pixel, obtain the illumination value of this pixel.
Particularly, for each pixel, by the M a calculating σ msort, find minimum σ mthe brightness average Mean of corresponding templates mas filtering result.The window of N*N is slided in entire image, utilize said method just can realize the filtering to all pixels, obtain image irradiation information.
In the embodiment of the present invention, by pixel value in Automatic-searching neighborhood of pixel points to be filtered, change mild region, then calculate the filtered value of pending point according to the pixel value in mild region, can keep well image edge information, avoid fuzzy.
Embodiment six
As shown in Figure 7, the contrast adjustment unit that the preferred embodiment of the present invention provides, comprises following subelement:
Filter subelement 2031, for rejecting illumination pattern illumination value two ends proportion, be less than the pixel of default ratio value;
Illumination mean value computation subelement 2032, for calculating the average illumination value of remaining pixel;
Differential chart computation subunit 2033, for the illumination value of remaining each pixel of pixel is deducted respectively to average illumination value, obtains illumination differential chart;
Adjust subelement 2034, for the illumination difference of each pixel of illumination differential chart is multiplied by respectively to the default adjustment factor;
Syndrome unit 2035, for the illumination difference after the adjustment of each pixel of illumination differential chart is added respectively to average illumination value, obtains the illumination pattern after contrast is adjusted.
In the present embodiment, the ultimate facts being formed by illumination information, object edge information and three parts of random noise based on image, by in the situation that Retain edge information is constant, when adjusting illumination contrast, can keep preferably the detailed information of the original image of input.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can control relevant hardware by program to complete, described program can be in being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
With reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention above.Those skilled in the art do not depart from the scope and spirit of the present invention, and can have multiple flexible program to realize the present invention, such as the feature as an embodiment can be used for another embodiment, obtain another embodiment.Allly using any modification of doing within technical conceive of the present invention, be equal to and replace and improve, all should be within interest field of the present invention.

Claims (10)

1. an enhancement method of low-illumination image, is characterized in that, the method comprises:
The original image of input is transformed into HIS space by rgb space;
Keep saturation degree and the tone component of image constant, luminance component is strengthened;
Image after brightness is strengthened is transformed into rgb space output by HIS space.
2. enhancement method of low-illumination image according to claim 1, is characterized in that, describedly the original image of input is transformed into HIS space by rgb space further comprises as follows and changing:
I = R + G + B 3
H = arccos { 1 2 [ ( R - G ) + ( R - B ) ] [ ( R - G ) 2 + ( R - B ) ( G - B ) ] 1 2 }
S = 1 - min ( R , G , B ) + 1 A &CenterDot; mean ( R , G , B ) mean ( R , G , B ) + 1 A &CenterDot; mean ( R , G , B )
Wherein, I represents brightness, and S represents saturation degree, and H represents tone; R, G, B represent respectively three color channels of red, green, blue; Min () represents minimum value, and mean () represents average; The span of A is [200,255].
3. enhancement method of low-illumination image according to claim 1, is characterized in that, the saturation degree of described maintenance image and tone component are constant, and luminance component is strengthened further and comprised:
Luminance component is carried out to auto adapted filtering, obtain illumination pattern;
Calculate the reflectogram of described original image;
Adjust the contrast of described illumination pattern;
According to the luminance graph after synthetic enhancing of illumination pattern after described reflectogram and contrast adjustment.
4. enhancement method of low-illumination image according to claim 3, is characterized in that, described luminance component is carried out to auto adapted filtering, obtains illumination pattern and further comprises:
The template window of default M different N*N; Wherein, M gets the integer that is greater than 1, and N gets the odd number comprising more than 3; Value in described template window forms by 0 and 1, and the polygonal shape that the point that is 1 by value forms is different, and all polygons combine and will cover whole template window;
For each pixel, calculate the brightness average Mean of each template window mand corresponding variance δ m, wherein, m is 1 to M integer;
Obtain the minimum variance δ of each pixel mthe brightness average Mean of corresponding templates window mas the value after the luminance filtering of this pixel, obtain the illumination value of this pixel.
5. enhancement method of low-illumination image according to claim 3, is characterized in that, the contrast of the described illumination pattern of described adjustment further comprises:
Reject illumination value two ends proportion in described illumination pattern and be less than the pixel of default ratio value;
Calculate the average illumination value of remaining pixel;
The illumination value of remaining each pixel of pixel is deducted respectively to described average illumination value, obtain illumination differential chart;
The illumination difference of each pixel in described illumination differential chart is multiplied by respectively to the default adjustment factor;
Illumination difference after the adjustment of each pixel in described illumination differential chart is added respectively to average illumination value, obtain the illumination pattern after contrast is adjusted.
6. a low-light (level) image intensifier device, is characterized in that, this device comprises:
The first modular converter, for being transformed into HIS space by the original image of input by rgb space;
Luminance enhancement module, for keeping saturation degree and the tone component of image constant, strengthens luminance component;
The second modular converter, is transformed into rgb space output for the image after brightness is strengthened by HIS space.
7. low-light (level) image intensifier device according to claim 6, is characterized in that, described the first modular converter is specifically for changing as follows:
I = R + G + B 3
H = arccos { 1 2 [ ( R - G ) + ( R - B ) ] [ ( R - G ) 2 + ( R - B ) ( G - B ) ] 1 2 }
S = 1 - min ( R , G , B ) + 1 A &CenterDot; mean ( R , G , B ) mean ( R , G , B ) + 1 A &CenterDot; mean ( R , G , B )
Wherein, I represents brightness, and S represents saturation degree, and H represents tone; R, G, B represent respectively three color channels of red, green, blue; Min () represents minimum value, and mean () represents average; The span of A is [200,255].
8. low-light (level) image intensifier device according to claim 6, is characterized in that, described luminance enhancement module comprises:
Auto adapted filtering unit, for luminance component is carried out to auto adapted filtering, obtains illumination pattern;
Reflectogram computing unit, for calculating the reflectogram of described original image;
Contrast adjustment unit, for adjusting the contrast of described illumination pattern;
Image synthesis unit, for synthesizing the luminance graph after strengthening according to the illumination pattern after described reflectogram and contrast adjustment.
9. low-light (level) image intensifier device according to claim 8, is characterized in that, described auto adapted filtering unit comprises:
Template-setup subelement, for the template window of default M different N*N; Wherein, M gets the integer that is greater than 1, and N gets the odd number comprising more than 3; Value in described template window forms by 0 and 1, and the polygonal shape that the point that is 1 by value forms is different, and all polygons combine and will cover whole template window;
Computation subunit, for for each pixel, calculates the brightness average Mean of each template window mand corresponding variance δ m, wherein, m is 1 to M integer;
Determine subelement, for obtaining the minimum variance δ of each pixel mthe brightness average Mean of corresponding templates window mas the value after the luminance filtering of this pixel, obtain the illumination value of this pixel.
10. low-light (level) image intensifier device according to claim 8, is characterized in that, described contrast adjustment unit comprises:
Filter subelement, for rejecting described illumination pattern illumination value two ends proportion, be less than the pixel of default ratio value;
Illumination mean value computation subelement, for calculating the average illumination value of remaining pixel;
Differential chart computation subunit, for the illumination value of remaining each pixel of pixel being deducted respectively to described average illumination value, obtains illumination differential chart;
Adjust subelement, for the illumination difference of described each pixel of illumination differential chart is multiplied by respectively to the default adjustment factor;
Syndrome unit, for the illumination difference after the adjustment of described each pixel of illumination differential chart is added respectively to average illumination value, obtains the illumination pattern after contrast is adjusted.
CN201410458453.9A 2014-09-10 2014-09-10 Low-illumination image enhancement method and system Active CN104182947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410458453.9A CN104182947B (en) 2014-09-10 2014-09-10 Low-illumination image enhancement method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410458453.9A CN104182947B (en) 2014-09-10 2014-09-10 Low-illumination image enhancement method and system

Publications (2)

Publication Number Publication Date
CN104182947A true CN104182947A (en) 2014-12-03
CN104182947B CN104182947B (en) 2017-04-26

Family

ID=51963966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410458453.9A Active CN104182947B (en) 2014-09-10 2014-09-10 Low-illumination image enhancement method and system

Country Status (1)

Country Link
CN (1) CN104182947B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574495A (en) * 2014-12-22 2015-04-29 北京像素软件科技股份有限公司 Method and device for rendering image
CN104992423A (en) * 2015-07-14 2015-10-21 厦门美图之家科技有限公司 Gradient-based image sharpening processing method and system and shooting terminal
CN105046663A (en) * 2015-07-10 2015-11-11 西南科技大学 Human visual perception simulation-based self-adaptive low-illumination image enhancement method
CN106846276A (en) * 2017-02-06 2017-06-13 上海兴芯微电子科技有限公司 A kind of image enchancing method and device
CN106875344A (en) * 2016-12-21 2017-06-20 浙江大华技术股份有限公司 A kind of light filling processing method and processing device of video image
CN106897981A (en) * 2017-04-12 2017-06-27 湖南源信光电科技股份有限公司 A kind of enhancement method of low-illumination image based on guiding filtering
CN106971380A (en) * 2017-03-13 2017-07-21 深圳市嘉和顺信息科技有限公司 A kind of contrast enhancing and application of the visual saliency optimization method in golf course figure
CN107123093A (en) * 2016-12-07 2017-09-01 重庆微标科技股份有限公司 A kind of processing method and processing device of vehicle image
CN107229385A (en) * 2016-03-26 2017-10-03 谭登峰 United information interactive system
CN108986052A (en) * 2018-08-01 2018-12-11 电子科技大学 A kind of adaptive image removes illumination method and system
CN109785240A (en) * 2017-11-13 2019-05-21 中国移动通信有限公司研究院 A kind of enhancement method of low-illumination image, device and image processing equipment
CN109919846A (en) * 2017-12-12 2019-06-21 腾讯科技(深圳)有限公司 A kind of image enchancing method, device and calculate equipment
CN109996017A (en) * 2017-12-29 2019-07-09 Tcl集团股份有限公司 A kind of method of adjustment and its terminal of image
CN110390643A (en) * 2018-04-20 2019-10-29 杭州海康威视数字技术股份有限公司 A kind of license plate Enhancement Method, device and electronic equipment
CN110648297A (en) * 2019-09-26 2020-01-03 邓诗雨 Image defogging method and system, electronic equipment and storage medium
CN111915528A (en) * 2020-08-05 2020-11-10 广州市百果园信息技术有限公司 Image brightening method and device, mobile terminal and storage medium
CN117237258A (en) * 2023-11-14 2023-12-15 山东捷瑞数字科技股份有限公司 Night vision image processing method, system, equipment and medium based on three-dimensional engine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW391130B (en) * 1996-08-20 2000-05-21 Silicon Integrated Sys Corp Method and apparatus for contrast enhancement of color images
CN102436640A (en) * 2011-09-21 2012-05-02 北京航空航天大学 Foggy-day image sharpening method of multi-scale Retinex model based on HIS space

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张璞 等: "基于CLAHE变换的低对比度图像增强改进算法", 《青岛大学学报(工程技术版)》 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574495A (en) * 2014-12-22 2015-04-29 北京像素软件科技股份有限公司 Method and device for rendering image
CN104574495B (en) * 2014-12-22 2017-08-08 北京像素软件科技股份有限公司 A kind of image rendering method and device
CN105046663A (en) * 2015-07-10 2015-11-11 西南科技大学 Human visual perception simulation-based self-adaptive low-illumination image enhancement method
CN105046663B (en) * 2015-07-10 2017-08-04 西南科技大学 A kind of adaptive enhancement method of low-illumination image for simulating human visual perception
CN104992423B (en) * 2015-07-14 2019-05-03 厦门美图之家科技有限公司 A kind of image sharpening processing method, system and camera terminal based on gradient
CN104992423A (en) * 2015-07-14 2015-10-21 厦门美图之家科技有限公司 Gradient-based image sharpening processing method and system and shooting terminal
CN107229385A (en) * 2016-03-26 2017-10-03 谭登峰 United information interactive system
CN107229385B (en) * 2016-03-26 2023-05-26 谭登峰 Method for improving smoothness of cursor movement track
CN107123093A (en) * 2016-12-07 2017-09-01 重庆微标科技股份有限公司 A kind of processing method and processing device of vehicle image
CN106875344B (en) * 2016-12-21 2019-09-17 浙江大华技术股份有限公司 A kind of light filling processing method and processing device of video image
CN106875344A (en) * 2016-12-21 2017-06-20 浙江大华技术股份有限公司 A kind of light filling processing method and processing device of video image
US11055831B2 (en) 2016-12-21 2021-07-06 Zhejiang Dahua Technology Co., Ltd. Methods and systems for filling light for video images
CN106846276A (en) * 2017-02-06 2017-06-13 上海兴芯微电子科技有限公司 A kind of image enchancing method and device
CN106971380A (en) * 2017-03-13 2017-07-21 深圳市嘉和顺信息科技有限公司 A kind of contrast enhancing and application of the visual saliency optimization method in golf course figure
CN106897981A (en) * 2017-04-12 2017-06-27 湖南源信光电科技股份有限公司 A kind of enhancement method of low-illumination image based on guiding filtering
CN109785240B (en) * 2017-11-13 2021-05-25 中国移动通信有限公司研究院 Low-illumination image enhancement method and device and image processing equipment
CN109785240A (en) * 2017-11-13 2019-05-21 中国移动通信有限公司研究院 A kind of enhancement method of low-illumination image, device and image processing equipment
CN109919846B (en) * 2017-12-12 2022-09-23 腾讯科技(深圳)有限公司 Image enhancement method and device and computing equipment
CN109919846A (en) * 2017-12-12 2019-06-21 腾讯科技(深圳)有限公司 A kind of image enchancing method, device and calculate equipment
CN109996017B (en) * 2017-12-29 2021-08-06 Tcl科技集团股份有限公司 Image adjusting method and terminal thereof
CN109996017A (en) * 2017-12-29 2019-07-09 Tcl集团股份有限公司 A kind of method of adjustment and its terminal of image
CN110390643A (en) * 2018-04-20 2019-10-29 杭州海康威视数字技术股份有限公司 A kind of license plate Enhancement Method, device and electronic equipment
CN110390643B (en) * 2018-04-20 2022-04-26 杭州海康威视数字技术股份有限公司 License plate enhancement method and device and electronic equipment
CN108986052B (en) * 2018-08-01 2021-02-19 电子科技大学 Self-adaptive image illumination removing method and system
CN108986052A (en) * 2018-08-01 2018-12-11 电子科技大学 A kind of adaptive image removes illumination method and system
CN110648297A (en) * 2019-09-26 2020-01-03 邓诗雨 Image defogging method and system, electronic equipment and storage medium
CN111915528A (en) * 2020-08-05 2020-11-10 广州市百果园信息技术有限公司 Image brightening method and device, mobile terminal and storage medium
CN117237258A (en) * 2023-11-14 2023-12-15 山东捷瑞数字科技股份有限公司 Night vision image processing method, system, equipment and medium based on three-dimensional engine
CN117237258B (en) * 2023-11-14 2024-02-09 山东捷瑞数字科技股份有限公司 Night vision image processing method, system, equipment and medium based on three-dimensional engine

Also Published As

Publication number Publication date
CN104182947B (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN104182947A (en) Low-illumination image enhancement method and system
CN107527332B (en) Low-illumination image color retention enhancement method based on improved Retinex
CN103295191B (en) Multiple scale vision method for adaptive image enhancement and evaluation method
CN109191390A (en) A kind of algorithm for image enhancement based on the more algorithm fusions in different colours space
CN102789635B (en) Image enhancement method and image enhancement device
CN106897972A (en) A kind of self-adapting histogram underwater picture Enhancement Method of white balance and dark primary
CN110232661A (en) Low illumination colour-image reinforcing method based on Retinex and convolutional neural networks
CN107798661B (en) Self-adaptive image enhancement method
CN102096909B (en) Improved unsharp masking image reinforcing method based on logarithm image processing model
CN106504212A (en) A kind of improved HSI spatial informations low-luminance color algorithm for image enhancement
CN106780417A (en) A kind of Enhancement Method and system of uneven illumination image
CN108615252A (en) The training method and device of color model on line original text based on reference picture
CN106780375A (en) A kind of image enchancing method under low-light (level) environment
CN102289792A (en) Method and system for enhancing low-illumination video image
CN104240194A (en) Low-light-level image enhancement algorithm based on parabolic function
CN103985097B (en) A kind of image enchancing method of Nonuniform illumination
CN106997584A (en) A kind of haze weather image enchancing method
CN106846276A (en) A kind of image enchancing method and device
CN103268598A (en) Retinex-theory-based low-illumination low-altitude remote sensing image enhancing method
CN111968041A (en) Self-adaptive image enhancement method
CN103839245B (en) The Retinex colour-image reinforcing method at night of Corpus--based Method rule
CN104036464B (en) Based on CbCr angle characters and the image enchancing method and system of model layers
CN105744118A (en) Video enhancing method based on video frame self-adaption and video enhancing system applying the video enhancing method based on video frame self-adaption
CN103700077A (en) Human visual characteristic-based adaptive image enhancement method
CN104732495A (en) Automatic-toning image processing method and system based on fuzzing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518000 Guangdong province Shenzhen city Futian District District Shennan Road Press Plaza room 1306

Patentee after: ANKE ROBOT CO.,LTD.

Address before: 518000 Guangdong province Shenzhen city Futian District District Shennan Road Press Plaza room 1306

Patentee before: ANKE SMART CITY TECHNOLOGY (PRC) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180104

Address after: 518000 Guangdong city of Shenzhen province Baoan District Xixiang street guwu Sanwei Industrial Park, building four floor B tea

Patentee after: BAILEQI TECHNOLOGY Inc.

Address before: 518000 Guangdong province Shenzhen city Futian District District Shennan Road Press Plaza room 1306

Patentee before: ANKE ROBOT CO.,LTD.

TR01 Transfer of patent right

Effective date of registration: 20180427

Address after: 518000 one of the six buildings of B tea building in Baoan District, Xixiang, Shenzhen, Guangdong.

Patentee after: Shenzhen baric science and Technology Electronics Co.,Ltd.

Address before: 518000 Guangdong, Shenzhen, Baoan District Xixiang street, the third floor of the industrial zone, four B

Patentee before: BAILEQI TECHNOLOGY Inc.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231116

Address after: 518000 Guangdong, Shenzhen, Baoan District Xixiang street, the third floor of the industrial zone, four B

Patentee after: BAILEQI TECHNOLOGY Inc.

Address before: 518000 one of the six buildings of B tea building in Baoan District, Xixiang, Shenzhen, Guangdong.

Patentee before: Shenzhen baric science and Technology Electronics Co.,Ltd.

TR01 Transfer of patent right