CN105023256A - Image defogging method and system - Google Patents

Image defogging method and system Download PDF

Info

Publication number
CN105023256A
CN105023256A CN201510495589.1A CN201510495589A CN105023256A CN 105023256 A CN105023256 A CN 105023256A CN 201510495589 A CN201510495589 A CN 201510495589A CN 105023256 A CN105023256 A CN 105023256A
Authority
CN
China
Prior art keywords
image
mist
passage
basic image
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.)
Granted
Application number
CN201510495589.1A
Other languages
Chinese (zh)
Other versions
CN105023256B (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.)
HARBIN SUPER-RESOLUTION FX TECHNOLOGY CO., LTD.
Original Assignee
丘璇
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 丘璇 filed Critical 丘璇
Priority to CN201510495589.1A priority Critical patent/CN105023256B/en
Publication of CN105023256A publication Critical patent/CN105023256A/en
Application granted granted Critical
Publication of CN105023256B publication Critical patent/CN105023256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to an image defogging method and system. The method comprises the following steps: inputting an original image, namely a colored fogged image; extracting a basic image and a detail layer of the colored fogged image, respectively; acquiring image data of three channels R, G and B of the basic image; solving the global airglow and transmissivity of each of the channels of the basic image, respectively; recovering a fogless image of each of the channels according to the global airglow and transmissivity of each of the channels of the basic image so as to acquire a fogless basic image; adding detail layer information into the fogless basic image; and carrying out smooth treatment as well as brightness and contrast enhancing treatment on the fogless basic image with the detail layer information to obtain a fogless original image. The method and system provided by the invention can be used for satisfying a real-time requirement and achieving a good defogging effect.

Description

