CN112945897B - Continuous terahertz image non-uniformity correction method - Google Patents

Continuous terahertz image non-uniformity correction method Download PDF

Info

Publication number
CN112945897B
CN112945897B CN202110102378.2A CN202110102378A CN112945897B CN 112945897 B CN112945897 B CN 112945897B CN 202110102378 A CN202110102378 A CN 202110102378A CN 112945897 B CN112945897 B CN 112945897B
Authority
CN
China
Prior art keywords
image
terahertz
intensity
continuous
lstm network
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
CN202110102378.2A
Other languages
Chinese (zh)
Other versions
CN112945897A (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.)
Institute of Intelligent Manufacturing of Guangdong Academy of Sciences
Original Assignee
Institute of Intelligent Manufacturing of Guangdong Academy of Sciences
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 Institute of Intelligent Manufacturing of Guangdong Academy of Sciences filed Critical Institute of Intelligent Manufacturing of Guangdong Academy of Sciences
Priority to CN202110102378.2A priority Critical patent/CN112945897B/en
Publication of CN112945897A publication Critical patent/CN112945897A/en
Application granted granted Critical
Publication of CN112945897B publication Critical patent/CN112945897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/3581Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using far infrared light; using Terahertz radiation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N2021/1765Method using an image detector and processing of image signal
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2201/00Features of devices classified in G01N21/00
    • G01N2201/12Circuits of general importance; Signal processing
    • G01N2201/127Calibration; base line adjustment; drift compensation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P70/00Climate change mitigation technologies in the production process for final industrial or consumer products
    • Y02P70/50Manufacturing or production processes characterised by the final manufactured product

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Toxicology (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种连续太赫兹图像非均匀性校正方法,涉及太赫兹成像技术领域,所述方法将连续太赫兹探测器像元产生的太赫兹强度信号看作时序信号,利用LSTM网络对时序信号的预测能力,依据像元探测产生的部分太赫兹强度信号预测接下来的太赫兹强度信号,预测数据即当前太赫兹图像对应的非均匀性背景数据,最后利用预测数据对当前图像进行旋转平移式的非均匀性校正。本发明无需增加额外的硬件设备,无需中断探测器的正常工作,无需重复大量复杂的统计计算和相关信息计算分析;本发明利用了LSTM网络对时序信号的预测功能,克服了环境波动带来的影响,泛化能力强,提高了连续太赫兹图像的信噪比。

Figure 202110102378

The invention discloses a continuous terahertz image non-uniformity correction method, which relates to the technical field of terahertz imaging. The method regards the terahertz intensity signal generated by the continuous terahertz detector pixel as a time series signal, and utilizes the LSTM network to analyze the time series The prediction ability of the signal, according to the part of the terahertz intensity signal generated by the pixel detection, predicts the next terahertz intensity signal, the prediction data is the non-uniform background data corresponding to the current terahertz image, and finally uses the prediction data to rotate and translate the current image Formula non-uniformity correction. The invention does not need to add additional hardware equipment, interrupt the normal operation of the detector, and repeat a large number of complicated statistical calculations and related information calculation and analysis; the invention utilizes the prediction function of the LSTM network for time series signals, and overcomes the impact caused by environmental fluctuations. Influence, generalization ability is strong, and the signal-to-noise ratio of continuous terahertz images is improved.

Figure 202110102378

Description

一种连续太赫兹图像非均匀性校正方法A method for non-uniformity correction of continuous terahertz images

技术领域Technical Field

本发明涉及太赫兹成像技术领域,尤其是涉及一种连续太赫兹图像非均匀性校正方法。The invention relates to the technical field of terahertz imaging, and in particular to a method for correcting non-uniformity of continuous terahertz images.

背景技术Background Art

太赫兹成像技术及其应用是太赫兹技术研究的重要方向之一,在无损检测、安检、食药品安全检测、医疗和生物成像等方面有着广泛的应用前景。太赫兹波成像系统的成像质量取决于太赫兹源、太赫兹探测器和成像技术的发展,目前虽然通过改进太赫兹波成像系统硬件得到了图像质量的部分改善,但受限于太赫兹探测器制作工艺、成像光路和工作环境等因素,造成不同像素之间响应度不均匀,甚至出现盲元等一系列问题,因此需要对太赫兹图像进行非均匀性校正处理。Terahertz imaging technology and its application is one of the important research directions of terahertz technology, and has broad application prospects in non-destructive testing, security inspection, food and drug safety testing, medical and biological imaging, etc. The imaging quality of terahertz wave imaging system depends on the development of terahertz source, terahertz detector and imaging technology. Although the image quality has been partially improved by improving the hardware of terahertz wave imaging system, it is limited by factors such as terahertz detector manufacturing process, imaging optical path and working environment, resulting in uneven response between different pixels, and even a series of problems such as blind pixels. Therefore, it is necessary to perform non-uniformity correction processing on terahertz images.

目前,太赫兹图像非均匀性校正方法主要为基于定标的方法和基于场景的方法。基于定标的方法包括一点定标、两点定标和多点定标,然而此三者都需要周期性地中断探测器的工作,用特定功率太赫兹源进行照射,从而进行标定校正。基于场景的方法利用采集到的图像估计探测器的校正系数,如时域高通滤波器法、神经网络校正法等。基于场景的方法利用多场景中的成像信息,能够有效地估计实际场景下的校正参数,不需要重新定标,但场景发生变化时,会残留固定模式噪声,影响成像质量。At present, the main methods for terahertz image non-uniformity correction are calibration-based methods and scene-based methods. Calibration-based methods include one-point calibration, two-point calibration and multi-point calibration. However, all three methods require periodic interruption of the detector and irradiation with a specific power terahertz source for calibration correction. The scene-based method uses the collected image to estimate the correction coefficient of the detector, such as the time domain high-pass filter method, the neural network correction method, etc. The scene-based method uses the imaging information in multiple scenes and can effectively estimate the correction parameters in the actual scene without recalibration. However, when the scene changes, fixed pattern noise will remain, affecting the imaging quality.

为了克服以上技术问题,亟需提出一种新的校正方法,针对连续太赫兹探测器的非均匀性问题,进行非均匀性校正处理,进而更好地实现太赫兹成像效果。In order to overcome the above technical problems, it is urgent to propose a new correction method to perform non-uniformity correction processing on the non-uniformity problem of continuous terahertz detectors, so as to better achieve terahertz imaging effects.

发明内容Summary of the invention

有鉴于此,有必要针对上述的问题,提供一种连续太赫兹图像非均匀性校正方法,将连续太赫兹探测器像元产生的太赫兹强度信号看作时序信号,利用LSTM网络对时序信号的预测能力,依据像元探测产生的部分太赫兹强度信号预测接下来的太赫兹强度信号,预测数据即当前太赫兹图像对应的非均匀性背景数据,最后利用预测数据对当前图像进行旋转平移式的非均匀性校正。In view of this, it is necessary to provide a method for correcting the non-uniformity of continuous terahertz images to address the above-mentioned problems. The terahertz intensity signal generated by the continuous terahertz detector pixels is regarded as a time series signal. The prediction ability of the LSTM network for time series signals is used to predict the next terahertz intensity signal based on the partial terahertz intensity signal generated by the pixel detection. The predicted data is the non-uniform background data corresponding to the current terahertz image. Finally, the predicted data is used to perform rotational and translational non-uniformity correction on the current image.

为实现上述目的,本发明是根据以下技术方案实现的:To achieve the above object, the present invention is implemented according to the following technical solutions:

一种连续太赫兹图像非均匀性校正方法,包括以下步骤:A method for correcting non-uniformity of continuous terahertz images comprises the following steps:

步骤S1:利用连续太赫兹成像系统采集无检测对象情况下的非均匀性太赫兹强度图像,构建背景图像样本集y;采集关闭太赫兹源时的太赫兹强度图像,构成图像样本集z,样本集z的个数为M;集合y与z中的图像大小均为m×n,其中m为连续太赫兹探测器成像单元个数即单幅图像的行数,n为单幅图像的列数;Step S1: using a continuous terahertz imaging system to collect non-uniform terahertz intensity images without a detection object, constructing a background image sample set y; collecting terahertz intensity images when the terahertz source is turned off, forming an image sample set z, the number of sample sets z is M; the image sizes in sets y and z are both m×n, where m is the number of continuous terahertz detector imaging units, i.e., the number of rows of a single image, and n is the number of columns of a single image;

步骤S2:对连续太赫兹探测器各成像单元构建LSTM网络模型,共计m个LSTM网络模型;Step S2: constructing an LSTM network model for each imaging unit of the continuous terahertz detector, with a total of m LSTM network models;

步骤S3:以背景样本图像集y中各图像第i行前n1个强度数据为输入,第i行后n-n1个强度数据为期望值,对第i个LSTM网络模型进行训练;重复上述步骤,直至完成连续太赫兹探测器m个像素对应的LSTM网络模型训练;Step S3: Taking the first n 1 intensity data of the i-th row of each image in the background sample image set y as input and the n 1 intensity data after the i-th row as expected values, the i-th LSTM network model is trained; repeat the above steps until the LSTM network model training corresponding to the m pixels of the continuous terahertz detector is completed;

步骤S4:对尺寸为m×n的待非均匀性校正图像x,取第i行前n1个强度数据作为训练后的第i个LSTM网络模型的输入,预测生成n-n1个强度数据;Step S4: for the image x to be non-uniformity corrected with a size of m×n, take the first n 1 intensity data of the i-th row as the input of the trained i-th LSTM network model, and predict and generate n 1 intensity data;

步骤S5:对图像x的各行重复步骤S4,生成m×(n-n1)预测强度图像,并将图像x前m×n1图像和预测生成的m×(n-n1)预测图像合并为m×n大小的图像

Figure GDA0003782636840000021
Step S5: Repeat step S4 for each row of image x to generate an m×(nn 1 ) predicted intensity image, and merge the m×n 1 image before image x and the predicted m×(nn 1 ) predicted image into an m×n image.
Figure GDA0003782636840000021

步骤S6:对图像

Figure GDA0003782636840000022
第i行进行均值计算,得到均值
Figure GDA0003782636840000023
Step S6: Image
Figure GDA0003782636840000022
The mean is calculated for the i-th row, and the mean is obtained.
Figure GDA0003782636840000023

步骤S7:对图像样本集z,计算太赫兹探测器第i个成像单元的偏置参数

Figure GDA0003782636840000024
计算公式为:Step S7: For the image sample set z, calculate the bias parameter of the i-th imaging unit of the terahertz detector
Figure GDA0003782636840000024
The calculation formula is:

Figure GDA0003782636840000025
Figure GDA0003782636840000025

其中,zkij为第k个图像第i行第j列强度值;Where z kij is the intensity value of the i-th row and j-th column of the k-th image;

步骤S8:对图像x各像素xij进行非均匀性校正,校正公式为:Step S8: Perform non-uniformity correction on each pixel xij of the image x, and the correction formula is:

Figure GDA0003782636840000031
Figure GDA0003782636840000031

其中,

Figure GDA0003782636840000032
为像素值xij校正后的值,各像素校正后构成校正后图像
Figure GDA0003782636840000033
in,
Figure GDA0003782636840000032
is the corrected value of the pixel value x ij , and each pixel after correction constitutes the corrected image
Figure GDA0003782636840000033

与现有技术相比,本发明的优点和积极效果是:Compared with the prior art, the advantages and positive effects of the present invention are:

本发明提出的方法较基于定标的非均匀性校正方法无需增加额外的硬件设备,无需中断正常工作;较基于场景的非均匀性校正方法,无需重复大量复杂的统计计算和相关信息计算分析。Compared with the non-uniformity correction method based on calibration, the method proposed by the present invention does not need to add additional hardware equipment and does not need to interrupt normal work; compared with the non-uniformity correction method based on scene, it does not need to repeat a large number of complex statistical calculations and related information calculation and analysis.

本发明提出的方法利用了LSTM网络对时序信号的预测功能,实现基于待校正图像部分像素预测接下来的非均匀性背景。本发明所述方法能对应生成当前图像对应的非均匀性背景,克服了环境波动带来的影响,泛化能力强,且本发明所述的非均匀性校正方法提高了连续太赫兹图像的信噪比,为连续太赫兹波图像应用提供了可靠的图像分析来源,扩大了太赫兹成像系统的应用范围。The method proposed in the present invention utilizes the prediction function of the LSTM network for time series signals to predict the next non-uniform background based on the partial pixels of the image to be corrected. The method described in the present invention can generate the non-uniform background corresponding to the current image, overcome the influence of environmental fluctuations, and has strong generalization ability. In addition, the non-uniformity correction method described in the present invention improves the signal-to-noise ratio of continuous terahertz images, provides a reliable image analysis source for the application of continuous terahertz wave images, and expands the application range of terahertz imaging systems.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1为本发明连续太赫兹图像非均匀性校正方法流程示意图。FIG1 is a schematic flow chart of a method for correcting non-uniformity of continuous terahertz images according to the present invention.

具体实施方式DETAILED DESCRIPTION

为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合附图和具体的实施例对本发明的技术方案进行详细说明。需要指出的是,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be pointed out that the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

实施例1Example 1

如图1所示,本发明针对连续太赫兹探测器的非均匀性问题,提出基于长短期记忆神经(LSTM)网络的动态非均匀性校正方法。本发明所述方法将连续太赫兹探测器像元产生的太赫兹强度信号看作时序信号,利用LSTM网络对时序信号的预测能力,依据像元探测产生的部分太赫兹强度信号预测接下来的太赫兹强度信号,预测数据即当前太赫兹图像对应的非均匀性背景数据,最后利用预测数据对当前图像进行旋转平移式的非均匀性校正。As shown in Figure 1, the present invention proposes a dynamic non-uniformity correction method based on a long short-term memory neural (LSTM) network to address the non-uniformity problem of continuous terahertz detectors. The method of the present invention regards the terahertz intensity signal generated by the pixels of the continuous terahertz detector as a time series signal, and uses the LSTM network's ability to predict time series signals to predict the next terahertz intensity signal based on the partial terahertz intensity signal generated by the pixel detection. The predicted data is the non-uniform background data corresponding to the current terahertz image, and finally the predicted data is used to perform rotational translational non-uniformity correction on the current image.

本发明的技术方案首先利用连续太赫兹成像系统采集无检测对象情况下的非均匀性太赫兹强度图像,构建图像样本集y;关闭太赫兹源时的太赫兹强度图像,构成图像样本集z,集合y与z中的图像大小均为m×n。再对太赫兹探测器各成像单元构建长短期记忆神经网络模型,并利用图像集合y对其进行训练。训练过程中,取y中某幅强度图像的第i行的前n1个强度数据为第i个LSTM网络的输入,后n-n1个强度数据为期望输出。再对训练好的m个LSTM网络输入待校正强度图像x的前n1列数据,预测生成n-n1列太赫兹强度值,并将预测生成强度数据与前n1列强度数据合并为m×n大小图像

Figure GDA0003782636840000041
该图像为待校正图像x对应的非均匀性背景图像。再计算图像
Figure GDA0003782636840000042
第i行强度数据的均值
Figure GDA0003782636840000043
Figure GDA0003782636840000044
作为成像单元的增益校正系数。再对图像样本集x中强度图像按行进行均值计算,均值结果
Figure GDA0003782636840000045
作为第i个成像单元的偏置校正系数。最后利用校正公式对待校正强度图像x中像素xij进行校正。The technical solution of the present invention first uses a continuous terahertz imaging system to collect non-uniform terahertz intensity images in the absence of a detection object, and constructs an image sample set y; the terahertz intensity image when the terahertz source is turned off constitutes an image sample set z, and the image sizes in sets y and z are both m×n. Then, a long short-term memory neural network model is constructed for each imaging unit of the terahertz detector, and it is trained using the image set y. During the training process, the first n1 intensity data of the i-th row of an intensity image in y are taken as the input of the i-th LSTM network, and the last n-n1 intensity data are the expected output. Then, the first n1 columns of data of the intensity image x to be corrected are input into the trained m LSTM networks, and n-n1 columns of terahertz intensity values are predicted and generated, and the predicted intensity data and the first n1 columns of intensity data are merged into an image of size m×n.
Figure GDA0003782636840000041
This image is the non-uniform background image corresponding to the image to be corrected x. Then calculate the image
Figure GDA0003782636840000042
The mean of the intensity data in the i-th row
Figure GDA0003782636840000043
Figure GDA0003782636840000044
As the gain correction coefficient of the imaging unit. Then the intensity image in the image sample set x is averaged by row, and the average result is
Figure GDA0003782636840000045
As the bias correction coefficient of the i-th imaging unit. Finally, the correction formula is used to correct the pixel xij in the intensity image x to be corrected.

具体地,本发明所述连续太赫兹图像非均匀性校正方法,包括以下步骤:Specifically, the continuous terahertz image non-uniformity correction method of the present invention comprises the following steps:

步骤S1:利用连续太赫兹成像系统采集无检测对象情况下的非均匀性太赫兹强度图像,构建背景图像样本集y;采集关闭太赫兹源时的太赫兹强度图像,构成图像样本集z,样本集z的个数为M;集合y与z中的图像大小均为m×n,其中m为连续太赫兹探测器成像单元个数即单幅图像的行数,n为单幅图像的列数;Step S1: using a continuous terahertz imaging system to collect non-uniform terahertz intensity images without a detection object, constructing a background image sample set y; collecting terahertz intensity images when the terahertz source is turned off, forming an image sample set z, the number of sample sets z is M; the image sizes in sets y and z are both m×n, where m is the number of imaging units of the continuous terahertz detector, that is, the number of rows of a single image, and n is the number of columns of a single image;

步骤S2:对连续太赫兹探测器各成像单元构建LSTM网络模型,共计m个LSTM网络模型;Step S2: constructing an LSTM network model for each imaging unit of the continuous terahertz detector, with a total of m LSTM network models;

步骤S3:以背景样本图像集y中各图像第i行前n1个强度数据为输入,第i行后n-n1个强度数据为期望值,对第i个LSTM网络模型进行训练;重复上述步骤,直至完成连续太赫兹探测器m个像素对应的LSTM网络模型训练;Step S3: Taking the first n 1 intensity data of the i-th row of each image in the background sample image set y as input and the n 1 intensity data after the i-th row as expected values, the i-th LSTM network model is trained; repeat the above steps until the LSTM network model training corresponding to the m pixels of the continuous terahertz detector is completed;

步骤S4:对尺寸为m×n的待非均匀性校正图像x,取第i行前n1个强度数据作为训练后的第i个LSTM网络模型的输入,预测生成n-n1个强度数据;Step S4: for the image x to be non-uniformity corrected with a size of m×n, take the first n 1 intensity data of the i-th row as the input of the trained i-th LSTM network model, and predict and generate n 1 intensity data;

步骤S5:对图像x的各行重复步骤S4,生成m×(n-n1)预测强度图像,并将图像x前m×n1图像和预测生成的m×(n-n1)预测图像合并为m×n大小的图像

Figure GDA0003782636840000051
Step S5: Repeat step S4 for each row of image x to generate an m×(nn 1 ) predicted intensity image, and merge the m×n 1 image before image x and the predicted m×(nn 1 ) predicted image into an m×n image.
Figure GDA0003782636840000051

步骤S6:对图像

Figure GDA0003782636840000052
第i行进行均值计算,得到均值
Figure GDA0003782636840000053
Step S6: Image
Figure GDA0003782636840000052
The mean is calculated for the i-th row, and the mean is obtained.
Figure GDA0003782636840000053

步骤S7:对图像样本集z,计算太赫兹探测器第i个成像单元的偏置参数

Figure GDA0003782636840000054
计算公式为:Step S7: For the image sample set z, calculate the bias parameter of the i-th imaging unit of the terahertz detector
Figure GDA0003782636840000054
The calculation formula is:

Figure GDA0003782636840000055
Figure GDA0003782636840000055

其中,zkij为第k个图像第i行第j列强度值;Where z kij is the intensity value of the i-th row and j-th column of the k-th image;

步骤S8:对图像x各像素xij进行非均匀性校正,校正公式为:Step S8: Perform non-uniformity correction on each pixel xij of the image x, and the correction formula is:

Figure GDA0003782636840000056
Figure GDA0003782636840000056

其中,

Figure GDA0003782636840000057
为像素值xij校正后的值,各像素校正后构成校正后图像
Figure GDA0003782636840000058
in,
Figure GDA0003782636840000057
is the corrected value of the pixel value x ij , and each pixel after correction constitutes the corrected image
Figure GDA0003782636840000058

与现有技术相比,本发明提出的方法较基于定标的非均匀性校正方法无需增加额外的硬件设备,无需中断正常工作;较基于场景的非均匀性校正方法,无需重复大量复杂的统计计算和相关信息计算分析。Compared with the prior art, the method proposed in the present invention does not require the addition of additional hardware equipment or interruption of normal operation compared with the calibration-based non-uniformity correction method; and does not require the repetition of a large number of complex statistical calculations and related information calculation and analysis compared with the scene-based non-uniformity correction method.

本发明提出的方法利用了LSTM网络对时序信号的预测功能,实现基于待校正图像部分像素预测接下来的非均匀性背景。本发明所述方法能对应生成当前图像对应的非均匀性背景,克服了环境波动带来的影响,泛化能力强,且本发明所述的非均匀性校正方法提高了连续太赫兹图像的信噪比,为连续太赫兹波图像应用提供了可靠的图像分析来源,扩大了太赫兹成像系统的应用范围。The method proposed in the present invention utilizes the prediction function of the LSTM network for time series signals to predict the next non-uniform background based on the partial pixels of the image to be corrected. The method described in the present invention can generate the non-uniform background corresponding to the current image, overcome the influence of environmental fluctuations, and has strong generalization ability. In addition, the non-uniformity correction method described in the present invention improves the signal-to-noise ratio of continuous terahertz images, provides a reliable image analysis source for the application of continuous terahertz wave images, and expands the application range of terahertz imaging systems.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims (1)

1. A continuous terahertz image non-uniformity correction method is characterized by comprising the following steps:
step S1: acquiring a non-uniform terahertz intensity image under the condition of no detection object by using a continuous terahertz imaging system, and constructing a background image sample set y; collecting terahertz intensity images when a terahertz source is turned off to form an image sample set z, wherein the number of the sample set z is M; the sizes of the images in the sets y and z are both mxn, wherein m is the number of imaging units of the continuous terahertz detector, namely the number of rows of a single image, and n is the number of columns of the single image;
step S2: constructing an LSTM network model for each imaging unit of the continuous terahertz detector, wherein m LSTM network models are constructed;
and step S3: using background sample image to set y image ith row n before 1 The intensity data is input, n-n after the ith line 1 Training the ith LSTM network model with the intensity data as expected values; repeating the steps until the LSTM network model training corresponding to the m imaging units of the continuous terahertz detector is completed;
and step S4: taking the image x to be non-uniformity corrected with the size of m multiplied by n, and taking the n before the ith row 1 Using the intensity data as the input of the ith LSTM network model after training to predict and generate n-n 1 (ii) intensity data;
step S5: repeating step S4 for each line of image x to generate mx (n-n) 1 ) Predicting the intensity image, and moving the image x front by m × n 1 Image and prediction generated mx (n-n) 1 ) Merging of predicted pictures into an mxn sized picture
Figure FDA0003791831340000011
Step S6: for images
Figure FDA0003791831340000012
The ith row carries out the average value calculation to obtain the average value->
Figure FDA0003791831340000013
Step S7: calculating the bias parameter of the ith imaging unit of the terahertz detector for the image sample set z
Figure FDA0003791831340000014
The calculation formula is as follows:
Figure FDA0003791831340000015
wherein z is kij The ith row and the jth column of the kth image are used as the intensity value;
step S8: for each pixel x of the image x ij And carrying out non-uniformity correction, wherein the correction formula is as follows:
Figure FDA0003791831340000016
wherein,
Figure FDA0003791831340000017
is a pixel value x ij The corrected value, corrected for each pixel, constitutes a corrected image->
Figure FDA0003791831340000018
CN202110102378.2A 2021-01-26 2021-01-26 Continuous terahertz image non-uniformity correction method Active CN112945897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110102378.2A CN112945897B (en) 2021-01-26 2021-01-26 Continuous terahertz image non-uniformity correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110102378.2A CN112945897B (en) 2021-01-26 2021-01-26 Continuous terahertz image non-uniformity correction method

