CN103279928B - A kind of image enchancing method based on atmospherical scattering model - Google Patents
A kind of image enchancing method based on atmospherical scattering model Download PDFInfo
- Publication number
- CN103279928B CN103279928B CN201310194227.XA CN201310194227A CN103279928B CN 103279928 B CN103279928 B CN 103279928B CN 201310194227 A CN201310194227 A CN 201310194227A CN 103279928 B CN103279928 B CN 103279928B
- Authority
- CN
- China
- Prior art keywords
- image
- dark
- region
- max
- passage
- 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.)
- Active
Links
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
The present invention discloses and a kind of self-adaptation can retain the image enchancing method based on atmospherical scattering model of image dark portion and highlighted part information, comprise step: (1) is based on the histogram image equalization of the dark primary passage principle of atmospherical scattering model: dark primary channel characteristic and the image histogram distribution characteristic control image equilibration scope utilizing atmospherical scattering model, makes the image after equalization be beneficial to and keep dark portion and highlight regions minutia in image; (2) based on the dark primary Postprocessing technique of atmospherical scattering model.
Description
Technical field
The invention belongs to digital picture and the technical field of digital video image process, it is specifically related to a kind of image enchancing method based on atmospherical scattering model, is mainly used in the video image of safety-security area network shooting machine monitoring.
Background technology
Security protection video supervisory system usually can in the face of various light environment; multiple natural cause causes monitor video image to degenerate; video image contrast gradient and spatial resolution are reduced; graphic information is lost serious; therefore; usually in security protection video supervisory system, it is necessary to the image obtained is carried out image enhancement processing, to obtain more monitoring informations and better vision effect.
Atmospherical scattering model is by McCartney(McCartney) etc. people propose, be the important models in image restoration theory. The physical expressions of this model is: I (x, y)=J (x, y) t (x, y)+A (x, y) [1-t (x, y)]
In formula: J (x, y) is the intensity pattern under desirable meteorological conditions; I (x, y) is actual emanations intensity, is the degeneration image of J (x, y); The transmission plot that t (x.y) is air in environment, represents the transmissivity of light in atmospheric environment; J (x, y) t (x, y) is the yield of radiation of J (x, y) correspondence after air transmission decays; A (x, y) is atmosphere light yield of radiation; A (x, y) [1-t (x, y)] is corresponding atmosphere light scattering strength. As can be seen from atmospherical scattering model, I (x, y) it is actual emanations intensity, i.e. actual observation image, as long as obtaining air transmission plot t (x, and atmosphere light intensity pattern A (x y), y), so that it may with the intensity pattern J (x, y) obtained under desirable meteorological conditions, the i.e. restored image of I (x, y).
On this model basis, He Kaiming propose based on dark primary passage method ingenious solve the recovery of Misty Image, and achieve more effective achievement. The method is that the priori being based upon dark primary passage is assumed on basis, and namely following formula priori is assumed to set up:
In formula, IdarkX () is image dark primary channel image, IcY () represents for input picture in c field of definition, �� (x) is for asking for region, and c is for calculating field of definition: r, g, b(image red, green, blue passage). Then atmospheric model can change to:
In formula, Jc(x, y) is the graphical representation of the intensity pattern under desirable meteorological conditions in c field of definition, and �� (x) is for asking for region, and c is for calculating field of definition: r, g, b(image red, green, blue passage), AcFor atmospheric scattering intensity.
Then have:
After obtaining environment Transmission light figure t (x), namely can calculate the intensity pattern J (x, y) under desirable meteorological conditions by atmospherical scattering model, have:
To in the experiment of the method, it has been found that when the method uses in monitoring environment, supercompression situation often occur in image dark portion and highlight regions, there is image dark portion and the problem of highlight regions part information loss.
Summary of the invention
The technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, it is provided that a kind of self-adaptation can retain the image enchancing method based on atmospherical scattering model of image dark portion and highlighted part information.
The technical solution of the present invention is: this kind, based on the image enchancing method of atmospherical scattering model, comprises the following steps:
(1) based on the histogram image equalization of dark primary passage principle of atmospherical scattering model: dark primary channel characteristic and the image histogram distribution characteristic control image equilibration scope utilizing atmospherical scattering model, makes the image after equalization be beneficial to and keep dark portion and highlight regions minutia in image;
(2) based on the dark primary Postprocessing technique of atmospherical scattering model.
The image equilibration method equalization scope of the present invention is controlled by original image dark primary channel characteristic, original image property of the histogram, image dark portion and high highlights area information is made to be adjusted to more reasonable region by image equilibration process, self-adaptation can retain image dark portion and highlighted part information, be suitable for using in protection and monitor field.
Accompanying drawing explanation
Fig. 1 shows the schema of the image enchancing method based on atmospherical scattering model according to the present invention.
Embodiment
As shown in Figure 1, this kind, based on the image enchancing method of atmospherical scattering model, comprises the following steps:
(1) based on the histogram image equalization of dark primary passage principle of atmospherical scattering model: dark primary channel characteristic and the image histogram distribution characteristic control image equilibration scope utilizing atmospherical scattering model, makes the image after equalization be beneficial to and keep dark portion and highlight regions minutia in image;
(2) based on the dark primary Postprocessing technique of atmospherical scattering model.
The image equilibration method equalization scope of the present invention is controlled by original image dark primary channel characteristic, original image property of the histogram, image dark portion and high highlights area information is made to be adjusted to more reasonable region by image equilibration process, self-adaptation can retain image dark portion and highlighted part information, be suitable for using in protection and monitor field.
Preferably, step (1) comprises step by step following:
(1.1) by the dark primary passage principle of atmospherical scattering model, computed image primary channel, method of calculation are as follows:
In formula, IdarkX () is image dark primary channel image, IcY () is the graphical representation of original image in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage;
By region detection dark primary channel image IdarkX (), demarcates min (Idark(x)) region, demarcate max (Idark(x)) region;
(1.2) brightness of image is carried out statistics with histogram and equilibrium treatment
Luminance component image Y is carried out statistics with histogram, and in statistical graph picture, gray scale is the appearance probability of the pixel of i:
In formula, L is brightness value all in image, and n is pixel count all in image, niFor brightness value is the pixel count of i, pxI statistic histogram that () is image, normalizes to [0.0,1.0]; Check statistic histogram pxThe distribution of (i), Computation distribution maximum value ymax, minimum value yminAnd distribution average ymean, distribution meansquaredeviation��y;
C is the accumulative normalization histogram of image, corresponding to pxI the cumulative probability function of (), is defined as:
Design of graphics is as luminance proportion function yi=T(xi), with the conversion method of the cumulative probability function of brightness it is:
yi=T(xi)=c(i)
Check and demarcated min (Idark(x)) region, in statistical regions brightness histogram distributionAnd; Check and demarcated max (Idark(x)) region in zone luminance valueAnd, by following formula, y ' is setmaxAnd y 'min:
Brightness of image equalization methods is:
y��i=c(i)��(y��max-y��min)+y��min
In formula, y 'maxFor image equilibration high-high brightness, y 'minFor the minimum brightness of image equilibration, y 'iFor output brightness.
Preferably, step (2) comprises step by step following:
(2.1) image dark primary Air conduct measurement
Image after image equilibration carries out image dark primary Air conduct measurement, and computed image primary channel method is as follows:
In formula, IdarkX () is image dark primary channel image, IcY () represents for image equilibration image input picture in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage;
By region detection dark primary channel image IdarkX (), demarcates IdarkThe region of (x)��15 and statistics quantity Xdark; Demarcate max (Idark(x)) region, statistical regions Xdark;
(2.2) atmosphere light is estimated
Utilize IdarkX () is to atmosphere light AcEstimate: select in nxn �� (x) region, calculate and meet IdarkAll I of (x) >=15darkX in (), (r, g, the b) of the original image pixels of the highlighted correspondence of front 0.1% is as atmosphere light AcEstimation;
(2.3) air transmission plot is calculated
Image transmission graph representation atmosphere light irradiate under, the transmission relation of each part in image, according to following formula computed image transmission plot:
��=0.95 in formula; IcY () represents for input picture in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage, AcFor regional atmospheric light is estimated;
Adopt method pair belowCarry out refinement, obtain t (x);
L is the stingy figure matrix of Laplce, and U is unit battle array, ��=10-4;
(2.4) image restoration
By air transmission plot t (x), carry out image restoration by following formula,
In formula, t0=0.1, t (x) is air transmission plot, AcFor regional atmospheric light is estimated, I (x) is input figure
Picture, Idark(x) for image pixel dark primary value, dark_th be dark primary threshold value.
Hereinafter provide a specific embodiment, comprise the following steps:
One, image dark primary passage pre-detection
By dark primary passage principle in atmospherical scattering model, computed image primary channel, method of calculation are as follows:
In formula, IdarkX () is image dark primary channel image, IcY () represents for input picture in c field of definition, �� (x) is for asking for region, and c is for calculating field of definition: r, g, b(image red, green, blue passage).
By region detection dark primary channel image IdarkX (), demarcates min (Idark(x)) region, demarcate max (Idark(x)) region.
Two, brightness of image is carried out statistics with histogram and equilibrium treatment
Luminance component image Y is carried out statistics with histogram, and in statistical graph picture, gray scale is the appearance probability of the pixel of i:
In formula, L is brightness value all in image, and n is pixel count all in image, niFor brightness value is the pixel count of i, pxI statistic histogram that () is image, normalizes to (0.0,1.0).
Check statistic histogram pxThe distribution of (i), Computation distribution maximum value ymax, minimum value yminAnd distribution average ymean, distribution meansquaredeviation��y��
C is the accumulative normalization histogram of image, corresponding to pxI the cumulative probability function of (), is defined as:
Design of graphics is as luminance proportion function yi=T(xi), with the conversion method of the cumulative probability function of brightness it is:
yi=T(xi)=c(i)
Check and demarcated min (Idark(x)) region, in statistical regions brightness histogram distributionAndCheck and demarcated max (Idark(x)) region in zone luminance valueAndBy following formula, y ' is setmaxAnd y 'min:
Brightness of image equalization methods is:
y��i=c(i)��(y��max-y��min)+y��min
Above in formula, y 'maxFor image equilibration high-high brightness, y 'minFor the minimum brightness of image equilibration, y 'iFor output brightness.
Three, image dark primary Air conduct measurement
Image after image equilibration carries out image dark primary Air conduct measurement, and computed image primary channel method is as follows:
In formula, IdarkX () is image dark primary channel image, IcY () represents for image equilibration image input picture in c field of definition, �� (x) is for asking for region, and c is for calculating field of definition: r, g, b Wei image red, green, blue passages.
By region detection dark primary channel image IdarkX (), demarcates IdarkThe region of (x)��15 and statistics quantity Xdark; Demarcate max (Idark(x)) region, statistical regions Xdark��
Four, atmosphere light is estimated
Utilize IdarkX () is to atmosphere light AcEstimate;
Method of estimation: select in nxn �� (x) region, calculates and meets IdarkAll I of (x) >=15darkX in (), (r, g, the b) of the original image pixels of the highlighted correspondence of front 0.1% is as atmosphere light AcEstimation;
Five, air transmission plot is calculated
Image transmission graph representation image scene atmosphere light irradiate under, the transmission relation of each part in image, according to following formula computed image transmission plot:
��=0.95 in upper formula; IcY () represents for input picture in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage, AcFor regional atmospheric light is estimated.
Adopt method pair belowCarry out refinement, obtain t (x);
L is the stingy figure matrix of Laplce, and U is unit battle array, ��=10-4��
Six, image restoration
By air transmission plot t (x), carry out image restoration by following formula,
In formula, t0=0.1, t (x) is air transmission plot, AcFor regional atmospheric light is estimated, I (x) is input picture, Idark(x) for image pixel dark primary value, dark_th be dark primary threshold value.
The above; it it is only the better embodiment of the present invention; the present invention not does any restriction in form, and every any simple modification, equivalent variations and modification above embodiment done according to the technical spirit of the present invention, all still belongs to the protection domain of technical solution of the present invention.
Claims (1)
1. the image enchancing method based on atmospherical scattering model, it is characterised in that, comprise the following steps:
(1) based on the histogram image equalization of dark primary passage principle of atmospherical scattering model: dark primary channel characteristic and the image histogram distribution characteristic control image equilibration scope utilizing atmospherical scattering model, makes the image after equalization be beneficial to and keep dark portion and highlight regions minutia in image;
(2) based on the dark primary Postprocessing technique of atmospherical scattering model;
Step (1) comprises step by step following:
(1.1) by the dark primary passage principle of atmospherical scattering model, computed image primary channel, method of calculation are as follows:
In formula, IdarkX () is image dark primary channel image, IcY () is the graphical representation of original image in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage;
By region detection dark primary channel image IdarkX (), demarcates min (Idark(x)) region, demarcate max (Idark(x)) region;
(1.2) brightness of image is carried out statistics with histogram and equilibrium treatment
Luminance component image Y is carried out statistics with histogram, and in statistical graph picture, gray scale is the appearance probability of the pixel of i:
In formula, L is the brightness value of image, and n is pixel count all in image, niFor brightness value is the pixel count of i, pxI statistic histogram that () is image, normalizes to [0.0,1.0];
Check statistic histogram pxThe distribution of (i), Computation distribution maximum value ymax, minimum value yminAnd distribution average ymean, distribution meansquaredeviation��y;
C (i) is the accumulative normalization histogram of image, corresponding to pxI the cumulative probability function of (), is defined as:
Design of graphics is as luminance proportion function yi=T (xi), with the conversion method of the cumulative probability function of brightness it is:
yi=T (xi)=c (i)
Check and demarcated min (Idark(x)) region, in statistical regions brightness histogram distributionAndCheck and demarcated max (Idark(x)) region in zone luminance valueAndBy following formula, y ' is setmaxAnd y 'min:
p1��p2��p3For y 'maxThe normalization method weights calculated, p1+p2+p3=1, q1��q2��q3For y 'minThe normalization method weights calculated, q1+q2+q3=1
Brightness of image equalization methods is:
y��i=c (i) �� (y 'max-y��min)+y��min
In formula, y 'maxFor image equilibration high-high brightness, y 'minFor the minimum brightness of image equilibration, y 'iFor output brightness;
Step (2) comprises step by step following:
(2.1) image dark primary Air conduct measurement
Image after image equilibration carries out image dark primary Air conduct measurement, and computed image primary channel method is as follows:
In formula, IdarkX () is image dark primary channel image, IcY () represents for image equilibration image input picture in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage;
By region detection dark primary channel image IdarkX (), demarcates IdarkThe region of (x)��15 and statistics quantity Xdark; Demarcate max (Idark(x)) region, statistical regions Xdark;
(2.2) atmosphere light is estimated
Utilize IdarkX () is to atmosphere light AcEstimate: select in nxn �� (x) region, calculate and meet IdarkAll I of (x) >=15darkX in (), (r, g, the b) of the original image pixels of the highlighted correspondence of front 0.1% is as atmosphere light AcEstimation;
(2.3) air transmission plot is calculated
Image transmission graph representation atmosphere light irradiate under, the transmission relation of each part in image, according to following formula computed image transmission plot:
��=0.95 in formula; IcY () represents for input picture in c field of definition, �� (x) for asking for region, c be calculate red passage that field of definition: r is image, green passage that g is image, b be blue passage, AcFor regional atmospheric light is estimated;
Adopt method pair belowCarry out refinement, obtain t (x);
L is the stingy figure matrix of Laplce, and U is unit battle array, ��=10-4;
(2.4) image restoration
By air transmission plot t (x), carry out image restoration by following formula,
In formula, t0=0.1, t (x) is air transmission plot, AcFor regional atmospheric light is estimated, I (x) is input picture, Idark(x) for image pixel dark primary value, dark_th be dark primary threshold value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310194227.XA CN103279928B (en) | 2013-05-23 | 2013-05-23 | A kind of image enchancing method based on atmospherical scattering model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310194227.XA CN103279928B (en) | 2013-05-23 | 2013-05-23 | A kind of image enchancing method based on atmospherical scattering model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103279928A CN103279928A (en) | 2013-09-04 |
CN103279928B true CN103279928B (en) | 2016-06-01 |
Family
ID=49062435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310194227.XA Active CN103279928B (en) | 2013-05-23 | 2013-05-23 | A kind of image enchancing method based on atmospherical scattering model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103279928B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015192718A1 (en) * | 2014-06-18 | 2015-12-23 | 深圳市金立通信设备有限公司 | Image processing method and apparatus |
CN104217404B (en) * | 2014-08-27 | 2017-06-20 | 华南农业大学 | Haze sky video image clearness processing method and its device |
CN105744118B (en) * | 2016-02-01 | 2018-11-30 | 杭州当虹科技有限公司 | A kind of video enhancement method and video enhancement systems based on video frame adaptive |
CN110070480A (en) * | 2019-02-26 | 2019-07-30 | 青岛大学 | A kind of analogy method of underwater optics image |
CN111738946B (en) * | 2020-06-16 | 2022-04-08 | 新疆大学 | Method and device for enhancing sand-dust degraded image |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750674A (en) * | 2012-04-26 | 2012-10-24 | 长春理工大学 | Video image defogging method based on self-adapting allowance |
CN103049888A (en) * | 2012-12-07 | 2013-04-17 | 西安电子科技大学 | Image/video demisting method based on combination of dark primary color of atmospheric scattered light |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7428333B2 (en) * | 2004-01-23 | 2008-09-23 | Old Dominion University | Visibility improvement in color video stream |
TWI423166B (en) * | 2009-12-04 | 2014-01-11 | Huper Lab Co Ltd | Method for determining if an input image is a foggy image, method for determining a foggy level of an input image and cleaning method for foggy images |
-
2013
- 2013-05-23 CN CN201310194227.XA patent/CN103279928B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750674A (en) * | 2012-04-26 | 2012-10-24 | 长春理工大学 | Video image defogging method based on self-adapting allowance |
CN103049888A (en) * | 2012-12-07 | 2013-04-17 | 西安电子科技大学 | Image/video demisting method based on combination of dark primary color of atmospheric scattered light |
Non-Patent Citations (3)
Title |
---|
Color Image Contrast Enhancement by Co-occurrence Histogram Equalization and Dark Channel Prior;Hongbo Yang et al;《2010 3rd International Congress on Image and Signal Processing》;20101231;659-663 * |
低能见度条件下车载视频的清晰化处理研究;李欧迅 等;《电子技术应用》;20120630;第38卷(第6期);第79-80页摘要和第2部分 * |
基于共生矩阵的彩色图像增强算法;杨冰清 等;《计算机应用》;20120930;第32卷(第9期);2573-2575,2584 * |
Also Published As
Publication number | Publication date |
---|---|
CN103279928A (en) | 2013-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103279928B (en) | A kind of image enchancing method based on atmospherical scattering model | |
CN110135269B (en) | Fire image detection method based on mixed color model and neural network | |
CN102831591B (en) | Gaussian filter-based real-time defogging method for single image | |
CN103345733B (en) | Based on the quick enhancement method of low-illumination image improving dark channel prior | |
CN103985091A (en) | Single image defogging method based on luminance dark priori method and bilateral filtering | |
CN103218778B (en) | The disposal route of a kind of image and video and device | |
CN104966085B (en) | A kind of remote sensing images region of interest area detecting method based on the fusion of more notable features | |
CN102768760B (en) | Quick image dehazing method on basis of image textures | |
US20060215904A1 (en) | Video based fire detection system | |
CN103996178A (en) | Sand and dust weather color image enhancing method | |
CN107330871A (en) | The image enchancing method of insulator automatic identification is run under bad weather condition | |
CN107886486A (en) | Based on dark channel prior and variation Retinex underwater picture Enhancement Methods | |
CN103325120A (en) | Rapid self-adaption binocular vision stereo matching method capable of supporting weight | |
CN106157270A (en) | A kind of single image rapid defogging method and system | |
CN109902613A (en) | A kind of human body feature extraction method based on transfer learning and image enhancement | |
CN104299198A (en) | Fast image defogging method based on dark channels of pixels | |
CN105959510A (en) | Video rapid defogging method | |
CN103020921A (en) | Single image defogging method based on local statistical information | |
CN106530240A (en) | Image defogging method based on multi-scale fusion and total variational optimization | |
CN104881848A (en) | Parallel optimization method of low-illumination image enhancement based on CUDA | |
CN103258334A (en) | Method of estimating scene light source colors of color image | |
CN106934770A (en) | A kind of method and apparatus for evaluating haze image defog effect | |
CN104574363A (en) | Full reference image quality assessment method in consideration of gradient direction difference | |
CN103295205A (en) | Low-light-level image quick enhancement method and device based on Retinex | |
CN103778605A (en) | Greasy weather image enhancement 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 |