[go: up one dir, main page]

HK1218157B - Ct system for security check and method thereof - Google Patents

Ct system for security check and method thereof Download PDF

Info

Publication number
HK1218157B
HK1218157B HK16106043.6A HK16106043A HK1218157B HK 1218157 B HK1218157 B HK 1218157B HK 16106043 A HK16106043 A HK 16106043A HK 1218157 B HK1218157 B HK 1218157B
Authority
HK
Hong Kong
Prior art keywords
image
virtual
inspection
contraband
inspection image
Prior art date
Application number
HK16106043.6A
Other languages
Chinese (zh)
Other versions
HK1218157A1 (en
Inventor
陈志强
张丽
王朔
孙运达
黄清萍
唐智
Original Assignee
同方威视技术股份有限公司
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 同方威视技术股份有限公司 filed Critical 同方威视技术股份有限公司
Publication of HK1218157A1 publication Critical patent/HK1218157A1/en
Publication of HK1218157B publication Critical patent/HK1218157B/en

Links

Description

安检CT系统及其方法Security inspection CT system and method

技术领域Technical Field

本申请涉及安全检查,具体涉及一种在安检CT系统及其方法。The present application relates to security inspection, and in particular to a security inspection CT system and method thereof.

背景技术Background Art

多能量X射线安全检查系统,是在单能量X射线安全检查系统的基础上开发的新型安检系统。它不仅能提供被检物的形状和内容,还能提供反映被检物品有效原子序数的信息,从而区分被检物是有机物还是无机物,并用不同的颜色在彩色监视器上显示出来,帮助操作人员进行判别。The multi-energy X-ray security inspection system is a new type of security inspection system developed based on the single-energy X-ray security inspection system. It can not only provide the shape and content of the inspected object, but also provide information reflecting the effective atomic number of the inspected object, thereby distinguishing whether the inspected object is organic or inorganic. The information is displayed in different colors on the color monitor to help operators make judgments.

对于安检领域,TIP是一项重要的需求,所谓TIP是指在行李包裹图像中插入预先采集的危险品图像,也就是插入虚拟危险品图像(Fictional Threat Image)。它对于安检员的培训以及安检员工作效率的考核具有重要的作用。对于X射线安全检查系统的二维TIP,已经有成熟的方案和广泛的应用。但对于安检CT的三维TIP,目前还没有厂商提供这样的功能。TIP is a critical requirement in the security inspection field. TIP involves inserting pre-captured images of dangerous goods, also known as fictitious threat images, into images of baggage or parcels. This technology plays a crucial role in training and assessing the efficiency of security inspectors. While mature solutions and widespread application exist for 2D TIP in X-ray security inspection systems, no vendor currently offers this functionality for 3D TIP in security CT systems.

发明内容Summary of the Invention

考虑到现有技术中的一个或者多个技术问题,本发明提出了一种安检CT系统及其方法,能够方便用户迅速标记CT图像中的嫌疑物并且给出是否包含虚拟危险品图像的反馈。In view of one or more technical problems in the prior art, the present invention proposes a security inspection CT system and method thereof, which can facilitate users to quickly mark suspicious objects in CT images and provide feedback on whether virtual dangerous goods images are included.

在本发明的一个方面,提出了一种安检CT系统中的方法,包括步骤:读取被检查物体的检查数据;向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像(Fictional Threat Image),所述3D检查图像是从所述检查数据得到的;接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择,所述2D检查图像是从所述3D检查图像得到的,或者是从所述检查数据得到的;以及响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈。In one aspect of the present invention, a method in a security inspection CT system is provided, comprising the steps of: reading inspection data of an inspected object; inserting at least one 3D virtual contraband image (Fictional Threat Image) into a 3D inspection image of the inspected object, the 3D inspection image being derived from the inspection data; receiving a selection of at least one region in a 3D inspection image including the 3D virtual contraband image or at least one region in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image, the 2D inspection image being derived from the 3D inspection image or the inspection data; and providing feedback related to the inclusion of the at least one 3D virtual contraband image in the 3D inspection image in response to the selection.

根据一些实施例,接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择的步骤包括:接收所述3D检查图像或2D检查图像中与所述选择相关联的部分的坐标位置。According to some embodiments, the step of receiving a selection of at least one area in a 3D inspection image including the 3D virtual contraband image or at least one area in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image includes: receiving a coordinate position of a portion of the 3D inspection image or the 2D inspection image associated with the selection.

根据一些实施例,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括以下至少之一:判断所述选择的至少一个区域中是否存在所述至少一个3D虚拟违禁品图像、弹出对话框确认在所述3D检查图像中包含至少一个3D虚拟违禁品图像、在界面上以文字提示确认在所述3D检查图像中包含至少一个3D虚拟违禁品图像、突出显示所述3D检查图像或2D检查图像中与所述选择相关联的那部分、对所述3D检查图像或2D检查图像中与所述选择相关联的部分进行标记、用特定的颜色或者图形填充所述3D检查图像或2D检查图像中与所述选择相关联的那部分。According to some embodiments, the step of giving feedback related to the inclusion of at least one 3D virtual contraband image in the 3D inspection image in response to the selection includes at least one of the following: determining whether the at least one 3D virtual contraband image exists in at least one area of the selection, popping up a dialog box to confirm that the at least one 3D virtual contraband image is included in the 3D inspection image, confirming that the at least one 3D virtual contraband image is included in the 3D inspection image with a text prompt on the interface, highlighting the portion of the 3D inspection image or the 2D inspection image associated with the selection, marking the portion of the 3D inspection image or the 2D inspection image associated with the selection, and filling the portion of the 3D inspection image or the 2D inspection image associated with the selection with a specific color or graphic.

根据一些实施例,根据所述检查数据计算所述被检查物体的至少一个空间特征参数,并且基于所述空间特征参数向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像。According to some embodiments, at least one spatial characteristic parameter of the inspected object is calculated based on the inspection data, and at least one 3D virtual contraband image is inserted into the 3D inspection image of the inspected object based on the spatial characteristic parameter.

根据一些实施例,所述空间特征参数与要插入的3D虚拟违禁品图像的位置、大小和方向中的至少之一有关。According to some embodiments, the spatial feature parameter is related to at least one of a position, a size, and an orientation of the 3D virtual contraband image to be inserted.

根据一些实施例,对至少一个区域的选择包括对所显示的3D检查图像中的一部分在一个视角上的选择。According to some embodiments, the selection of the at least one region includes selection of a portion of the displayed 3D inspection image at a viewing angle.

根据一些实施例,在所述3D检查图像的3D绘制过程中,记录表征被检查物体的点云信息,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括:通过分割来获得被检查物体中不同物体的点云信息簇序列;基于预定的基准从不同物体的点云信息簇序列中确定至少一个选中的区域;判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。According to some embodiments, during the 3D rendering process of the 3D inspection image, the step of recording point cloud information representing the inspected object and providing feedback related to the inclusion of at least one 3D virtual contraband image in the 3D inspection image in response to the selection includes: obtaining a sequence of point cloud information clusters of different objects in the inspected object by segmentation; determining at least one selected area from the sequence of point cloud information clusters of different objects based on a predetermined benchmark; and determining whether the at least one 3D virtual contraband image exists in the at least one selected area.

根据一些实施例,对至少一个区域的选择包括对所显示的3D检查图像中的一部分在多个不同视角上的选择。According to some embodiments, the selection of the at least one region comprises selection of a portion of the displayed 3D inspection image at a plurality of different viewing angles.

根据一些实施例,对至少一个区域的选择包括对所显示的3D检查图像中的一部分在两个不同视角上的选择,所述两个不同视角基本上彼此正交,其中对所述检查数据进行透明区域剔除,获得所述检查数据中的非透明区域的层次包围盒,然后对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括:根据用户在第一视角所选择的区域在正向面深度图和背向面深度图中分别检索,生成第一包围盒;用生成的第一包围盒作为纹理载体进行光线投射;根据用户在与第一视角基本上正交的第二视角所选择的区域在正面向深度图和背向面深度图中分别检索,生成第二包围盒;在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域,作为至少一个选中的区域;判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。According to some embodiments, the selection of at least one area includes selecting a portion of the displayed 3D inspection image from two different perspectives, the two different perspectives being substantially orthogonal to each other, wherein transparent areas are removed from the inspection data to obtain a hierarchical bounding box of a non-transparent area in the inspection data, and then scene depth is rendered for the hierarchical bounding box to obtain a front surface depth map and a back surface depth map. In response to the selection, the step of providing feedback related to the inclusion of at least one 3D virtual contraband image in the 3D inspection image includes: searching the front surface depth map and the back surface depth map according to the area selected by the user from the first perspective respectively to generate a first bounding box; performing ray casting using the generated first bounding box as a texture carrier; searching the front surface depth map and the back surface depth map according to the area selected by the user from a second perspective substantially orthogonal to the first perspective to generate a second bounding box; performing a Boolean intersection operation on the first bounding box and the second bounding box in the image space to obtain a marked area in three-dimensional space as the at least one selected area; and determining whether the at least one 3D virtual contraband image exists in the at least one selected area.

根据一些实施例,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:分割所述3D被检查图像,得到被检查物体的多个3D子图像;计算所述多个3D子图像之间的距离和位置;基于所计算的距离和位置插入3D虚拟违禁品图像。According to some embodiments, the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the inspected object includes: segmenting the 3D inspected image to obtain multiple 3D sub-images of the inspected object; calculating distances and positions between the multiple 3D sub-images; and inserting the 3D virtual contraband image based on the calculated distances and positions.

根据一些实施例,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:基于体素的阻光度值,确定被检查物体的体数据中的透明部分和非透明部分;从体数据的不透明部分确定被检查物体箱包的位置和尺寸;在箱包范围内确定透明区域中的候选插入位置;根据预定的标准从候选插入位置中选择至少一个位置来插入至少一个3D违禁品图像。According to some embodiments, the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the inspected object includes: determining transparent parts and non-transparent parts in the volume data of the inspected object based on the opacity value of the voxel; determining the position and size of the luggage of the inspected object from the opaque part of the volume data; determining candidate insertion positions in the transparent area within the luggage range; and selecting at least one position from the candidate insertion positions according to predetermined criteria to insert at least one 3D contraband image.

根据一些实施例,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:剔除2D检查图像中的背景图像,得到2D前景图像;确定2D虚拟违禁品图像在2D前景图像中的2D插入位置;沿着所述2D插入位置的深度方向确定3D虚拟违禁品图像在3D检查图像中的位置;在所确定的位置插入至少一个3D虚拟违禁品图像。According to some embodiments, the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the inspected object includes: removing a background image from the 2D inspection image to obtain a 2D foreground image; determining a 2D insertion position of the 2D virtual contraband image in the 2D foreground image; determining a position of the 3D virtual contraband image in the 3D inspection image along a depth direction of the 2D insertion position; and inserting at least one 3D virtual contraband image at the determined position.

根据一些实施例,所述的方法还包括向所述被检查物体的2D检查图像中插入与所述至少一个3D虚拟违禁品图像相应的2D虚拟违禁品图像。According to some embodiments, the method further comprises inserting a 2D virtual contraband image corresponding to the at least one 3D virtual contraband image into the 2D inspection image of the inspected object.

在本发明的另一方面,提出了一种安检CT系统,包括:CT扫描设备,获得所述被检查物体的检查数据;存储器,存储所述检查数据;显示设备,显示所述被检查物体的3D检查图像和/或2D检查图像,所述3D检查图像是从所述检查数据得到的,所述2D检查图像是从所述3D检查图像得到的,或者是从所述检查数据得到的;数据处理器,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像(Fictional Threat Image);输入装置,接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择;其中,所述数据处理器响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈。In another aspect of the present invention, a security inspection CT system is provided, comprising: a CT scanning device for obtaining inspection data of an inspected object; a memory for storing the inspection data; a display device for displaying a 3D inspection image and/or a 2D inspection image of the inspected object, wherein the 3D inspection image is obtained from the inspection data, the 2D inspection image is obtained from the 3D inspection image, or is obtained from the inspection data; a data processor for inserting at least one 3D virtual contraband image (Fictional Threat Image) into the 3D inspection image of the inspected object; and an input device for receiving a selection of at least one region in the 3D inspection image including the 3D virtual contraband image or at least one region in the 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image; wherein the data processor, in response to the selection, provides feedback related to the inclusion of the at least one 3D virtual contraband image in the 3D inspection image.

根据一些实施例,所述数据处理器根据所述检查数据计算所述被检查物体的至少一个空间特征参数,并且基于所述空间特征参数向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像。According to some embodiments, the data processor calculates at least one spatial feature parameter of the inspected object based on the inspection data, and inserts at least one 3D virtual contraband image into the 3D inspection image of the inspected object based on the spatial feature parameter.

根据一些实施例,所述空间特征参数与要插入的3D虚拟违禁品图像的位置、大小、和方向中的至少之一有关。According to some embodiments, the spatial feature parameter is related to at least one of a position, a size, and an orientation of the 3D virtual contraband image to be inserted.

在本发明的一个方面,提出了一种在安检CT系统中标记嫌疑物的方法,包括步骤:对安检CT系统获得的CT数据进行透明区域剔除,获得所述CT数据中的非透明区域的层次包围盒;对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图;使用用户在视线方向做出的标记在正向面深度图和背向面深度图中分别检索,生成第一包围盒;用生成的第一包围盒作为纹理载体进行光线投射;使用用户在与视线方向正交的方向做出的标记在正面向深度图和背向面深度图中分别检索,生成第二包围盒;在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域;将三维空间的标记区域融合显示在CT数据中。In one aspect of the present invention, a method for marking a suspect in a security inspection CT system is proposed, comprising the steps of: removing transparent areas from CT data obtained by the security inspection CT system to obtain hierarchical bounding boxes of non-transparent areas in the CT data; rendering scene depth for the hierarchical bounding boxes to obtain a front surface depth map and a back surface depth map; using a mark made by a user in the direction of sight to search the front surface depth map and the back surface depth map respectively to generate a first bounding box; using the generated first bounding box as a texture carrier to perform ray projection; using a mark made by the user in a direction orthogonal to the direction of sight to search the front surface depth map and the back surface depth map respectively to generate a second bounding box; performing a Boolean intersection operation on the first bounding box and the second bounding box in image space to obtain a marked area in three-dimensional space; and fusing the marked area in the three-dimensional space for display in the CT data.

根据一些实施例,透明区域剔除的步骤包括:沿着视线方向对CT数据进行采样;利用基于阻光度的预积分查询表对每两个采样点之间的线段进行体绘制积分,得到该线段对应的不透明度;利用八叉树编码算法剖分剔除透明区域,得到不透明数据区域对应的层次包围盒。According to some embodiments, the step of removing transparent areas includes: sampling CT data along the line of sight; performing volume rendering integration on the line segment between every two sampling points using a pre-integration lookup table based on opacity to obtain the opacity corresponding to the line segment; and using an octree coding algorithm to segment and remove transparent areas to obtain a hierarchical bounding box corresponding to the opaque data area.

根据一些实施例,渲染场景深度的步骤包括:剔除深度值比较中较大的片段,得到正向面深度图;剔除深度值比较中较小的片段,得到背向面深度图。According to some embodiments, the step of rendering scene depth includes: removing fragments with larger depth values to obtain a front surface depth map; and removing fragments with smaller depth values to obtain a back surface depth map.

根据一些实施例,所述第一包围盒和第二包围盒均为任意方向包围盒。According to some embodiments, the first bounding box and the second bounding box are both arbitrarily oriented bounding boxes.

根据一些实施例,基于空间约束的传递函数将三维空间的标记区域融合显示在CT数据中。According to some embodiments, a spatially constrained transfer function is used to fuse the labeled region in the three-dimensional space into the CT data.

在本发明的另一方面,提出了一种在安检CT系统中标记嫌疑物的装置,包括:对安检CT系统获得的CT数据进行透明区域剔除,获得所述CT数据中的非透明区域的层次包围盒的装置;对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图的装置;使用用户在视线方向做出的标记在正向面深度图和背向面深度图中分别检索,生成第一包围盒的装置;用生成的第一包围盒作为纹理载体进行光线投射的装置;使用用户在与视线方向正交的方向做出的标记在正面向深度图和背向面深度图中分别检索,生成第二包围盒的装置;在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域的装置;将三维空间的标记区域融合显示在CT数据中的装置。In another aspect of the present invention, a device for marking suspicious objects in a security inspection CT system is proposed, comprising: a device for removing transparent areas from CT data obtained by the security inspection CT system to obtain a hierarchical bounding box of non-transparent areas in the CT data; a device for rendering scene depth for the hierarchical bounding box to obtain a front surface depth map and a back surface depth map; a device for searching the front surface depth map and the back surface depth map using a mark made by a user in the direction of sight respectively to generate a first bounding box; a device for performing ray projection using the generated first bounding box as a texture carrier; a device for searching the front surface depth map and the back surface depth map using a mark made by the user in a direction orthogonal to the direction of sight respectively to generate a second bounding box; a device for performing a Boolean intersection operation on the first bounding box and the second bounding box in the image space to obtain a marked area in three-dimensional space; and a device for fusing the marked area in the three-dimensional space and displaying it in the CT data.

根据一些实施例,透明区域剔除的装置包括:沿着视线方向对CT数据进行采样的装置;利用查找表方法对每两个采样点之间的线段进行体绘制积分,得到对应线段的不透明度的装置;利用八叉树编码算法剖分剔除透明区域,得到层次包围盒的装置。According to some embodiments, the device for removing transparent areas includes: a device for sampling CT data along the line of sight; a device for performing volume rendering integral on the line segment between each two sampling points using a lookup table method to obtain the opacity of the corresponding line segment; and a device for removing transparent areas by using an octree coding algorithm to obtain a hierarchical bounding box.

根据一些实施例,渲染场景深度的装置包括:剔除深度值比较中较大的片段,得到正向面深度图的装置;剔除深度值比较中较小的片段,得到背向面深度图的装置。According to some embodiments, the apparatus for rendering scene depth includes: an apparatus for removing fragments with larger depth values compared to obtain a front surface depth map; and an apparatus for removing fragments with smaller depth values compared to obtain a rear surface depth map.

利用上述的技术方案,能够方便用户迅速标记CT图像中的嫌疑物并且给出是否包含虚拟危险品图像的反馈。By utilizing the above technical solution, users can quickly mark suspicious objects in CT images and receive feedback on whether the images contain virtual dangerous goods.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更好地理解本发明,将根据以下附图对本发明进行详细描述:In order to better understand the present invention, the present invention will be described in detail with reference to the following drawings:

图1示出了根据本发明实施例的安检CT系统的结构示意图;FIG1 shows a schematic structural diagram of a security inspection CT system according to an embodiment of the present invention;

图2示出了如图1所示的计算机数据处理器的结构框图;FIG2 shows a block diagram of the computer data processor shown in FIG1 ;

图3示出了根据本发明实施方式的控制器的结构框图;FIG3 shows a structural block diagram of a controller according to an embodiment of the present invention;

图4A是描述根据本发明一个实施例的安检系统中的方法的示意性流程图;FIG4A is a schematic flow chart illustrating a method in a security inspection system according to an embodiment of the present invention;

图4B是描述根据本发明一个实施例的在CT系统中标记嫌疑物的方法的流程图;FIG4B is a flowchart illustrating a method for marking a suspect in a CT system according to one embodiment of the present invention;

图5是描述八叉树剖分算法的示意图;FIG5 is a schematic diagram illustrating an octree partitioning algorithm;

图6是在本发明实施例中利用八叉树剖分算法得到的层次包围盒的示意图;FIG6 is a schematic diagram of a hierarchical bounding box obtained by using an octree decomposition algorithm in an embodiment of the present invention;

图7是在本发明实施例中得到的正向面深度图的示意图;FIG7 is a schematic diagram of a frontal depth map obtained in an embodiment of the present invention;

图8是在本发明实施例中得到的背向面深度图的示意图;FIG8 is a schematic diagram of a back surface depth map obtained in an embodiment of the present invention;

图9是描述本发明实施例中使用的射线透射过程的示意图;FIG9 is a schematic diagram illustrating the radiation transmission process used in an embodiment of the present invention;

图10示出了在本发明实施例中用户勾画的标记的示意图;FIG10 is a schematic diagram showing a mark drawn by a user in an embodiment of the present invention;

图11示出了利用用户的标记进行正向面检索和背向面检索的过程的示意图;FIG11 is a schematic diagram showing the process of performing forward and reverse face retrieval using user tags;

图12示出了在本发明实施例中进行正向面检索和背向面检索所得到的结果的示意图;FIG12 is a schematic diagram showing the results obtained by performing forward face search and backward face search in an embodiment of the present invention;

图13示出了在本发明实施例中得到的标记点列的OBB包围盒的示意图;FIG13 is a schematic diagram showing an OBB bounding box of a marker point sequence obtained in an embodiment of the present invention;

图14示出了在前次标记的结果上更新获得新的光线投射范围的示意图;FIG14 is a schematic diagram showing a method of updating a new ray casting range based on the result of the previous marking;

图15示出了在本发明实施例中在正交的方向进行第二次标记的结果的示意图;FIG15 is a schematic diagram showing the result of a second marking in an orthogonal direction in an embodiment of the present invention;

图16示出了在本发明实施例中使用第二次标记进行正向面检索和背向面检索得到的结果;FIG16 shows the results of forward and reverse face searches using the second markup in an embodiment of the present invention;

图17示出了在本发明实施例中得到的标记点列的OBB包围盒的示意图;FIG17 is a schematic diagram showing an OBB bounding box of a marker point sequence obtained in an embodiment of the present invention;

图18示出了在本发明实施例中使用的在图像空间中对两个物体进行布尔交运算的过程的示意图;FIG18 is a schematic diagram showing a process of performing a Boolean intersection operation on two objects in image space used in an embodiment of the present invention;

图19示出了在本发明实施中获得最终的嫌疑物的三维标记区域的示意图;以及FIG19 is a schematic diagram showing a final three-dimensional marked area of a suspect obtained in an embodiment of the present invention; and

图20示出了在本发明实施例中将标记的嫌疑物融合显示在原始数据中的示意图。FIG. 20 is a schematic diagram showing how the labeled suspects are fused and displayed in the original data in an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将详细描述本发明的具体实施例,应当注意,这里描述的实施例只用于举例说明,并不用于限制本发明。在以下描述中,为了提供对本发明的透彻理解,阐述了大量特定细节。然而,对于本领域普通技术人员显而易见的是:不必采用这些特定细节来实行本发明。在其他实例中,为了避免混淆本发明,未具体描述公知的结构、材料或方法。Specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described herein are intended to be illustrative only and are not intended to limit the present invention. In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that these specific details are not necessarily required to practice the present invention. In other instances, well-known structures, materials, or methods are not specifically described to avoid obscuring the present invention.

在整个说明书中,对“一个实施例”、“实施例”、“一个示例”或“示例”的提及意味着:结合该实施例或示例描述的特定特征、结构或特性被包含在本发明至少一个实施例中。因此,在整个说明书的各个地方出现的短语“在一个实施例中”、“在实施例中”、“一个示例”或“示例”不一定都指同一实施例或示例。此外,可以以任何适当的组合和/或子组合将特定的特征、结构或特性组合在一个或多个实施例或示例中。此外,本领域普通技术人员应当理解,这里使用的术语“和/或”包括一个或多个相关列出的项目的任何和所有组合。Throughout this specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment of the present invention. Thus, appearances of the phrases "in one embodiment," "in an embodiment," "an example," or "an example" in various places throughout this specification are not necessarily all referring to the same embodiment or example. Furthermore, the particular features, structures, or characteristics may be combined in any suitable combinations and/or subcombinations in one or more embodiments or examples. Furthermore, one of ordinary skill in the art will understand that the term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.

针对现有技术不能快速插入3D虚拟违禁品图像的问题,本发明的实施例提供了读取被检查物体的检查数据。向被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像(Fictional Threat Image),该3D检查图像是从检查数据得到的。接收对包括该3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与该3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择,该2D检查图像是从所述3D检查图像得到的,或者是从检查数据得到的。响应于该选择以给出与3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈。利用上述方案,能够方便用户迅速标记CT图像中的嫌疑物并且给出是否包含虚拟危险品图像的反馈。To address the problem that existing technologies cannot quickly insert 3D virtual contraband images, embodiments of the present invention provide a method for reading inspection data of an inspected object. At least one 3D virtual contraband image (Fictional Threat Image) is inserted into the 3D inspection image of the inspected object, the 3D inspection image being derived from the inspection data. A selection is received for at least one area in a 3D inspection image including the 3D virtual contraband image, or at least one area in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image, the 2D inspection image being derived from the 3D inspection image or the inspection data. In response to the selection, feedback is provided regarding the inclusion of at least one 3D virtual contraband image in the 3D inspection image. Using the above solution, users can quickly mark suspects in CT images and receive feedback on whether a virtual threat image is included.

图1是根据本发明实施方式的CT系统的结构示意图。如图1所示,根据本实施方式的CT设备包括:机架20、承载机构40、控制器50、计算机数据处理器60等。机架20包括发出检查用X射线的射线源10,诸如X光机,以及探测和采集装置30。承载机构40承载被检查行李70穿过机架20的射线源10与探测和采集装置30之间的扫描区域,同时机架20围绕被检查行李70的前进方向转动,从而由射线源10发出的射线能够透过被检查行李70,对被检查行李70进行CT扫描。Figure 1 is a schematic diagram of the structure of a CT system according to an embodiment of the present invention. As shown in Figure 1 , the CT apparatus according to this embodiment includes a gantry 20, a support mechanism 40, a controller 50, a computer data processor 60, and the like. The gantry 20 includes a radiation source 10, such as an X-ray machine, that emits X-rays for inspection, and a detection and acquisition device 30. The support mechanism 40 carries inspected baggage 70 through the scanning area between the radiation source 10 and the detection and acquisition device 30 of the gantry 20. The gantry 20 simultaneously rotates in the direction of travel of the inspected baggage 70, allowing the radiation emitted by the radiation source 10 to penetrate the inspected baggage 70, thereby performing a CT scan on the inspected baggage 70.

探测和采集装置30例如是具有整体模块结构的探测器及数据采集器,例如平板探测器,用于探测透射被检物品的射线,获得模拟信号,并且将模拟信号转换成数字信号,从而输出被检查行李70针对X射线的投影数据。控制器50用于控制整个系统的各个部分同步工作。计算机数据处理器60用来处理由数据采集器采集的数据,对数据进行处理并重建,输出结果。The detection and acquisition device 30 is, for example, a detector and data acquisition unit with an integrated modular structure, such as a flat-panel detector. It detects radiation transmitted through the inspected item, generates analog signals, and converts these signals into digital signals, thereby outputting X-ray projection data of the inspected baggage 70. The controller 50 is used to synchronize the operation of various components of the system. The computer data processor 60 processes the data collected by the data acquisition unit, reconstructs the data, and outputs the results.

如图1所示,射线源10置于可放置被检物体的一侧,探测和采集装置30置于被检查行李70的另一侧,包括探测器和数据采集器,用于获取被检查行李70的多角度投影数据。数据采集器中包括数据放大成形电路,它可工作于(电流)积分方式或脉冲(计数)方式。探测和采集装置30的数据输出电缆与控制器50和计算机数据处理器60连接,根据触发命令将采集的数据存储在计算机数据处理器60中。As shown in Figure 1, a radiation source 10 is placed on one side of the inspected object, while a detection and acquisition device 30 is placed on the other side of the inspected baggage 70. The device comprises a detector and a data acquisition unit, which are used to acquire multi-angle projection data from the inspected baggage 70. The data acquisition unit includes a data amplification and shaping circuit that can operate in either a (current) integration mode or a pulse (counting) mode. The data output cable of the detection and acquisition device 30 is connected to a controller 50 and a computer data processor 60. The acquired data is stored in the computer data processor 60 in response to trigger commands.

图2示出了如图1所示的计算机数据处理器60的结构框图。如图2所示,数据采集器所采集的数据通过接口单元68和总线64存储在存储器61中。只读存储器(ROM)62中存储有计算机数据处理器的配置信息以及程序。随机存取存储器(RAM)63用于在处理器66工作过程中暂存各种数据。另外,存储器61中还存储有用于进行数据处理的计算机程序。内部总线64连接上述的存储器61、只读存储器62、随机存取存储器63、输入装置65、处理器66、显示装置67和接口单元68。FIG2 shows a block diagram of the computer data processor 60 shown in FIG1 . As shown in FIG2 , the data collected by the data collector is stored in the memory 61 via the interface unit 68 and the bus 64 . The read-only memory (ROM) 62 stores configuration information and programs for the computer data processor. The random access memory (RAM) 63 is used to temporarily store various data while the processor 66 is operating. Furthermore, the memory 61 also stores computer programs for data processing. An internal bus 64 connects the memory 61, the read-only memory 62, the random access memory 63, the input device 65, the processor 66, the display device 67, and the interface unit 68.

在用户通过诸如键盘和鼠标之类的输入装置65输入的操作命令后,计算机程序的指令代码命令处理器66执行预定的数据处理算法,在得到数据处理结果之后,将其显示在诸如LCD显示器之类的显示装置67上,或者直接以诸如打印之类硬拷贝的形式输出处理结果。After the user inputs an operation command through an input device 65 such as a keyboard and a mouse, the instruction code of the computer program commands the processor 66 to execute a predetermined data processing algorithm. After obtaining the data processing result, it is displayed on a display device 67 such as an LCD display, or the processing result is directly output in the form of a hard copy such as a printout.

图3示出了根据本发明实施方式的控制器的结构框图。如图3所示,控制器50包括:控制单元51,根据来自计算机60的指令,来控制射线源10、承载机构40和探测和采集装置30;触发信号产生单元52,用于在控制单元的控制下产生用来触发射线源10、探测和采集装置30以及承载机构40的动作的触发命令;第一驱动设备53,它在根据触发信号产生单元52在控制单元51的控制下产生的触发命令驱动承载机构40传送被检查行李70;第二驱动设备54,它根据触发信号产生单元52在控制单元51的控制下产生的触发命令机架20旋转。探测和采集装置30获得的投影数据存储在计算机60中进行CT断层图像重建,从而获得被检查行李70的断层图像数据。然后计算机60例如通过执行软件来从断层图像数据得到被检查行李70的至少一个视角下的DR图像,与重建的三维图像一起显示,方便判图员进行安全检查。根据其他实施例,上述的CT成像系统也可以是双能CT系统,也就是机架20的X射线源10能够发出高能和低能两种射线,探测和采集装置30探测到不同能量水平下的投影数据后,由计算机数据处理器60进行双能CT重建,得到被检查行李70的各个断层的等效原子序数和电子密度数据。Figure 3 shows a block diagram of the controller according to an embodiment of the present invention. As shown in Figure 3, the controller 50 includes: a control unit 51, which controls the radiation source 10, the carrier 40, and the detection and acquisition device 30 according to instructions from a computer 60; a trigger signal generating unit 52, which, under the control of the control unit, generates a trigger command to trigger the operation of the radiation source 10, the detection and acquisition device 30, and the carrier 40; a first drive device 53, which drives the carrier 40 to transport the inspected baggage 70 according to a trigger command generated by the trigger signal generating unit 52 under the control of the control unit 51; and a second drive device 54, which rotates the gantry 20 according to a trigger command generated by the trigger signal generating unit 52 under the control of the control unit 51. Projection data obtained by the detection and acquisition device 30 is stored in the computer 60 for CT tomographic image reconstruction, thereby obtaining tomographic image data of the inspected baggage 70. The computer 60 then generates, for example, a DR image of the inspected baggage 70 from the tomographic image data, from at least one viewing angle, and displays it together with the reconstructed 3D image to facilitate security inspection by the image judge. According to other embodiments, the aforementioned CT imaging system may also be a dual-energy CT system, that is, the X-ray source 10 of the gantry 20 is capable of emitting both high-energy and low-energy X-rays. After the detection and acquisition device 30 detects projection data at different energy levels, the computer data processor 60 performs dual-energy CT reconstruction to obtain equivalent atomic number and electron density data for each slice of the inspected baggage 70.

图4A是描述根据本发明一个实施例的安检系统中的方法的示意性流程图。FIG4A is a schematic flow chart illustrating a method in a security inspection system according to an embodiment of the present invention.

如图4A所示,在步骤S401,读取被检查物体的检查数据。As shown in FIG. 4A , in step S401 , inspection data of the inspected object is read.

在步骤S402,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像(Fictional Threat Image),所述3D检查图像是从所述检查数据得到的。例如数据处理器从虚拟危险品图像库中选择一幅或者多幅3D图像插入到被检查物体的3D检查图像中。In step S402, at least one 3D virtual contraband image (Fictional Threat Image) is inserted into the 3D inspection image of the inspected object. The 3D inspection image is obtained from the inspection data. For example, a data processor selects one or more 3D images from a virtual threat image library and inserts them into the 3D inspection image of the inspected object.

在步骤S403,接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择,所述2D检查图像是从所述3D检查图像得到的,或者是从所述检查数据得到的。例如用户操作输入装置在屏幕上显示的图像中勾选或者圈划某个区域。In step S403, a selection of at least one area in a 3D inspection image including the 3D virtual contraband image or at least one area in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image is received, where the 2D inspection image is derived from the 3D inspection image or the inspection data. For example, a user operates an input device to select or circle an area in an image displayed on a screen.

在步骤S404,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈。In step S404, feedback related to at least one 3D virtual contraband image being included in the 3D inspection image is given in response to the selection.

在一些实施例中,接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择的步骤包括:接收所述3D检查图像或2D检查图像中与所述选择相关联的部分的坐标位置。In some embodiments, receiving a selection of at least one area in a 3D inspection image including the 3D virtual contraband image or at least one area in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image includes receiving a coordinate position of a portion of the 3D inspection image or the 2D inspection image associated with the selection.

在一些实施例中,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括以下至少之一:In some embodiments, the step of providing feedback related to the inclusion of at least one 3D virtual contraband image in the 3D inspection image in response to the selection comprises at least one of the following:

判断所述选择的至少一个区域中是否存在所述至少一个3D虚拟违禁品图像、determining whether the at least one 3D virtual contraband image exists in the at least one selected area,

弹出对话框确认在所述3D检查图像中包含至少一个3D虚拟违禁品图像、A dialog box pops up to confirm that the 3D inspection image contains at least one 3D virtual contraband image.

在界面上以文字提示确认在所述3D检查图像中包含至少一个3D虚拟违禁品图像、Confirm with a text prompt on the interface that the 3D inspection image contains at least one 3D virtual contraband image,

突出显示所述3D检查图像或2D检查图像中与所述选择相关联的那部分、highlighting the portion of the 3D examination image or the 2D examination image associated with the selection,

对所述3D检查图像或2D检查图像中与所述选择相关联的部分进行标记、Marking a portion of the 3D inspection image or the 2D inspection image associated with the selection,

用特定的颜色或者图形填充所述3D检查图像或2D检查图像中与所述选择相关联的那部分。The portion of the 3D inspection image or the 2D inspection image associated with the selection is filled with a specific color or graphic.

例如,根据所述检查数据计算所述被检查物体的至少一个空间特征参数,并且基于所述空间特征参数向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像。在一些实施例中,所述空间特征参数与要插入的3D虚拟违禁品图像的位置、大小和方向中的至少之一有关。并且,其中对至少一个区域的选择包括对所显示的3D检查图像中的一部分在一个视角上的选择。例如,在所述3D检查图像的3D绘制过程中,记录表征被检查物体的点云信息,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括:通过分割来获得被检查物体中不同物体的点云信息簇序列;基于预定的基准从不同物体的点云信息簇序列中确定至少一个选中的区域;判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。For example, at least one spatial characteristic parameter of the inspected object is calculated based on the inspection data, and at least one 3D virtual contraband image is inserted into the 3D inspection image of the inspected object based on the spatial characteristic parameter. In some embodiments, the spatial characteristic parameter is related to at least one of the position, size, and orientation of the 3D virtual contraband image to be inserted. Furthermore, the selection of at least one region includes selecting a portion of the displayed 3D inspection image at a single viewing angle. For example, during 3D rendering of the 3D inspection image, point cloud information representing the inspected object is recorded, and in response to the selection, feedback regarding the inclusion of at least one 3D virtual contraband image in the 3D inspection image may include: obtaining a sequence of point cloud information clusters of different objects in the inspected object by segmentation; determining at least one selected region from the sequence of point cloud information clusters of the different objects based on a predetermined benchmark; and determining whether the at least one 3D virtual contraband image exists in the at least one selected region.

在其他实施例中对至少一个区域的选择包括对所显示的3D检查图像中的一部分在多个不同视角上的选择。例如,对至少一个区域的选择包括对所显示的3D检查图像中的一部分在两个不同视角上的选择,所述两个不同视角基本上彼此正交,其中对所述检查数据进行透明区域剔除,获得所述检查数据中的非透明区域的层次包围盒,然后对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括:根据用户在第一视角所选择的区域在正向面深度图和背向面深度图中分别检索,生成第一包围盒;用生成的第一包围盒作为纹理载体进行光线投射;根据用户在与第一视角基本上正交的第二视角所选择的区域在正面向深度图和背向面深度图中分别检索,生成第二包围盒;在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域,作为至少一个选中的区域;判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。In other embodiments, the selection of the at least one region includes selection of a portion of the displayed 3D inspection image at a plurality of different viewing angles. For example, the selection of at least one area includes selecting a portion of the displayed 3D inspection image from two different perspectives, wherein the two different perspectives are substantially orthogonal to each other, wherein transparent areas are removed from the inspection data to obtain a hierarchical bounding box of a non-transparent area in the inspection data, and then the scene depth is rendered for the hierarchical bounding box to obtain a front surface depth map and a back surface depth map. The step of providing feedback related to the inclusion of at least one 3D virtual contraband image in the 3D inspection image in response to the selection includes: searching the front surface depth map and the back surface depth map according to the area selected by the user at the first perspective respectively to generate a first bounding box; performing ray casting using the generated first bounding box as a texture carrier; searching the front surface depth map and the back surface depth map according to the area selected by the user at a second perspective substantially orthogonal to the first perspective to generate a second bounding box; performing a Boolean intersection operation on the first bounding box and the second bounding box in the image space to obtain a marked area in the three-dimensional space as the at least one selected area; and determining whether the at least one 3D virtual contraband image exists in the at least one selected area.

在一些实施例中,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:分割所述3D被检查图像,得到被检查物体的多个3D子图像;计算所述多个3D子图像之间的距离和位置;基于所计算的距离和位置插入3D虚拟违禁品图像。In some embodiments, the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the inspected object includes: segmenting the 3D inspected image to obtain multiple 3D sub-images of the inspected object; calculating the distances and positions between the multiple 3D sub-images; and inserting the 3D virtual contraband image based on the calculated distances and positions.

在另外的实施例中,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:基于体素的阻光度值,确定被检查物体的体数据中的透明部分和非透明部分;从体数据的不透明部分确定被检查物体箱包的位置和尺寸;在箱包范围内确定透明区域中的候选插入位置;根据预定的标准从候选插入位置中选择至少一个选中的区域;判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。In another embodiment, the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the inspected object includes: determining transparent and non-transparent portions in the volume data of the inspected object based on the opacity values of the voxels; determining the position and size of a luggage of the inspected object from the non-transparent portions of the volume data; determining candidate insertion positions in the transparent area within the luggage range; selecting at least one selected area from the candidate insertion positions according to predetermined criteria; and determining whether the at least one 3D virtual contraband image exists in the at least one selected area.

在另外的实施例中,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:剔除2D检查图像中的背景图像,得到2D前景图像;确定2D虚拟违禁品图像在2D前景图像中的2D插入位置;沿着所述2D插入位置的深度方向确定3D虚拟违禁品图像在3D检查图像中的位置;在所确定的位置插入至少一个3D虚拟违禁品图像。In another embodiment, the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the inspected object includes: removing a background image from the 2D inspection image to obtain a 2D foreground image; determining a 2D insertion position of the 2D virtual contraband image in the 2D foreground image; determining a position of the 3D virtual contraband image in the 3D inspection image along a depth direction of the 2D insertion position; and inserting at least one 3D virtual contraband image at the determined position.

上面描述的是插入3D虚拟危险品图像,但是本发明的一些实施例中,也可以向所述被检查物体的2D检查图像中插入与所述至少一个3D虚拟违禁品图像相应的2D虚拟违禁品图像。The above description is about inserting a 3D virtual dangerous goods image, but in some embodiments of the present invention, a 2D virtual contraband image corresponding to the at least one 3D virtual contraband image may also be inserted into the 2D inspection image of the inspected object.

此外,针对现有技术中的问题,本发明的一些实施例提出了一种快速标记嫌疑物的技术。在快速剔除数据的透明区域后,获得投射光线新的射入和射出位置,并记录为深度图。在此基础上,将二维的标记还原出其在体素空间的深度信息。将两次获得的几何体在图像空间进行布尔求交运算,最终获得三维空间中的标记区域。Furthermore, to address the challenges of existing technologies, some embodiments of the present invention propose a technique for rapidly marking suspect objects. After rapidly removing transparent areas from the data, the new entry and exit positions of the projected ray are obtained and recorded as a depth map. Based on this, the two-dimensional mark is restored to its depth information in voxel space. A Boolean intersection operation is performed on the two obtained geometric bodies in image space, ultimately yielding the marked region in three-dimensional space.

例如,在一些实施例中,首先进行透明区域剔除,快速获得数据中非透明区域的紧密层次包围盒,然后渲染上述生成的层次包围盒,获得正、背向面深度图,此为经过调整的投射光线的射入和射出位置。接下来在当前视线方向进行第一次拾取,使用标记点列在正、背向面深度图中分别检索,生成例如OBB包围盒之类的包围盒。然后,根据上述生成的OBB包围盒,更新光线的投射范围,用户在自动旋转到的正交视角下进行第二次拾取,生成新的OBB包围盒。将前两步获得的OBB包围盒,在图像空间中进行布尔交运算,获得最终的标记区域。最后,用基于空间约束的传递函数,将嫌疑区域融合显示于原数据中。使用本发明的标记方法,能够快速,准确地剔除CT数据中的透明区域,以一种友好的操作方式使用户迅速完成嫌疑区域标记任务。For example, in some embodiments, transparent areas are first eliminated to quickly obtain a tight hierarchical bounding box of the non-transparent area in the data. Then, the hierarchical bounding box generated above is rendered to obtain the front and back surface depth maps, which are the adjusted entry and exit positions of the projected light. Next, a first pick is performed in the current line of sight direction, and the marker point list is used to search the front and back surface depth maps respectively to generate a bounding box such as an OBB bounding box. Then, based on the OBB bounding box generated above, the projection range of the light is updated, and the user performs a second pick under the automatically rotated orthogonal perspective to generate a new OBB bounding box. The OBB bounding boxes obtained in the first two steps are subjected to a Boolean intersection operation in the image space to obtain the final marked area. Finally, the suspicious area is fused and displayed in the original data using a transfer function based on spatial constraints. Using the marking method of the present invention, transparent areas in CT data can be quickly and accurately eliminated, allowing users to quickly complete the suspicious area marking task in a user-friendly manner.

图4B是描述根据本发明一个实施例的在CT系统中标记嫌疑物的方法的流程图。在CT设备获得CT数据后,首先提出CT数据中的透明区域。在快速剔除数据的透明区域后,将光线新的射入和射出位置记录为深度图。在拾取过程中,通过将二维的标记在深度图中查询,还原出其在体素空间的深度信息。将两次获得的几何体在图像空间进行布尔求交运算,最终获得三维空间中的标记区域。FIG4B is a flowchart illustrating a method for marking a suspect in a CT system according to an embodiment of the present invention. After the CT device acquires CT data, transparent regions in the CT data are first extracted. After quickly removing the transparent regions from the data, the new entry and exit positions of the light are recorded as a depth map. During the picking process, the depth information of the two-dimensional marker in voxel space is restored by querying the depth map. A Boolean intersection operation is performed on the two obtained geometric bodies in image space to ultimately obtain the marked region in three-dimensional space.

在步骤S411,对安检CT系统获得的CT数据进行基于预积分的透明区域剔除,获得所述CT数据中的非透明区域的层次包围盒。In step S411, transparent areas are eliminated based on pre-integration on the CT data obtained by the security inspection CT system to obtain hierarchical bounding boxes of non-transparent areas in the CT data.

1)基于阻光度的预积分查询表生成1) Generation of pre-integration lookup table based on opacity

