CN100502465C - Method for equalizing treatment of image greyscale histogram - Google Patents

Method for equalizing treatment of image greyscale histogram Download PDF

Info

Publication number
CN100502465C
CN100502465C CNB2006100220721A CN200610022072A CN100502465C CN 100502465 C CN100502465 C CN 100502465C CN B2006100220721 A CNB2006100220721 A CN B2006100220721A CN 200610022072 A CN200610022072 A CN 200610022072A CN 100502465 C CN100502465 C CN 100502465C
Authority
CN
China
Prior art keywords
image
gray scale
maximum
scale
grade
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
CNB2006100220721A
Other languages
Chinese (zh)
Other versions
CN1946138A (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

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)

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 linearities;
B. limit the max pixel value L_grade of every grade of gray scale, the sum of all pixels of every grade of gray scale is controlled in the max pixel value L_grade;
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_bright 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 schematic diagram of piece wire approximation;
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 piece wire approximation respectively and strengthens.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 - - - ( 2 )
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 ) (4)
for 256 N n < x < 256 N ( n + 1 )
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 linearities;
B. limit the max pixel value L_grade of every grade of gray scale, the sum of all pixels of every grade of gray scale is controlled in the max pixel value L_grade;
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 method for image greyscale histogram equalizing treatment, 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 CN1946138A (en) 2007-04-11
CN100502465C true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8055072B2 (en) * 2007-11-27 2011-11-08 Himax Technologies Limited Image display panel 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
CN101715143B (en) * 2008-10-07 2011-09-14 华为技术有限公司 Method, device and system of self-adaptive quantization and self-adaptive inverse quantization
CN101437114B (en) * 2008-12-12 2010-06-02 深圳市斯尔顿科技有限公司 Method and system for regulating image brightness
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
CN107818553B (en) * 2016-09-12 2020-04-07 京东方科技集团股份有限公司 Image gray value adjusting method and device
CN115423723B (en) * 2022-10-14 2023-04-21 哈尔滨市科佳通用机电股份有限公司 Self-adaptive railway wagon anomaly detection training set image enhancement method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6718056B1 (en) * 1998-11-27 2004-04-06 Ge Medical Systems Sa Method of automatic determination of the contrast and brightness of a digital radiographic image
CN1744687A (en) * 2005-09-14 2006-03-08 上海广电(集团)有限公司中央研究院 Method for dynamically increasing video image effect of vision
CN1750043A (en) * 2005-08-22 2006-03-22 上海广电(集团)有限公司中央研究院 Histogram equalizing method for controlling average brightness

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6718056B1 (en) * 1998-11-27 2004-04-06 Ge Medical Systems Sa Method of automatic determination of the contrast and brightness of a digital radiographic image
CN1750043A (en) * 2005-08-22 2006-03-22 上海广电(集团)有限公司中央研究院 Histogram equalizing method for controlling average brightness
CN1744687A (en) * 2005-09-14 2006-03-08 上海广电(集团)有限公司中央研究院 Method for dynamically increasing video image effect of vision

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于区域分割的分段线性变换. 高彦平,郑永果.信息技术与信息化,第2005卷第1期. 2005
基于区域分割的分段线性变换. 高彦平,郑永果.信息技术与信息化,第2005卷第1期. 2005 *
弱小目标低对比度图像增强算法研究. 雍杨,王敬儒,张启衡.激光与红外,第35卷第5期. 2005
弱小目标低对比度图像增强算法研究. 雍杨,王敬儒,张启衡.激光与红外,第35卷第5期. 2005 *

Also Published As

Publication number Publication date
CN1946138A (en) 2007-04-11

Similar Documents

Publication Publication Date Title
CN100502465C (en) Method for equalizing treatment of image greyscale histogram
US6259472B1 (en) Histogram equalization apparatus for contrast enhancement of moving image and method therefor
CN101510389B (en) Display device
US9147238B1 (en) Adaptive histogram-based video contrast enhancement
CN101303765B (en) Method for reinforcing image contrast based on image mean-squared deviation
CN108665857B (en) Driving method of display device, driving device thereof and related device
CN100541601C (en) Brightness signal processing method
US7646512B2 (en) Image processing apparatus and method of the same
CN101527038B (en) Improved method for enhancing picture contrast based on histogram
US8265391B1 (en) Localized, adaptive video contrast enhancement using controlled histogram equalization
CN102496152A (en) Self-adaptive image contrast enhancement method based on histograms
CN104485069B (en) A kind of control method of LED display contrast and system
CN111709898B (en) Infrared image enhancement method and system based on optimized CLAHE
CN103810681B (en) Low-power consumption contrast enhancing method
CN101729913A (en) Method and system for adjusting image saturation
CN100405426C (en) Adaptive noise reduction for digital display panels
CN114051126A (en) Video processing method and video processing device
CN101453558A (en) Video image contrast improving method
CN100525469C (en) Image processing device and method
CN110223241A (en) A kind of histogram equalizing method based on block statistics
CN105608685A (en) Secondary histogram equalization image enhancement method and system for histogram correction
CN102158670B (en) Digital video image contrast adaptive-stretching method and system
CN106846234A (en) A kind of image/video Enhancement Method based on FPGA, system and equipment
CN100362545C (en) Method for increasing PDP comprehensive image quality using slide window
CN113709482B (en) Method for determining coding unit division mode in hardware-oriented intra-frame coding mode

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