[go: up one dir, main page]

CN109785274A - A kind of removal infrared image flashing Histogram Mapping method - Google Patents

A kind of removal infrared image flashing Histogram Mapping method Download PDF

Info

Publication number
CN109785274A
CN109785274A CN201811549060.3A CN201811549060A CN109785274A CN 109785274 A CN109785274 A CN 109785274A CN 201811549060 A CN201811549060 A CN 201811549060A CN 109785274 A CN109785274 A CN 109785274A
Authority
CN
China
Prior art keywords
histogram
image
frame image
mapping table
infrared
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
Application number
CN201811549060.3A
Other languages
Chinese (zh)
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201811549060.3A priority Critical patent/CN109785274A/en
Publication of CN109785274A publication Critical patent/CN109785274A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

本发明公开了一种去除红外图像闪烁直方图映射方法,该方法包括:步骤一、根据前n帧图像的直方图,得到第n帧图像的直方图,其中1≤n≤N且n为正整数,N为图像的总帧数;步骤二、对第n帧图像的直方图进行增强处理,得到当前帧图像的直方图映射表,根据当前帧图像的直方图映射表输出实时图像。本发明相较于现有的去除图像闪烁技术而言,直接对图像的直方图进行处理,能够对图像背景的变化作出及时响应并处理,使得去除闪烁效果好;同时本发明还考虑了多帧图像之间的关联性,提高了图像质量。

The invention discloses a method for removing flickering histogram mapping of infrared images. The method includes: step 1. According to the histogram of the previous n frames of images, the histogram of the nth frame of images is obtained, wherein 1≤n≤N and n is positive Integer, N is the total number of frames of the image; step 2, the histogram of the nth frame image is enhanced to obtain the histogram mapping table of the current frame image, and the real-time image is output according to the histogram mapping table of the current frame image. Compared with the existing image flicker removal technology, the present invention directly processes the histogram of the image, and can respond to and process changes in the image background in time, so that the flicker removal effect is good; at the same time, the present invention also considers multiple frames Correlation between images improves image quality.

Description