体绘制所处理的三维数据场是定义在三维空间的离散数据,整个数据场用一个离散的三维矩阵表示。三维空间中的每个小方格代表一个标量值,称为体素。在实际计算中,体素可以作为三维数据场的一个采样点,采样获得的标量值为s。对于数据场s(x),需先对体数据进行分类来指定颜色和衰减系数。通过引入传输函数(transfer function)来将体数据强度s映射为颜色I(s)和衰减系数τ(s)。在实现例中,此传输函数由双能CT的灰度数据和材料数据共同决定,又称为二维颜色表。The three-dimensional data field processed by volume rendering is discrete data defined in three-dimensional space, and the entire data field is represented by a discrete three-dimensional matrix. Each small square in the three-dimensional space represents a scalar value, called a voxel. In actual calculations, a voxel can be used as a sampling point of the three-dimensional data field, and the scalar value obtained by sampling is s. For the data field s(x), the volume data must first be classified to specify the color and attenuation coefficient. A transfer function is introduced to map the volume data intensity s to the color I(s) and the attenuation coefficient τ(s). In the implementation example, this transfer function is determined by the grayscale data and material data of the dual-energy CT, and is also called a two-dimensional color table.

在体绘制中,在对三维标量场s(x)进行采样时,阻光度函数τ(s(x))的Nyquist采样频率等于τ(s)的最大Nyquist采样频率和标量值s(x)的Nyquist采样频率的乘积。由于衰减系数具有非线性特征,因此会造成Nyquist采样频率急剧增加的现象。为了解决由于传递函数的非线性特征造成采样频率急剧增加的问题,采用预积分方法。同时采用预积分方法后,可以快速地确定一个区块的CT数据是否透明。In volume rendering, when sampling the three-dimensional scalar field s(x), the Nyquist sampling frequency of the opacity function τ(s(x)) is equal to the product of the maximum Nyquist sampling frequency of τ(s) and the Nyquist sampling frequency of the scalar value s(x). Due to the nonlinear characteristics of the attenuation coefficient, this can cause the Nyquist sampling frequency to increase dramatically. To address this issue, a pre-integration method is employed. This method also allows for rapid determination of transparency in the CT data of a given region.

