CN105023256B - A kind of image defogging method and system - Google Patents

A kind of image defogging method and system Download PDF

Info

Publication number
CN105023256B
CN105023256B CN201510495589.1A CN201510495589A CN105023256B CN 105023256 B CN105023256 B CN 105023256B CN 201510495589 A CN201510495589 A CN 201510495589A CN 105023256 B CN105023256 B CN 105023256B
Authority
CN
China
Prior art keywords
mrow
passage
image
basic image
fogless
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
Application number
CN201510495589.1A
Other languages
Chinese (zh)
Other versions
CN105023256A (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
Harbin Super-Resolution Fx Technology 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 Harbin Super-Resolution Fx Technology Co Ltd filed Critical Harbin Super-Resolution Fx Technology Co Ltd
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

Landscapes

  • Image Processing (AREA)

Abstract

The present invention relates to a kind of image defogging method and system, comprise the following steps:Input artwork, i.e. a width colour foggy image;The basic image and levels of detail of the colored foggy image are extracted respectively;Obtain the view data of tri- passages of R, G, B of the basic image;The global atmosphere light and transmissivity of each passage of basic image are asked for respectively;The fog free images of each passage are recovered according to the global atmosphere light and transmissivity of each passage of basic image, so as to obtain fogless basic image;Levels of detail information is added to fogless basic image;The fogless basic image that with the addition of levels of detail information is smoothed and brightness and contrast's enhancing is handled, obtains fogless original image.The present invention disclosure satisfy that the defog effect that requirement of real-time and can has reached.

Description

A kind of image defogging method and system
Technical field
The present invention relates to image defogging method and system.
Background technology
In real life, greasy weather gas has been frequently encountered, and what is shot in the case where there is greasy weather gas has mist picture due to visible Spend low and be unable to normal use, therefore, many defogging algorithms occur.
At present, there is the algorithm that defogging processing is much carried out to foggy image in the prior art, although this defogging method has Advantage, but also have shortcoming, some real-times are good, but defog effect and bad, and some defog effects are good, but real-time meets not again Require.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of image defogging method and system, can meet that real-time will Seek the defog effect that and can has reached.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:A kind of image defogging method, comprises the following steps:
Step 1, artwork, i.e. a width colour foggy image are inputted;
Step 2, the basic image and levels of detail of the colored foggy image are extracted respectively;
Step 3, the view data of tri- passages of R, G, B of the basic image is obtained;
Step 4, the global atmosphere light and transmissivity of each passage of basic image are asked for respectively;
Step 5, each passage is recovered according to the global atmosphere light and transmissivity of each passage of basic image Fog free images, so as to obtain fogless basic image;
Step 6, levels of detail information is added to fogless basic image;
Step 7, the fogless basic image that with the addition of levels of detail information is smoothed and brightness and contrast strengthens Processing, obtains fogless original image.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement:
Further, the global atmosphere light that each passage is obtained in the step 4 calculates in accordance with the following methods:Ask for Each passage helps track data secretly, and helps each passage secretly track data compared with threshold value t, when the dark When data are more than the threshold value t, then by the track data of helping secretly compared with the pixel value on the artwork correspondence position, when described When helping the data that track data is more than on artwork correspondence position secretly, then it is somebody's turn to do using the pixel value on the artwork correspondence position as described The global air light value of passage;Otherwise using the threshold value t as global air light value, ask for respectively all dark in each passage Global air light value of the average value of the global air light value of passage as the passage.
Further, transmissivity is calculated in accordance with the following methods in the step 4:
Wherein,T (x) is transmissivity;Ω (x) is represented centered on pixel x Template window;A is global air light value, and c represents tri- passages of R, G, B, and I (y) is the desired value after defogging;G (x) rolls up for Gauss Product module plate, template size are 13 × 13.
Further, fogless basic image J (x) is obtained according to following methods in the step 5:
Wherein, I (x) is the artwork of input;t0=0.3.
The beneficial effects of the invention are as follows:By being optimized to global atmosphere light and transmissivity, both meet requirement of real-time The defog effect that and can has reached.
The another technical solution that the present invention solves above-mentioned technical problem is as follows:A kind of image defogging system, including:
Input module, for inputting artwork, i.e. a width colour foggy image;
Extraction module, for extracting the basic image and levels of detail of the colored foggy image respectively;
Acquisition module, the view data of tri- passages of R, G, B for obtaining the basic image;
Computing module, for asking for the global atmosphere light and transmissivity of each passage of basic image respectively;
Recovery module, each is recovered for the global atmosphere light and transmissivity according to each passage of basic image The fog free images of passage, so as to obtain fogless basic image;
Add module, for adding levels of detail information to fogless basic image;
Strengthen processing module, for the fogless basic image that with the addition of levels of detail information is smoothed and brightness and Contrast enhancement processing, obtain fogless original image.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement:
The global atmosphere light that each passage is obtained in the acquisition module calculates in accordance with the following methods:It is logical to ask for each Track data is helped in road secretly, and helps each passage secretly track data compared with threshold value t, when the track data of helping secretly is more than During the threshold value t, then by the track data of helping secretly compared with the pixel value on the artwork correspondence position, when the dark number During according to more than data on artwork correspondence position, then using the pixel value on the artwork correspondence position as the complete of the passage Office's air light value;Otherwise using the threshold value t as global air light value, the complete of all darks in each passage is asked for respectively Global air light value of the average value of office's air light value as the passage.
Further, transmissivity is calculated in accordance with the following methods in the acquisition module:
Wherein,T (x) is transmissivity;Ω (x) is represented centered on pixel x Template window;A is global air light value, and c represents tri- passages of R, G, B, and I (y) is the desired value after defogging;G (x) rolls up for Gauss Product module plate, template size are 13 × 13.
Further, the recovery module obtains fogless basic image J (x) according to following methods:
Wherein, I (x) is the artwork of input;t0=0.3.
The beneficial effects of the invention are as follows:By being optimized to global atmosphere light and transmissivity, both meet requirement of real-time The defog effect that and can has reached.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of image defogging method of the present invention;
Fig. 2 is a kind of structural representation of image defogging system of the present invention.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in figure 1, a kind of image defogging method, it is characterised in that comprise the following steps:
Step 1, artwork, i.e. a width colour foggy image are inputted;
Step 2, the basic image and levels of detail of the colored foggy image are extracted respectively;
Step 3, the view data of tri- passages of R, G, B of the basic image is obtained;
Step 4, the global atmosphere light and transmissivity of each passage of basic image are asked for respectively;
The global atmosphere light that each passage is obtained in the step 4 calculates in accordance with the following methods:Ask for each passage Help track data secretly, and each passage is helped secretly track data compared with threshold value t, when the track data of helping secretly is more than institute When stating threshold value t, then the track data of helping secretly is helped secretly track data when described compared with the pixel value on the artwork correspondence position During more than data on artwork correspondence position, then the overall situation using the pixel value on the artwork correspondence position as the passage Air light value;Otherwise using the threshold value t as global air light value, the overall situation of all darks in each passage is asked for respectively Global air light value of the average value of air light value as the passage.
Transmissivity is calculated in accordance with the following methods in the step 4:
Wherein,T (x) is transmissivity;Ω (x) is represented with pixel x
Centered on template window;A is global air light value, and c represents tri- passages of R, G, B, I (y)
For the desired value after defogging;G (x) is Gaussian convolution template, and template size is 13 × 13.
Step 5, each passage is recovered according to the global atmosphere light and transmissivity of each passage of basic image Fog free images, so as to obtain fogless basic image;In the step 5 fogless basic image J (x) is obtained according to following methods:
Wherein, I (x) is the artwork of input;t0=0.3.
Step 6, levels of detail information is added to fogless basic image;
Step 7, the fogless basic image that with the addition of levels of detail information is smoothed and brightness and contrast strengthens Processing, obtains fogless original image.
As shown in Fig. 2 a kind of image defogging system, including:
Input module, for inputting artwork, i.e. a width colour foggy image;
Extraction module, for extracting the basic image and levels of detail of the colored foggy image respectively;
Acquisition module, the view data of tri- passages of R, G, B for obtaining the basic image;
The global atmosphere light that each passage is obtained in the acquisition module calculates in accordance with the following methods:It is logical to ask for each Track data is helped in road secretly, and helps each passage secretly track data compared with threshold value t, when the track data of helping secretly is more than During the threshold value t, then by the track data of helping secretly compared with the pixel value on the artwork correspondence position, when the dark number During according to more than data on artwork correspondence position, then using the pixel value on the artwork correspondence position as the complete of the passage Office's air light value;Otherwise using the threshold value t as global air light value, the complete of all darks in each passage is asked for respectively Global air light value of the average value of office's air light value as the passage.Computing module, it is every for asking for the basic image respectively The global atmosphere light and transmissivity of one passage;
Transmissivity is calculated in accordance with the following methods in the acquisition module:
Wherein,T (x) is transmissivity;Ω (x) is represented centered on pixel x Template window;A is global air light value, and c represents tri- passages of R, G, B, and I (y) is the desired value after defogging;G (x) rolls up for Gauss Product module plate, template size are 13 × 13.
Recovery module, each is recovered for the global atmosphere light and transmissivity according to each passage of basic image The fog free images of passage, so as to obtain fogless basic image;The recovery module obtains fogless basic image J (x) according to following methods:
Wherein, I (x) is the artwork of input;t0=0.3.
Add module, for adding levels of detail information to fogless basic image;
Strengthen processing module, for the fogless basic image that with the addition of levels of detail information is smoothed and brightness and Contrast enhancement processing, obtain fogless original image.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (6)

  1. A kind of 1. image defogging method, it is characterised in that, comprise the following steps:
    Step 1, a width colour foggy image is inputted;
    Step 2, the basic image and levels of detail of the colored foggy image are extracted respectively;
    Step 3, the view data of tri- passages of R, G, B of the basic image is obtained;
    Step 4, the global atmosphere light and transmissivity of each passage of basic image are asked for respectively;
    Step 5, the fogless of each passage is recovered according to the global atmosphere light and transmissivity of each passage of basic image Image, so as to obtain fogless basic image;
    Step 6, levels of detail information is added to fogless basic image;
    Step 7, the fogless basic image that with the addition of levels of detail information is smoothed and brightness and contrast's enhancing is handled, Obtain fogless original image;
    The global atmosphere light that each passage is obtained in the step 4 calculates in accordance with the following methods:Ask for the dark of each passage Channel data, and each passage is helped secretly track data compared with threshold value t, when the track data of helping secretly is more than the threshold During value t, then by the track data of helping secretly compared with the pixel value on the artwork correspondence position, when the track data of helping secretly is more than During data on artwork correspondence position, then the global air using the pixel value on the artwork correspondence position as the passage Light value;Otherwise using the threshold value t as global air light value, the global air of all darks in each passage is asked for respectively Global air light value of the average value of light value as the passage.
  2. 2. a kind of image defogging method according to claim 1, it is characterised in that counted in accordance with the following methods in the step 4 Calculate transmissivity:
    <mrow> <mi>t</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mover> <mi>t</mi> <mo>&amp;OverBar;</mo> </mover> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mi>G</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
    Wherein,T (x) is transmissivity;Ω (x) represents the template centered on pixel x Window;A is global air light value, and c represents tri- passages of R, G, B, and I (y) is the desired value after defogging;G (x) is Gaussian convolution mould Plate, template size are 13 × 13.
  3. 3. a kind of image defogging method according to claim 2, it is characterised in that obtained in the step 5 according to following methods Take fogless basic image J (x):
    <mrow> <mi>J</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mi>A</mi> <mo>-</mo> <mfrac> <mrow> <mi>A</mi> <mo>-</mo> <mi>I</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> </mrow> <mrow> <mi>m</mi> <mi>a</mi> <mi>x</mi> <mrow> <mo>(</mo> <mi>t</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo> <mo>,</mo> <msub> <mi>t</mi> <mn>0</mn> </msub> <mo>)</mo> </mrow> </mrow> </mfrac> <mo>;</mo> </mrow>
    Wherein, I (x) is the artwork of input;t0=0.3.
  4. A kind of 4. image defogging system, it is characterised in that including:
    Input module, for inputting a width colour foggy image;
    Extraction module, for extracting the basic image and levels of detail of the colored foggy image respectively;
    Acquisition module, the view data of tri- passages of R, G, B for obtaining the basic image;
    Computing module, for asking for the global atmosphere light and transmissivity of each passage of basic image respectively;
    Recovery module, each passage is recovered for the global atmosphere light and transmissivity according to each passage of basic image Fog free images, so as to obtain fogless basic image;
    Add module, for adding levels of detail information to fogless basic image;
    Strengthen processing module, for being smoothed to the fogless basic image that with the addition of levels of detail information and brightness and contrast Enhancing processing is spent, obtains fogless original image;
    The global atmosphere light that each passage is obtained in the computing module calculates in accordance with the following methods:Ask for each passage Help track data secretly, and help each passage secretly track data compared with threshold value t, when the track data of helping secretly is more than described During threshold value t, then by the track data of helping secretly compared with the pixel value on the artwork correspondence position, to help track data secretly big when described It is when data on artwork correspondence position, then the pixel value on the artwork correspondence position is big as the overall situation of the passage Gas light value;Otherwise using the threshold value t as global air light value, the overall situation for asking for all darks in each passage respectively is big Global air light value of the average value of gas light value as the passage.
  5. 5. according to a kind of image defogging system described in claim 4, it is characterised in that counted in accordance with the following methods in the computing module Calculate transmissivity:
    <mrow> <mi>t</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mover> <mi>t</mi> <mo>&amp;OverBar;</mo> </mover> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mi>G</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
    Wherein,T (x) is transmissivity;Ω (x) represents the template centered on pixel x Window;A is global air light value, and c represents tri- passages of R, G, B, and I (y) is the desired value after defogging;G (x) is Gaussian convolution mould Plate, template size are 13 × 13.
  6. 6. a kind of image defogging system according to claim 5, it is characterised in that the recovery module obtains according to following methods Take fogless basic image J (x):
    <mrow> <mi>J</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mi>A</mi> <mo>-</mo> <mfrac> <mrow> <mi>A</mi> <mo>-</mo> <mi>I</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> </mrow> <mrow> <mi>m</mi> <mi>a</mi> <mi>x</mi> <mrow> <mo>(</mo> <mi>t</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo> <mo>,</mo> <msub> <mi>t</mi> <mn>0</mn> </msub> <mo>)</mo> </mrow> </mrow> </mfrac> <mo>;</mo> </mrow>
    Wherein, I (x) is the artwork of input;t0=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 CN105023256A (en) 2015-11-04
CN105023256B true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825483B (en) * 2016-03-21 2018-10-16 电子科技大学 A kind of method that image removes haze and sand and dust
CN106023092B (en) * 2016-05-04 2020-12-11 中国农业大学 Image defogging method and device
CN105898111B (en) * 2016-05-06 2018-11-27 西安理工大学 A kind of video defogging method based on spectral clustering
JP6463512B2 (en) * 2016-05-24 2019-02-06 オリンパス株式会社 Image signal processing apparatus, image signal processing method, and image signal processing program
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
CN107392871B (en) * 2017-07-27 2020-01-10 Oppo广东移动通信有限公司 Image defogging method and device, mobile terminal and computer readable storage medium
CN107392870B (en) * 2017-07-27 2020-07-21 Oppo广东移动通信有限公司 Image processing method, image processing device, mobile terminal and computer readable storage medium
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
CN112465033B (en) * 2020-11-30 2021-08-03 哈尔滨市科佳通用机电股份有限公司 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
"一种改进的单幅图像快速去雾方法与实验";肖钟捷等;《地球信息科学》;20150430;第17卷(第4期);第497页第6-17段 *
"实时域变换图像去雾";吴金亮;《计算机与网络》;20150630(第10期);第44页第4.1节及图1 *

Also Published As

Publication number Publication date
CN105023256A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105023256B (en) A kind of 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
CN102411774B (en) Processing method, device and system based on single-image defogging
CN104537615B (en) A kind of local Retinex Enhancement Methods based on HSV color spaces
CN102750674B (en) Video image defogging method based on self-adapting allowance
CN103747213B (en) A kind of real-time defogging method of the Traffic Surveillance Video based on moving target
CN103049888A (en) Image/video demisting method based on combination of dark primary color of atmospheric scattered light
CN106530237A (en) Image enhancement method
CN105608456A (en) Multi-directional text detection method based on full convolution network
CN107301623A (en) A kind of traffic image defogging method split based on dark and image and system
CN103942758A (en) Dark channel prior image dehazing method based on multiscale fusion
CN104318524A (en) Method, device and system for image enhancement based on YCbCr color space
CN103996178A (en) Sand and dust weather color image enhancing method
CN104182943B (en) A kind of single image defogging method capable merging human-eye visual characteristic
CN105046658A (en) Low-illumination image processing method and device
CN108564549A (en) A kind of image defogging method based on multiple dimensioned dense connection network
CN106780380A (en) A kind of image defogging method and system
CN103034983A (en) Defogging method based on anisotropic filtering
CN103413311A (en) Edge-based fuzzy detection method
CN104616258A (en) Rapid defogging method for road image
CN103914820A (en) Image haze removal method and system based on image layer enhancement
CN104318535A (en) Image defogging method and device and mobile terminal
CN107481211B (en) Night traffic monitoring enhancement method based on gradient domain fusion
CN103903234A (en) Real-time image defogging method based on image field depth

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