CN101666682B - Neural network non-uniformity correction method based on scene statistics - Google Patents
Neural network non-uniformity correction method based on scene statistics Download PDFInfo
- Publication number
- CN101666682B CN101666682B CN2009101045511A CN200910104551A CN101666682B CN 101666682 B CN101666682 B CN 101666682B CN 2009101045511 A CN2009101045511 A CN 2009101045511A CN 200910104551 A CN200910104551 A CN 200910104551A CN 101666682 B CN101666682 B CN 101666682B
- Authority
- CN
- China
- Prior art keywords
- image
- pixel
- correction
- neural network
- blind
- 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.)
- Expired - Fee Related
Links
- 238000012937 correction Methods 0.000 title claims abstract description 90
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 38
- 238000001514 detection method Methods 0.000 claims abstract description 25
- 239000011159 matrix material Substances 0.000 claims abstract description 13
- 230000000694 effects Effects 0.000 abstract description 12
- 238000012545 processing Methods 0.000 abstract description 5
- 230000015556 catabolic process Effects 0.000 abstract description 4
- 238000006731 degradation reaction Methods 0.000 abstract description 4
- 230000007812 deficiency Effects 0.000 abstract description 2
- 238000004364 calculation method Methods 0.000 description 8
- 230000003044 adaptive effect Effects 0.000 description 6
- 238000003491 array Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000003702 image correction Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000003331 infrared imaging Methods 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000007850 degeneration Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000001931 thermography Methods 0.000 description 1
Images
Landscapes
- Transforming Light Signals Into Electric Signals (AREA)
- Image Processing (AREA)
Abstract
本发明请求保护一种基于场景统计的神经网络非均匀性校正方法,属于红外焦平面探测领域。针对传统神经网络校正方法难以消除低频空间噪声的不足,提出一种基于场景统计的神经网络非均匀性校正方法。该方法包括,初始化图像相关矩阵及参数;根据图像像素灰度值进行盲元检测及补偿;采用场景统计法对图像偏置进行非均匀性校正;采用神经网络校正法,根据校正误差的标准差阈值判断像素的区域属性,对场景统计校正后且不含低频空间噪声的图像进行增益非线性校正。本发明获得图像期望信号的校正效果好,抑制了目标退化及鬼影,背景图像的变化对校正效果几乎没有影响。该方法可广泛应用于图像探测处理中。
The present invention claims protection for a neural network non-uniformity correction method based on scene statistics, and belongs to the field of infrared focal plane detection. In view of the deficiency that the traditional neural network correction method is difficult to eliminate low-frequency spatial noise, a neural network non-uniformity correction method based on scene statistics is proposed. The method includes initializing the image correlation matrix and parameters; performing blind pixel detection and compensation according to the gray value of the image pixel; using the scene statistics method to perform non-uniformity correction on the image bias; using the neural network correction method, judging the regional attributes of the pixel according to the standard deviation threshold of the correction error, and performing gain nonlinear correction on the image after scene statistics correction and without low-frequency spatial noise. The present invention has a good correction effect on the desired signal of the image, suppresses target degradation and ghosting, and the change of the background image has almost no effect on the correction effect. The method can be widely used in image detection and processing.
Description
技术领域 technical field
本发明涉及图像探测处理技术领域,具体属于红外焦平面探测技术中图像校正方法。The invention relates to the technical field of image detection and processing, in particular to an image correction method in the infrared focal plane detection technology.
背景技术 Background technique
红外焦平面阵列成像系统由于具有灵敏度高,体积小,结构紧凑,作用距离远、抗干扰性好、穿透烟雾能力强、可全天候、全天时工作等优点,已成为红外成像技术发展的趋势,而凝视型红外焦平面阵列已成为未来红外热成像系统发展的主流探测器件。但由于受材料和工艺水平的限制,红外焦平面阵列(IRFPA)各探测单元响应特性之间普遍存在着非均匀性,它将导致红外成像系统的温度分辨率等性能显著下降,以至使其难以满足工程应用要求,因而工程中使用的红外焦平面阵列几乎毫无例外地都采用非均匀性校正技术。Infrared focal plane array imaging system has become the development trend of infrared imaging technology due to its advantages of high sensitivity, small size, compact structure, long range, good anti-interference, strong ability to penetrate smoke, and can work all-weather and all-day. , and the staring infrared focal plane array has become the mainstream detection device for the development of future infrared thermal imaging systems. However, due to the limitations of materials and technology levels, there is generally non-uniformity among the response characteristics of each detection unit of the infrared focal plane array (IRFPA), which will lead to a significant decrease in the performance of the infrared imaging system such as temperature resolution, so that it is difficult to To meet the requirements of engineering applications, the infrared focal plane arrays used in engineering almost without exception adopt non-uniformity correction technology.
目前国内外已出现多种多样的红外焦平面阵列非均匀性校正方法,但归纳起来大致可以分为两类:一类是基于标定的校正方法,主要包括两点温度标定法(TPC)和多点温度标定法(ETPC)。该类校正方法拥有算法简单灵活,运算速度快,易于硬件实现等优点,是目前工程应用的主要方法。但由于受红外焦平面阵列工作时间和环境变化的影响,其响应参数会发生缓慢漂移,进而影响校正精度,因此,标定类校正方法通常需要进行周期性标定校正。这样,不仅需要中断实时成像过程,而且操作复杂。另一类是基于场景的校正方法,主要包括恒定统计平均法(CSC)、时域高通滤波法(THPFC)和人工神经网络法(ANNC)。该类方法能有效地消除红外焦平面阵列随工作时间和环境变化而发生的响应参数漂移,不需要定标,只需根据场景信息实现IRFPA非均匀性自适应校正。在基于场景的校正方法中,以神经网络校正方法最具代表性。At present, there have been a variety of non-uniformity correction methods for infrared focal plane arrays at home and abroad, but they can be roughly divided into two categories: one is calibration-based correction methods, mainly including two-point temperature calibration (TPC) and multi-point temperature calibration (TPC). Point Temperature Calibration (ETPC). This type of correction method has the advantages of simple and flexible algorithm, fast operation speed, and easy hardware implementation, etc., and is the main method used in engineering applications at present. However, due to the influence of the infrared focal plane array's working time and environmental changes, its response parameters will drift slowly, which will affect the calibration accuracy. Therefore, calibration methods usually require periodic calibration and calibration. In this way, not only the real-time imaging process needs to be interrupted, but also the operation is complicated. The other is the scene-based correction method, which mainly includes constant statistical average method (CSC), temporal high-pass filter method (THPFC) and artificial neural network method (ANNC). This type of method can effectively eliminate the drift of the response parameters of the infrared focal plane array with the change of working time and environment, without calibration, and only needs to realize the adaptive correction of IRFPA non-uniformity according to the scene information. Among the scene-based correction methods, the neural network correction method is the most representative.
传统神经网络校正法(Scribner)虽然在理论上完全不需要对红外焦平面阵列进行定标,对探测器参数的线性和稳定性要求也不高。但传统神经网络校正法也存在明显的不足,特别是对低频空间噪声无能为力。究其原因是简单地以四邻域均值作为期望输出,参与计算的像素太少,特别是没有考虑当前像素值,导致期望值与实际值可能存在较大的偏差。当场景中同一区域内信号变化缓慢,四邻域均值计算期望值是合理的;当信号在空间上存在剧烈变化时,窗口横跨多个不同的区域,这时用四邻域均值作为期望值便存在着较大的误差。当目标运动时,这种误差不会累积,对校正效果影响不明显;当目标长时间趋于静止时,这种误差会迅速累积,迭代步长越大,误差累积越快,则会出现明显的目标退化。而当目标由静止变为突然运动时就会在原来位置留下一个反像的校正虚影。Although the traditional neural network correction method (Scribner) does not need to calibrate the infrared focal plane array in theory, it does not have high requirements for the linearity and stability of the detector parameters. However, the traditional neural network correction method also has obvious deficiencies, especially for low-frequency spatial noise. The reason is that the average value of the four neighborhoods is simply used as the expected output, and too few pixels are involved in the calculation, especially the current pixel value is not considered, resulting in a large deviation between the expected value and the actual value. When the signal changes slowly in the same area in the scene, it is reasonable to calculate the expected value of the four-neighborhood mean; when the signal changes drastically in space, and the window spans multiple different areas, it is more difficult to use the four-neighborhood mean as the expected value. big error. When the target moves, this error will not accumulate, and the effect on the correction effect will not be obvious; target degradation. And when the target changes from static to sudden movement, it will leave a reverse image correction ghost in the original position.
张天序、石岩等人在《红外焦平面非均匀性噪声的空间频率特性及空间自适应非均匀性校正方法改进》一文中,分析了红外焦平面阵列非均匀性噪声的空间频率特性,指出空间低频噪声为其主要成分。针对传统空域自适应校正方法去除低频空间噪声存在的不足,提出采用一点校正和空域自适应校正相结合的方法。该方法中的一点校正是通过对连续有限帧且不含目标的背景进行时间均值得到的。如果在相机工作期间图像背景保持不变时,通过对连续不含目标的有限帧背景进行时间均值得到背景图像与实际背景是接近的,这时可以得到较好的校正效果。但在背景图像实时变化的情况下,按照这种方法得到的背景图像与实际背景存在较大的误差,这样预处理校正的结果必然会影响最终的校正结果。Zhang Tianxu, Shi Yan et al. analyzed the spatial frequency characteristics of infrared focal plane array non-uniformity noise and pointed out that Low frequency noise is its main component. Aiming at the shortcomings of the traditional spatial adaptive correction method for removing low-frequency spatial noise, a method combining one-point correction and spatial adaptive correction is proposed. The one-point correction in this method is obtained by time-averaging the background of continuous finite frames without targets. If the image background remains unchanged during the working of the camera, the background image obtained by time-averaging the background of the continuous finite frame without the target is close to the actual background, and a better correction effect can be obtained at this time. However, when the background image changes in real time, there is a large error between the background image obtained by this method and the actual background, so the preprocessing correction result will inevitably affect the final correction result.
由于红外焦平面阵列盲元的存在,导致红外图像模糊不清,而目前主要是通过信号处理技术检测出盲元,并通过邻域像素进行有效补偿以提高红外焦平面阵列成像质量。盲元的处理包括盲元检测和补偿两个方面。传统的盲元处理方法难以实现盲元的在线检测和补偿。在代少升、张天骐《一种新的红外焦平面阵列盲元处理算法》一文中,提出了一种IRFPA盲元即时检测和补偿的新算法。该算法实现简单,通用性强,能对随机产生的盲元进行即时检测和补偿,但仅仅涉及到盲元的检测和补偿,未涉及对图像信号偏置进行非均匀性校正及增益非线性校正。Due to the existence of blind elements of infrared focal plane array, the infrared image is blurred. At present, blind elements are mainly detected through signal processing technology, and effective compensation is performed through neighboring pixels to improve the imaging quality of infrared focal plane array. The processing of blind elements includes two aspects of blind element detection and compensation. The traditional blind pixel processing method is difficult to realize the online detection and compensation of blind pixels. In Dai Shaosheng and Zhang Tianqi's "A New Algorithm for Processing Blind Elements of Infrared Focal Plane Arrays", a new algorithm for real-time detection and compensation of IRFPA blind elements is proposed. The algorithm is simple to implement and highly versatile. It can detect and compensate randomly generated blind pixels in real time, but it only involves the detection and compensation of blind pixels, and does not involve non-uniformity correction and gain nonlinearity correction for image signal bias. .
红外焦平面阵列所受的空间噪声有如下两个性质:The spatial noise suffered by the infrared focal plane array has the following two properties:
性质一:由非均匀性引起的空间噪声其主要呈现为低频成分。Nature 1: Spatial noise caused by non-uniformity mainly appears as low-frequency components.
性质二:由增益非均匀性单独引起的空间噪声,主要呈现为高频成分。然而传统神经网络校正方法的前提假设是:非均匀性所导致的空间噪声,其空间频率主要是高频或白噪声。正是基于该前提,传统的神经网络校正方法采用像素的4邻域均值作为该像素输出的校正期望值来更新校正系数,使其呈现空间低通的频率特性。因此,当实际红外焦平面阵列空间噪声以低频为主时,传统的神经网络校正方法显得无能为力。Nature 2: Spatial noise caused by gain non-uniformity alone is mainly presented as high-frequency components. However, the premise of the traditional neural network correction method is that the spatial frequency of the spatial noise caused by non-uniformity is mainly high frequency or white noise. Based on this premise, the traditional neural network correction method uses the mean value of the four neighborhoods of the pixel as the correction expected value of the pixel output to update the correction coefficient, so that it presents a spatial low-pass frequency characteristic. Therefore, when the spatial noise of the actual infrared focal plane array is dominated by low frequencies, the traditional neural network correction method is powerless.
如一点校正和空域自适应校正相结合的算法(onepoint_nn_nuc),其背景图像的变化会对校正的效果产生影响,背景相对变化较少的部分校正效果较好,背景变化较大的部分校正效果较差。For example, the algorithm that combines one-point correction and spatial adaptive correction (onepoint_nn_nuc), the change of the background image will affect the correction effect. Difference.
如果我们预先采用某种预处理校正,消除空间低频部分噪声,只剩下由增益非均匀性所导致的空间高频噪声,然后再采用神经网络方法进行后续校正,便能获得较好的校正效果。正是基于上述原因,本发明提出了基于场景统计的神经网络非均匀性校正方法,即首先通过场景统计消除由IRFPA偏置非均匀性引起的空间低频噪声,然后再采用神经网络方法进行后续校正。If we use some kind of preprocessing correction in advance to eliminate the noise of the spatial low frequency part, leaving only the spatial high frequency noise caused by gain non-uniformity, and then use the neural network method for subsequent correction, a better correction effect can be obtained . It is based on the above reasons that the present invention proposes a neural network non-uniformity correction method based on scene statistics, that is, firstly eliminates the spatial low-frequency noise caused by IRFPA bias non-uniformity through scene statistics, and then uses the neural network method for subsequent corrections .
发明内容 Contents of the invention
本发明针对复杂多变的环境条件下引起红外焦平面阵列响应特性和稳定性的变化,以及传统神经网络校正方法难以消除低频空间噪声的不足,提出一种基于场景统计和神经网络非均匀性校正方法。该方法包括,进行盲元检测及补偿,采用场景统计法对图像偏置进行非均匀性校正,采用神经网络校正法对场景统计校正后且不含低频空间噪声的图像进行增益非线性校正。Aiming at the change of response characteristics and stability of infrared focal plane array caused by complex and changeable environmental conditions, and the difficulty of eliminating low-frequency spatial noise by traditional neural network correction methods, the present invention proposes a method based on scene statistics and neural network non-uniformity correction method. The method includes performing blind element detection and compensation, using a scene statistics method to correct non-uniformity of image bias, and using a neural network correction method to perform gain nonlinearity correction on an image after scene statistics correction and without low-frequency spatial noise.
盲元检测及补偿。在对红外焦平面阵列非均匀性进行校正之前,首先需要进行盲元检测与补偿。以连续k帧图像序列的时域均值作为当前帧各个像素的响应率Bij,即
采用场景统计法对图像偏置进行非均匀性校正。根据原始图像的时域均值计算原始图像输入均值E[Xi,j],及校正输出均值E[Yi,j],得到不包含低频空间噪声的各像素的灰度值Zi,j(n)。The image bias is corrected for non-uniformity using scene statistics. Calculate the original image input mean value E[X i, j ] and the corrected output mean value E[Y i, j ] according to the time domain mean value of the original image, and obtain the gray value Z i, j of each pixel that does not contain low-frequency spatial noise ( n).
利用第1帧到第n帧原始图像时域均值作为红外焦平面阵列的输入,可采用递归的方式计算E[Xi,j]:即
当前帧的原始图像Xi,j(n)减去红外焦平面阵列第(i,j)像素在时间上的平均输入Xi,j,便可得到不含低频空间噪声的各像素灰度值Zi,j(n)。The original image X i, j (n) of the current frame subtracts the average input X i, j of the (i, j)th pixel of the infrared focal plane array in time, and the gray value of each pixel without low-frequency spatial noise can be obtained Z i, j (n).
Zi,j(n)=Xi,j(n)-Xi,j Z i,j (n)=X i,j (n)-X i,j
采用神经网络校正法对场景统计校正,对不含低频空间噪声的图像进行增益非线性校正。如采用自适应加权平均滤波器,确定输出的期望信号。根据校正误差的标准差阈值来判断像素的区域属性,对同一区域的像素分配较大的权值,对不同区域的像素分配较小的权值,由加权平均滤波器的权值Wp,q(n)确定输出的期望值Fi,j(n)。The neural network correction method is used to correct the scene statistics, and the image without low-frequency spatial noise is corrected for gain nonlinearity. If an adaptive weighted average filter is used, the expected signal output is determined. According to the standard deviation threshold of the correction error to judge the regional attribute of the pixel, a larger weight is assigned to the pixels in the same region, and a smaller weight is assigned to the pixels in different regions. The weighted average filter weight W p, q (n) Determine the expected value F i,j (n) of the output.
其中,权值由下式确定:Among them, the weight is determined by the following formula:
其中,η为权值系数。Among them, η is the weight coefficient.
加权滤波器的输出即为期望值Fi,j(n),根据下式计算期望值Fi,j(n):The output of the weighted filter is the expected value F i, j (n), and the expected value F i, j (n) is calculated according to the following formula:
本发明与传统神经网络方法和一点校正与神经网络相结合的方法相比,具有较强的非均匀性校正能力,从而能够获得理想的图像校正效果。在场景连续变化的实时校正中,既能消除低频空间噪声,又能消除目标退化和鬼影,提高了算法的运算速度。Compared with the traditional neural network method and the method of combining one-point correction and neural network, the present invention has stronger non-uniformity correction capability, thereby being able to obtain ideal image correction effect. In the real-time correction of continuous scene changes, it can not only eliminate low-frequency spatial noise, but also eliminate target degradation and ghost images, and improve the calculation speed of the algorithm.
附图说明 Description of drawings
图1为本发明校正方法流程示意图。Fig. 1 is a schematic flow chart of the correction method of the present invention.
图2为盲元检测示意图。其中,图2(a)为k帧运动场景示意图;图2(b)为3×3盲元检测窗口。Figure 2 is a schematic diagram of blind element detection. Among them, Fig. 2(a) is a schematic diagram of a k-frame motion scene; Fig. 2(b) is a 3×3 blind pixel detection window.
具体实施方式 Detailed ways
下面首先从原理上分析算法的实现过程:The following first analyzes the implementation process of the algorithm in principle:
对红外焦平面阵列采用线性模型进行校正,校正模型为:A linear model is used to correct the infrared focal plane array, and the correction model is:
Yi,j(n)=Gi,j(n)·Xi,j(n)+Oi,j(n) (1)Y i, j (n) = G i, j (n) X i, j (n) + O i, j (n) (1)
其中Yi,j表示校正输出,Xi,j表示原始图像输入,Gi,j表示校正增益,Oi,j表示校正图像偏置。where Y i,j represents the corrected output, Xi ,j represents the original image input, G i,j represents the corrected gain, and O i,j represents the corrected image bias.
对上式两边取期望可得到如下形式的表达式:Taking expectation on both sides of the above formula can get an expression of the following form:
E[Yi,j]=Gi,j(n)·E[Xi,j]+Oi,j(n) (2)E[Y i, j ]=G i,j (n)·E[X i,j ]+O i,j (n) (2)
其中E[]为期望算子,E[Yi,j]为校正输出均值,E[Xi,j]为原始图像输入均值,Where E[] is the expected operator, E[Y i, j ] is the mean value of the corrected output, E[X i, j ] is the mean value of the original image input,
将(1)式与(2)式相减后得到下式:After subtracting formula (1) and formula (2), the following formula is obtained:
Yi,j(n)-E[Yi,j]=Gi,j(n)·(Xi,j(n)-E[Xi,j]) (3)Y i,j (n)-E[Y i,j ]=G i,j (n)·(X i,j (n)-E[X i,j ]) (3)
式(3)与式(1)相比较可以看出,式(3)中增加了E[Xi,j]项,少了偏置项Oi,j。将原算法中对偏置Oi,j的计算估计转化为对输入信号均值E[Xi,j]及校正输出均值E[Yi,j]的计算。如果令zi,j(n)=Yi,j(n)-E[Yi,j],Zi,j(n)=Xi,j(n)-E[Xi,j]那么可得:Comparing formula (3) with formula (1), it can be seen that E[X i, j ] term is added in formula (3), and offset term O i, j is missing. The calculation and estimation of the offset O i, j in the original algorithm is transformed into the calculation of the input signal mean value E[X i, j ] and the corrected output mean value E[Y i, j ]. If z i,j (n)=Y i,j (n)-E[Y i,j ], Zi ,j (n)=X i,j (n)-E[X i,j ] then Available:
zi,j(n)=Gi,j(n)·Zi,j(n) (4)z i, j (n) = G i, j (n) Z i, j (n) (4)
(4)式中已不再含有低频的空间噪声,此时再用神经网络方法即可对由增益非均匀性引起的高频空间噪声进行校正。校正输出为:Equation (4) no longer contains low-frequency spatial noise, and then the neural network method can be used to correct the high-frequency spatial noise caused by gain non-uniformity. The corrected output is:
Yi,j(n)=Gi,j(n)·(Xi,j(n)-E[Xi,j])+E[Yi,j] (5)Y i,j (n)=G i,j (n)·(X i,j (n)-E[X i,j ])+E[Y i,j ] (5)
下面进一步讨论输入信号均值E[Xi,j]和校正输出均值E[Yi,j]的计算。The calculation of the input signal mean value E[X i,j ] and the corrected output mean value E[Y i,j ] is further discussed below.
由于图像序列的时间相关性,利用前n帧原始图像的灰度均值作为红外焦平面阵列时域平均输入值。用Xi,j,k表示第K帧图像的(i,j)像素原始值,用Xi,j表示红外焦平面阵列的第(i,j)像素的时间平均输入,则:
由于原始图像的Xi,j在空间上的相关性将随着累积帧数的增加而不断增强,因此可以用Xi,j的空域均值X来代替第(i,j)像素的校正平均输出E[Yi,j]:即Since the spatial correlation of Xi , j of the original image will continue to increase as the number of accumulated frames increases, the spatial mean X of Xi, j can be used to replace the corrected average output of the (i, j)th pixel E[Y i, j ]: namely
M、N为焦平面阵列行数和列数。M and N are the number of rows and columns of the focal plane array.
将(6)式和(7)式代入(5)式得到最终的校正输出为:Substitute (6) and (7) into (5) to get the final corrected output:
Yi,j(n)=Gi,j(n)·(Xi,j(n)-Xi,j)+X (8)Y i,j (n)=G i,j (n)·(X i,j (n)-X i,j )+X (8)
其中Xi,j和X分别为(6)式和(7)式计算的结果。Among them, Xi , j and X are the calculation results of formula (6) and formula (7) respectively.
以下针对附图和实例对本发明的实施进行具体描述,图1为本发明校正方法流程示意图,具体包括以下步骤:初始化、盲元检测及补偿、场景统计以及神经网络校正。The following describes the implementation of the present invention in detail with reference to the accompanying drawings and examples. Figure 1 is a schematic flow chart of the correction method of the present invention, which specifically includes the following steps: initialization, blind element detection and compensation, scene statistics, and neural network correction.
(1)初始化过程(1) Initialization process
首先进行初始化,初始化图像二维矩阵及参数。初始化各个像素的增益校正系数G为全1矩阵,盲元存储矩阵为全0矩阵,时域输入均值矩阵为全0矩阵,空域输出均值为0,待校正原始图像序列号frame=1,误差阈值th=0.2,设定用于盲元检测计算的原始图像帧数k为自然数。Initialize first, initialize the image two-dimensional matrix and parameters. Initialize the gain correction coefficient G of each pixel as a matrix of all 1s, the storage matrix of blind elements is a matrix of all 0s, the mean value matrix of the time domain input is a matrix of all 0s, the mean value of the spatial domain output is 0, the sequence number of the original image to be corrected is frame=1, and the error threshold is th=0.2, set the original image frame number k used for blind element detection calculation as a natural number.
(2)盲元检测及补偿(2) Blind element detection and compensation
根据图像像素灰度值计算像素的响应率,以响应率为中心,对确定窗口内的像素灰度均值进行查询,找出最大和最小的像素灰度值Bmax、Bmin;去掉Bmax、Bmin,计算窗口内剩余像素灰度平均值B,由此确定盲元的位置,并将盲元矩阵相应位置的像素置1;对检测出的盲元位置用盲元像素4邻域均值代替补偿,得到去除盲元的图像。Calculate the response rate of the pixel according to the gray value of the image pixel, take the response rate as the center, query the mean value of the gray value of the pixel in the determined window, find out the maximum and minimum pixel gray value B max , B min ; remove B max , B min , calculate the average gray value B of the remaining pixels in the window, thereby determine the position of the blind element, and set the pixel at the corresponding position of the blind element matrix to 1; replace the detected blind element position with the mean value of the 4 neighborhoods of the blind element pixel Compensation to obtain an image with blind pixels removed.
本发明采用基于场景的实时盲元检测算法对红外焦平面阵列工作过程中产生的随机盲元进行即时检测。采用当前帧及其之前的连续k-1帧图像,对各个像素的灰度值进行时域平均来求解其响应率,并记为Bij。则Bij可表示为:
如图2所示为盲元检测示意图。图中用包含当前帧在内的连续10帧(从n-9帧到n帧)原始图像像素灰度值进行时域平均作为相应像素的响应率。为了提高运算效率,我们采用迭代方法计算Bij:Figure 2 is a schematic diagram of blind element detection. In the figure, the original image pixel gray value of 10 consecutive frames (from frame n-9 to frame n) including the current frame is used for time-domain average as the response rate of the corresponding pixel. In order to improve the operation efficiency, we use an iterative method to calculate B ij :
SumVi,j(n)=SumVi,j(n-1)+Xi,j(n)-Xi,j(n-9)SumV i,j (n)=SumV i,j (n-1)+X i,j (n)-X i,j (n-9)
再利用基于场景的实时盲元检测算法对得到的响应率进行盲元检测,并将盲元矩阵相应位置的元素置为1。Then use the scene-based real-time blind element detection algorithm to perform blind element detection on the obtained response rate, and set the element at the corresponding position of the blind element matrix to 1.
其盲元检测过程如下:The blind element detection process is as follows:
(a)以响应率Bij为中心,对(2h+1)×(2h+1)窗口内的像素灰度均值进行查询,找出最大和最小的像素灰度值Bmax、Bmin。(a) Take the response rate B ij as the center, query the average pixel gray value in the (2h+1)×(2h+1) window, and find out the maximum and minimum pixel gray value B max , B min .
(b)在窗口内去掉Bmax、Bmin,并求出窗口内剩余像素灰度的平均值B,即
(c)比较Bmax、Bmin与B差的百分比,即令
(d)盲元补偿。对当前帧原始图像中检测出的盲元位置用盲元像素4邻域均值来代替补偿,得到去除盲元的图像。(d) Blind element compensation. The blind pixel position detected in the original image of the current frame is replaced by the blind pixel pixel 4-neighborhood mean value for compensation, and the image with the blind pixel removed is obtained.
(2)场景统计步骤(2) Scene statistics steps
采用场景统计法对图像偏置进行非均匀性校正,其目的是根据原始图像的时域均值计算原始图像输入均值E[Xi,j],及校正输出均值E[Yi,j],得到不包含低频空间噪声的各像素的灰度值Zi,j(n)。Using the scene statistics method to correct the non-uniformity of the image bias, the purpose is to calculate the original image input mean value E[X i, j ] and the corrected output mean value E[Y i, j ] according to the time domain mean value of the original image, and obtain The gray value Z i,j (n) of each pixel that does not contain low-frequency spatial noise.
由于图像序列存在时间相关性,利用前n帧原始图像灰度值的时域均值作为红外焦平面阵列(IRFPA)的平均输入。红外焦平面阵列第(i,j)像素在时间上的平均输入由公式(6)给出。Due to the temporal correlation of the image sequence, the time domain mean value of the original image gray value of the previous n frames is used as the average input of the infrared focal plane array (IRFPA). The time-average input of the (i, j)th pixel of the infrared focal plane array is given by formula (6).
为了提高运算效率和占用较少的存储空间,本发明采用一种递归的方式进行计算原始图像输入均值E[Xi,j],即:In order to improve computing efficiency and occupy less storage space, the present invention uses a recursive method to calculate the original image input mean E[X i, j ], namely:
由图像在空间上的相关性可以计算出红外焦平面阵列像素的平均输出即校正输出均值E[Yi,j]:The average output of the infrared focal plane array pixels, that is, the corrected output mean E[Y i, j ], can be calculated from the spatial correlation of the image:
当前帧的原始图像Xi,j(n)减去红外焦平面阵列第(i,j)像素在时间上的平均输入Xi,j(原始图像输入均值E[Xi,j]),便可得到不含低频空间噪声的各像素灰度值Zi,j(n)。The original image X i, j (n) of the current frame subtracts the average input X i, j (original image input mean value E[X i, j ]) of the pixel (i, j) of the infrared focal plane array in time, then The gray value Z i,j (n) of each pixel without low-frequency spatial noise can be obtained.
Zi,j(n)=Xi,j(n)-Xi,j Z i,j (n)=X i,j (n)-X i,j
(4)神经网络校正(4) Neural network correction
采用神经网络校正法对场景统计校正后且不含低频空间噪声的图像进行增益非线性校正。The neural network correction method is used to correct the gain nonlinearity of the scene statistically corrected image without low-frequency spatial noise.
D.A.Scribner等人提出的传统神经网络校正算法只是简单的利用当前像素的4邻域均值来计算其期望值Fi,j(n)。这种方法对场景同一区域内部,计算当前像素的期望值是合理的,但在区域边缘处,利用这种方法计算期望值将存在明显不足。同时,在使用四邻域均值计算当前像素的期望值时,由于参与计算的像素数少,对空间低频噪声大的IRFPA不能获得最接近真实的期望值。为此,本发明采用自适应加权平均滤波器,使用较多的像素参与平均运算,根据校正误差的标准差阈值来判断像素的区域,对与中心像素(第i行j列像素)同一区域的像素分配较大的权值,对不同区域的像素分配较小的权值。The traditional neural network correction algorithm proposed by DAScribner et al. simply uses the 4-neighborhood mean of the current pixel to calculate its expected value F i, j (n). This method is reasonable to calculate the expected value of the current pixel inside the same area of the scene, but at the edge of the area, using this method to calculate the expected value will have obvious shortcomings. At the same time, when using the four-neighborhood mean to calculate the expected value of the current pixel, due to the small number of pixels involved in the calculation, the IRFPA with large spatial low-frequency noise cannot obtain the closest to the real expected value. For this reason, the present invention adopts the self-adaptive weighted average filter, uses more pixels to participate in the average operation, judges the area of the pixel according to the standard deviation threshold value of the correction error, for the same area as the central pixel (i-th row j column pixel) Pixels are assigned larger weights, and pixels in different regions are assigned smaller weights.
对于以第ij像素为中心的(2h+1)滤波窗口内的像素pq,其权值由下式确定:For the pixel pq within the (2h+1) filter window centered on the ijth pixel, its weight is determined by the following formula:
η为权值系数。η is the weight coefficient.
加权滤波器的输出即为期望值Fi,j(n):The output of the weighted filter is the expected value F i,j (n):
求得期望值Fi,j(n)后,再利用下式进行逐帧迭代校正:After obtaining the expected value F i, j (n), use the following formula to perform iterative correction frame by frame:
Yi,j(n)=Gi,j(n)·Zi,j(n)+XY i,j (n)=G i,j (n) Z i,j (n)+X
Gi,j(n)=Gi,j(n-1)-2λZi,j(n)·(Zi,j(n)-Fi,j(n))G i,j (n)=G i,j (n-1)-2λZ i,j (n)·(Z i,j (n)-F i,j (n))
其中Yi,j(n)为第n帧校正输出,Gi,j(n)为第n帧增益校正系数,λ为迭代步长。Among them, Y i, j (n) is the correction output of the nth frame, G i, j (n) is the gain correction coefficient of the nth frame, and λ is the iteration step size.
对于以像素i,j为中心的3×3滤波窗口内的像素pq,其4邻域权值(W1代表像素i-1,j的权值,称上权值;W2代表像素i+1,j的权值,称下权值;W3代表像素i,j-1的权值,称左权值;W4代表像素i,j+1的权值,称右权值)由下式确定:For the pixel pq in the 3×3 filter window centered on pixel i, j, its 4 neighborhood weights (W1 represents the weight of pixel i-1, j, called the weight; W2 represents the pixel i+1, The weight of j is called the lower weight; W3 represents the weight of pixel i, j-1, which is called the left weight; W4 represents the weight of pixel i, j+1, which is called the right weight) is determined by the following formula:
η为权值系数。η is the weight coefficient.
加权滤波器的输出即为期望值Fi,j(n):The output of the weighted filter is the expected value F i,j (n):
求得期望值Fi,j(n)后,再利用下式进行逐帧迭代校正:After obtaining the expected value F i, j (n), use the following formula to perform iterative correction frame by frame:
Yi,j(n)=Gi,j(n)·Zi,j(n)+XY i,j (n)=G i,j (n) Z i,j (n)+X
Gi,j(n)=Gi,j(n-1)-2λZi,j(n)·(Zi,j(n)-Fi,j(n))G i,j (n)=G i,j (n-1)-2λZ i,j (n)·(Z i,j (n)-F i,j (n))
其中Yi,j(n)为第n帧校正输出,Gi,j(n)为第n帧增益校正系数,λ为迭代步长。Among them, Y i, j (n) is the correction output of the nth frame, G i, j (n) is the gain correction coefficient of the nth frame, and λ is the iteration step size.
传统的神经网络校正方法采用原始图像计算期望信号,本发明的神经网络校正中采用校正输出图像计算期望信号,而且还增加了当前像素用于期望估计,并且采用自适应加权滤波的方法计算期望值,因而本发明能够有效地克服传统神经网络校正存在的目标退化、鬼影等缺陷。本发明提出的基于场景统计和神经网络校正相结合的方法与一点校正和神经网络相结合的方法都能够很好地消除空间低频噪声。但当图像背景不断变化时,一点校正与神经网络相结合的方法就会因为初始采样背景图像与运动背景图像存在差异而使校正效果变差,当这种误差增加时,校正误差也随之增加,甚至目标会被淹没在背景中。本发明基于场景统计和神经网络相结合的校正方法,是利用场景相关性不断地进行统计,实时地更新背景图像。在场景连续变化的实时校正中,本发明的方法校正效果好,抑制了目标退化和鬼影,背景图像的变化对校正效果几乎没有影响。The traditional neural network correction method uses the original image to calculate the expected signal. In the neural network correction of the present invention, the corrected output image is used to calculate the expected signal, and the current pixel is added for the expected estimation, and the expected value is calculated by adaptive weighted filtering method. Therefore, the present invention can effectively overcome defects such as target degeneration and ghost images existing in traditional neural network correction. Both the method based on the combination of scene statistics and neural network correction proposed by the present invention and the method of combining one-point correction and neural network can eliminate spatial low-frequency noise well. However, when the image background is constantly changing, the method of combining one-point correction with neural network will make the correction effect worse because of the difference between the initial sampling background image and the moving background image. When this error increases, the correction error will also increase. , and even the target will be submerged in the background. The correction method of the present invention is based on the combination of scene statistics and neural network, uses the scene correlation to continuously carry out statistics, and updates the background image in real time. In the real-time correction of continuously changing scenes, the method of the invention has a good correction effect, suppresses target degradation and ghost images, and the change of the background image has almost no influence on the correction effect.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101045511A CN101666682B (en) | 2009-08-06 | 2009-08-06 | Neural network non-uniformity correction method based on scene statistics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101045511A CN101666682B (en) | 2009-08-06 | 2009-08-06 | Neural network non-uniformity correction method based on scene statistics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101666682A CN101666682A (en) | 2010-03-10 |
CN101666682B true CN101666682B (en) | 2012-05-30 |
Family
ID=41803397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101045511A Expired - Fee Related CN101666682B (en) | 2009-08-06 | 2009-08-06 | Neural network non-uniformity correction method based on scene statistics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101666682B (en) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102230823B (en) * | 2011-06-20 | 2012-12-26 | 北京理工大学 | Infrared two-point non-uniform calibrating method based on frame black body field diaphragm |
CN102410880B (en) * | 2011-08-05 | 2013-06-19 | 重庆邮电大学 | Infrared focal plane array blind pixel detection method based on integral time adjustment |
CN102538973B (en) * | 2011-12-31 | 2014-04-02 | 南京理工大学 | Rapidly converged scene-based non-uniformity correction method |
CN103491318B (en) * | 2013-09-25 | 2017-04-26 | 海视英科光电(苏州)有限公司 | Image correction method and system of infrared focal plane detector |
CN105318971B (en) * | 2014-07-07 | 2018-09-04 | 南京理工大学 | The adaptive nonuniformity correction method of image registration is used to infrared video sequence |
CN104457998B (en) * | 2014-12-30 | 2017-08-29 | 合肥金星机电科技发展有限公司 | Infrared measurement of temperature data processing method |
CN104867122B (en) * | 2015-05-29 | 2017-08-01 | 北京理工大学 | A Cascade Processing Method of Infrared Adaptive Non-uniformity Correction and Detail Enhancement |
CN105160657B (en) * | 2015-08-05 | 2018-01-30 | 西安电子科技大学 | Infrared imaging Nonuniformity Correction system based on FPGA |
CN105333960A (en) * | 2015-11-23 | 2016-02-17 | 中国科学院长春光学精密机械与物理研究所 | Non-uniformity correction and blind pixel replacement method and device of infrared focal plane detector |
CN105628337A (en) * | 2016-03-18 | 2016-06-01 | 烟台艾睿光电科技有限公司 | Infrared detector blind pixel detection system and method |
CN106373094B (en) * | 2016-08-25 | 2017-11-07 | 中国科学院长春光学精密机械与物理研究所 | The asymmetric correction method and device of a kind of infrared image |
CN106525245B (en) * | 2016-11-03 | 2018-10-30 | 浙江大学 | A kind of detection of quick sequential blind element and bearing calibration based on three Grads threshold |
CN108805853A (en) * | 2017-04-28 | 2018-11-13 | 武汉多谱多勒科技有限公司 | A kind of infrared image blind pixel detection method |
CN107490436A (en) * | 2017-08-10 | 2017-12-19 | 成都市晶林科技有限公司 | A kind of infrared temperature measurement system atmospheric transmissivity bearing calibration |
CN108663122B (en) * | 2018-05-29 | 2020-04-10 | 中国科学院光电技术研究所 | Infrared focal plane array non-uniformity correction method adaptive to integration time dynamic adjustment based on neural network |
CN109191389A (en) * | 2018-07-31 | 2019-01-11 | 浙江杭钢健康产业投资管理有限公司 | A kind of x-ray image adaptive local Enhancement Method |
CN110873606B (en) * | 2018-08-29 | 2021-09-28 | 浙江宇视科技有限公司 | Non-uniformity correction method and device |
CN109712079A (en) * | 2018-10-19 | 2019-05-03 | 中国人民解放军海军工程大学 | Blind element correction method and device |
CN109934790A (en) * | 2019-03-27 | 2019-06-25 | 北京理工大学 | Nonuniformity Correction Method for Infrared Imaging System with Adaptive Threshold |
CN110428466B (en) * | 2019-07-16 | 2022-02-18 | 浙江大华技术股份有限公司 | Method and equipment for correcting nonuniformity |
CN110782403A (en) * | 2019-10-09 | 2020-02-11 | 天津大学 | Infrared image non-uniformity correction method |
CN110826503B (en) * | 2019-11-08 | 2023-04-18 | 山东科技大学 | Closed pipeline human body detection method and system based on multi-sensor information fusion |
CN111272290B (en) * | 2020-03-13 | 2022-07-19 | 西北工业大学 | Temperature measurement thermal infrared imager calibration method and device based on deep neural network |
CN111968066B (en) * | 2020-08-27 | 2023-01-10 | 烟台艾睿光电科技有限公司 | Infrared image correction method, device and equipment and refrigeration infrared imaging system |
CN112945897B (en) * | 2021-01-26 | 2023-04-07 | 广东省科学院智能制造研究所 | Continuous terahertz image non-uniformity correction method |
CN113379636B (en) * | 2021-06-21 | 2024-05-03 | 苏州睿新微系统技术有限公司 | Infrared image non-uniformity correction method, device, equipment and storage medium |
CN119380001B (en) * | 2024-12-25 | 2025-04-18 | 西安电子科技大学 | A UAV detection method and system combined with infrared non-uniform deviation field correction |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038209A (en) * | 2007-04-19 | 2007-09-19 | 华中科技大学 | Infrared focal plane array heterogeneity self-adaptive correction method |
CN101056353A (en) * | 2007-04-19 | 2007-10-17 | 华中科技大学 | Infrared focal plane asymmetric correction method based on the motion detection guidance |
-
2009
- 2009-08-06 CN CN2009101045511A patent/CN101666682B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038209A (en) * | 2007-04-19 | 2007-09-19 | 华中科技大学 | Infrared focal plane array heterogeneity self-adaptive correction method |
CN101056353A (en) * | 2007-04-19 | 2007-10-17 | 华中科技大学 | Infrared focal plane asymmetric correction method based on the motion detection guidance |
Non-Patent Citations (4)
Title |
---|
代少升.红外焦平面阵列非均匀性非线性校正新方法.《光电工程》.2008,第35卷(第4期),第121-125页. * |
代少升等.一种新的红外焦平面阵列盲元处理算法.《压电与声光》.2008,第30卷(第3期),第376-378页. * |
李庆等.一种改进的神经网络红外焦平面阵列非均匀性校正算法.《光电技术应用》.2006,第27卷(第6期),第774-776页. * |
牛照东等.场景统计类红外图像非均匀性校正算法研究.《红外与激光工程》.2005,第34卷(第3期),第261-265页. * |
Also Published As
Publication number | Publication date |
---|---|
CN101666682A (en) | 2010-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101666682B (en) | Neural network non-uniformity correction method based on scene statistics | |
Zuo et al. | New temporal high-pass filter nonuniformity correction based on bilateral filter | |
CN110211056B (en) | Adaptive infrared image stripping algorithm based on local median histogram | |
CN109272520B (en) | An adaptive infrared focal plane non-uniformity correction method based on joint motion guidance and edge detection | |
CN109741267B (en) | Infrared image non-uniformity correction method based on trilateral filtering and neural network | |
CN101980282B (en) | Infrared image dynamic detail enhancement method | |
CN103335724B (en) | Calibration-based scene self-adaption IRFPA heterogeneity correction method | |
CN102968765B (en) | Method for correcting infrared focal plane heterogeneity based on sigma filter | |
CN106525245B (en) | A kind of detection of quick sequential blind element and bearing calibration based on three Grads threshold | |
CN104917936B (en) | One kind is based on the relevant time domain high pass asymmetric correction method of gray scale | |
CN100433793C (en) | Infrared focal plane asymmetric correction method based on the motion detection guidance | |
CN102778296B (en) | Total variation-based self-adaptation non-uniformity correction method for infrared focal plane | |
CN102968776B (en) | Linear filter and non-linear filter combined heterogeneity correction method | |
Wang | Stripe noise removal for infrared image by minimizing difference between columns | |
CN111145115B (en) | Non-uniform correction method based on scene adaptation and hardware implementation device thereof | |
CN105160657B (en) | Infrared imaging Nonuniformity Correction system based on FPGA | |
CN103335716A (en) | Area array infrared camera calibration and non-uniformity correction method based on variable integration time | |
CN103076096A (en) | Infrared nonuniformity correcting algorithm based on mid-value histogram balance | |
CN102779332A (en) | Nonlinear-fitting infrared non-uniform correction method based on time-domain Kalman filtering correction | |
CN105931203A (en) | Infrared image stripe filtering method based on statistical relative stripe removal method | |
WO2019183843A1 (en) | Interframe registration and adaptive step size-based non-uniformity correction method for infrared image | |
CN105547490A (en) | Real-time blind pixel detection method of digital TDI infrared detector | |
CN111080561A (en) | Time domain high-pass filtering method | |
CN104599261A (en) | Equalization histogram neural network heterogeneity correcting method for short wave infrared focal plane | |
CN103868601B (en) | The bilateral full variational regularization bearing calibration of the non-homogeneous response of IRFPA detector |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120530 Termination date: 20180806 |