预积分主要分为两步,第一步是沿视线方向对连续标量场s(x)进行采样,此时采样频率值不受传递函数的影响;第二步是通过查找表的方法对每两个采样点之间的线段进行体绘制积分。The pre-integration is mainly divided into two steps. The first step is to sample the continuous scalar field s(x) along the line of sight. At this time, the sampling frequency value is not affected by the transfer function. The second step is to perform volume rendering integration on the line segment between each two sampling points by using a lookup table method.

在完成对s(x)的采样后,接着对每一个小线段进行体绘制积分,此积分过程通过查找表的方式完成。查找表共有三个参数,分别是线段起点,线段终点和线段长度。设定线段长度为常数,则进行查找表计算时只需考虑两个参数,线段起点和线段终点。After sampling s(x), the volume rendering integral is performed on each small line segment. This integral is accomplished using a lookup table. The lookup table has three parameters: the segment start point, the segment end point, and the segment length. If the segment length is set to a constant, only two parameters need to be considered when performing the lookup table calculation: the segment start point and the segment end point.

2)基于八叉树的透明区域剔除2) Octree-based transparent area culling

八叉树是一种用于描述三维空间的树状数据结构。图5是描述八叉树剖分算法的示意图。八叉树的每个节点表示一个立方体的体积元素。每个节点有八个子节点,这八个子节点所表示的体积元素加在一起就等于父节点的体积。如图5所示八叉树包括八个节点ulf,urf,ulb,urb,llf,lrf,llb和lrb。使用八叉树编码算法剖分空间数据时,假设要表示的形体V可以放在一个充分大的立方体C内,则形体V关于立方体C的八叉树可以用以下的递归方法来定义:八叉树的每个结点与C的一个子立方体对应,根节点与C本身相对应,如果V=C,那么V的八叉树仅有树节点;如果V≠C,则将C等分为八个子立方体,每个子立方体与树根的一个子结点相对应。只要某个子立方体不是完全空白或完全为V所占据,则被八等分,从而对应的结点也就有了八个子结点。这样的递归判断、分割一直要进行到结点所对应的立方体或是完全空白,或是完全为V占据,或是其大小已是预先定义的子立方体大小。An octree is a tree-like data structure used to describe three-dimensional space. Figure 5 is a schematic diagram illustrating the octree partitioning algorithm. Each node in the octree represents a volume element of a cube. Each node has eight child nodes, and the volume elements represented by these eight child nodes, added together, equal the volume of the parent node. As shown in Figure 5, the octree consists of eight nodes: ulf, urf, ulb, urb, llf, lrf, llb, and lrb. When using the octree encoding algorithm to partition spatial data, assuming that the shape V to be represented can be placed within a sufficiently large cube C, the octree for shape V with respect to cube C can be defined recursively using the following method: Each node in the octree corresponds to a subcube of C, and the root node corresponds to C itself. If V = C, then the octree for V consists only of tree nodes; if V ≠ C, then C is divided into eight subcubes, each corresponding to a child node of the root. As long as a subcube is not completely empty or completely occupied by V, it is divided into eight equal parts, and the corresponding node thus has eight child nodes. This recursive judgment and segmentation process is continued until the cube corresponding to the node is either completely blank, completely occupied by V, or its size is the predefined sub-cube size.