Publications (2)

Publication Number Publication Date
CN112945897A CN112945897A (en) 2021-06-11
CN112945897B true CN112945897B (en) 2023-04-07

Family

ID=76236828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110102378.2A Active CN112945897B (en) 2021-01-26 2021-01-26 Continuous terahertz image non-uniformity correction method

Country Status (1)

Country Link
CN (1) CN112945897B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113804758B (en) * 2021-08-10 2024-03-08 广东省科学院智能制造研究所 Magnetic pulse knocker with energy feedback function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101666682A (en) * 2009-08-06 2010-03-10 重庆邮电大学 Neural network nonuniformity correction method based on scene statistics
CN106644078A (en) * 2016-12-30 2017-05-10 电子科技大学 Terahertz image non-uniformity correction method
CN109632693A (en) * 2018-12-10 2019-04-16 昆明理工大学 A kind of tera-hertz spectra recognition methods based on BLSTM-RNN
CN109709624A (en) * 2019-02-27 2019-05-03 中国科学院上海技术物理研究所 A method to determine the flash element of infrared detector based on LSTM model
WO2019183843A1 (en) * 2018-03-28 2019-10-03 西安电子科技大学 Interframe registration and adaptive step size-based non-uniformity correction method for infrared image
WO2019209194A1 (en) * 2018-04-27 2019-10-31 Aselsan Elektroni̇k Sanayi̇ Ve Ti̇caret Anoni̇m Şi̇rketi̇ A method for confident registration-based non-uniformity correction using spatio-temporal update mask

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL173418A (en) * 2006-01-29 2013-10-31 Rafael Advanced Defense Sys Non-uniformity correction of images generated by focal plane arrays of photodetectors
US10929955B2 (en) * 2017-06-05 2021-02-23 Adasky, Ltd. Scene-based nonuniformity correction using a convolutional recurrent neural network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101666682A (en) * 2009-08-06 2010-03-10 重庆邮电大学 Neural network nonuniformity correction method based on scene statistics
CN106644078A (en) * 2016-12-30 2017-05-10 电子科技大学 Terahertz image non-uniformity correction method
WO2019183843A1 (en) * 2018-03-28 2019-10-03 西安电子科技大学 Interframe registration and adaptive step size-based non-uniformity correction method for infrared image
WO2019209194A1 (en) * 2018-04-27 2019-10-31 Aselsan Elektroni̇k Sanayi̇ Ve Ti̇caret Anoni̇m Şi̇rketi̇ A method for confident registration-based non-uniformity correction using spatio-temporal update mask
CN109632693A (en) * 2018-12-10 2019-04-16 昆明理工大学 A kind of tera-hertz spectra recognition methods based on BLSTM-RNN
CN109709624A (en) * 2019-02-27 2019-05-03 中国科学院上海技术物理研究所 A method to determine the flash element of infrared detector based on LSTM model

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A novel infrared focal plane non-uniformity correction method based on co-occurrence fliter and adaptive learning rate;Li Lingxiao et al;《IEEE Access》;20190327;第7卷;第40941-40950页 *
Non-uniformity correction algorithm for THz array detectors in high-resolution imaging applications;Rungroj Jintamethasawat et al;《International Journal of Infrared and Millimeter Waves》;20200619;第41卷;第940-956页 *
基于神经网络法的焦平面器件非均匀性校正技术研究;曹治国 等;《红外与激光工程》;20000229;第29卷(第1期);第65-68页 *
太赫兹成像技术与图像算法的研究;郑杰;《中国优秀硕士学位论文全文数据库 基础科学辑》;20180315(第3期);第A005-84页 *
太赫兹成像系统的性能评价模型和图像处理方法研究;田莉;《中国博士学位论文全文数据库 信息科技辑》;20190915(第9期);第I138-41页 *

