CN103325102A - Method for processing greasy weather degraded image based on histogram equalization - Google Patents
Method for processing greasy weather degraded image based on histogram equalization Download PDFInfo
- Publication number
- CN103325102A CN103325102A CN2013102180220A CN201310218022A CN103325102A CN 103325102 A CN103325102 A CN 103325102A CN 2013102180220 A CN2013102180220 A CN 2013102180220A CN 201310218022 A CN201310218022 A CN 201310218022A CN 103325102 A CN103325102 A CN 103325102A
- Authority
- CN
- China
- Prior art keywords
- prime
- image
- gray
- greasy weather
- scale value
- 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.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The invention relates to a method for processing a greasy weather degraded image based on histogram equalization. The method comprises the steps that (1) the sky area in the greasy weather degraded image is separated, the grey value of dots in the greasy weather degraded image is changed to be the grey value of the sky area, and a primary processing image is obtained; (2) the method of histogram equalization is used for changing the primary processing image, and a novel image after being processed is obtained. The method removes the enhanced interference to effective information and the influence on lower end grey values of the sky area in an original method of histogram equalization, the degree of distortion of the image after being enhanced is lowered, and enhancement to the greasy weather degraded image is quickly and effectively achieved.
Description
Technical field
The present invention relates to the processing of greasy weather degraded image, refer to a kind of greasy weather degraded image disposal route based on histogram equalization particularly.
Background technology
As a kind of mist of being classified as one of ten big hazard weathers in the world, to urban and rural highway transportation, aviation and navigation, electric system, industrial and agricultural production and daily life and even the healthy influence that all can produce in various degree, wherein mist is the most serious to the influence of road traffic transportation.In the road traffic transportation, mist can form serious dysopia to the driver, and causes one of major reason of traffic hazard during dysopia.Therefore, the how generation of pernicious road traffic accident under the visuality that improves the road environment system under the severe weather conditions such as greasy weather, prevention low visibility weather condition of research, become a research focus of traffic and message area, thereupon, how research is to having very important theory and practical significance too because the image degradation that severe weather conditions such as mist cause is effectively handled.
Processing to degraded image is divided into two big classes from big type, and the first kind is the figure image intensifying, and second class is image restoration.Wherein, image recovery method mainly depends on some information beyond the image, according to the former true picture of certain model and theoretical method recovery degraded image, for example RETINEX model, atmosphere degradation model, full variation model etc.And image enchancing method mainly is divided into two kinds of methods: 1) thus by conversion the contrast of image is stretched and to reach the requirement that improves image definition; 2) texture that strengthens to change image by the subspace with image reaches the effect of figure image intensifying.Traffic scene vision for the greasy weather strengthens the field, because its real-time requires high, therefore compared to the complexity theory model of image recovery method and fairly large amount of calculation, the amount of calculation of image enchancing method is little, treatment effect is excellent, makes it that fairly large application arranged in this regard.
At present, general employing histogram equalization method realizes the enhancing to image, this method makes the mean value of the probability that probability that the gray-scale value of adjacent point-to-point transmission occurs occurs greater than all gray-scale values, make contrast be enhanced, namely occurs the most for a long time in image when certain gray-scale value, its missionary society's stretching with adjacent gray-scale value is maximum.On the integral image effect, this method can make the overall contrast of image obtain maximum tension.
But the purpose of figure image intensifying is to make in the image Useful Information obtain maximum enhancing, rather than with occurrence number at most as unique enhancing standard.In the process that the greasy weather degraded image is handled, the gray-scale value of image sky dummy section is more approaching, and the frequency that occurs is very high, if directly adopt the histogram equalization method to strengthen, day dummy section then can occur because strengthening excessively distortion.And for Misty Image this class specific question of degenerating, the degree of degeneration of the different depth of field is inequality, but the scenery of the different depth of field, its gray-scale value fully may be identical or close.Therefore, for this type of problem, then can not be decided the amplitude of contrast stretching by the frequency that the gradation of image value occurs.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the invention provides a kind of greasy weather degraded image disposal route based on histogram equalization, this method is at first separated a day dummy section, and the zone strengthens amplitude compression on high; The depth of field of each scene point in the estimated image then, stretch range and depth of field distance at the scene point place are approximated to proportional relation, thereby realize fast and effeciently the enhancing to the greasy weather degraded image.
Realize that the technical scheme that the object of the invention adopts is: a kind of greasy weather degraded image disposal route based on histogram equalization comprises:
(1) separates sky dummy section in the greasy weather degraded image, the gray-scale value of described greasy weather degraded image mid point is become the described day gray-scale value in the dummy section, obtain the rough handling image;
(2) adopt the described rough handling image of histogram equalization method conversion, the new images after obtaining handling.
In technique scheme, the sky dummy section in the described separation greasy weather degraded image may further comprise the steps:
(1-1) ask the gray-scale value Density Distribution of described greasy weather degraded image: q
0, q
1..., q
255
(1-2) basis
Ask the gray-scale value probability distribution p of described greasy weather degraded image
0, p
1..., p
255
(1-3) the sky dummy section of asking described greasy weather degraded image to divide based on density
Wherein
(1-4) ask the gray-scale value Density Distribution q of described greasy weather degraded image
0, q
1..., q
255Mathematical expectation:
(1-5) with i
0As the Preliminary division threshold value of sky dummy section, obtain the Density Distribution of approximate day dummy section:
,
(1-6) ask the mathematical expectation of described approximate day dummy section
And variances sigma
s
(1-7) the sky dummy section of asking described greasy weather degraded image to divide based on the mathematical expectation threshold value
Wherein
(1-8) ask two kinds of sky dummy section S
1And S
2Intersection s
Ij, with s
IjAs the sky dummy section of last division, namely
(1-9) gray-scale value of original greasy weather degraded image mid point is become the sky dummy section s of described last division
IjIn gray-scale value, obtain the rough handling image.
Further, the described rough handling image of described employing histogram equalization method conversion may further comprise the steps:
(2-1) ask the gray-scale value Density Distribution q' of described rough handling image
0, q'
1..., q'
255Maximum non-0 gray-scale value max
Q 'With the non-0 gray-scale value min of minimum
Q '
(2-2) get
…,
With vector
Normalization obtains
(2-3) to arbitrary pixel of described rough handling image, establishing its gray-scale value is r, the gray-scale value Density Distribution after described rough handling image is obtained handling after by following transform conversion, and the new images after namely obtaining handling:
The inventive method has been improved in original histogram equalization method interference that day dummy section strengthens effective information and the influence of low side gray-scale value, and image is being reduced through the degree of distortion after strengthening.In addition, the present invention adopts method of overall importance, and amount of calculation is less, is easy to use.
Description of drawings
Fig. 1 is the process flow diagram that the present invention is based on the greasy weather degraded image disposal route of histogram equalization;
Fig. 2 obtains the process flow diagram of rough handling image for day dummy section in the separation greasy weather degraded image;
Fig. 3 a is that first image adopts the image after original common histogram equalization method is handled;
Fig. 3 b is for adopting the image after the inventive method is handled first image;
Fig. 4 a is that second image adopts the image after original common histogram equalization method is handled;
Fig. 4 b is for adopting the image after the inventive method is handled second image.
Embodiment
The present invention is described in further detail below in conjunction with the drawings and specific embodiments.
As depicted in figs. 1 and 2, the greasy weather degraded image disposal route that the present invention is based on histogram equalization may further comprise the steps:
Step S100 separates the sky dummy section in the greasy weather degraded image, and the gray-scale value of described greasy weather degraded image mid point is become the described day gray-scale value in the dummy section, obtains the rough handling image;
Step S200 adopts the described rough handling image of improved histogram equalization method conversion, the new images after obtaining handling.
Because a day dummy section has following three key characters:
The gray-scale value of A, day dummy section is bigger, and it is histogrammic high-end to be in Misty Image, and approximate Normal Distribution.
B, day dummy section are using the contrast before the histogram equalization method strengthens smaller, within namely sky area grayscale value is in more among a small circle.
C, day dummy section be in the contrast increasing degree maximum of using after the histogram equalization method strengthens, and main cause is that the frequency that occurs of the gray-scale value of this part is higher, presses histogram equalizing method, gray-scale value increasing degree maximum wherein.
For this reason, among the step S100 of present embodiment, according to following quick sky territorial classification based on the histogram equalization method:
S101, ask the gray-scale value Density Distribution of original greasy weather degraded image I: q
0, q
1..., q
255
S102, basis
I is value 0,1,2 successively ... 255.Try to achieve the gray-scale value probability distribution p of original greasy weather degraded image I
0, p
1..., p
255
S103, the sky dummy section of asking original greasy weather degraded image I to divide based on density
Wherein
In the following formula, r is (i, gray-scale value j), the p of pixel in the image I
rBe point (i, gray-scale value probability distribution j).
S104, ask the gray-scale value Density Distribution q of original greasy weather degraded image I according to following formula
0, q
1..., q
255Mathematical expectation E
q:
S105, with i
0As the Preliminary division threshold value of sky dummy section, obtain the Density Distribution of approximate day dummy section:
,
S106, ask the mathematical expectation of described approximate day dummy section by following formula respectively
And variances sigma
s:
In the following formula, i=i
0, i
1..., i
255
S107, the sky dummy section of asking original greasy weather degraded image I to divide based on the mathematical expectation threshold value
Wherein
In the following formula, r is (i, gray-scale value j), the σ of pixel in the image I
sTried to achieve by S106.
S108, ask two kinds of sky dummy section S
1And S
2Intersection s
Ij, with s
IjAs the sky dummy section of last division, namely
S109, the gray-scale value of original greasy weather degraded image I mid point become the sky dummy section s of last division
IjIn gray-scale value, obtain rough handling image II.
At the grey value profile low side of image, the minimum gradation value of establishing this image is q
0, the histogram equalization method is with q
0Following gray-scale value all is transformed to 0, i.e. black.Therefore, increase by a linear transitions interval herein, make conversion continuous, the effective information of image is kept simultaneously.Gray-scale value at image is high-end, be mainly a day dummy section, the contrast of this subregion does not need to increase, and adopts the compression-type linear transformation, this regional pixel the most significant end of gray-scale value after the conversion among a small circle within, in order to vacate the stretching that more space is used for effective information.
So present embodiment step S200 utilizes improved histogram equalization method to handle the rough handling image II that above-mentioned steps S109 obtains, concrete steps are as follows:
S201, ask the gray-scale value Density Distribution q' of image II
0, q'
1..., q'
255, obtain maximum non-0 gray-scale value
Non-0 gray-scale value with minimum
, and mathematical expectation
With i'
0As the Preliminary division threshold value of sky dummy section, obtain the Density Distribution of approximate day dummy section:
,
And obtain the mathematical expectation of the approximate day dummy section of this distribution
And variances sigma '
s
S202, get
…,
With vector
Normalization obtains
S203, to arbitrary pixel of rough handling image II (i, j), establishing its gray-scale value is r, carries out conversion according to transform:
Obtain handling gray-scale value Density Distribution later by this conversion, the new images III after namely the image II obtains handling after by the histogram equalization method conversion after improving.
The result can see by experiment, and Fig. 3 a, Fig. 4 a are for adopting the image after original common histogram equalization method is handled, and effective fiducial interval of common histogram equalization method originally is
σ is the variance of original image I, and at gradation of image value low side, having the part effective information becomes black region; Fig. 3 b, Fig. 4 b are the image after the inventive method is handled, and between the effective information drawing zone of the improved histogram equalization method of the present invention are
σ
sIt is the variance yields of image II; have brighter image information, and compared to common histogram equalization method, improved method is protected to the relevant information of low side; be that main information has been carried out translation and compression to high-end sky dummy section, make the degree of distortion after the figure image intensifying littler.
Claims (3)
1. the greasy weather degraded image disposal route based on histogram equalization is characterized in that, comprising:
(1) separates sky dummy section in the greasy weather degraded image, the gray-scale value of described greasy weather degraded image mid point is become the described day gray-scale value in the dummy section, obtain the rough handling image;
(2) adopt the described rough handling image of histogram equalization method conversion, the new images after obtaining handling.
2. according to the described greasy weather degraded image disposal route based on histogram equalization of claim 1, it is characterized in that the sky dummy section in the described separation greasy weather degraded image may further comprise the steps:
(1-1) ask the gray-scale value Density Distribution of described greasy weather degraded image: q
0, q
1..., q
255
(1-2) basis
Ask the gray-scale value probability distribution p of described greasy weather degraded image
0, p
1..., p
255
(1-3) the sky dummy section of asking described greasy weather degraded image to divide based on density
Wherein
(1-4) ask the gray-scale value Density Distribution q of described greasy weather degraded image
0, q
1..., q
255Mathematical expectation:
(1-5) with i
0As the Preliminary division threshold value of sky dummy section, obtain the Density Distribution of approximate day dummy section:
,
(1-6) ask the mathematical expectation of described approximate day dummy section
And variances sigma
s
(1-7) the sky dummy section of asking described greasy weather degraded image to divide based on the mathematical expectation threshold value
Wherein
(1-8) ask two kinds of sky dummy section S
1And S
2Intersection s
Ij, with s
IjAs the sky dummy section of last division, namely
(1-9) gray-scale value of original greasy weather degraded image mid point is become the sky dummy section s of described last division
IjIn gray-scale value, obtain the rough handling image.
3. according to the described greasy weather degraded image disposal route based on histogram equalization of claim 2, it is characterized in that the described rough handling image of described employing histogram equalization method conversion may further comprise the steps:
(2-1) ask the gray-scale value Density Distribution q' of described rough handling image
0, q'
1..., q'
255Maximum non-0 gray-scale value
With non-0 gray-scale value of minimum
(2-2) get
...,
With vector
Normalization obtains
(2-3) to arbitrary pixel of described rough handling image, establishing its gray-scale value is r, the gray-scale value Density Distribution after described rough handling image is obtained handling after by following transform conversion, and the new images after namely obtaining handling:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013102180220A CN103325102A (en) | 2013-06-03 | 2013-06-03 | Method for processing greasy weather degraded image based on histogram equalization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013102180220A CN103325102A (en) | 2013-06-03 | 2013-06-03 | Method for processing greasy weather degraded image based on histogram equalization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103325102A true CN103325102A (en) | 2013-09-25 |
Family
ID=49193825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013102180220A Pending CN103325102A (en) | 2013-06-03 | 2013-06-03 | Method for processing greasy weather degraded image based on histogram equalization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103325102A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927523A (en) * | 2014-04-24 | 2014-07-16 | 东南大学 | Fog level detection method based on longitudinal gray features |
CN107292260A (en) * | 2017-06-15 | 2017-10-24 | 武汉理工大学 | The thick fog day vehicle checking method of pairing is associated with fog lamp based on vehicle head lamp |
CN107742301A (en) * | 2017-10-25 | 2018-02-27 | 哈尔滨理工大学 | Transmission line of electricity image processing method under complex background based on image classification |
CN108038829A (en) * | 2017-12-11 | 2018-05-15 | 泾县吉祥纸业有限公司 | A kind of uniform gray level adjusting method of multi-cam acquisition system |
CN109636752A (en) * | 2018-12-07 | 2019-04-16 | 宁波可凡电器有限公司 | Live anti-noise jamming platform |
US11210765B2 (en) | 2017-08-28 | 2021-12-28 | Beijing Boe Display Technology Co., Ltd. | Image processing method and device, storage medium and computer device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101290680A (en) * | 2008-05-20 | 2008-10-22 | 西安理工大学 | Foggy day video frequency image clarification method based on histogram equalization overcorrection restoration |
KR20130015906A (en) * | 2011-08-05 | 2013-02-14 | 경희대학교 산학협력단 | Method for improving foggy image by unit image block |
-
2013
- 2013-06-03 CN CN2013102180220A patent/CN103325102A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101290680A (en) * | 2008-05-20 | 2008-10-22 | 西安理工大学 | Foggy day video frequency image clarification method based on histogram equalization overcorrection restoration |
KR20130015906A (en) * | 2011-08-05 | 2013-02-14 | 경희대학교 산학협력단 | Method for improving foggy image by unit image block |
Non-Patent Citations (3)
Title |
---|
CHEN XIANQIAO 等: "The Contrast Enhancement for Foggy Image Based on Atmospheric Degraded Model and Sky Separating", 《BIOMEDICAL ENGINEERING AND COMPUTER SCIENCE (ICBECS), 2010 INTERNATIONAL CONFERENCE ON》 * |
CHEN XIANQIAO 等: "The Enhancement for Foggy Traffic Image Based on EM Algorithm", 《2009 INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND NATURAL COMPUTING》 * |
CHEN XIANQIAO 等: "The Enhancement of Foggy Image with Useful Information Preservation", 《INFORMATION ENGINEERING AND COMPUTER SCIENCE, 2009. ICIECS 2009. INTERNATIONAL CONFERENCE ON》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927523A (en) * | 2014-04-24 | 2014-07-16 | 东南大学 | Fog level detection method based on longitudinal gray features |
CN103927523B (en) * | 2014-04-24 | 2017-01-18 | 东南大学 | Fog level detection method based on longitudinal gray features |
CN107292260A (en) * | 2017-06-15 | 2017-10-24 | 武汉理工大学 | The thick fog day vehicle checking method of pairing is associated with fog lamp based on vehicle head lamp |
US11210765B2 (en) | 2017-08-28 | 2021-12-28 | Beijing Boe Display Technology Co., Ltd. | Image processing method and device, storage medium and computer device |
CN107742301A (en) * | 2017-10-25 | 2018-02-27 | 哈尔滨理工大学 | Transmission line of electricity image processing method under complex background based on image classification |
CN107742301B (en) * | 2017-10-25 | 2021-07-30 | 哈尔滨理工大学 | Image classification-based power transmission line image processing method under complex background |
CN108038829A (en) * | 2017-12-11 | 2018-05-15 | 泾县吉祥纸业有限公司 | A kind of uniform gray level adjusting method of multi-cam acquisition system |
CN109636752A (en) * | 2018-12-07 | 2019-04-16 | 宁波可凡电器有限公司 | Live anti-noise jamming platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103325102A (en) | Method for processing greasy weather degraded image based on histogram equalization | |
CN102314673B (en) | Self-adapting image enhancement method | |
CN103606137B (en) | Keep the histogram equalization method of background and detailed information | |
CN105023256B (en) | A kind of image defogging method and system | |
CN102831591B (en) | Gaussian filter-based real-time defogging method for single image | |
CN103020920B (en) | Method for enhancing low-illumination images | |
CN103049888A (en) | Image/video demisting method based on combination of dark primary color of atmospheric scattered light | |
CN103440623A (en) | Method for improving image definition in foggy days based on imaging model | |
CN103985091A (en) | Single image defogging method based on luminance dark priori method and bilateral filtering | |
CN105046658A (en) | Low-illumination image processing method and device | |
CN102014279B (en) | Method and device for intensifying video image contrast | |
CN101540055B (en) | Cartoon stylization method facing online real-time application | |
Yan et al. | Method to Enhance Degraded Image in Dust Environment. | |
CN103489152A (en) | Reversible secret information hiding and extracting method | |
CN103903234A (en) | Real-time image defogging method based on image field depth | |
CN104517269A (en) | Terahertz image strip processing method and system | |
CN101448170A (en) | Misty image sharpening method based on wavelet illumination estimation | |
CN104182939A (en) | Medical image detail enhancement method | |
DE102014109063A1 (en) | Method for detecting an object having a predetermined geometric shape in a surrounding area of a motor vehicle, camera system and motor vehicle | |
CN1761285A (en) | Method for removing isolated noise point in video | |
CN111652033A (en) | Lane line detection method based on OpenCV | |
CN111145122A (en) | Method for removing haze from single image | |
CN106485663A (en) | A kind of lane line image enchancing method and system | |
CN104517266A (en) | Hybrid-adaptive image denoising method based on edge detection operator | |
CN104268859A (en) | Image preprocessing method for night lane line detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130925 |
|
RJ01 | Rejection of invention patent application after publication |