根据设定的叶结点尺寸,对体数据逐层剖分,在遍历数据场时,统计叶结点对应子块内所有体素的最大值smax和最小值smin,子块对应的轴向包围盒和容积值。然后逐层向上合并结点,构建八叉树,八叉树剖分示意图如5所示。Based on the set leaf node size, the volume data is partitioned layer by layer. As the data field is traversed, the maximum value (s max) and minimum value (s min) of all voxels within the sub-block corresponding to the leaf node, as well as the corresponding axial bounding box and volume values of the sub-block, are calculated. Nodes are then merged layer by layer upward to construct an octree. A schematic diagram of the octree partitioning is shown in Figure 5.

根据本发明的实施例,遍历八叉树,递归地设置各层级结点的可见性状态。对于非叶结点,状态有透明、部分透明和不透明三种。它的状态由此结点包含的子结点状态决定。如果所有子结点为透明,则当前结点为透明;如果所有子结点为不透明,则当前结点为不透明;如果部分子结点透明,则当前结点为半透明。对于叶结点,状态仅有透明和不透明两种。叶结点可见性状态由不透明度查询获得。具体做法为,在构建八叉树时,每一子块的灰度最小和最大值(smin,smax)已经存储,使用上述的不透明度查询函数α(sf,sb)快速获得当前子块的不透明度α,则若α≥αε,当前叶结点为不透明,其中αε为设定的不透明度阈值。如图6所示,为剔除掉透明区块后,剩余的不透明部分,其中大的长方体线框表示为原始数据尺寸。According to an embodiment of the present invention, an octree is traversed, and the visibility state of nodes at each level is recursively set. For non-leaf nodes, the states are transparent, partially transparent, and opaque. Their state is determined by the states of the child nodes contained within the node. If all child nodes are transparent, the current node is transparent; if all child nodes are opaque, the current node is opaque; if some child nodes are transparent, the current node is semi-transparent. For leaf nodes, the states are limited to transparent and opaque. The leaf node visibility state is obtained through an opacity query. Specifically, when constructing the octree, the minimum and maximum grayscale values (s min , s max ) of each sub-block are stored. The opacity query function α (s f , s b ) described above is used to quickly obtain the opacity α of the current sub-block. If α ≥ α ε , the current leaf node is opaque, where α ε is the set opacity threshold. Figure 6 shows the remaining opaque portion after removing the transparent block. The large rectangular wireframe represents the original data size.