Also Published As

Publication number Publication date
CN112945897A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN101666682B (en) Neural network non-uniformity correction method based on scene statistics
CN110717481B (en) Method for realizing face detection by using cascaded convolutional neural network
CN114972085B (en) A fine-grained noise estimation method and system based on contrastive learning
CN102854194B (en) Object surface defect detection method and apparatus based on linear array CCD
CN101308102A (en) A computerized tomography imaging device and method
CN112308087B (en) Integrated imaging identification method based on dynamic vision sensor
CN112884721B (en) Abnormality detection method, abnormality detection system and computer-readable storage medium
CN109087277A (en) A kind of air fine particles PM2.5 measurement method based on characteristics of image and integrated neural network
CN112883969B (en) Rainfall intensity detection method based on convolutional neural network
CN104424383A (en) Infrared image based hardware processing algorithm effectiveness performance evaluation device and method
CN111339902A (en) Liquid crystal display number identification method and device of digital display instrument
CN110889442A (en) A method for object material classification for pulsed ToF depth cameras
CN106644078A (en) Terahertz image non-uniformity correction method
CN112945897B (en) Continuous terahertz image non-uniformity correction method
CN116664609A (en) An easy-to-deploy image edge detection method, device and electronic equipment thereof
CN114581386A (en) Defect detection method and device based on spatiotemporal data
CN116152701B (en) Instrument detection and recognition method based on attention fusion and related device
CN117333795A (en) River surface flow velocity measurement method and system based on screening post-treatment
CN112419261A (en) Visual acquisition method and device with abnormal point removal function
CN115761672A (en) Detection method, detection system and detection device for dirt on vehicle camera
CN114742721A (en) Calibration infrared non-uniformity correction method based on multi-scale STL-SRU residual error network
CN112488125B (en) Reconstruction method and system based on high-speed visual diagnosis and BP neural network
CN118038141B (en) Infrared, ultraviolet and image fire detection systems and methods
CN113807267A (en) Suspension insulator discharge severity assessment method based on ultraviolet video and deep learning
CN113112482A (en) PCB defect detection method based on attention mechanism network

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
GR01 Patent grant
GR01 Patent grant