A kind of image defogging method capable and system
Technical field
The present invention relates to image defogging method capable and system.
Background technology
In real life, often can run into and have greasy weather gas, and have the mist picture that has taken under greasy weather gas can not normally to use because visibility is low, therefore, occur a lot of mist elimination algorithms.
At present, have a lot to the algorithm having mist image to carry out mist elimination process in prior art, although this defogging method capable has advantage, also have shortcoming, some real-times are good, but mist elimination effect bad, some mist eliminations are effective, but real-time can not meet requirement again.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of image defogging method capable and system, can the requirement of real time mist elimination effect that can reach again.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of image defogging method capable, comprises the following steps:
Step 1, inputs former figure, and namely a width colour has mist image;
Step 2, extracts basic image and levels of detail that described colour has mist image respectively;
Step 3, obtains the view data of R, G, B tri-passages of described basic image;
Step 4, asks for overall atmosphere light and the transmissivity of described each passage of basic image respectively;
Step 5, according to the overall atmosphere light of described each passage of basic image and transmissivity recover each passage without mist image, thus to obtain without mist basic image;
Step 6, adds levels of detail information to without mist basic image;
Step 7, strengthens process to what with the addition of levels of detail information without the smoothing process of mist basic image and brightness and contrast, obtains without mist original image.
On the basis of technique scheme, the present invention can also do following improvement:
Further, the overall atmosphere light obtaining each passage in described step 4 calculates in accordance with the following methods: the dark data asking for each passage, and the dark data of each passage and threshold value t are compared, when described dark data are greater than described threshold value t, then described dark data are compared with the pixel value on described former figure correspondence position, when described dark data are greater than the data on former figure correspondence position, then using the overall air light value of the pixel value on described former figure correspondence position as this passage described; Otherwise using described threshold value t as overall air light value, ask for the overall air light value of mean value as this passage of the overall air light value of all dark in each passage respectively.
Further, transmissivity is calculated in accordance with the following methods in described step 4:
t ( x ) = t ‾ ( x ) * G ( x ) ;
Wherein, t (x) is transmissivity; Ω (x) represents the template window centered by pixel x; A is overall air light value, and c represents R, G, B tri-passages, and I (y) is the desired value after mist elimination; G (x) is Gaussian convolution template, and template size is 13 × 13.
Further, obtain without mist basic image J (x) according to following methods in described step 5:
J ( x ) = A - A - I ( x ) m a x ( t ( x ) , t 0 ) ;
Wherein, I (x) is the former figure of input; t 0=0.3.
The invention has the beneficial effects as follows: by being optimized overall atmosphere light and transmissivity, not only requirement of real time but also the mist elimination effect that can reach.
The another kind of technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of image mist elimination system, comprising:
Load module, for inputting former figure, namely a width colour has mist image;
Extraction module, has basic image and the levels of detail of mist image for extracting described colour respectively;
Acquisition module, for obtaining the view data of R, G, B tri-passages of described basic image;
Computing module, for asking for overall atmosphere light and the transmissivity of described each passage of basic image respectively;
Recover module, for recover according to the overall atmosphere light of described each passage of basic image and transmissivity each passage without mist image, thus acquisition is without mist basic image;
Add module, for adding levels of detail information to without mist basic image;
Strengthening processing module, for strengthening process to what with the addition of levels of detail information without the smoothing process of mist basic image and brightness and contrast, obtaining without mist original image.
On the basis of technique scheme, the present invention can also do following improvement:
The overall atmosphere light obtaining each passage in described acquisition module calculates in accordance with the following methods: the dark data asking for each passage, and the dark data of each passage and threshold value t are compared, when described dark data are greater than described threshold value t, then described dark data are compared with the pixel value on described former figure correspondence position, when described dark data are greater than the data on former figure correspondence position, then using the overall air light value of the pixel value on described former figure correspondence position as this passage described; Otherwise using described threshold value t as overall air light value, ask for the overall air light value of mean value as this passage of the overall air light value of all dark in each passage respectively.
Further, transmissivity is calculated in accordance with the following methods in described acquisition module:
t ( x ) = t ‾ ( x ) * G ( x ) ;
Wherein, t (x) is transmissivity; Ω (x) represents the template window centered by pixel x; A is overall air light value, and c represents R, G, B tri-passages, and I (y) is the desired value after mist elimination; G (x) is Gaussian convolution template, and template size is 13 × 13.
Further, described recovery module obtains without mist basic image J (x) according to following methods:
J ( x ) = A - A - I ( x ) m a x ( t ( x ) , t 0 ) ;
Wherein, I (x) is the former figure of input; t 0=0.3.
The invention has the beneficial effects as follows: by being optimized overall atmosphere light and transmissivity, not only requirement of real time but also the mist elimination effect that can reach.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of image defogging method capable of the present invention;
Fig. 2 is the structural representation of a kind of image mist elimination of the present invention system.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, a kind of image defogging method capable, is characterized in that, comprise the following steps:
Step 1, inputs former figure, and namely a width colour has mist image;
Step 2, extracts basic image and levels of detail that described colour has mist image respectively;
Step 3, obtains the view data of R, G, B tri-passages of described basic image;
Step 4, asks for overall atmosphere light and the transmissivity of described each passage of basic image respectively;
The overall atmosphere light obtaining each passage in described step 4 calculates in accordance with the following methods: the dark data asking for each passage, and the dark data of each passage and threshold value t are compared, when described dark data are greater than described threshold value t, then described dark data are compared with the pixel value on described former figure correspondence position, when described dark data are greater than the data on former figure correspondence position, then using the overall air light value of the pixel value on described former figure correspondence position as this passage described; Otherwise using described threshold value t as overall air light value, ask for the overall air light value of mean value as this passage of the overall air light value of all dark in each passage respectively.
Transmissivity is calculated in accordance with the following methods in described step 4:
t ( x ) = t ‾ ( x ) * G ( x ) ;
Wherein, t (x) is transmissivity; Ω (x) represents with pixel x
Centered by template window; A is overall air light value, and c represents R, G, B tri-passages, I (y)
For the desired value after mist elimination; G (x) is Gaussian convolution template, and template size is 13 × 13.
Step 5, according to the overall atmosphere light of described each passage of basic image and transmissivity recover each passage without mist image, thus to obtain without mist basic image; Obtain without mist basic image J (x) according to following methods in described step 5:
J ( x ) = A - A - I ( x ) m a x ( t ( x ) , t 0 ) ;
Wherein, I (x) is the former figure of input; t 0=0.3.
Step 6, adds levels of detail information to without mist basic image;
Step 7, strengthens process to what with the addition of levels of detail information without the smoothing process of mist basic image and brightness and contrast, obtains without mist original image.
As shown in Figure 2, a kind of image mist elimination system, comprising:
Load module, for inputting former figure, namely a width colour has mist image;
Extraction module, has basic image and the levels of detail of mist image for extracting described colour respectively;
Acquisition module, for obtaining the view data of R, G, B tri-passages of described basic image;
The overall atmosphere light obtaining each passage in described acquisition module calculates in accordance with the following methods: the dark data asking for each passage, and the dark data of each passage and threshold value t are compared, when described dark data are greater than described threshold value t, then described dark data are compared with the pixel value on described former figure correspondence position, when described dark data are greater than the data on former figure correspondence position, then using the overall air light value of the pixel value on described former figure correspondence position as this passage described; Otherwise using described threshold value t as overall air light value, ask for the overall air light value of mean value as this passage of the overall air light value of all dark in each passage respectively.Computing module, for asking for overall atmosphere light and the transmissivity of described each passage of basic image respectively;
Transmissivity is calculated in accordance with the following methods in described acquisition module:
t ( x ) = t ‾ ( x ) * G ( x ) ;
Wherein, t (x) is transmissivity; Ω (x) represents the template window centered by pixel x; A is overall air light value, and c represents R, G, B tri-passages, and I (y) is the desired value after mist elimination; G (x) is Gaussian convolution template, and template size is 13 × 13.
Recover module, for recover according to the overall atmosphere light of described each passage of basic image and transmissivity each passage without mist image, thus acquisition is without mist basic image; Described recovery module obtains without mist basic image J (x) according to following methods:
J ( x ) = A - A - I ( x ) m a x ( t ( x ) , t 0 ) ;
Wherein, I (x) is the former figure of input; t 0=0.3.
Add module, for adding levels of detail information to without mist basic image;
Strengthening processing module, for strengthening process to what with the addition of levels of detail information without the smoothing process of mist basic image and brightness and contrast, obtaining without mist original image.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. an image defogging method capable, is characterized in that, comprises the following steps:
Step 1, inputting a width colour has mist image;
Step 2, extracts basic image and levels of detail that described colour has mist image respectively;
Step 3, obtains the view data of R, G, B tri-passages of described basic image;
Step 4, asks for overall atmosphere light and the transmissivity of described each passage of basic image respectively;
Step 5, according to the overall atmosphere light of described each passage of basic image and transmissivity recover each passage without mist image, thus to obtain without mist basic image;
Step 6, adds levels of detail information to without mist basic image;
Step 7, strengthens process to what with the addition of levels of detail information without the smoothing process of mist basic image and brightness and contrast, obtains without mist original image.
2. a kind of image defogging method capable according to claim 1, it is characterized in that, the overall atmosphere light obtaining each passage in described step 4 calculates in accordance with the following methods: the dark data asking for each passage, and the dark data of each passage and threshold value t are compared, when described dark data are greater than described threshold value t, then described dark data are compared with the pixel value on described former figure correspondence position, when described dark data are greater than the data on former figure correspondence position, then using the overall air light value of the pixel value on described former figure correspondence position as this passage described, otherwise using described threshold value t as overall air light value, ask for the overall air light value of mean value as this passage of the overall air light value of all dark in each passage respectively.
3. a kind of image defogging method capable according to claim 2, is characterized in that, calculate transmissivity in accordance with the following methods in described step 4:
t ( x ) = t ‾ ( x ) * G ( x ) ;
Wherein, t (x) is transmissivity; Ω (x) represents the template window centered by pixel x; A is overall air light value, and c represents R, G, B tri-passages, and I (y) is the desired value after mist elimination; G (x) is Gaussian convolution template, and template size is 13 × 13.
4. a kind of image defogging method capable according to claim 3, is characterized in that, obtains without mist basic image J (x) in described step 5 according to following methods:
J ( x ) = A - A - I ( x ) m a x ( t ( x ) , t 0 ) ;
Wherein, I (x) is the former figure of input; t 0=0.3.
5. an image mist elimination system, is characterized in that, comprising:
Load module, has mist image for inputting a width colour;
Extraction module, has basic image and the levels of detail of mist image for extracting described colour respectively;
Acquisition module, for obtaining the view data of R, G, B tri-passages of described basic image;
Computing module, for asking for overall atmosphere light and the transmissivity of described each passage of basic image respectively;
Recover module, for recover according to the overall atmosphere light of described each passage of basic image and transmissivity each passage without mist image, thus acquisition is without mist basic image;
Add module, for adding levels of detail information to without mist basic image;
Strengthening processing module, for strengthening process to what with the addition of levels of detail information without the smoothing process of mist basic image and brightness and contrast, obtaining without mist original image.
6. a kind of image mist elimination system according to claim 5, it is characterized in that, the overall atmosphere light obtaining each passage in described acquisition module calculates in accordance with the following methods: the dark data asking for each passage, and the dark data of each passage and threshold value t are compared, when described dark data are greater than described threshold value t, then described dark data are compared with the pixel value on described former figure correspondence position, when described dark data are greater than the data on former figure correspondence position, then using the overall air light value of the pixel value on described former figure correspondence position as this passage described, otherwise using described threshold value t as overall air light value, ask for the overall air light value of mean value as this passage of the overall air light value of all dark in each passage respectively.
7. a kind of image mist elimination system according to claim 6, is characterized in that, calculate transmissivity in accordance with the following methods in described acquisition module:
t ( x ) = t ‾ ( x ) * G ( x ) ;
Wherein, t (x) is transmissivity; Ω (x) represents the template window centered by pixel x; A is overall air light value, and c represents R, G, B tri-passages, and I (y) is the desired value after mist elimination; G (x) is Gaussian convolution template, and template size is 13 × 13.
8. a kind of image defogging method capable according to claim 7, is characterized in that, described recovery module obtains without mist basic image J (x) according to following methods:
J ( x ) = A - A - I ( x ) m a x ( t ( x ) , t 0 ) ;
Wherein, I (x) is the former figure of input; t 0=0.3.
CN201510495589.1A 2015-08-13 2015-08-13 A kind of image defogging method and system Active CN105023256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510495589.1A CN105023256B (en) 2015-08-13 2015-08-13 A kind of image defogging method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510495589.1A CN105023256B (en) 2015-08-13 2015-08-13 A kind of image defogging method and system