在步骤S412,对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图。在步骤S413,使用用户在视线方向做出的标记在正向面深度图和背向面深度图中分别检索,生成第一包围盒。图7是在本发明实施例中得到的正向面深度图的示意图。图8是在本发明实施例中得到的背向面深度图的示意图。In step S412, the scene depth is rendered for the hierarchical bounding box to obtain a front-facing depth map and a back-facing depth map. In step S413, the user's gaze mark is used to search the front-facing depth map and the back-facing depth map to generate a first bounding box. Figure 7 is a schematic diagram of a front-facing depth map obtained in an embodiment of the present invention. Figure 8 is a schematic diagram of a back-facing depth map obtained in an embodiment of the present invention.

在体绘制中需要一个三维模型作为体纹理的载体,体纹理通过纹理坐标和模型进行对应,然后由视点向模型上的点引射线,该射线穿越模型空间等价于射线穿越了体纹理。这样将确定投射光线的射入和射出位置,转化为光线和体纹理载体的求交问题。如图7所示,对上述获得的层次包围盒渲染场景深度图,剔除深度值较大的片段获得正向面深度图,此时正向面深度图上的每个像素的颜色值都代表某个方向上离视点最近的点的距离。如图8所示,剔除深度值较小的片段,渲染场景深度图获得背向面深度图,背向面深度图上的每个像素的颜色值代表某个方向上离视点最远的点的距离。In volume rendering, a three-dimensional model is required as a carrier of the volume texture. The volume texture is mapped to the model through texture coordinates, and then a ray is drawn from the viewpoint to the point on the model. The ray passing through the model space is equivalent to the ray passing through the volume texture. In this way, the entry and exit positions of the projected ray are determined, which is converted into the intersection problem of the ray and the volume texture carrier. As shown in Figure 7, the scene depth map obtained above is rendered by the hierarchical bounding box, and the fragments with larger depth values are eliminated to obtain the front surface depth map. At this time, the color value of each pixel on the front surface depth map represents the distance to the point closest to the viewpoint in a certain direction. As shown in Figure 8, the fragments with smaller depth values are eliminated, and the scene depth map is rendered to obtain the back surface depth map. The color value of each pixel on the back surface depth map represents the distance to the point farthest from the viewpoint in a certain direction.