A kind of removal infrared image flashing Histogram Mapping method
Technical field
The present invention relates to infrared image processing technology fields, and in particular to a kind of removal infrared image flashing Histogram Mapping Method.
Background technique
Existing common infrared camera generally detects the illumination intensity of local environment using light-sensitive element, according to The threshold value determined in design parameter generates control signal, realizes the unlatching of infrared lamp: infrared when illumination intensity is lower than threshold value Lamp, which is opened, to shine, and then closes when higher than threshold value.Wherein, the case where when illumination intensity is slightly less than threshold value: light-sensitive element detects photograph Bright intensity is slightly less than threshold value, and control infrared lamp, which is opened, to shine;After infrared lamp shines, the illumination detected, which improves, (be added reversed Infrared light back), and be more than threshold value, control infrared lamp is closed;Lead to the luminance reduction detected, another secondary control is red Outer lamp is opened.Do not stop and so on, causes the flashing of image;Therefore in order to obtain high quality graphic, need to infrared image into The processing of row blink-off.And image histogram is since to calculate cost smaller for it, and has image translation, rotation, scaling invariance etc. Many merits are widely used in the every field of image procossing, therefore existing frequently with the methods of image histogram equalization Blink-off processing is carried out to image.
Existing video image blink-off method further include: in such a way that threshold value is set, the image of present frame is carried out Processing handles current frame image mapping table by the Histogram Mapping table to previous frame image, however when video image display Substantially multiframe still image continuously displays process, and therefore, existing blink-off processing method does not consider adjacent multiframe figure Relevance as between, causes image procossing precision not high, poor reliability;Furthermore when image background changes, existing skill Art cannot in time handle it to the variation, cause treatment effect still undesirable.
Summary of the invention
Undesirable for solution removal flicker effect of the existing technology, the technical problems such as poor reliability, the present invention provides A kind of removal infrared image flashes Histogram Mapping method.This method is directly handled histogram, can be carried on the back to image Scape transformation, which is made, to be timely responded to and handles, and image displaying quality is improved.
The present invention is achieved through the following technical solutions:
A kind of removal infrared image flashing Histogram Mapping method, method includes the following steps:
Step 1: obtain the histogram of n-th frame image according to the histogram of preceding n frame image, wherein 1≤n≤N and n is positive Integer, N are the totalframes of image;
Step 2: the histogram to n-th frame image carries out enhancing processing, the Histogram Mapping table of current frame image is obtained, Realtime graphic is exported according to the Histogram Mapping table of current frame image.
In the present embodiment, when n takes 1, then the histogram L of the 1st frame image is counted1, filter is setLn2= L1, Ln3=L1It is calculate by the following formula the histogram L of the 1st frame image after being filtered1'=(L1+Ln1+Ln2+Ln3)/4。
Further, in the present embodiment, as n >=2, then the histogram L of n-th frame image is countedn, filter is setLn2=Ln1, Ln3=Ln2 are calculate by the following formula to obtain the histogram L of n-th frame imagen'=(Ln+Ln1+Ln2+ Ln3)/4。
Further, image enhancement processing is carried out using histogram equalization mode.
The present invention has the advantage that and the utility model has the advantages that
For the present invention is compared to existing removal image flicker technology, directly the histogram of image is handled, energy Enough make to the variation of image background timely responds to and handles, so that removal flicker effect is good;Simultaneously invention also contemplates that more Relevance between frame image, improves picture quality.And treatment process of the invention is more succinct, calculation amount is small, convenient for hard Part is realized.
Detailed description of the invention
Attached drawing described herein is used to provide to further understand the embodiment of the present invention, constitutes one of the application Point, do not constitute the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is mapping method schematic diagram of the invention.
Fig. 2 is using treatment effect of the present invention and to use prior art treatment effect comparison diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below with reference to embodiment and attached drawing, to this Invention is described in further detail, and exemplary embodiment of the invention and its explanation for explaining only the invention, are not made For limitation of the invention.
Embodiment 1
A kind of removal infrared image flashing Histogram Mapping method is present embodiments provided, this method following steps:
Step 1: obtain the histogram of n-th frame image according to the histogram of preceding n frame image, wherein 1≤n≤N and n is positive Integer, N are the totalframes of image;
In the present embodiment, when n takes 1, then the histogram L of the 1st frame image is counted1, filter is setLn2= L1, Ln3=L1It is calculate by the following formula the histogram L of the 1st frame image after being filtered1'=(L1+Ln1+Ln2+Ln3)/4;When n >= When 2, then the histogram L of n-th frame image is countedn, filter is setLn2=Ln1, Ln3=Ln2 pass through following formula meter Calculation obtains the histogram L of n-th frame imagen'=(Ln+Ln1+Ln2+Ln3)/4。
Step 2: the histogram to n-th frame image carries out enhancing processing, the Histogram Mapping table of current frame image is obtained, Realtime graphic is exported according to the Histogram Mapping table of current frame image.
In the present embodiment, image enhancement processing is carried out using histogram of the histogram equalization mode to n-th frame image, it will Enhancing treated Histogram Mapping obtains the Histogram Mapping table of current frame image, according to current frame image to 0~255 Histogram Mapping table exports realtime graphic.
Embodiment 2
The 1 removal infrared image proposed flashes Histogram Mapping method to the present embodiment 2 based on the above embodiment, specifically gives The process that is handled 6 frame images as shown in Figure 1 is as follows:
2.1 obtain the 1st frame image, and count the histogram of current frame image, obtain the histogram L of the 1st frame image1If Set filterLn2=L1, Ln3=L1It is calculate by the following formula to obtain the filtering histogram L of the 1st frame image1'=(L1+ Ln1+Ln2+Ln3)/4;In the present embodiment, the histogram of the 1st frame image i.e. histogram of the 1st frame image after filtering, then to The filtering histogram of 1 frame image carries out image enhancement processing using histogram equalization method, and is mapped to 0~255, obtains the 1 frame image mapping table exports realtime graphic according to the 1st frame image mapping table.
2.2 obtain the 2nd frame image, and count the histogram of current frame image, obtain the histogram L of the 2nd frame image2If Set filterLn2=Ln1, Ln3=Ln2 are calculate by the following formula to obtain the histogram L of the 2nd frame image2'=(L2+ Ln1+Ln2+Ln3)/4。
Then image enhancement processing is carried out using histogram equalization method to the filtering histogram of the 2nd frame image, and reflected It is mapped to 0~255, obtains the 2nd frame image mapping table, realtime graphic is exported according to the 2nd frame image mapping table.
2.3 obtain the 3rd frame image, and count the histogram of current frame image, obtain the histogram L of the 3rd frame image3If Set filterLn2=Ln1, Ln3=Ln2 are calculate by the following formula to obtain the histogram L of the 3rd frame image3'=(L3+ Ln1+Ln2+Ln3)/4。
Then image enhancement processing is carried out using histogram equalization method to the filtering histogram of the 3rd frame image, and reflected It is mapped to 0~255, obtains the 3rd frame image mapping table, realtime graphic is exported according to the 3rd frame image mapping table.
2.4 obtain the 4th frame image, and count the histogram of current frame image, obtain the histogram L of the 4th frame image4If Set filterLn2=Ln1, Ln3=Ln2 are calculate by the following formula to obtain the histogram L of the 4th frame image4'=(L4+ Ln1+Ln2+Ln3)/4。
Then image enhancement processing is carried out using histogram equalization method to the filtering histogram of the 4th frame image, and reflected It is mapped to 0~255, obtains the 4th frame image mapping table, realtime graphic is exported according to the 4th frame image mapping table.
2.5 obtain the 5th frame image, and count the histogram of current frame image, obtain the histogram L of the 5th frame image5If Set filterLn2=Ln1, Ln3=Ln2 are calculate by the following formula to obtain the histogram L of the 5th frame image5'=(L5+ Ln1+Ln2+Ln3)/4。
Then image enhancement processing is carried out using histogram equalization method to the filtering histogram of the 5th frame image, and reflected It is mapped to 0~255, obtains the 5th frame image mapping table, realtime graphic is exported according to the 5th frame image mapping table.
2.6 obtain the 6th frame image, and count the histogram of current frame image, obtain the histogram L of the 6th frame image6If Set filterLn2=Ln1, Ln3=Ln2 are calculate by the following formula to obtain the histogram L of the 6th frame image6'=(L6+ Ln1+Ln2+Ln3)/4。
Then image enhancement processing is carried out using histogram equalization method to the filtering histogram of the 6th frame image, and reflected It is mapped to 0~255, obtains the 6th frame image mapping table, realtime graphic is exported according to the 6th frame image mapping table.
Embodiment 3
The removal infrared image flashing Histogram Mapping method and existing that the present embodiment 3 is proposed using above-described embodiment It removes image flicker method and blink-off processing is carried out to same infrared image, output treated image, as shown in Figure 2, wherein (left side) figure is the image that processing output is carried out using infrared image flashing Histogram Mapping method of the invention, and (right side) figure is to use The prior art carries out the image of processing output, and as shown in Figure 2, the display display effect of (left side) figure is substantially better than (right side) figure, shows Blink-off better effect of the invention.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (4)