Publications (2)

Publication Number Publication Date
CN105023256A true CN105023256A (en) 2015-11-04
CN105023256B CN105023256B (en) 2018-02-13

Family

ID=54413200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510495589.1A Active CN105023256B (en) 2015-08-13 2015-08-13 A kind of image defogging method and system

Country Status (1)

Country Link
CN (1) CN105023256B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825483A (en) * 2016-03-21 2016-08-03 电子科技大学 Haze and dust removing method for image
CN105898111A (en) * 2016-05-06 2016-08-24 西安理工大学 Video defogging method based on spectral clustering
CN105979120A (en) * 2016-06-03 2016-09-28 华南农业大学 Defogging system and video defogging method based on distributed calculation
CN106023092A (en) * 2016-05-04 2016-10-12 中国农业大学 Image defogging method and device
CN107392871A (en) * 2017-07-27 2017-11-24 广东欧珀移动通信有限公司 Image defogging method, device, mobile terminal and computer-readable recording medium
CN107392870A (en) * 2017-07-27 2017-11-24 广东欧珀移动通信有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN107451975A (en) * 2017-04-25 2017-12-08 中国人民解放军空军工程大学 A kind of view-based access control model weights similar picture quality clarification method
CN108810506A (en) * 2018-06-13 2018-11-13 中国航空工业集团公司洛阳电光设备研究所 A kind of Penetrating Fog enhancing image processing method and system based on FPGA
CN109152520A (en) * 2016-05-24 2019-01-04 奥林巴斯株式会社 Image signal processing apparatus, image-signal processing method and image signal processing program
CN112330568A (en) * 2020-11-27 2021-02-05 云南省烟草农业科学研究院 Brightness compensation method for tobacco leaf image with uneven illumination
CN112465033A (en) * 2020-11-30 2021-03-09 哈尔滨市科佳通用机电股份有限公司 Brake pad cotter pin loss detection method, system and device based on deep learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7876974B2 (en) * 2003-08-29 2011-01-25 Vladimir Brajovic Method for improving digital images and an image sensor for sensing the same
CN102243758A (en) * 2011-07-14 2011-11-16 浙江大学 Fog-degraded image restoration and fusion based image defogging method
CN103034983A (en) * 2013-01-10 2013-04-10 厦门大学 Defogging method based on anisotropic filtering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7876974B2 (en) * 2003-08-29 2011-01-25 Vladimir Brajovic Method for improving digital images and an image sensor for sensing the same
CN102243758A (en) * 2011-07-14 2011-11-16 浙江大学 Fog-degraded image restoration and fusion based image defogging method
CN103034983A (en) * 2013-01-10 2013-04-10 厦门大学 Defogging method based on anisotropic filtering

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴金亮: ""实时域变换图像去雾"", 《计算机与网络》 *
肖钟捷等: ""一种改进的单幅图像快速去雾方法与实验"", 《地球信息科学》 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825483A (en) * 2016-03-21 2016-08-03 电子科技大学 Haze and dust removing method for image
CN105825483B (en) * 2016-03-21 2018-10-16 电子科技大学 A kind of method that image removes haze and sand and dust
CN106023092A (en) * 2016-05-04 2016-10-12 中国农业大学 Image defogging method and device
CN106023092B (en) * 2016-05-04 2020-12-11 中国农业大学 Image defogging method and device
CN105898111A (en) * 2016-05-06 2016-08-24 西安理工大学 Video defogging method based on spectral clustering
CN105898111B (en) * 2016-05-06 2018-11-27 西安理工大学 A kind of video defogging method based on spectral clustering
CN109152520B (en) * 2016-05-24 2021-11-05 奥林巴斯株式会社 Image signal processing device, image signal processing method, and recording medium
CN109152520A (en) * 2016-05-24 2019-01-04 奥林巴斯株式会社 Image signal processing apparatus, image-signal processing method and image signal processing program
CN105979120A (en) * 2016-06-03 2016-09-28 华南农业大学 Defogging system and video defogging method based on distributed calculation
CN105979120B (en) * 2016-06-03 2019-03-12 华南农业大学 Video defogging system and video defogging method based on distributed computing
CN107451975B (en) * 2017-04-25 2019-06-07 中国人民解放军空军工程大学 A kind of view-based access control model weights similar picture quality clarification method
CN107451975A (en) * 2017-04-25 2017-12-08 中国人民解放军空军工程大学 A kind of view-based access control model weights similar picture quality clarification method
CN107392870A (en) * 2017-07-27 2017-11-24 广东欧珀移动通信有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN107392870B (en) * 2017-07-27 2020-07-21 Oppo广东移动通信有限公司 Image processing method, image processing device, mobile terminal and computer readable storage medium
CN107392871A (en) * 2017-07-27 2017-11-24 广东欧珀移动通信有限公司 Image defogging method, device, mobile terminal and computer-readable recording medium
CN108810506A (en) * 2018-06-13 2018-11-13 中国航空工业集团公司洛阳电光设备研究所 A kind of Penetrating Fog enhancing image processing method and system based on FPGA
CN108810506B (en) * 2018-06-13 2021-09-07 中国航空工业集团公司洛阳电光设备研究所 Fog-penetrating enhanced image processing method and system based on FPGA
CN112330568A (en) * 2020-11-27 2021-02-05 云南省烟草农业科学研究院 Brightness compensation method for tobacco leaf image with uneven illumination
CN112465033A (en) * 2020-11-30 2021-03-09 哈尔滨市科佳通用机电股份有限公司 Brake pad cotter pin loss detection method, system and device based on deep learning
CN112465033B (en) * 2020-11-30 2021-08-03 哈尔滨市科佳通用机电股份有限公司 Brake pad cotter pin loss detection method, system and device based on deep learning