图9是描述本发明实施例中使用的射线透射过程的示意图。光线投射的基本流程为:从图像的每一个像素沿固定方向发射一条光线,光线穿越整个图像序列,并在这个过程中,对图像序列进行采样和分类获取颜色值,同时依据光线吸收模型将颜色值进行累加,直至光线穿越整个图像序列,最后得到的颜色值是渲染图像的颜色。如图9所示的投射平面即为前述的“图像”。Figure 9 is a schematic diagram illustrating the ray projection process used in an embodiment of the present invention. The basic process of ray projection is as follows: a ray is emitted from each pixel in an image along a fixed direction. This ray traverses the entire image sequence. During this process, the image sequence is sampled and classified to obtain color values. These color values are then accumulated according to a ray absorption model until the ray traverses the entire image sequence. The resulting color value represents the color of the rendered image. The projection plane shown in Figure 9 is the aforementioned "image."

光线投射最终获得的是一张二维图片,无法还原沿像素投射光线所经过体素的深度信息。为了完成在体素空间的区域拾取,如图10所示,我们在投射平面上进行嫌疑区域的勾取,标记结果如图11所示。为了将标记结果还原出体素空间的深度信息,将标记事件离散为点列,在正、背向面深度图中分别检索,获得标记区域在深度图上的投影结果。图12示出了利用用户的标记进行正向面检索和背向面检索的过程的示意图。此时,我们将屏幕图像上的一次二维标记操作,还原为体素空间的三维标记。The final result of ray casting is a two-dimensional image, which cannot restore the depth information of the voxels passed by the ray cast along the pixel. In order to complete the area picking in the voxel space, as shown in Figure 10, we pick the suspected area on the projection plane, and the marking result is shown in Figure 11. In order to restore the depth information of the voxel space from the marking result, the marking event is discretized into a point column, and searched separately in the front and back surface depth maps to obtain the projection result of the marked area on the depth map. Figure 12 shows a schematic diagram of the process of using the user's mark to perform front surface retrieval and back surface retrieval. At this point, we restore a two-dimensional marking operation on the screen image to a three-dimensional mark in the voxel space.

在完成一次标记后,此时嫌疑区域包括的范围仍然较大。为了对此嫌疑区域继续裁剪,需要计算体素空间的标记点列对应的OBB层次包围盒。After completing one marking, the suspected area still covers a large area. In order to continue to crop this suspected area, it is necessary to calculate the OBB hierarchical bounding box corresponding to the marked point sequence in the voxel space.

包围盒法的基本思想是使用简单的几何体来代替复杂的千奇百怪的几何体,先对物体的包围盒进行粗略检测,当包围盒相交时其包围的几何体才有可能相交;当包围盒不相交时,其包围的几何体一定不相交;这样可以排除大量不可能相交的几何体和几何部位,从而快速找到相交的几何部位。包围盒的种类有这样几类:沿坐标轴的包围盒AABB,包围球,沿任意方向包围盒OBB,和一种具有更广泛意义k-dop包围盒权衡各种包围盒的包络紧密度和计算代价,选用OBB包围盒来计算标记点列。OBB包围盒计算的关键是寻找最佳方向,并确定在该方向上包围对象的包围盒的最小尺寸。利用一次矩(均值)和二次矩(协方差矩阵)统计量来计算包围盒的位置和方向。The basic idea of the bounding box method is to use simple geometric shapes to replace complex and bizarre geometric shapes. First, a rough detection is performed on the object's bounding box. Only when the bounding boxes intersect can the bounding boxes intersect; when the bounding boxes do not intersect, the bounding boxes do not intersect. This eliminates a large number of geometric shapes and parts that are unlikely to intersect, allowing for the rapid identification of intersecting parts. There are several types of bounding boxes: AABBs along the coordinate axes, bounding spheres, OBBs along arbitrary directions, and the more general k-dop bounding box. After weighing the envelope tightness and computational cost of various bounding boxes, OBBs are chosen to calculate the marker point sequence. The key to calculating the OBB bounding box is to find the optimal direction and determine the minimum size of the bounding box that encloses the object in that direction. The first moment (mean) and second moment (covariance matrix) statistics are used to calculate the position and orientation of the bounding box.

可以利用数值的方法解出协方差矩阵的特征向量并单位化。由于C是一个实对称矩阵,所以矩阵C的特征向量互相垂直,可以作为包围盒的方向轴。把将要包围的几何体的顶点向方向轴上投影,找出各方向轴的投影区间,各投影区间的长度就是所求包围盒相应的尺寸。图13示出了在本发明实施例中得到的标记点列的OBB包围盒的示意图。The eigenvectors of the covariance matrix can be solved numerically and normalized. Since C is a real symmetric matrix, the eigenvectors of matrix C are perpendicular to each other and can serve as the directional axes of the bounding box. Project the vertices of the geometric body to be enclosed onto the directional axes and find the projection intervals of each directional axis. The length of each projection interval is the corresponding size of the bounding box. Figure 13 shows a schematic diagram of the OBB bounding box of the marker point sequence obtained in an embodiment of the present invention.

在步骤S414,用生成的第一包围盒作为纹理载体进行光线投射;在步骤S415,使用用户在与视线方向正交的方向做出的标记在正面向深度图和背向面深度图中分别检索,生成第二包围盒。In step S414, the generated first bounding box is used as a texture carrier for ray casting; in step S415, the mark made by the user in the direction orthogonal to the viewing direction is used to search in the front depth map and the back depth map respectively to generate a second bounding box.

1)更新光线的投射范围1) Update the projection range of the light

如图14所示,在确定一个嫌疑区域范围后,将区域之外的部分剔除显示,使用生成的OBB包围盒作为新的体纹理载体进行光线投射。As shown in FIG14 , after determining the scope of a suspected area, the portion outside the area is removed from the display, and the generated OBB bounding box is used as a new volume texture carrier for ray casting.

2)旋转视角后的第二次拾取2) Second pick after rotating the view

图15示出了在本发明实施例中在正交的方向进行第二次标记的结果的示意图。图16示出了在本发明实施例中使用第二次标记进行正向面检索和背向面检索得到的结果。图17示出了在本发明实施例中得到的标记点列的OBB包围盒的示意图。在步骤S416,在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域。图18示出了在本发明实施例中使用的在图像空间中对两个物体进行布尔交运算的过程的示意图。Figure 15 is a schematic diagram showing the results of a second labeling operation in an orthogonal direction in an embodiment of the present invention. Figure 16 shows the results of a forward face search and a reverse face search using the second labeling operation in an embodiment of the present invention. Figure 17 is a schematic diagram showing the OBB bounding box of the marked point sequence obtained in an embodiment of the present invention. In step S416, a Boolean intersection operation is performed on the first bounding box and the second bounding box in image space to obtain a marked area in three-dimensional space. Figure 18 is a schematic diagram showing the process of performing a Boolean intersection operation on two objects in image space used in an embodiment of the present invention.

为了快速获得两个OBB包围盒的相交区域,使用CSG方法进行计算。利用OpenGL对CSG模型进行渲染有两个方向,其一是基于物体空间(object space):将CSG模型直接转化为一组多边形的集合然后用OpenGL进行渲染,转换为B-rep模型是这一方案的典型方法,但模型转换造成效率低下并且不便于动态修改;其二是基于图像空间,即为本文采用的方法。To quickly obtain the intersection area of two OBB bounding boxes, a CSG method is used for calculation. There are two approaches to rendering CSG models using OpenGL. The first is based on object space: directly converting the CSG model into a set of polygons and then rendering it with OpenGL. Converting it to a B-rep model is a typical approach to this approach, but the model conversion is inefficient and inconvenient for dynamic modification. The second approach is based on image space, which is the method adopted in this paper.

在图像空间中进行交运算,不对模型作任何修改,每一帧都进行动态运算以决定哪些表面应该显示,哪些表面应该被隐藏或剪裁。使用OpenGL的模板缓存(StencilBuffer)来实现CSG中的交运算。借鉴了光线投射的思想,当实体表面投影到屏幕上时,计数其表面的像素与其他表面相交的次数Intersection operations are performed in image space without modifying the model. Dynamic operations are performed on each frame to determine which surfaces should be displayed and which should be hidden or clipped. The OpenGL stencil buffer is used to implement the intersection operation in CSG. Drawing on the idea of ray casting, when a solid surface is projected onto the screen, the number of times its pixels intersect with other surfaces is counted.

通过之前的操作,已经获得了两个立方体。求取二者的交集,实质是找出一个立方体表面在另一个立方体体积内部的部分。在求交过程中,任意指定的一个组件实体分前表面和后表面在各自的通道中分别渲染。具体在每一次渲染过程,首先将当前表面渲染进深度缓存(Depth Buffer)中,然后结合模板平面操作,使用其他实体来决定当前表面在其他实体内的部分。Through the previous operations, we've obtained two cubes. Finding the intersection of these two cubes essentially involves finding the portion of one cube's surface that lies within the volume of the other. During the intersection process, any given component entity is rendered separately, with its front and back surfaces rendered in separate passes. Each rendering pass first renders the current surface into the depth buffer. Then, combined with the stencil plane operation, other entities are used to determine the portion of the current surface that lies within the other entity.

在此处使用奇偶校验来判断某一点是否在给定实体空间内部,理论上通过奇偶校验可以判定空间任意点是否在给定体积的内部,但由于OpenGL深度缓存对每个像素点只能保存一个深度值,所以渲染实体A和B交集的奇偶校验过程为:首先找出A在B中的部分并绘制出来,然后找出B在A的部分并绘制。此时,A在B中的正面已被渲染。为获得B在A中的正面,首先重新渲染深度缓存中被B的正面覆盖的像素。这是因为经过之前的操作,A的所有部分均在深度缓存中,A在B外的部分可能遮蔽掉B本来可见的部分。在深度缓存中将B的深度值调整正确后,找到B的正面在A中的部分并渲染,与上述类似,从略。图19示出了在本发明实施中获得最终的嫌疑物的三维标记区域的示意图。Parity check is used here to determine whether a certain point is inside a given entity space. In theory, parity check can be used to determine whether any point in space is inside a given volume. However, since the OpenGL depth buffer can only save one depth value for each pixel, the parity check process for rendering the intersection of entities A and B is: first find the part of A in B and draw it, then find the part of B in A and draw it. At this point, the front of A in B has been rendered. In order to obtain the front of B in A, first re-render the pixels in the depth buffer that are covered by the front of B. This is because after the previous operation, all parts of A are in the depth buffer, and the part of A outside B may obscure the originally visible part of B. After the depth value of B is adjusted correctly in the depth buffer, the part of the front of B in A is found and rendered, which is similar to the above and is omitted. Figure 19 shows a schematic diagram of the final three-dimensional marking area of the suspect obtained in the implementation of the present invention.