1.一种去除红外图像闪烁直方图映射方法,其特征在于,该方法包括以下步骤:1. a method for removing infrared image flicker histogram mapping, is characterized in that, the method comprises the following steps: 步骤一、根据前n帧图像的直方图,得到第n帧图像的直方图,其中1≤n≤N且n为正整数,N为图像的总帧数;Step 1: Obtain the histogram of the nth frame of images according to the histogram of the first n frames of images, where 1≤n≤N and n is a positive integer, and N is the total number of frames of the image; 步骤二、对第n帧图像的直方图进行增强处理,得到当前帧图像的直方图映射表,根据当前帧图像的直方图映射表输出实时图像。Step 2: Perform enhancement processing on the histogram of the nth frame image to obtain a histogram mapping table of the current frame image, and output a real-time image according to the histogram mapping table of the current frame image. 2.根据权利要求1所述的一种去除红外图像闪烁直方图映射方法,其特征在于,当n取1时,则统计第1帧图像的直方图L1,设置滤波器Ln1、=L1,Ln2=L1,Ln3=L1通过下式计算得到滤波后第1帧图像的直方图L1′=(L1+Ln1+Ln2+Ln3)/4。2 . The method for removing the flicker histogram of infrared images according to claim 1 , wherein when n is 1, the histogram L 1 of the first frame image is counted, and filters Ln1 and =L 1 are set. 3 . , Ln2=L 1 , Ln3=L 1 The histogram L 1 ′=(L 1 +Ln1+Ln2+Ln3)/4 of the filtered first frame image is obtained by the following formula. 3.根据权利要求2任一项所述的一种去除红外图像闪烁直方图映射方法,其特征在于,当n≥2时,则统计第n帧图像的直方图Ln,设置滤波器Ln1、=Ln-1,Ln2=Ln1,Ln3=Ln2,通过下式计算得到第n帧图像的直方图Ln′=(Ln+Ln1+Ln2+Ln3)/4。3. a kind of infrared image flicker histogram mapping method according to claim 2 is removed, it is characterized in that, when n≥2, then count the histogram Ln of the nth frame image, set filter Ln1, = Ln-1 , Ln2=Ln1, Ln3=Ln2, the histogram Ln '=( Ln +Ln1+Ln2+Ln3)/4 of the n-th frame image is calculated by the following formula. 4.根据权利要求1-3任一项所述的一种去除红外图像闪烁直方图映射方法,其特征在于,采用直方图均衡化方式进行图像增强处理。4 . The method for removing flickering histogram mapping of infrared images according to claim 1 , wherein the image enhancement processing is performed by a histogram equalization method. 5 .
CN201811549060.3A 2018-12-18 2018-12-18 A kind of removal infrared image flashing Histogram Mapping method Pending CN109785274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811549060.3A CN109785274A (en) 2018-12-18 2018-12-18 A kind of removal infrared image flashing Histogram Mapping method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811549060.3A CN109785274A (en) 2018-12-18 2018-12-18 A kind of removal infrared image flashing Histogram Mapping method