Also Published As

Publication number Publication date
CN105023256B (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN105023256A (en) Image defogging method and system
CN102831591B (en) Gaussian filter-based real-time defogging method for single image
CN103218778B (en) The disposal route of a kind of image and video and device
CN103747213B (en) A kind of real-time defogging method of the Traffic Surveillance Video based on moving target
CN102982513B (en) A kind of adapting to image defogging method capable based on texture
CN102768760B (en) Quick image dehazing method on basis of image textures
CN103077504B (en) A kind of image defogging method capable based on self-adaptation illumination calculation
CN103914820B (en) Image haze removal method and system based on image layer enhancement
CN103942758A (en) Dark channel prior image dehazing method based on multiscale fusion
CN105023013B (en) The object detection method converted based on Local standard deviation and Radon
CN104537615A (en) Local Retinex enhancement algorithm based on HSV color spaces
CN105354806A (en) Dark channel based rapid defogging method and system
CN103985091A (en) Single image defogging method based on luminance dark priori method and bilateral filtering
CN103927717A (en) Depth image recovery method based on improved bilateral filters
CN103996178A (en) Sand and dust weather color image enhancing method
CN104616258A (en) Rapid defogging method for road image
CN103020914A (en) Rapid image defogging method based on spatial continuity principle
CN105046658A (en) Low-illumination image processing method and device
CN105631823A (en) Dark channel sky area defogging method based on threshold segmentation optimization
CN104751421A (en) Method for achieving image defogging on FPGA
CN105913390A (en) Image defogging method and system
CN104574325A (en) Skylight estimation method and system as well as image defogging method thereof
CN106251296A (en) A kind of image defogging method and system
CN103020921A (en) Single image defogging method based on local statistical information
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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Shi Jian

Inventor after: Zhang Leilei

Inventor after: Liu Jingdong

Inventor after: Song Bo

Inventor after: Zhong Zhaoyu

Inventor after: Na Yongrui

Inventor before: Qiu Xuan

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180116

Address after: 150000 Heilongjiang Province, Harbin city Nangang District Fuhua four Street No. 6

Applicant after: HARBIN SUPER-RESOLUTION FX TECHNOLOGY CO., LTD.

Address before: 541002 No. 102, Zhongshan South Road, Xiangshan District, Guilin City, Guangxi Zhuang Autonomous Region

Applicant before: Qiu Xuan

GR01 Patent grant
GR01 Patent grant