CN1946138A - Method for image greyscale histogram equalizing treatment - Google Patents

Method for image greyscale histogram equalizing treatment Download PDF

Info

Publication number
CN1946138A
CN1946138A CNA2006100220721A CN200610022072A CN1946138A CN 1946138 A CN1946138 A CN 1946138A CN A2006100220721 A CNA2006100220721 A CN A2006100220721A CN 200610022072 A CN200610022072 A CN 200610022072A CN 1946138 A CN1946138 A CN 1946138A
Authority
CN
China
Prior art keywords
image
gray scale
maximum
scale
original image
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
CNA2006100220721A
Other languages
Chinese (zh)
Other versions
CN100502465C (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNB2006100220721A priority Critical patent/CN100502465C/en
Publication of CN1946138A publication Critical patent/CN1946138A/en
Application granted granted Critical
Publication of CN100502465C publication Critical patent/CN100502465C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to an image signal process technology, especially to a method for enhancing the brightness and contrast of images, which divides the gray scale of an original image into 16 levels to carry out linear approximate histogram accumulation in the process of equalizing image gray scale histograms, sets a control parameter to process the original image adaptively and dynamically, which is advantaged that the brightness, the image hierarchy and the contrast of the original image is increased.

Description

Method for image greyscale histogram equalizing treatment
Technical field
The present invention relates to the picture signal treatment technology, particularly image brightness, contrast enhancement process.
Background technology
At present, panel TV (LCD, PDP etc.) ubiquity display image brightness, the problem that contrast is not high need be carried out image enhancement processing in video frequency processing chip, and various brightness, gray scale Processing Algorithm are widely adopted.
Common method for image greyscale histogram equalizing treatment is exactly a kind of image enchancing method.Prior art does not generally limit the enhancing degree, and it is uncontrollable to exist the enhancing degree, the enhancing phenomenon occurs, causes the monochrome information of image to alter a great deal, such as becoming very bright after the original very dark figure image intensifying; And prior art is not carried out the maximum qualification to the gray value of statistics, the zone of pixel very big (such as accounting for half of entire image pixel) will be expanded to such an extent that open very much like this, the gray scale of smooth region will seriously be pushed, and merges seriously, causes level and smooth image water ripple phenomenon to occur.The grey level histogram accumulative total of tradition algorithm of histogram equalization needs a lot of frame memories, and the cost of circuit is big, and arithmetic speed also has been subjected to very big restriction, can not be suitable in the television video of timeliness is handled.
Summary of the invention
Technical problem to be solved by this invention is exactly the above-mentioned shortcoming at prior art, and a kind of controlled image enchancing method of degree that strengthens is provided.
The present invention solve the technical problem, and the technical scheme of employing is method for image greyscale histogram equalizing treatment; May further comprise the steps:
A. the gray scale with original image is divided into the approximate histogram accumulative total of 16 progressive line shapes;
B. limit the max pixel value L_grade of every grade of gray scale, enhancing degree between controlled stage;
C. set the maximum control coefrficient L_bright that highlights, when strengthening image brightness, control gray scale maximum;
D. set overall enhancing degree coefficient scale, control equalization degree.
Concrete is that described max pixel value L_grade is: 1/4 sum of all pixels.
Further be the maximum control coefrficient L_bright=1/4 of described enhancing gray scale, gray scale maximum L=1+ (256-1) * L_right after the figure image intensifying; Wherein 1 is original image gray scale maximum, and L is for strengthening the maximum of back gradation of image.
More particularly, described equalization overall degree control coefrficient scale span is: 0≤scale≤1.
The invention has the beneficial effects as follows, increased the brightness of original image, expanded the picture level of original image, improved the contrast of image, the details and the monochrome information that have well kept original image, and simplified the circuit realization, and improved calculation process speed, be more suitable in the timeliness system, using.
Description of drawings
Fig. 1 is the linear approximate schematic diagram of segmentation;
Fig. 2 is a program flow diagram of the present invention;
Fig. 3 is that the grey level histogram of original image distributes;
Fig. 4 is that the grey level histogram that strengthens the back image distributes.
Embodiment
Below in conjunction with drawings and Examples, describe technical scheme of the present invention in detail.
The present invention carries out dynamic, controlled figure image intensifying by the gray-level histogram equalization processing to image.The present invention is divided into 16 grades to the gray scale of original image, adopts counter to carry out the linear approximate enhancing of segmentation respectively.The present invention limits the image equalization degree, has set overall enhancing degree coefficient scale; Enhancing spreading range to image gray levels limits, and the upper limit threshold that image is highlighted is set at: 1+ (256-1) * L_bright; Enhancing degree to the gradation of image inter-stage limits, and the pixel maximum that comprises for every section gray scale is set at 1/4 of 1 frame sum of all pixels; The gray scale of original image has been carried out redistributing of dynamic, controlled gray scale equalization.Experimental results show that, through after the enhancement process of the present invention, increased the brightness of original image, expanded the picture level of original image, improve the contrast of image, well kept the details and the monochrome information of original image, and simplified the circuit realization, improved calculation process speed, be more suitable in the timeliness system, using.
According to traditional algorithm of histogram equalization,, establish P for piece image r(r) be the original image histogram, P s(s) be the histogram of equalization, both all are probability-distribution functions, have between them to concern P s(s) dS=P r(r) dr.Because of P s(s) be equalization, can establish P s(s)=1, thus
dS=p r(r)dr (1)
The both sides integration gets
S = T ( r ) = ∫ 0 x p x ( r ) dr
For discrete picture, then have
S = T ( R ) = Σ j = 0 k P r ( R j ) = Σ j = 0 K n j n , 0 ≤ R j ≤ p - 1 , k = 0,1 . . . ( 3 )
Wherein n is a sum of all pixels in the frame, P r(R j) be the probability of j level gray scale, n jBe the sum of all pixels of j level gray scale in the image, p is the total number of gray scale in the image.
Method for image greyscale histogram equalizing treatment process of the present invention is as follows:
(1) the linear approximate processing of segmentation
16 sections linear approximations realize original image grey level histogram accumulative total, as shown in Figure 1.Wherein, adopt left figure curve, adopt the curve on the right side for bright image for darker image.Represented among Fig. 1 that image has three interpolation points, integral body is divided into the situation of four sections processing, and as can be seen, have three control data F (p1), F (p2) and F (p3) this moment one.Three parameter p 1, p2 and p3 are divided into four sections with image to be handled, and controls the picture contrast in dark space, centre and clear zone respectively.
For the image that minute n section is handled, the image after the conversion is:
y = ( 1 + n - N 256 x ) F ( p n ) + ( N 256 x - n ) F ( p n + 1 )
for 256 N n < x < 256 N ( n + 1 )
(4)
In the present invention, original image is divided into 16 sections processing, can make the original grey level histogram accumulative total function of the more approaching reality of piece wire approximation accumulative total function like this, reduces process errors.
(2) equalization is handled and is strengthened extent control
In order to control the degree of histogram equalization, (4) formula is revised, set control coefrficient scale
F &prime; ( p n ) = scale &times; ( F ( p n ) - 256 N n ) + 256 N - - - ( 5 )
Wherein, coefficient scale has represented the equalization degree, and when scale=0, expression does not strengthen image; When scale=1, expression has been carried out maximum equalization processing, picture contrast maximum at this moment to image.In actual applications, can suitably adjust according to the characteristics of original image signal.
(3) strengthen the control of gray scale brightness and intersegmental degree of expansion
For monochrome information and the details that keeps original image, the brightness and the inter-stage degree of expansion that strengthen gray scale are controlled.
L=1+(256-1)×L_bright (6)
Wherein, L is for strengthening the gray scale maximum, and 1 is original image gray scale maximum, and L_bright is the maximum control coefrficient that highlights, can be according to the brightness timely adjustment of original image, and preferred value of the present invention is got L_bright=1/4.
Extent control is specially between booster stage: carry out counting statistics respectively for the image pixel number in 16 sections, when the counting sum surpassed maximum and limits constant (sum of all pixels 1/4), counting added 1; When counting sum obtain sum of all pixels 1/4 the time, counter stops to add up, the output count results is as the distribution total value of this section pixel.Promptly the pixel that surpasses maximum qualification constant is limited, do not count, so just can prevent the serious phenomenon of pixel grayscale extruding effectively.
The max pixel value of L_grade for limiting can be adjusted according to input image information in good time, when expanding gray value greater than particular value L_grade, carries out threshold value and limits, and to avoid the excessive compression losses of gray scale, keeps the details of image.The present invention recommends to get the total pixel of L_grade=1/4.
Fig. 2 shows program circuit of the present invention (functional module), below main process is described:
The picture signal conversion: this functional module is finished the transformation of color picture signal to brightness, colourity and saturation signal, for enhancement algorithms luminance signal is handled.If directly input luminance signal is handled, can save this functional module.
16 periods linear cutting apart of image gray levels: the gray scale that this functional module is finished image is cut apart, and entire image is divided into 16 aspects handles.In realization, replaced the histogram of traditional complexity to add up circuit, improved arithmetic speed, saved resource with 16 gray value comparators.
The maximum setting that highlights: this functional module is finished the highlight setting of the upper limit of image.According to the value of 16 counters, determine the maximum gray scale of original image, determine the maximum value of highlighting then.
Maximum enhancing degree limits between gray scale: this module is finished inter-stage enhancing degree and is limited.Distribute more extreme for grey level histogram, such as dark or special bright especially image, its gray value is distributed in very little zone mostly, equalization will occupy between very big gray area after handling like this, cause other gray scale excessive compression even lose, in order to prevent to strengthen the generation of phenomenon, here enhancing degree between gray scale is limited, distribute interval maximum to carry out the threshold value qualification to strengthening gray scale.
Strengthen that gray scale is redistributed and brightness promotes and revises: this module is finished the lifting with brightness redistributed that strengthens image gray levels.Maximum enhancing degree limits between gray scale, has caused the compression of image gray levels, and the overall brightness of this sampled images will be dark partially, and this module is the correction to gray scale, makes the gray scale of the image after the enhancing expand to 0 and between maximum highlights.
Equalization degree scale coefficient correction: this functional module is finished the equalization extent control.Work as scale=0, expression does not strengthen original image; When scale=1, expression has been carried out maximized histogram equalization to original image, obtains maximum picture contrast.In actual applications, can follow according to the image reinforced effects and select flexibly.
Picture signal output: this module is finished picture signal after the processing to the conversion of color picture signal, finishes the processing of picture signal.
Distribute the difference before and after the comparison process below by grey level histogram:
Fig. 3 is that the grey level histogram of original image distributes, and Fig. 4 distributes for the grey level histogram that strengthens the back image.As can be seen from the figure, the image information concentrated part, distribution mainly concentrates between [0,50] as original image, sees Fig. 3; Strengthen expanding between [0,100] now, see Fig. 4.Histogram distribution is more reasonable, and the expansion of distributed area increased the stereovision of the emphasis part of image greatly, has strengthened the contrast of image, has promoted the brightness of image.

Claims (4)

1. method for image greyscale histogram equalizing treatment; May further comprise the steps:
A. the gray scale with original image is divided into the approximate histogram accumulative total of 16 progressive line shapes;
B. limit the max pixel value L_grade of every grade of gray scale, enhancing degree between controlled stage;
C. set the maximum control coefrficient L_bright that highlights, when strengthening image brightness, control gray scale maximum;
D. set equalization overall degree control coefrficient scale, control equalization degree.
2. method for image greyscale histogram equalizing treatment according to claim 1 is characterized in that, described max pixel value L_grade is: 1/4 sum of all pixels.
3. according to the described method for image greyscale histogram equalizing treatment of claim 1, it is characterized in that, the maximum control coefrficient L_bright=1/4 of described enhancing gray scale, the gray scale maximum of picture signal is controlled at: 1+ (256-1) * L_bright; Wherein 1 is original image gray scale maximum.
4. according to claim 2 or 3 described image brightness, contrast enhancement process, it is characterized in that described equalization overall degree control coefrficient scale span is: 0≤scale≤1.
CNB2006100220721A 2006-10-19 2006-10-19 Method for equalizing treatment of image greyscale histogram Expired - Fee Related CN100502465C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100220721A CN100502465C (en) 2006-10-19 2006-10-19 Method for equalizing treatment of image greyscale histogram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100220721A CN100502465C (en) 2006-10-19 2006-10-19 Method for equalizing treatment of image greyscale histogram

Publications (2)

Publication Number Publication Date
CN1946138A true CN1946138A (en) 2007-04-11
CN100502465C CN100502465C (en) 2009-06-17

Family

ID=38045334

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100220721A Expired - Fee Related CN100502465C (en) 2006-10-19 2006-10-19 Method for equalizing treatment of image greyscale histogram

Country Status (1)

Country Link
CN (1) CN100502465C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010040296A1 (en) * 2008-10-07 2010-04-15 华为技术有限公司 Method, device and system thereof for adaptive quantifying and adaptive inverse quantifying
CN101437114B (en) * 2008-12-12 2010-06-02 深圳市斯尔顿科技有限公司 Method and system for regulating image brightness
CN101303765B (en) * 2008-06-23 2010-06-02 四川虹微技术有限公司 Method for reinforcing image contrast based on image mean-squared deviation
CN101286231B (en) * 2008-06-04 2010-08-11 四川虹微技术有限公司 Contrast enhancement method for uniformly distributing image brightness
CN101448076B (en) * 2007-11-27 2010-12-01 奇景光电股份有限公司 Image display device and driving method thereof
CN102339458A (en) * 2010-07-16 2012-02-01 于培宁 Method for adjusting brightness/contrast value of image sequence
CN104217434A (en) * 2014-09-04 2014-12-17 南京杰迈视讯科技有限公司 Image multispectral analysis method used for video monitoring or machine vision field
CN105869577A (en) * 2015-11-25 2016-08-17 乐视致新电子科技(天津)有限公司 Display device image processing method and system
CN107818553A (en) * 2016-09-12 2018-03-20 京东方科技集团股份有限公司 Gradation of image value adjustment method and device
CN115423723A (en) * 2022-10-14 2022-12-02 哈尔滨市科佳通用机电股份有限公司 Self-adaptive railway wagon anomaly detection training set image enhancement method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2786589B1 (en) * 1998-11-27 2001-04-27 Ge Medical Syst Sa METHOD FOR AUTOMATICALLY DETERMINING THE CONTRAST AND BRIGHTNESS OF A DIGITAL RADIOGRAPHIC IMAGE
CN100345160C (en) * 2005-08-22 2007-10-24 上海广电(集团)有限公司中央研究院 Histogram equalizing method for controlling average brightness
CN1744687A (en) * 2005-09-14 2006-03-08 上海广电(集团)有限公司中央研究院 Method for dynamically increasing video image effect of vision

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448076B (en) * 2007-11-27 2010-12-01 奇景光电股份有限公司 Image display device and driving method thereof
CN101286231B (en) * 2008-06-04 2010-08-11 四川虹微技术有限公司 Contrast enhancement method for uniformly distributing image brightness
CN101303765B (en) * 2008-06-23 2010-06-02 四川虹微技术有限公司 Method for reinforcing image contrast based on image mean-squared deviation
WO2010040296A1 (en) * 2008-10-07 2010-04-15 华为技术有限公司 Method, device and system thereof for adaptive quantifying and adaptive inverse quantifying
CN101437114B (en) * 2008-12-12 2010-06-02 深圳市斯尔顿科技有限公司 Method and system for regulating image brightness
CN102339458A (en) * 2010-07-16 2012-02-01 于培宁 Method for adjusting brightness/contrast value of image sequence
CN102339458B (en) * 2010-07-16 2016-02-17 于培宁 A kind of brightness/contrast value adjustment method of image sequence
CN104217434A (en) * 2014-09-04 2014-12-17 南京杰迈视讯科技有限公司 Image multispectral analysis method used for video monitoring or machine vision field
CN105869577A (en) * 2015-11-25 2016-08-17 乐视致新电子科技(天津)有限公司 Display device image processing method and system
CN107818553A (en) * 2016-09-12 2018-03-20 京东方科技集团股份有限公司 Gradation of image value adjustment method and device
CN107818553B (en) * 2016-09-12 2020-04-07 京东方科技集团股份有限公司 Image gray value adjusting method and device
CN115423723A (en) * 2022-10-14 2022-12-02 哈尔滨市科佳通用机电股份有限公司 Self-adaptive railway wagon anomaly detection training set image enhancement method

Also Published As

Publication number Publication date
CN100502465C (en) 2009-06-17

Similar Documents

Publication Publication Date Title
CN1946138A (en) Method for image greyscale histogram equalizing treatment
CN1193399A (en) A histogram equalization apparatus for contrast enhancement of moving image and method therefor
CN1124568C (en) Method for enhancing image using quantized mean-separate histogram equalization and circuit therefor
CN1254086C (en) Image processor, image processing method and processing program
CN101303765B (en) Method for reinforcing image contrast based on image mean-squared deviation
CN112365424B (en) Local self-adaptive CLAHE-based infrared image denoising enhancement method, device and system and computer-readable storage medium
CN1770847A (en) Adaptive contrast enhancement
CN1260949C (en) Method and apparatus for improving picture sharpness
CN100541601C (en) Brightness signal processing method
CN108665857B (en) Driving method of display device, driving device thereof and related device
CN1744687A (en) Method for dynamically increasing video image effect of vision
CN1168289C (en) Contour correction device
CN1303812C (en) Apparatus for image enhancement and method of using the same
CN1212001C (en) Adaptive clipping prevention for picture sharpness enhancement
CN111709898B (en) Infrared image enhancement method and system based on optimized CLAHE
CN1655015A (en) Luminance compensation method and device for liquid crystal display
CN1679070A (en) Adaptive noise reduction for digital display panels
CN1708136A (en) Apparatus and method of controlling saturation of color image
CN1731841A (en) Image enhancement method for controlling digital image mean brightness
CN1223050A (en) Image converter and image conversion method
CN1741617A (en) Handle the equipment and the method for the shoot artifacts of picture signal
CN1309247C (en) Device and method used for adaptive brightness control
CN1750044A (en) Equalizing method for truncating histogram
CN1885951A (en) Methods and systems for adjusting color-saturation contrast of the video signal
CN101453558A (en) Video image contrast improving method

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
EE01 Entry into force of recordation of patent licensing contract

Assignee: Sichuan Changhong Electronics System Co., Ltd.

Assignor: Sichuan Changhong Electrical Appliance Co., Ltd.

Contract record no.: 2011510000158

Denomination of invention: Method for image greyscale histogram equalizing treatment

Granted publication date: 20090617

License type: Exclusive License

Open date: 20070411

Record date: 20110817

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: 20090617

Termination date: 20201019