Publications (1)

Publication Number Publication Date
CN109785274A true CN109785274A (en) 2019-05-21

Family

ID=66497245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811549060.3A Pending CN109785274A (en) 2018-12-18 2018-12-18 A kind of removal infrared image flashing Histogram Mapping method

Country Status (1)

Country Link
CN (1) CN109785274A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120365A1 (en) * 2001-12-26 2003-06-26 Motohiro Asano Flicker correction for moving picture
CN101621704A (en) * 2008-06-30 2010-01-06 英特尔公司 Color enhancement of graphic images
CN106204505A (en) * 2016-06-22 2016-12-07 成都市晶林科技有限公司 Video based on infrared image enhancement Histogram Mapping table goes to flash method
CN108090887A (en) * 2016-11-23 2018-05-29 杭州海康威视数字技术股份有限公司 A kind of method of video image processing and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120365A1 (en) * 2001-12-26 2003-06-26 Motohiro Asano Flicker correction for moving picture
CN101621704A (en) * 2008-06-30 2010-01-06 英特尔公司 Color enhancement of graphic images
CN106204505A (en) * 2016-06-22 2016-12-07 成都市晶林科技有限公司 Video based on infrared image enhancement Histogram Mapping table goes to flash method
CN108090887A (en) * 2016-11-23 2018-05-29 杭州海康威视数字技术股份有限公司 A kind of method of video image processing and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟凤晓: "图像序列中亮度闪烁实时修复" *

Similar Documents

Publication Publication Date Title
CN103593830B (en) A low-light video image enhancement method
CN101102398B (en) Fully automatic real-time digital image processing enhancement system
CN104809700B (en) A kind of low-light (level) video real time enhancing method based on bright passage
CN101833754A (en) Image enhancement method and image enhancement system
CN102289791B (en) A Fast Single Image Dehazing Method
CN106056559A (en) Dark-channel-prior-method-based non-uniform-light-field underwater target detection image enhancement method
CN101626454B (en) Method for intensifying video visibility
CN110570360A (en) A robust and comprehensive low-quality illumination image enhancement method based on Retinex
CN106056129A (en) Method for detecting over-exposure area in monitoring video image combining multiple features
CN109087254A (en) Unmanned plane image haze sky and white area adaptive processing method
CN108154492A (en) A kind of image based on non-local mean filtering goes haze method
CN103971343A (en) Image denoising method based on similar pixel detection
CN110473152A (en) Based on the image enchancing method for improving Retinex algorithm
CN102014279A (en) Method and device for intensifying video image contrast
CN108305225A (en) Traffic monitoring image rapid defogging method based on dark channel prior
CN109801231A (en) Image processing method of electrophoresis electronic paper detection equipment
CN102799861B (en) Method for rapidly identifying reading of instrument by using color
CN106023110B (en) A kind of Hi-Fi image defogging method
CN116862811A (en) An image enhancement method based on texture prior and color clustering
CN105118077B (en) A kind of method and system for improving file shooting fluency
CN109523472B (en) Retinex color image enhancement method, computer vision processing system
CN109785274A (en) A kind of removal infrared image flashing Histogram Mapping method
CN110490861A (en) A kind of recognition methods and system of the aphid on yellow plate
CN108765310A (en) Adaptive transmissivity restoration image defogging method based on multi-scale window
CN109688292A (en) A kind of removal image flicker Histogram Mapping method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521

RJ01 Rejection of invention patent application after publication