在步骤S417,将三维空间的标记区域融合显示在CT数据中。例如,在获得拾取的嫌疑区域后,需要将此嫌疑区域以一种较高的视觉优先级融合显示于原数据中。由图18可知,最终的嫌疑区域可能并不是一个规则的长方体形状,此处使用基于空间约束的传递函数。使用扫描线算法,根据体数据维度生成一个一维查询纹理,每一个纹素储存的是对应的空间位置是否在嫌疑区域包围框,最终的融合绘制效果如图20所示。In step S417, the marked area in the three-dimensional space is fused and displayed in the CT data. For example, after obtaining the picked suspect area, it is necessary to fuse this suspect area with the original data with a higher visual priority. As shown in Figure 18, the final suspect area may not be a regular rectangular shape. Here, a transfer function based on spatial constraints is used. Using the scan line algorithm, a one-dimensional query texture is generated based on the volume data dimensions. Each texel stores whether the corresponding spatial position is within the suspect area bounding box. The final fused rendering effect is shown in Figure 20.

此外,在CT数据中进行TIP插入,要保证插入的危险品图像位于箱包范围内,还要保证插入的图像不覆盖箱包的原有物品,此外算法的实时性要求也是需要考虑的重要因素。根据一些实施例,根据阻光度确定体数据的透明和不透明区域,在箱包的空白区域中拣选出容积满足要求的部分作为候选插入位置,根据该位置到视平面的距离和其周围物体的多少最终确定一个指定隐蔽程度的插入位置。Furthermore, when inserting a TIP into CT data, it is crucial to ensure that the inserted hazardous material image is within the confines of the luggage and does not overlap the original contents. Furthermore, the algorithm's real-time performance is a key consideration. In some embodiments, transparent and opaque areas of the volume data are determined based on light obscuration. Within the blank area of the luggage, a portion with a volume that meets the required requirements is selected as a candidate insertion location. Finally, a location with a specified concealment level is determined based on the distance from the location to the viewing plane and the number of surrounding objects.

例如,首先进行基于阻光度的预积分查询表生成,用于体数据透明和非透明区域的快速确定。然后进行体数据不透明八叉树的构建,用于确定箱包在CT数据中的位置和尺寸。接下来。进行体数据透明八叉树的构建,透明八叉树仅统计数据区域内的透明部分,完全剔除不透明部分,由此获得箱包中可供插入的区域。拣选出透明区域中容积符合插入要求的部分,作为候选插入位置。根据指定的插入隐蔽程度,确定最终的插入位置。For example, a pre-integrated lookup table based on opacity is first generated to quickly determine transparent and non-transparent areas in the volume data. Next, an opaque octree of the volume data is constructed to determine the location and size of the bag in the CT data. Next, a transparent octree of the volume data is constructed. This octree only counts the transparent portions within the data area, completely eliminating the opaque portions. This identifies the area within the bag that can be inserted. Portions within the transparent area that meet the insertion requirements are selected as candidate insertion locations. The final insertion location is determined based on the specified insertion concealment level.

上述实施例的方案能够快速地在CT数据中插入危险品图像并且此插入位置能够保证位于箱包内;插入的图像不覆盖箱包的原有物品;插入的隐蔽程度可由参数设定;能够保证算法的实时性。The solution of the above embodiment can quickly insert a dangerous goods image into CT data and the insertion position can be guaranteed to be inside the luggage; the inserted image does not cover the original items in the luggage; the concealment level of the insertion can be set by parameters; and the real-time performance of the algorithm can be guaranteed.

以上的详细描述通过使用示意图、流程图和/或示例,已经阐述了在安检CT系统中标记的嫌疑物的方法和装置的众多实施例。在这种示意图、流程图和/或示例包含一个或多个功能和/或操作的情况下,本领域技术人员应理解,这种示意图、流程图或示例中的每一功能和/或操作可以通过各种结构、硬件、软件、固件或实质上它们的任意组合来单独和/或共同实现。在一个实施例中,本发明的实施例所述主题的若干部分可以通过专用集成电路(ASIC)、现场可编程门阵列(FPGA)、数字信号处理器(DSP)、或其他集成格式来实现。然而,本领域技术人员应认识到,这里所公开的实施例的一些方面在整体上或部分地可以等同地实现在集成电路中,实现为在一台或多台计算机上运行的一个或多个计算机程序(例如,实现为在一台或多台计算机系统上运行的一个或多个程序),实现为在一个或多个处理器上运行的一个或多个程序(例如,实现为在一个或多个微处理器上运行的一个或多个程序),实现为固件,或者实质上实现为上述方式的任意组合,并且本领域技术人员根据本公开,将具备设计电路和/或写入软件和/或固件代码的能力。此外,本领域技术人员将认识到,本公开所述主题的机制能够作为多种形式的程序产品进行分发,并且无论实际用来执行分发的信号承载介质的具体类型如何,本公开所述主题的示例性实施例均适用。信号承载介质的示例包括但不限于:可记录型介质,如软盘、硬盘驱动器、紧致盘(CD)、数字通用盘(DVD)、数字磁带、计算机存储器等;以及传输型介质,如数字和/或模拟通信介质(例如,光纤光缆、波导、有线通信链路、无线通信链路等)。The above detailed description has described numerous embodiments of methods and apparatus for marking suspects in a security CT system through the use of schematic diagrams, flowcharts, and/or examples. Where such schematic diagrams, flowcharts, and/or examples include one or more functions and/or operations, those skilled in the art will appreciate that each function and/or operation in such schematic diagrams, flowcharts, or examples can be implemented individually and/or collectively through various structures, hardware, software, firmware, or substantially any combination thereof. In one embodiment, several portions of the subject matter described in the embodiments of the present invention may be implemented through an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), or other integrated formats. However, those skilled in the art will recognize that some aspects of the embodiments disclosed herein may be equivalently implemented, in whole or in part, in an integrated circuit, as one or more computer programs running on one or more computers (e.g., as one or more programs running on one or more computer systems), as one or more programs running on one or more processors (e.g., as one or more programs running on one or more microprocessors), as firmware, or substantially any combination thereof. Based on this disclosure, those skilled in the art will be equipped with the ability to design circuits and/or write software and/or firmware code. Furthermore, those skilled in the art will recognize that the mechanisms of the subject matter of the present disclosure can be distributed as a program product in a variety of forms, and that the exemplary embodiments of the subject matter of the present disclosure are applicable regardless of the specific type of signal-bearing medium actually used to perform the distribution. Examples of signal-bearing media include, but are not limited to, recordable media such as floppy disks, hard drives, compact disks (CDs), digital versatile disks (DVDs), digital tapes, computer memories, and the like; and transmission media such as digital and/or analog communication media (e.g., fiber optic cables, waveguides, wired communication links, wireless communication links, and the like).

虽然已参照几个典型实施例描述了本发明,但应当理解,所用的术语是说明和示例性、而非限制性的术语。由于本发明能够以多种形式具体实施而不脱离发明的精神或实质,所以应当理解,上述实施例不限于任何前述的细节,而应在随附权利要求所限定的精神和范围内广泛地解释,因此落入权利要求或其等效范围内的全部变化和改型都应为随附权利要求所涵盖。While the present invention has been described with reference to several exemplary embodiments, it should be understood that the terms used are descriptive and illustrative, rather than restrictive. Since the present invention can be embodied in many forms without departing from the spirit or essence of the invention, it should be understood that the above-described embodiments are not limited to any of the foregoing details, but should be interpreted broadly within the spirit and scope of the appended claims. All changes and modifications that fall within the scope of the claims or their equivalents are intended to be covered by the appended claims.

Claims (15)

1.一种安检CT系统中的方法,包括步骤:1. A method in a security screening CT system, comprising the following steps: 读取被检查物体的检查数据;Read the inspection data of the object being inspected; 向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像(FictionalThreat Image),所述3D检查图像是从所述检查数据得到的;Insert at least one 3D virtual threat image into the 3D inspection image of the object being inspected, the 3D inspection image being obtained from the inspection data; 接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择,所述2D检查图像是从所述3D检查图像得到的,或者是从所述检查数据得到的;以及Receive selection of at least one region in a 3D inspection image including the 3D virtual contraband image, or selection of at least one region in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image, wherein the 2D inspection image is obtained from the 3D inspection image or from the inspection data; and 响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈,In response to the selection, feedback is given relating to the inclusion of at least one 3D virtual image of contraband in the 3D inspection image. 其中对至少一个区域的选择包括对所显示的3D检查图像中的一部分在两个不同视角上的选择,所述两个不同视角基本上彼此正交,其中对所述检查数据进行透明区域剔除,获得所述检查数据中的非透明区域的层次包围盒,然后对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括:The selection of at least one region includes selecting a portion of the displayed 3D inspection image from two different viewpoints, the two different viewpoints being substantially orthogonal to each other, wherein transparent regions are culled from the inspection data to obtain a hierarchical bounding box of the non-transparent regions in the inspection data, and then scene depth is rendered on the hierarchical bounding box to obtain a frontal depth map and a backal depth map, wherein the step of providing feedback in response to the selection as relating to the inclusion of at least one 3D virtual contraband image in the 3D inspection image includes: 根据用户在第一视角所选择的区域在正向面深度图和背向面深度图中分别检索,生成第一包围盒;The first bounding box is generated by searching the frontal and back depth maps respectively based on the area selected by the user from the first-view perspective. 用生成的第一包围盒作为纹理载体进行光线投射;Use the generated first bounding box as a texture carrier for light projection; 根据用户在与第一视角基本上正交的第二视角所选择的区域在正面向深度图和背向面深度图中分别检索,生成第二包围盒;A second bounding box is generated by searching the frontal depth map and the backal depth map respectively based on the area selected by the user in the second view that is substantially orthogonal to the first view. 在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域,作为至少一个选中的区域;Perform a Boolean intersection operation on the first and second bounding boxes in the image space to obtain the marked regions in the three-dimensional space, which serve as at least one selected region. 判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。Determine whether the at least one 3D virtual contraband image exists in the at least one selected area. 2.如权利要求1所述的方法,其中接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择的步骤包括:2. The method of claim 1, wherein the step of receiving selection of at least one region in a 3D inspection image including the 3D virtual contraband image or at least one region in a 2D inspection image including a 2D virtual contraband image corresponding to the 3D virtual contraband image comprises: 接收所述3D检查图像或2D检查图像中与所述选择相关联的部分的坐标位置。Receive the coordinates of the portion of the 3D or 2D inspection image associated with the selection. 3.如权利要求1所述的方法,其中响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括以下至少之一:3. The method of claim 1, wherein the step of responding to the selection to provide feedback relating to the inclusion of at least one 3D virtual contraband image in the 3D inspection image comprises at least one of the following: 判断所述选择的至少一个区域中是否存在所述至少一个3D虚拟违禁品图像、Determine whether at least one 3D virtual contraband image exists in at least one selected area. 弹出对话框确认在所述3D检查图像中包含至少一个3D虚拟违禁品图像、A pop-up dialog box confirms that the 3D inspection image contains at least one 3D virtual image of contraband. 在界面上以文字提示确认在所述3D检查图像中包含至少一个3D虚拟违禁品图像、The interface displays a text prompt confirming that the 3D inspection image contains at least one 3D virtual image of contraband. 突出显示所述3D检查图像或2D检查图像中与所述选择相关联的那部分、Highlight the portion of the 3D or 2D inspection image that is associated with the selection. 对所述3D检查图像或2D检查图像中与所述选择相关联的部分进行标记、The portion of the 3D or 2D inspection image associated with the selection is marked. 用特定的颜色或者图形填充所述3D检查图像或2D检查图像中与所述选择相关联的那部分。Fill the portion of the 3D or 2D inspection image associated with the selection with a specific color or pattern. 4.如权利要求1所述的方法,其中根据所述检查数据计算所述被检查物体的至少一个空间特征参数,并且基于所述空间特征参数向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像。4. The method of claim 1, wherein at least one spatial feature parameter of the object being inspected is calculated based on the inspection data, and at least one 3D virtual contraband image is inserted into a 3D inspection image of the object being inspected based on the spatial feature parameter. 5.如权利要求4所述的方法,其中所述空间特征参数与要插入的3D虚拟违禁品图像的位置、大小和方向中的至少之一有关。5. The method of claim 4, wherein the spatial feature parameter relates to at least one of the position, size, and orientation of the 3D virtual contraband image to be inserted. 6.如权利要求1所述的方法,其中对至少一个区域的选择包括对所显示的3D检查图像中的一部分在一个视角上的选择。6. The method of claim 1, wherein selecting at least one region includes selecting a portion of the displayed 3D inspection image from a single viewpoint. 7.如权利要求6所述的方法,其中在所述3D检查图像的3D绘制过程中,记录表征被检查物体的点云信息,响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈的步骤包括:7. The method of claim 6, wherein during the 3D rendering of the 3D inspection image, the step of recording point cloud information representing the inspected object, and responding to the selection to provide feedback related to the inclusion of at least one 3D virtual contraband image in the 3D inspection image, comprises: 通过分割来获得被检查物体中不同物体的点云信息簇序列;The point cloud information cluster sequence of different objects in the inspected object is obtained by segmentation; 基于预定的基准从不同物体的点云信息簇序列中确定至少一个选中的区域;At least one selected region is determined from a sequence of point cloud information clusters of different objects based on a predetermined benchmark. 判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。Determine whether the at least one 3D virtual contraband image exists in the at least one selected area. 8.如权利要求1所述的方法,其中向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:8. The method of claim 1, wherein the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the object being inspected comprises: 分割所述3D被检查图像,得到被检查物体的多个3D子图像;The 3D image under inspection is segmented to obtain multiple 3D sub-images of the object under inspection; 计算所述多个3D子图像之间的距离和位置;Calculate the distances and positions between the plurality of 3D sub-images; 基于所计算的距离和位置插入3D虚拟违禁品图像。3D virtual images of contraband are inserted based on the calculated distance and location. 9.如权利要求1所述的方法,其中向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:9. The method of claim 1, wherein the step of inserting at least one 3D virtual contraband image into the 3D inspection image of the object being inspected comprises: 基于体素的阻光度值,确定被检查物体的体数据中的透明部分和非透明部分;Based on the opacity values of voxels, the transparent and non-transparent parts in the volume data of the object being inspected are determined. 从体数据的不透明部分确定被检查物体箱包的位置和尺寸;The position and size of the inspected object (bag) are determined from the opaque parts of the volume data. 在箱包范围内确定透明区域中的候选插入位置;Determine candidate insertion positions within the transparent area of the bag/suit; 根据预定的标准从候选插入位置中选择至少一个位置来插入至少一个3D违禁品图像。At least one 3D contraband image is inserted by selecting at least one location from candidate insertion locations according to predetermined criteria. 10.如利要求1所述的方法,其中向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像的步骤包括:10. The method of claim 1, wherein the step of inserting at least one 3D virtual image of contraband into a 3D inspection image of the object being inspected comprises: 剔除2D检查图像中的背景图像,得到2D前景图像;Remove the background image from the 2D inspection image to obtain the 2D foreground image; 确定2D虚拟违禁品图像在2D前景图像中的2D插入位置;Determine the 2D insertion position of the 2D virtual contraband image within the 2D foreground image; 沿着所述2D插入位置的深度方向确定3D虚拟违禁品图像在3D检查图像中的位置;The position of the 3D virtual contraband image in the 3D inspection image is determined along the depth direction of the 2D insertion location; 在所确定的位置插入至少一个3D虚拟违禁品图像。Insert at least one 3D virtual image of the contraband at the determined location. 11.如权利要求1所述的方法,还包括向所述被检查物体的2D检查图像中插入与所述至少一个3D虚拟违禁品图像相应的2D虚拟违禁品图像。11. The method of claim 1, further comprising inserting a 2D virtual contraband image corresponding to the at least one 3D virtual contraband image into a 2D inspection image of the object being inspected. 12.一种安检CT系统,包括:12. A security screening CT system, comprising: CT扫描设备,获得被检查物体的检查数据;CT scanning equipment obtains examination data of the object being examined; 存储器,存储所述检查数据;The memory stores the inspection data; 显示设备,显示所述被检查物体的3D检查图像和/或2D检查图像,所述3D检查图像是从所述检查数据得到的,所述2D检查图像是从所述3D检查图像得到的,或者是从所述检查数据得到的;A display device displays a 3D inspection image and/or a 2D inspection image of the object being inspected, wherein the 3D inspection image is obtained from the inspection data, and the 2D inspection image is obtained from the 3D inspection image or from the inspection data. 数据处理器,向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像(Fictional Threat Image);The data processor inserts at least one 3D virtual contraband image into the 3D inspection image of the object being inspected; 输入装置,接收对包括所述3D虚拟违禁品图像在内的3D检查图像中的至少一个区域或者对包括与所述3D虚拟违禁品图像相应的2D虚拟违禁品图像在内的2D检查图像中的至少一个区域的选择;The input device receives a selection of at least one region in a 3D inspection image, including the 3D virtual contraband image, or a selection of at least one region in a 2D inspection image, including a 2D virtual contraband image corresponding to the 3D virtual contraband image. 其中,所述数据处理器响应于所述选择以给出与所述3D检查图像中包含至少一个3D虚拟违禁品图像相关的反馈,The data processor responds to the selection by providing feedback related to the presence of at least one 3D virtual contraband image in the 3D inspection image. 其中,对至少一个区域的选择包括对所显示的3D检查图像中的一部分在两个不同视角上的选择,所述两个不同视角基本上彼此正交,其中对所述检查数据进行透明区域剔除,获得所述检查数据中的非透明区域的层次包围盒,然后对所述层次包围盒渲染场景深度,获得正向面深度图和背向面深度图,The selection of at least one region includes selecting a portion of the displayed 3D inspection image from two different viewpoints, which are substantially orthogonal to each other. Transparent regions are culled from the inspection data to obtain hierarchical bounding boxes of the non-transparent regions within the inspection data. Scene depth is then rendered onto these hierarchical bounding boxes to obtain a frontal depth map and a backal depth map. 其中,所述数据处理器:Wherein, the data processor: 根据用户在第一视角所选择的区域在正向面深度图和背向面深度图中分别检索,生成第一包围盒;The first bounding box is generated by searching the frontal and back depth maps respectively based on the area selected by the user from the first-view perspective. 用生成的第一包围盒作为纹理载体进行光线投射;Use the generated first bounding box as a texture carrier for light projection; 根据用户在与第一视角基本上正交的第二视角所选择的区域在正面向深度图和背向面深度图中分别检索,生成第二包围盒;A second bounding box is generated by searching the frontal depth map and the backal depth map respectively based on the area selected by the user in the second view that is substantially orthogonal to the first view. 在图像空间对第一包围盒和第二包围盒进行布尔交运算,获得三维空间中的标记区域,作为至少一个选中的区域;Perform a Boolean intersection operation on the first and second bounding boxes in the image space to obtain the marked regions in the three-dimensional space, which serve as at least one selected region. 判断所述至少一个选中的区域中是否存在所述至少一个3D虚拟违禁品图像。Determine whether the at least one 3D virtual contraband image exists in the at least one selected area. 13.如权利要求12所述的安检CT系统,其中所述数据处理器根据所述检查数据计算所述被检查物体的至少一个空间特征参数,并且基于所述空间特征参数向所述被检查物体的3D检查图像中插入至少一个3D虚拟违禁品图像。13. The security inspection CT system of claim 12, wherein the data processor calculates at least one spatial feature parameter of the object being inspected based on the inspection data, and inserts at least one 3D virtual contraband image into the 3D inspection image of the object being inspected based on the spatial feature parameter. 14.如权利要求13所述的安检CT系统,其中所述空间特征参数与要插入的3D虚拟违禁品图像的位置、大小、和方向中的至少之一有关。14. The security screening CT system of claim 13, wherein the spatial feature parameter relates to at least one of the position, size, and orientation of the 3D virtual contraband image to be inserted. 15.一种存储介质,记载了计算机指令,当所述计算机指令被执行时,实现如权利要求1-11之一所述的方法。15. A storage medium containing computer instructions that, when executed, implement the method as described in any one of claims 1-11.
HK16106043.6A 2014-06-25 2016-05-27 Ct system for security check and method thereof HK1218157B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410290133.7 2014-06-25
CN201410290133 2014-06-25

Publications (2)

Publication Number Publication Date
HK1218157A1 HK1218157A1 (en) 2017-02-03
HK1218157B true HK1218157B (en) 2020-03-13

Family

ID=

Similar Documents

Publication Publication Date Title
RU2599277C1 (en) Computed tomography system for inspection and corresponding method
Franco et al. Efficient polyhedral modeling from silhouettes
US9978184B2 (en) Methods and apparatuses for marking target in 3D image
EP3112852B1 (en) Method for positioning target in three-dimensional ct image and security check system
KR20130058759A (en) Multi-view ray tracing using edge detection and shader reuse
Richter et al. Out-of-core real-time visualization of massive 3D point clouds
Pidhorskyi et al. syGlass: Interactive exploration of multidimensional images using virtual reality head-mounted displays
JP6753853B2 (en) How to identify and identify objects in a scene by 3D imaging
EP3112909B1 (en) Method for positioning target in three-dimensional ct image and security check ct system
CN117315372B (en) A feature-enhanced 3D perception method
CN111870952A (en) Height map generation method, device, equipment and storage medium
Tan et al. Design of 3D visualization system based on VTK utilizing marching cubes and ray casting algorithm
Toennies et al. Volume rendering for interactive 3D segmentation
CN112907670A (en) Target object positioning and labeling method and device based on profile
HK1218157B (en) Ct system for security check and method thereof
Stotko et al. Improved 3D reconstruction using combined weighting strategies
Lei et al. Software Implementation of Augmented Reality Display System for Radioactive Sources and Surface of Nuclear Waste Container
Shih High-End Volume Visualization
Vialle The UA1 3d graphics analysis system
Goesele et al. Interactive Geometry-Aware Segmentation for the Decomposition of Kaleidoscopic Images