CN105069805A - Passive terahertz image segmentation method - Google Patents
Passive terahertz image segmentation method Download PDFInfo
- Publication number
- CN105069805A CN105069805A CN201510527285.9A CN201510527285A CN105069805A CN 105069805 A CN105069805 A CN 105069805A CN 201510527285 A CN201510527285 A CN 201510527285A CN 105069805 A CN105069805 A CN 105069805A
- Authority
- CN
- China
- Prior art keywords
- image
- region
- passive type
- type terahertz
- dimensional image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10048—Infrared image
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
本发明公开了一种被动式太赫兹图像分割方法,包括以下步骤:步骤一、获得被检人体的被动式太赫兹二维图像;步骤二、将二维图像进行去噪预处理;步骤三、将经过去噪预处理后的图像等分为n个区域,设定被动式太赫兹二维图像整体灰度均值为aver,其中每个区域的灰度均值为averk,某一区域k中坐标为(x,y)点的灰度值为fk(x,y),区域k的区域阈值为Tk,其中k∈[1,n],该区域有效性阈值为Ty,之后根据如下公式(3)、(4)和(5)运算得到图像,以及,步骤四、判断得到的图像中是否存在金属物品轮廓,若存在金属物品轮廓,则判定被检人体携带有金属物品,如不存在金属物品轮廓,则判定被检人体未携带金属物品。
The invention discloses a passive terahertz image segmentation method, which comprises the following steps: step 1, obtaining a passive terahertz two-dimensional image of a human body; step two, performing denoising preprocessing on the two-dimensional image; step three, converting the The preprocessed image after denoising is divided into n regions equally, and the overall average gray level of the passive terahertz two-dimensional image is set to aver, wherein the average gray value of each area is aver k , and the coordinates in a certain area k are (x , y) point’s gray value f k (x, y), the area threshold of area k is T k , where k∈[1,n], the validity threshold of this area is T y , then according to the following formula (3 ), (4) and (5) to obtain the image, and step 4, determine whether there is a metal object outline in the obtained image, if there is a metal object outline, then determine that the subject is carrying a metal object, if there is no metal object outline, it is determined that the subject is not carrying metal objects.
Description
技术领域technical field
本发明属于图像处理领域,用于被动式太赫兹图像的目标分割,特别涉及一种被动式太赫兹图像分割方法。The invention belongs to the field of image processing and is used for target segmentation of passive terahertz images, in particular to a passive terahertz image segmentation method.
背景技术Background technique
太赫兹辐射通常指波长在3mm-3μm区间内的远红外电磁辐射。近几年,被动式太赫兹成像技术在安检领域中的应用体现出令人瞩目的发展前景,相较于传统安检方法,被动式赫兹成像技术有以下三方面优势:首先,在太赫兹波段,很多分子存在1THz以上的特殊吸收频率,因此利用太赫兹光谱可对物质种类和成分进行鉴别,可用于安检过程中爆炸物、毒品、生化物等危险品的检测;其次,太赫兹辐射对于很多非金属物、非极性物质,如:衣物、纸箱、塑料等常见遮挡物及包装材料具有很强的穿透力,可直接探测到被包裹或覆盖的危险品;再次,太赫兹辐射的光子能量低,没有X射线的致电离性质,不会对物品及人员造成损害,非常适用于人体安检。虽然被动式太赫兹成像技术在安检领域展现出了巨大潜力,但由于受到探测器灵敏度、天线的低通效应、成像系统的衍射效应等限制,被动式太赫兹图像的分辨率与信噪比普遍较低,不利于图像中被检物品的快速分割与识别,也限制了该技术的发展。因此发展快速高精度的被动式太赫兹图像分割方法对于提高太赫兹成像安检仪的探测性能具有重要意义。Terahertz radiation generally refers to far-infrared electromagnetic radiation with a wavelength in the range of 3mm-3μm. In recent years, the application of passive terahertz imaging technology in the field of security inspection has shown impressive development prospects. Compared with traditional security inspection methods, passive hertz imaging technology has the following three advantages: First, in the terahertz band, many molecules There is a special absorption frequency above 1THz, so the use of terahertz spectroscopy can identify the type and composition of substances, and can be used for the detection of explosives, drugs, biochemicals and other dangerous goods in the security inspection process; secondly, terahertz radiation is sensitive to many nonmetallic objects , Non-polar substances, such as: clothing, cartons, plastics and other common shelters and packaging materials have strong penetrating power, and can directly detect dangerous goods wrapped or covered; again, the photon energy of terahertz radiation is low, Without the ionizing properties of X-rays, it will not cause damage to objects and personnel, and is very suitable for human body security inspection. Although passive terahertz imaging technology has shown great potential in the field of security inspection, due to the limitations of detector sensitivity, low-pass effect of antenna, and diffraction effect of imaging system, the resolution and signal-to-noise ratio of passive terahertz images are generally low. , which is not conducive to the rapid segmentation and recognition of the inspected items in the image, and also limits the development of this technology. Therefore, the development of a fast and high-precision passive terahertz image segmentation method is of great significance for improving the detection performance of terahertz imaging security devices.
发明内容Contents of the invention
本发明的一个目的是解决至少上述问题和/或缺陷,并提供至少后面将说明的优点。An object of the present invention is to solve at least the above problems and/or disadvantages and to provide at least the advantages as will be described hereinafter.
本发明还有一个目的是提供一种被动式太赫兹图像分割方法,本发明将图像分为多个区域分别进行处理,再结合去噪预处理等步骤,解决了被动式太赫兹图像中被检物品与被检人体区域的快速分割和识别问题。Another object of the present invention is to provide a passive terahertz image segmentation method. In the present invention, the image is divided into multiple regions for processing separately, and combined with steps such as denoising and preprocessing, it solves the problem of the detection of objects in passive terahertz images. The problem of fast segmentation and recognition of human body regions under examination.
本发明提供的技术方案为:The technical scheme provided by the invention is:
一种被动式太赫兹图像分割方法,包括以下步骤:A passive terahertz image segmentation method, comprising the following steps:
步骤一、获得被检人体的被动式太赫兹二维图像;Step 1. Obtain a passive terahertz two-dimensional image of the subject;
步骤二、预处理:将步骤一中得到的被动式太赫兹二维图像进行去噪预处理;Step 2, preprocessing: performing denoising preprocessing on the passive terahertz two-dimensional image obtained in step 1;
步骤三、区域分割:将经过步骤二去噪预处理后的被动式太赫兹二维图像等分为n个区域,设定所述被动式太赫兹二维图像整体灰度均值为aver,其中每个区域的灰度均值为averk,某一区域k中坐标为(x,y)点的灰度值为fk(x,y),区域k的区域阈值为Tk,其中k∈[1,n],该区域有效性阈值为Ty,之后根据如下公式(3)、(4)和(5)运算除去灰度值小于阈值Tk的点得到图像,Step 3. Region segmentation: Divide the passive terahertz two-dimensional image after denoising and preprocessing in step two into n regions, and set the overall gray value of the passive terahertz two-dimensional image to be aver, where each region The average gray value of the area k is aver k , the gray value of a point with coordinates (x, y) in a certain area k is f k (x, y), and the area threshold of area k is T k , where k∈[1,n ], the validity threshold of this region is T y , and then according to the following formulas (3), (4) and (5), the points whose gray value is less than the threshold T k are removed to obtain the image,
Ty=aver-r(3)T y =aver-r(3)
其中,n为正整数,r=20;以及,之后进入步骤四,Wherein, n is a positive integer, r=20; and, enter step 4 afterwards,
步骤四、判断得到的图像中是否存在金属物品轮廓,若存在金属物品轮廓,则判定所述被检人体携带有金属物品,如不存在金属物品轮廓,则判定所述被检人体未携带金属物品。Step 4. Determine whether there is a metal object outline in the obtained image. If there is a metal object outline, it is determined that the subject is carrying a metal object. If there is no metal object outline, it is determined that the subject is not carrying a metal object. .
优选的是,所述的被动式太赫兹图像分割方法中,在所述步骤三之后和所述步骤四之前还包括:Preferably, in the passive terahertz image segmentation method, after the third step and before the fourth step, it also includes:
步骤A、区域纠正:对步骤三中得到的图像中的每个信息点进行如下计算:统计该信息点所在区域和与该信息点所在区域相邻的所有区域内的信息点的个数N,Step A, area correction: each information point in the image obtained in step 3 is calculated as follows: count the number N of information points in the area where the information point is located and in all areas adjacent to the area where the information point is located,
若N<4,则将该信息点所在区域和与该信息点所述区域相邻的所有区域内的所有信息点作为噪声点去除,If N<4, remove all information points in the area where the information point is located and in all areas adjacent to the area described by the information point as noise points,
若N=5,则判定该5个信息点均为有效信息点,If N=5, it is determined that the 5 information points are all valid information points,
若N≥6,则判定该区域内图像出现孔洞,判定该信息点所在区域和与该信息点所述区域相邻的所有区域内的所有信息点均为有效信息点,填充所述孔洞;If N≥6, it is determined that there is a hole in the image in the area, and it is determined that all the information points in the area where the information point is located and in all areas adjacent to the area described by the information point are valid information points, and the hole is filled;
以获得经过区域纠正后的图像。to obtain a region-corrected image.
优选的是,所述的被动式太赫兹图像分割方法中,在所述步骤A之后和所述步骤四之前还包括:Preferably, in the passive terahertz image segmentation method, after the step A and before the step four, it also includes:
步骤B、对步骤A中得到的图像进行滤波处理。Step B, performing filtering processing on the image obtained in step A.
优选的是,所述的被动式太赫兹图像分割方法中,所述步骤一中,获得被检人体的被动式太赫兹二维图像的具体过程包括:首先扫描获得被检人体的被动式太赫兹的一维数据,之后再将所述一维数据转化为二维图像。Preferably, in the passive terahertz image segmentation method, in the first step, the specific process of obtaining the passive terahertz two-dimensional image of the subject includes: first scanning to obtain the passive terahertz one-dimensional image of the subject data, and then convert the one-dimensional data into a two-dimensional image.
优选的是,所述的被动式太赫兹图像分割方法中,所述步骤二中,将步骤一中得到的被动式太赫兹二维图像进行去噪预处理的具体过程为:Preferably, in the passive terahertz image segmentation method, in step 2, the specific process of performing denoising preprocessing on the passive terahertz two-dimensional image obtained in step 1 is as follows:
2.1)设定二维图像宽为width,高为height,点(x,y)的灰度值为f(x,y),整体图像灰度均值为aver,则有,2.1) Set the width of the two-dimensional image as width, the height as height, the gray value of the point (x, y) is f(x, y), and the average gray value of the overall image is aver, then there is,
2.2)设定所述二维图像阈值为T,令T=θ·aver,其中0<θ<1,将小于二维图像阈值T的点作为噪声点去除,如下公式(2)所示:2.2) set the two-dimensional image threshold to be T, make T=θ·aver, where 0<θ<1, and remove points less than the two-dimensional image threshold T as noise points, as shown in formula (2):
优选的是,所述的被动式太赫兹图像分割方法中,所述步骤二中,θ=0.6。Preferably, in the passive terahertz image segmentation method, in the second step, θ=0.6.
优选的是,所述的被动式太赫兹图像分割方法中,在所述步骤B中,所述滤波处理为双向滤波处理。Preferably, in the passive terahertz image segmentation method, in the step B, the filtering process is a two-way filtering process.
优选的是,所述的被动式太赫兹图像分割方法中,在所述步骤B中,所述双向滤波处理进行3次。Preferably, in the passive terahertz image segmentation method, in the step B, the bidirectional filtering process is performed three times.
优选的是,所述的被动式太赫兹图像分割方法中,n=16或36Preferably, in the passive terahertz image segmentation method, n=16 or 36
本发明至少包括以下有益效果:The present invention at least includes the following beneficial effects:
本发明的方法首先对原始太赫兹图像进行去噪预处理,然后对其进行区域分割,并针对其有用信息点聚集、噪声点分散的特点,利用双向滤波方法对分割图像进行区域修正。实验结果证明,本发明的方法可快速、有效地从被动式太赫兹图像中分割出人体区域与藏匿于人体上的金属物品,图像中的人像和金属物品轮廓清晰,边缘平滑,无孔洞,能够明确地看出是否存在金属物品。本发明的方法快速准确,适用于安检机。The method of the present invention first performs denoising preprocessing on the original terahertz image, and then performs region segmentation on it, and uses a bidirectional filtering method to perform region correction on the segmented image in view of its characteristics of gathering useful information points and dispersing noise points. The experimental results prove that the method of the present invention can quickly and effectively segment the human body area and the metal objects hidden on the human body from the passive terahertz image. to see the presence of metal objects. The method of the invention is fast and accurate, and is suitable for security inspection machines.
本发明的其它优点、目标和特征将部分通过下面的说明体现,部分还将通过对本发明的研究和实践而为本领域的技术人员所理解。Other advantages, objectives and features of the present invention will partly be embodied through the following descriptions, and partly will be understood by those skilled in the art through the study and practice of the present invention.
附图说明Description of drawings
图1为本发明其中一个实施例中获得的被检人体的被动式太赫兹二维图像的原始图。Fig. 1 is an original image of a passive terahertz two-dimensional image of a subject obtained in one embodiment of the present invention.
图2为本发明其中一个实施例中图像经去噪预处理后的结果图。Fig. 2 is a result diagram of an image after denoising preprocessing in one embodiment of the present invention.
图3(a)为本发明其中一个实施例中T=75时单阈值分割效果图。Fig. 3(a) is an effect diagram of single threshold segmentation when T=75 in one embodiment of the present invention.
图3(b)为本发明其中一个实施例中T=130时单阈值分割效果图。Fig. 3(b) is an effect diagram of single threshold segmentation when T=130 in one embodiment of the present invention.
图4为本发明其中一个实施例中图像经区域分割后的结果图。FIG. 4 is a result diagram of an image after region segmentation in one embodiment of the present invention.
图5为本发明其中一个实施例中目标修正3×3区域的示意图。FIG. 5 is a schematic diagram of a target correction 3×3 area in one embodiment of the present invention.
图6为本发明其中一个实施例中区域内信息点数目小于4时,判定为噪声点清除的示意图。FIG. 6 is a schematic diagram of determining that noise points are eliminated when the number of information points in an area is less than 4 in one embodiment of the present invention.
图7为本发明其中一个实施例中区域内信息点数目为5时,判定为有效信息点的示意图。Fig. 7 is a schematic diagram of determining valid information points when the number of information points in the area is 5 in one embodiment of the present invention.
图8为本发明其中一个实施例中区域内信息点大于6时,判定人体区域内出现孔洞,进行填充的示意图。Fig. 8 is a schematic diagram of filling holes when it is determined that there is a hole in the human body area when the information points in the area are greater than 6 in one embodiment of the present invention.
图9(a)为本发明其中一个实施例中经本发明的方法处理后得到的被动式太赫兹图像的原始图。Fig. 9(a) is an original image of a passive terahertz image obtained after being processed by the method of the present invention in one embodiment of the present invention.
图9(b)为本发明其中一个实施例中经本发明的方法处理后得到的图像分割结果图的一种显示形式。Fig. 9(b) is a display form of an image segmentation result map obtained after being processed by the method of the present invention in one embodiment of the present invention.
图10为本发明再一个实施例中获得的被检人体的被动式太赫兹二维图像的原始图。Fig. 10 is an original image of a passive terahertz two-dimensional image of a subject obtained in still another embodiment of the present invention.
图11为本发明再一个实施例中经本发明的方法处理后得到的图像分割结果的显示图的一种显示形式。Fig. 11 is a display form of the image segmentation results obtained after being processed by the method of the present invention in another embodiment of the present invention.
图12为本发明又一个实施例中获得的被检人体的被动式太赫兹二维图像的原始图。Fig. 12 is an original image of a passive terahertz two-dimensional image of a subject obtained in another embodiment of the present invention.
图13为本发明又一个实施例中经本发明的方法处理后得到的图像分割结果的显示图的一种显示形式。Fig. 13 is a display form of the image segmentation results obtained after being processed by the method of the present invention in another embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明做进一步的详细说明,以令本领域技术人员参照说明书文字能够据以实施。The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.
应当理解,本文所使用的诸如“具有”、“包含”以及“包括”术语并不配出一个或多个其它元件或其组合的存在或添加。It should be understood that terms such as "having", "comprising" and "including" as used herein do not entail the presence or addition of one or more other elements or combinations thereof.
本发明提供一种被动式太赫兹图像分割方法,包括以下步骤:The invention provides a passive terahertz image segmentation method, comprising the following steps:
步骤一、获得被检人体的被动式太赫兹二维图像;Step 1. Obtain a passive terahertz two-dimensional image of the subject;
步骤二、预处理:将步骤一中得到的被动式太赫兹二维图像进行去噪预处理;Step 2, preprocessing: performing denoising preprocessing on the passive terahertz two-dimensional image obtained in step 1;
步骤三、区域分割:将经过步骤二去噪预处理后的被动式太赫兹二维图像等分为n个区域,设定所述被动式太赫兹二维图像整体灰度均值为aver,其中每个区域的灰度均值为averk,某一区域k中坐标为(x,y)点的灰度值为fk(x,y),区域k的区域阈值为Tk,其中k∈[1,n],该区域有效性阈值为Ty,之后根据如下公式(3)、(4)和(5)运算除去灰度值小于阈值Tk的点得到图像,Step 3. Region segmentation: Divide the passive terahertz two-dimensional image after denoising and preprocessing in step two into n regions, and set the overall gray value of the passive terahertz two-dimensional image to be aver, where each region The average gray value of the area k is aver k , the gray value of a point with coordinates (x, y) in a certain area k is f k (x, y), and the area threshold of area k is T k , where k∈[1,n ], the validity threshold of this region is T y , and then according to the following formulas (3), (4) and (5), the points whose gray value is less than the threshold T k are removed to obtain the image,
Ty=aver-r(3)T y =aver-r(3)
其中,n为正整数,r=20;以及,之后进入步骤四,Wherein, n is a positive integer, r=20; and, enter step 4 afterwards,
步骤四、判断得到的图像中是否存在金属物品轮廓,若存在金属物品轮廓,则判定所述被检人体携带有金属物品,如不存在金属物品轮廓,则判定所述被检人体未携带金属物品。Step 4. Determine whether there is a metal object outline in the obtained image. If there is a metal object outline, it is determined that the subject is carrying a metal object. If there is no metal object outline, it is determined that the subject is not carrying a metal object. .
因为区域分割后的图像背景中仍然存在噪声点,同时人体区域内存在由于误分割导致的孔洞,通常分割图像中噪声点在图像中表现为孤立、分散的,而有用信息点往往是聚集的,针对这种特性本发明提出了一种区域修正方法。如:在本发明的其中一个实施例中,作为优选,在所述步骤三之后和所述步骤四之前还包括:Because there are still noise points in the image background after region segmentation, and there are holes caused by mis-segmentation in the human body region, usually the noise points in the segmented image are isolated and scattered in the image, while the useful information points are often aggregated. Aiming at this characteristic, the present invention proposes an area correction method. For example: in one of the embodiments of the present invention, as a preference, after the step three and before the step four, it also includes:
步骤A、区域纠正:对步骤三中得到的图像中的每个信息点进行如下计算:统计该信息点所在区域和与该信息点所在区域相邻的所有区域内的信息点的个数N,Step A, area correction: each information point in the image obtained in step 3 is calculated as follows: count the number N of information points in the area where the information point is located and in all areas adjacent to the area where the information point is located,
若N<4,则将该信息点所在区域和与该信息点所述区域相邻的所有区域内的所有信息点作为噪声点去除,If N<4, remove all information points in the area where the information point is located and in all areas adjacent to the area described by the information point as noise points,
若N=5,则判定该5个信息点均为有效信息点,If N=5, it is determined that the 5 information points are all valid information points,
若N≥6,则判定该区域内图像出现孔洞,判定该信息点所在区域和与该信息点所述区域相邻的所有区域内的所有信息点均为有效信息点,填充所述孔洞;If N≥6, it is determined that there is a hole in the image in the area, and it is determined that all the information points in the area where the information point is located and in all areas adjacent to the area described by the information point are valid information points, and the hole is filled;
以获得经过区域纠正后的图像。to obtain a region-corrected image.
为了避免上述方法导致的图像偏移,在本发明的其中一个实施例中,作为优选,在所述步骤A之后和所述步骤四之前还包括:In order to avoid the image offset caused by the above method, in one embodiment of the present invention, as a preference, after the step A and before the step 4, it also includes:
步骤B、对步骤A中得到的图像进行滤波处理。Step B, performing filtering processing on the image obtained in step A.
在上述方案中,作为优选,在所述步骤B中,所述滤波处理为双向滤波处理。In the above solution, preferably, in the step B, the filtering process is a bidirectional filtering process.
在上述方案中,作为优选,在所述步骤B中,所述双向滤波处理进行3次。In the above scheme, preferably, in the step B, the bidirectional filtering process is performed three times.
在本发明的其中一个实施例中,作为优选,所述步骤一中,获得被检人体的被动式太赫兹二维图像的具体过程包括:首先扫描获得被检人体的被动式太赫兹的一维数据,之后再将所述一维数据转化为二维图像。In one embodiment of the present invention, as a preference, in the first step, the specific process of obtaining the passive terahertz two-dimensional image of the subject includes: first scanning to obtain the passive terahertz one-dimensional data of the subject, Then the one-dimensional data is converted into a two-dimensional image.
在本发明的其中一个实施例中,作为优选,所述步骤二中,将步骤一中得到的被动式太赫兹二维图像进行去噪预处理的具体过程为:In one embodiment of the present invention, as a preference, in the second step, the specific process of performing denoising preprocessing on the passive terahertz two-dimensional image obtained in the first step is as follows:
2.1)设定二维图像宽为width,高为height,点(x,y)的灰度值为f(x,y),整体图像灰度均值为aver,则有,2.1) Set the width of the two-dimensional image as width, the height as height, the gray value of the point (x, y) is f(x, y), and the average gray value of the overall image is aver, then there is,
2.2)设定所述二维图像阈值为T,令T=θ·aver,其中0<θ<1,将小于二维图像阈值T的点作为噪声点去除,如下公式(2)所示:2.2) set the two-dimensional image threshold to be T, make T=θ·aver, where 0<θ<1, and remove points less than the two-dimensional image threshold T as noise points, as shown in the following formula (2):
在上述方案中,根据经验值,作为优选,所述步骤二中,θ=0.6。这样去噪预处理得到的图像的效果最好。In the above solution, according to empirical values, as a preference, in the second step, θ=0.6. In this way, the effect of the image obtained by denoising preprocessing is the best.
在本发明的其中一些实施例中,作为优选,n=16或36。In some embodiments of the present invention, preferably, n=16 or 36.
在本发明的其中一个实施例中,获得了被检人体的太赫兹二维图像如图1所示,由于未经处理的太赫兹图像信噪比较低,因此需要对图像进行预处理。在被动式太赫兹图像中,人体区域亮度较高,背景和藏匿在人体区域中的金属物体亮度较低,因此可以采用阈值分割的方法对图像进行预处理,提高图像信噪比,增加目标与背景的对比度:In one embodiment of the present invention, a terahertz two-dimensional image of a human body is obtained as shown in FIG. 1 . Since the unprocessed terahertz image has a low signal-to-noise ratio, preprocessing of the image is required. In the passive terahertz image, the brightness of the human body area is relatively high, while the background and metal objects hidden in the human body area have low brightness. Therefore, the method of threshold segmentation can be used to preprocess the image to improve the signal-to-noise ratio of the image and increase the distance between the target and the background. Contrast:
设图像宽为width,高为height,点(x,y)的灰度值为f(x,y),设图像灰度均值为aver,如式(1)所示:Let the width of the image be width, the height be height, the gray value of the point (x, y) be f(x, y), and the average gray value of the image be aver, as shown in formula (1):
设阈值为T,令T=θ·aver,其中θ=0.6,将小于阈值的点作为噪声点去除,如式(2)所示:Set the threshold as T, let T=θ·aver, where θ=0.6, and remove the points smaller than the threshold as noise points, as shown in formula (2):
图1经过预处理后效果如图2所示,可以看出背景中部分噪声点被去除。Figure 1 after preprocessing is shown in Figure 2. It can be seen that some noise points in the background have been removed.
在对被动式太赫兹图像进行分割的过程中,藏匿于人体区域的金属物体在图中的灰度值有可能会高于人体边缘部分的灰度值,若用常用的单阈值分割方法,可能会因阈值过小导致无法分割出金属物体或者阈值过大导致分割后人体区域不完整,如图3(a)和图3(b)所示,图3(a),为T=75时,运算后,可以看出无法分割出人体区域中的金属物体,而图3(b)为,T=130时,运算后人体区域不完整。In the process of segmenting passive terahertz images, the gray value of metal objects hidden in the human body area may be higher than the gray value of the edge of the human body. If the commonly used single-threshold segmentation method is used, it may be Because the threshold is too small, the metal object cannot be segmented or the threshold is too large, resulting in incomplete segmentation of the human body area, as shown in Figure 3(a) and Figure 3(b), Figure 3(a), when T=75, the calculation Finally, it can be seen that the metal objects in the human body area cannot be segmented, and Fig. 3(b) shows that when T=130, the human body area is incomplete after calculation.
为了避免这种情况的发生,本发明采取了区域分割方法,将图像等分成36个区域,对每个区域分别进行图像分割处理。设图像整体灰度均值为aver,每个区域灰度均值为averk,区域k中坐标为(x,y)点的灰度值为fk(x,y),区域k中区域阈值为Tk,其中k∈[1,36],设区域有效性阈值为Ty,其中Ty如式(3)所示,若区域灰度均值小于有效性阈值,则判定该区域目标点较少,为避免引入噪声,要更换区域阈值,如式(4)所示,然后在判断每个点的灰度值,若该点灰度值小于该点所在的区域阈值则判定该点为噪声去除,如式(5)所示,其中r=20:In order to avoid this situation, the present invention adopts a region segmentation method, divides the image into 36 regions, and performs image segmentation processing on each region. Let the average gray value of the image as a whole be aver, the average gray value of each region be aver k , the gray value of a point whose coordinates are (x, y) in region k is f k (x, y), and the region threshold in region k be T k , where k∈[1,36], set the validity threshold of the region as T y , where T y is shown in formula (3), if the average gray value of the region is less than the validity threshold, it is determined that there are fewer target points in the region, In order to avoid the introduction of noise, the threshold value of the area should be replaced, as shown in formula (4), and then the gray value of each point is judged. If the gray value of the point is less than the threshold value of the area where the point is located, it is determined that the point is noise removal. As shown in formula (5), where r=20:
Ty=aver-r(3)T y =aver-r(3)
图2经过区域分割后结果如图4所示,由图可看出,利用区域分割方法,既可分割出金属物品的轮廓,同时还可较大程度保证人体区域的完整。Figure 2 shows the result of area segmentation in Figure 4. It can be seen from the figure that using the area segmentation method can not only segment the outline of metal objects, but also ensure the integrity of the human body area to a large extent.
由图4可以看出,经过区域分割后的图像背景中仍然存在噪声点,同时人体区域内存在由于误分割导致的孔洞。通常分割图像中噪声点在图像中表现为孤立、分散的,而有用信息点往往是聚集的,针对这种特性本发明提出了一种区域修正方法。It can be seen from Figure 4 that there are still noise points in the image background after region segmentation, and there are holes caused by mis-segmentation in the human body region. Generally, the noise points in the segmented image are isolated and scattered in the image, while the useful information points are often aggregated. Aiming at this characteristic, the present invention proposes a region correction method.
区域修正方法:首先在图像中寻找被分割出的信息点,搜索到信息点后,统计信息点所在3×3区域内信息点个数,若该信息点所在区域位于图像的边缘,则取与其相邻的所有区域中的信息点即可。设其所在区域为Tr={tr(x,y),x∈[0,2],y∈[0,2]},其中tr(x,y)为区域中坐标为(x,y)处的灰度值,如图5所示,白色为当前信息点,设该点坐标为(x,y):Area correction method: firstly find the segmented information points in the image, after searching the information points, count the number of information points in the 3×3 area where the information point is located, if the area where the information point is located is located at the edge of the image, then take Information points in all adjacent areas are sufficient. Let the area where it is located be Tr={tr(x,y),x∈[0,2],y∈[0,2]}, where tr(x,y) is the coordinate (x,y) in the area The gray value of , as shown in Figure 5, white is the current information point, and the coordinates of this point are (x, y):
设区域Tr中目标点个数为N,有以下三种情况:Assuming that the number of target points in the region Tr is N, there are the following three situations:
1.当时N<4,将3×3区域内所有点作为噪声点去除,即:1. When N<4, remove all points in the 3×3 area as noise points, namely:
Tr={tr(x,y)=0,x∈[0,2],y∈[0,2]}(6)Tr={tr(x,y)=0, x∈[0,2],y∈[0,2]} (6)
如图6所示。As shown in Figure 6.
2.当N=5时,对3×3区域内的点不做处理,均判定为有效信息点,如图7所示:2. When N=5, the points in the 3×3 area are not processed, and they are all judged as valid information points, as shown in Figure 7:
3.当N≥6时,将3×3区域内所有点全部认定为有效信息点,即:3. When N≥6, all points in the 3×3 area are identified as valid information points, namely:
Tr={tr(x,y)=255,x∈[0,2],y∈[0,2]}(7)Tr={tr(x,y)=255, x∈[0,2],y∈[0,2]} (7)
如图8所示。As shown in Figure 8.
为了避免该方法导致的图像偏移,应首先从左向右对图像进行滤波,然后从右向左对图像进行滤波,完成两个方向各一次滤波过程,称为双向滤波。双向滤波算法不仅可以有效去除孤立、分散的噪声点,同时可以将人体区域内由误分割导致的孔洞进行填补。对图4进行3次双向滤波后,结果如图9(a)和图9(b)所示,其中图9(a)为处理后得到的被动式太赫兹图像原始图,图9(b)为将图9(a)经过图像转化后得到的更易观察的图像。In order to avoid the image shift caused by this method, the image should be filtered from left to right first, and then from right to left to complete the filtering process in each direction, which is called bidirectional filtering. The two-way filtering algorithm can not only effectively remove isolated and scattered noise points, but also fill holes in the human body area caused by mis-segmentation. After performing two-way filtering on Figure 4 for three times, the results are shown in Figure 9(a) and Figure 9(b), where Figure 9(a) is the original image of the passive terahertz image obtained after processing, and Figure 9(b) is An easier-to-observe image obtained after image conversion of Figure 9(a).
在本发明的又一个实施例中,获得的被检人体的太赫兹二维图像如图10所示,仍采用上述实施例中采用的方法步骤,只不过将该图像分为16个区域,其余均作相同处理,最后得到如图11所示的结果图。In yet another embodiment of the present invention, the obtained terahertz two-dimensional image of the human body is shown in Figure 10, and the method steps adopted in the above embodiment are still used, except that the image is divided into 16 regions, and the rest Do the same processing, and finally get the result graph shown in Figure 11.
在本发明的再一个实施例中,获得的被检人体的太赫兹二维图像如图12所示,仍采用上述实施例中采用的方法步骤,只不过将该图像分为16个区域,其余均作相同处理,最后得到如图13所示的结果图。In yet another embodiment of the present invention, the obtained terahertz two-dimensional image of the human body is shown in Figure 12, and the method steps adopted in the above embodiment are still used, except that the image is divided into 16 regions, and the rest Do the same processing, and finally get the result graph shown in Figure 13.
应当知道,n并不局限于此处列举的16或36,用户可根据实际的二维图像的情况将图像分割为合适数目的区域。It should be known that n is not limited to 16 or 36 listed here, and the user can divide the image into an appropriate number of regions according to the actual two-dimensional image.
这里说明的模块数量和处理规模是用来简化本发明的说明的。对本发明的二维图像的阈值和区域阈值及有效性阈值等的应用、修改和变化对本领域的技术人员来说是显而易见的。The number of modules and processing scales described here are used to simplify the description of the present invention. Applications, modifications and changes to the two-dimensional image thresholds and area thresholds, validity thresholds, etc. of the present invention will be apparent to those skilled in the art.
如上所述,根据本发明,由于通过区域分割等方法出来了被动式太赫兹二维图像,因此能够获得清晰的被检人体和金属物品的轮廓,提高了安检时的准确率和速率。As mentioned above, according to the present invention, since the passive terahertz two-dimensional image is obtained through methods such as area segmentation, it is possible to obtain clear outlines of the inspected human body and metal objects, improving the accuracy and speed of security inspection.
尽管本发明的实施方案已公开如上,但其并不仅仅限于说明书和实施方式中所列运用,它完全可以被适用于各种适合本发明的领域,对于熟悉本领域的人员而言,可容易地实现另外的修改,因此在不背离权利要求及等同范围所限定的一般概念下,本发明并不限于特定的细节和这里示出与描述的图例。Although the embodiment of the present invention has been disclosed as above, it is not limited to the use listed in the specification and implementation, it can be applied to various fields suitable for the present invention, and it can be easily understood by those skilled in the art Therefore, the invention is not limited to the specific details and examples shown and described herein without departing from the general concept defined by the claims and their equivalents.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510527285.9A CN105069805B (en) | 2015-08-25 | 2015-08-25 | Passive type Terahertz image partition method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510527285.9A CN105069805B (en) | 2015-08-25 | 2015-08-25 | Passive type Terahertz image partition method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105069805A true CN105069805A (en) | 2015-11-18 |
| CN105069805B CN105069805B (en) | 2018-06-01 |
Family
ID=54499162
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510527285.9A Active CN105069805B (en) | 2015-08-25 | 2015-08-25 | Passive type Terahertz image partition method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105069805B (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106226836A (en) * | 2016-08-29 | 2016-12-14 | 北京农业信息技术研究中心 | Chip acquisition device and method in poultry body based on Terahertz Technology |
| CN107092040A (en) * | 2017-06-01 | 2017-08-25 | 上海理工大学 | Terahertz imaging rays safety detection apparatus and video procession method |
| CN108764328A (en) * | 2018-05-24 | 2018-11-06 | 广东工业大学 | The recognition methods of Terahertz image dangerous material, device, equipment and readable storage medium storing program for executing |
| CN108898132A (en) * | 2018-05-25 | 2018-11-27 | 广东工业大学 | A kind of terahertz image dangerous material recognition methods based on Shape context description |
| CN108956526A (en) * | 2018-06-22 | 2018-12-07 | 西安天和防务技术股份有限公司 | A kind of passive type Terahertz hazardous material detection device, detection method and its application |
| RU2702913C1 (en) * | 2019-02-26 | 2019-10-14 | Федеральное государственное бюджетное учреждение науки Институт радиотехники и электроники им. В.А. Котельникова Российской академии наук | Method of detecting hidden objects on terahertz images of a human body |
| CN111524303A (en) * | 2020-04-26 | 2020-08-11 | 江苏科技大学 | Supermarket self-checkout anti-theft system and anti-theft method thereof |
| CN111709961A (en) * | 2020-05-14 | 2020-09-25 | 南京航空航天大学 | A real-time segmentation and classification method for passive terahertz image targets |
| CN112037243A (en) * | 2020-08-13 | 2020-12-04 | 上海微波技术研究所(中国电子科技集团公司第五十研究所) | Passive terahertz security inspection method, system and medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110081099A1 (en) * | 2007-02-01 | 2011-04-07 | Hughes Ronald J | Personnel Security Screening System with Enhanced Privacy |
| CN102565794A (en) * | 2011-12-30 | 2012-07-11 | 北京华航无线电测量研究所 | Microwave security inspection system for automatically detecting dangerous object hidden in human body |
| US8468104B1 (en) * | 2009-12-02 | 2013-06-18 | Hrl Laboratories, Llc | System for anomaly detection |
| CN104517295A (en) * | 2014-12-25 | 2015-04-15 | 深圳市一体太赫兹科技有限公司 | Partition method and system for three-dimensional terahertz image |
-
2015
- 2015-08-25 CN CN201510527285.9A patent/CN105069805B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110081099A1 (en) * | 2007-02-01 | 2011-04-07 | Hughes Ronald J | Personnel Security Screening System with Enhanced Privacy |
| US8468104B1 (en) * | 2009-12-02 | 2013-06-18 | Hrl Laboratories, Llc | System for anomaly detection |
| CN102565794A (en) * | 2011-12-30 | 2012-07-11 | 北京华航无线电测量研究所 | Microwave security inspection system for automatically detecting dangerous object hidden in human body |
| CN104517295A (en) * | 2014-12-25 | 2015-04-15 | 深圳市一体太赫兹科技有限公司 | Partition method and system for three-dimensional terahertz image |
Non-Patent Citations (4)
| Title |
|---|
| MABEL D.RAMIREZ 等: "Unsupervised Image Segmentation for Passive THz Broadband Images for Concealed Weapon Detection", 《PROCEEDING OF SPIE-THE INTERNATIONAL SOCIETY FOR OPTICAL ENGINEERING》 * |
| 张静: "PCB表观缺陷的自动光学检测理论与技术", 《中国博士学位论文全文数据库信息科技辑》 * |
| 赵然 等: "被动式人体太赫兹图像中的目标辅助识别", 《强激光与粒子束》 * |
| 邹柏贤 等: "图像轮廓提取方法研究", 《计算机工程与应用》 * |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106226836A (en) * | 2016-08-29 | 2016-12-14 | 北京农业信息技术研究中心 | Chip acquisition device and method in poultry body based on Terahertz Technology |
| CN107092040A (en) * | 2017-06-01 | 2017-08-25 | 上海理工大学 | Terahertz imaging rays safety detection apparatus and video procession method |
| CN108764328A (en) * | 2018-05-24 | 2018-11-06 | 广东工业大学 | The recognition methods of Terahertz image dangerous material, device, equipment and readable storage medium storing program for executing |
| CN108898132A (en) * | 2018-05-25 | 2018-11-27 | 广东工业大学 | A kind of terahertz image dangerous material recognition methods based on Shape context description |
| CN108898132B (en) * | 2018-05-25 | 2022-08-12 | 广东工业大学 | A THz Image Dangerous Goods Recognition Method Based on Shape Context Description |
| CN108956526A (en) * | 2018-06-22 | 2018-12-07 | 西安天和防务技术股份有限公司 | A kind of passive type Terahertz hazardous material detection device, detection method and its application |
| CN108956526B (en) * | 2018-06-22 | 2021-02-26 | 西安天和防务技术股份有限公司 | Passive terahertz dangerous article detection device, detection method and application thereof |
| RU2702913C1 (en) * | 2019-02-26 | 2019-10-14 | Федеральное государственное бюджетное учреждение науки Институт радиотехники и электроники им. В.А. Котельникова Российской академии наук | Method of detecting hidden objects on terahertz images of a human body |
| CN111524303A (en) * | 2020-04-26 | 2020-08-11 | 江苏科技大学 | Supermarket self-checkout anti-theft system and anti-theft method thereof |
| CN111709961A (en) * | 2020-05-14 | 2020-09-25 | 南京航空航天大学 | A real-time segmentation and classification method for passive terahertz image targets |
| CN111709961B (en) * | 2020-05-14 | 2023-10-27 | 南京航空航天大学 | Real-time segmentation classification method for passive terahertz image target |
| CN112037243A (en) * | 2020-08-13 | 2020-12-04 | 上海微波技术研究所(中国电子科技集团公司第五十研究所) | Passive terahertz security inspection method, system and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105069805B (en) | 2018-06-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105069805B (en) | Passive type Terahertz image partition method | |
| CN102819740B (en) | A kind of Single Infrared Image Frame Dim targets detection and localization method | |
| CN111881933B (en) | A hyperspectral image classification method and system | |
| CN102609701B (en) | Remote sensing detection method based on optimal scale for high-resolution SAR (synthetic aperture radar) | |
| CN103955926B (en) | Method for detecting change of remote sensing image based on Semi-NMF | |
| CN104200471B (en) | SAR image change detection based on adaptive weight image co-registration | |
| TWI624807B (en) | Iterative analysis of medical images | |
| CN111986098A (en) | Passive terahertz image enhancement method containing fixed background | |
| CN105225216A (en) | Based on the Iris preprocessing algorithm of space apart from circle mark rim detection | |
| CN103914831A (en) | Two-dimensional dual-threshold SAR image segmentation method based on quantum particle swarm optimization | |
| CN102800070A (en) | Multi-modality image fusion method based on region and human eye contrast sensitivity characteristic | |
| CN103093478A (en) | Different source image rough edge test method based on rapid nuclear spatial fuzzy clustering | |
| Hussain et al. | A comparative analysis of edge detection techniques used in flame image processing | |
| CN103077499B (en) | SAR (Synthetic Aperture Radar) image pre-processing method based on similar block | |
| CN103065320A (en) | Synthetic aperture radar (SAR) image change detection method based on constant false alarm threshold value | |
| CN110751667A (en) | Method for detecting infrared dim small target under complex background based on human visual system | |
| CN109461171A (en) | The small IR targets detection algorithm of DoG filtering is improved based on multichannel | |
| Li et al. | Wafer crack detection based on yolov4 target detection method | |
| CN103955943A (en) | Non-supervision change detection method based on fuse change detection operators and dimension driving | |
| Quan | Quality evaluation method of agricultural product packaging image based on structural similarity and MTF | |
| CN103279960A (en) | Human body hidden thing image segmentation method based on X-ray back scattering image | |
| CN101369308A (en) | An Unsupervised Change Detection Approach Based on Visual Selective Attention and Pixel Dependence | |
| Xia et al. | Multifractal signature estimation for textured image segmentation | |
| Sun et al. | Study of edge detection algorithms for lung CT image on the basis of MATLAB | |
| CN104050486A (en) | Polarimetric SAR image classification method based on maps and Wishart distance |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |