WO2022000804A1 - Security check image artifact removing method using region search and pixel value suppression - Google Patents

Security check image artifact removing method using region search and pixel value suppression Download PDF

Info

Publication number
WO2022000804A1
WO2022000804A1 PCT/CN2020/115777 CN2020115777W WO2022000804A1 WO 2022000804 A1 WO2022000804 A1 WO 2022000804A1 CN 2020115777 W CN2020115777 W CN 2020115777W WO 2022000804 A1 WO2022000804 A1 WO 2022000804A1
Authority
WO
WIPO (PCT)
Prior art keywords
artifact
pixel
row
value
leg
Prior art date
Application number
PCT/CN2020/115777
Other languages
French (fr)
Chinese (zh)
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 WO2022000804A1 publication Critical patent/WO2022000804A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/003Reconstruction from projections, e.g. tomography
    • G06T11/008Specific post-processing after tomographic reconstruction, e.g. voxelisation, metal artifact correction

Definitions

  • the invention relates to the technical field of image processing, in particular to a method for removing artifacts in a security inspection image using area search and pixel value suppression.
  • millimeter wave human body security inspection has huge application prospects. According to the characteristics that millimeter waves can penetrate clothing, dangerous goods hidden on the body can be displayed and identified through millimeter wave imaging and pattern recognition technology.
  • obvious artifacts will be introduced in the imaging results, mainly between the human body's legs, arms and torso, etc., which seriously affects the display effect of human security images and dangerous goods. Identify the results.
  • the main task of artifact removal is to suppress or remove the artifacts in the image after imaging, so as to ensure the accuracy of the security inspection image display.
  • the inspected person Since the artifact is caused by the multiple reflections of the two objects at close range, the inspected person is required to check in a fixed posture during the security inspection, with their feet separated and their hands a certain distance from the torso; third, the artifact based on image processing Shadow removal method. Based on the security inspection image, the artifacts on the image are removed by filtering or matting.
  • CT image artifact removal methods There are two main categories of CT image artifact removal methods based on image processing, including CT image correction-based and sinogram-based artifact removal methods.
  • Wu P. et al. used a method based on CT image correction to remove artifacts. This method is aimed at the annular artifact of CT image, transforming the image from the rectangular coordinate system to the polar coordinate system, and the annular artifact is transformed into a straight line.
  • the linear artifacts are removed by global filtering or local filtering, and finally the coordinate system is converted to a rectangular coordinate system to restore the CT image.
  • This type of method needs to transform the coordinate system multiple times, and the interpolation algorithm used affects the image resolution and requires a large amount of computation; Ashrafuzzaman A. et al.
  • the sinogram appears as a straight line or a curve, and the artifacts are removed by filtering, and the projected sinogram is converted into a normal CT image.
  • the artifact removal method based on polarization characteristics can only eliminate the artifacts caused by secondary reflection at present, but cannot completely eliminate the artifacts in the image;
  • the artifact removal method based on standardizing the posture of the inspected person cannot completely eliminate the artifact by standardizing the posture of the inspected person due to the different shapes of people and the inability to strictly limit the posture of the security inspection;
  • the present invention proposes a method for removing artifact from a security inspection image using area search and pixel value suppression, which includes the following steps:
  • the row search area of the inter-leg artifact prior search area is calculated according to the row coordinates of the head center and the body scale, and the column search area of the inter-leg artifact prior search area is obtained by dividing the center line of the leg area image.
  • the column coordinates are obtained by extending a fixed column of pixels to the left and right, and the column coordinates of the leg center line of the security inspection image are obtained by the flip translation difference method;
  • Shadow pixels include artifact pixels between legs and artifact pixels between arms and torso.
  • the flip-translation difference method is specifically as follows: cyclic shift and left-right flipping are performed on the leg region image, and difference is made, and the image difference after the difference is cumulatively summed to obtain the cumulative sum of image differences with different shift numbers.
  • a vector, and the column coordinates of the center line of the image of the leg area are calculated by the shift number corresponding to the minimum value in the vector.
  • the column search area of the artifact a priori search area between the legs is [L ColCtr -L Width , L ColCtr +L Width ], where L Width is the column coordinate of the leg center line of the security inspection image L ColCtr to the left and right neighbors The number of extended pixel columns;
  • round means rounding
  • arcmin means the n value that makes f( ) get the minimum value
  • f(n) is the value of the flip translation difference function, and its specific calculation formula is:
  • circshift represents the horizontal cyclic shift operation
  • fliplr represents the left and right flip operation
  • sum represents the cumulative summation
  • abs represents the absolute value operation
  • the value range of n is an integer in [-N Shift , N Shift ]
  • f(n ) is a one-dimensional vector containing 2N Shift + 1 values
  • the shift number n corresponding to the minimum value in f(n) can represent the deviation of the symmetry axis of the leg area image from the center line of the security image column
  • N Shift represents the preset the first offset of ;
  • the described first multiple threshold judgment method is specifically, if the pixel value I Leg (x, y) of the pixel in the two-leg artifact a priori search area satisfies the following three conditions simultaneously, then the pixel value I Leg (x, y) ) corresponds to the pixel of the artifact between the legs:
  • the pixel value I Leg (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
  • x and y represent the pixel row coordinates and column coordinates, respectively, and their value range satisfies the coordinate range of the artifact prior search area between the legs;
  • Th Artifact is the set artifact pixel threshold;
  • V SmoothLeft and V SmoothRight are double
  • the mean value of the smooth areas on the left and right sides of the inter-leg artifact prior search area, the row coordinate range of the left and right smooth areas is the same as the row search area of the double-leg artifact prior search area, and the column coordinate ranges of the left and right smooth areas are respectively
  • L Smooth is the preset second offset.
  • the row coordinate interval of the artifact a priori search area between the arms and torso is [H RowCtr + S RowUp , H RowCtr + S RowDown ]
  • the column coordinate interval of the artifact a priori search area between the left and right arms torso is respectively [H RowCtr + S RowUp , H RowCtr + S RowDown ] for and where S RowUp is the distance between the starting row coordinate of the artifact between the arm torso and the head center row coordinate H RowCtr , and S RowDown is the distance between the ending row coordinate of the arm torso artifact and the head center row coordinate H RowCtr ;
  • the second multi-threshold decision method in particular, if the pixels between the left arm torso artifact prior search area pixel value I ArmLeft (x, y) satisfies the following three conditions, the pixel value I ArmLeft (x, y) The corresponding pixel is the artifact pixel between the arm and torso:
  • the pixel value I ArmLeft (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
  • x and y represent the pixel row coordinates and column coordinates, respectively, and their value ranges satisfy the coordinate range of the artifact prior search area between the left arm and torso;
  • V′ SmoothLeft and is the mean value of the smooth areas on the left and right sides of the left arm and torso artifact prior search area.
  • the row coordinate range of the left and right smooth areas is the same as the row search area of the left arm torso artifact prior search area, and the column coordinate range of the left and right smooth areas is the same.
  • the third method of multi-threshold decision Specifically, if the inter-pixel right arm torso artifact prior search area pixel value I ArmRight (x, y) satisfies the following three conditions, the pixel value I ArmRight (x, y) The corresponding pixel is the artifact pixel between the arm and torso:
  • I ArmRight (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
  • i 1, 2, 3, ..., m ⁇ , where x Artifact (i), y Artifact (i) represents the row and column coordinates of the i-th artifact pixel, respectively, and m represents the total number of artifact pixels;
  • the value range of the column coordinates of the pixel neighborhood sequence of the row where the artifact pixel is located is
  • i 1, 2,3, ..., m ⁇ , where, x Artifact (i), y Artifact (i) represent the coordinates of the i-th row and dummy column coordinates of the image pixel, m represents the total number of dummy video pixel.
  • the pixel neighborhood sequence For each artifact pixel (x Artifact (i), y Artifact (i)), take out the pixel neighborhood sequence of its row, the pixel neighborhood sequence, the pixel neighborhood sequence includes the artifact area and the smooth area, let the ith
  • the pixel neighborhood sequence of the artifact pixels is The number of pixels included in each pixel neighborhood sequence is 2(L Width +L Smooth )+1.
  • F(t) is the artifact suppression function, t ⁇ [-L Width -L Smooth , +L Width +L Smooth ], t is an integer, A is the amplitude, ⁇ is the standard deviation of the Gaussian distribution, represents the background mean value of the ith artifact pixel;
  • the value of the specified range A is That is, the difference between the maximum value in the neighborhood of the artifact pixel and the average value of the background, the average value of the image background That is, the pixel mean of the smooth area on both sides of the ith artifact pixel;
  • the present invention has the following significant advantages:
  • the area search method is used to search for the artifact between the legs and the artifact between the arms and the torso in the fixed area, which is conducive to saving computer resources and search time, and improving the efficiency of artifact search;
  • the pixel value suppression method is used to suppress the artifact pixel value, so that the artifact pixel value and its neighboring pixel value have a natural transition, so as to avoid image quality degradation due to excessive value change.
  • Figure 1 is a flowchart of a method for suppressing artifacts in human security inspection images.
  • Figure 3. Image of human security inspection image marking artifact area.
  • Figure 4 is a schematic diagram of calculating the row coordinates of the center of the head.
  • Fig. 5 Map of the prior search area for marking the artifact between the legs in the security inspection image.
  • Fig. 6 Cumulative sum curve graph of leg region image after flipping translation difference method.
  • Figure 7 Security image marking the centerline of the leg area column.
  • Figure 8 Screening images of artifact pixels marked between the legs.
  • Figure 9 Screening images of labeled prior search regions for artifact between arms and torso.
  • Figure 10 Screening images of artifact pixels labeled between arms and torso.
  • FIG. 1 specifically includes the following steps:
  • Figure 2 is the original security inspection image
  • the white dotted box in Figure 3 marks the artifact area, including the upper arm torso artifact and the lower leg artifact. Due to the difference in the height of the human body, and the size ratio of the human security inspection image is the same as that of the human body, the row coordinate information of the human head and torso in the security inspection image is also different.
  • the posture of the inspected person is required to be separated from the arms and torso, and the feet are separated from each other, and the security inspection images of different personnel have the same posture pattern.
  • the artifact search area In order to determine the position of the artifact, the artifact search area must be determined by calculating the position of the head in the image and the fixed proportion of each part of the human body.
  • the a priori search area of the human head determines the a priori search area of the human head, and it is required to cover the head information of different heights. It is assumed that the starting row coordinate of the head a priori search area is H RowUp , and the ending row coordinate is H RowDown , the starting column coordinate is H ColLeft , the ending column coordinate is H ColRight , the pixels in each row in the area are accumulated and summed to obtain a row cumulative projection vector, and the row coordinate greater than the threshold Th head is found in the projection vector, and Average these row coordinates to obtain the row coordinate H RowCtr of the center of the head.
  • the height of the inspected person can be calculated, and the prior artifact between the arms and the torso and the artifact between the legs can be calculated according to the size ratio of the body.
  • Search area As shown in FIG. 4 , the white dotted box in FIG. 4 is the prior search area, and the curve on the right side of the prior search area is the row cumulative projection obtained after the cumulative summation of each row of pixels in the area.
  • the rows and columns are calculated based on the coordinate system of the security inspection image.
  • the coordinate system of the security inspection image is the starting point of the upper left corner of the security inspection image as the coordinate center, and the right direction of the coordinate center is the positive direction of the column coordinate axis.
  • the coordinate system formed by the downward direction of the coordinate center is the positive direction of the row coordinate axis.
  • the shape of the artifact between the legs is a vertical straight line, and the length and intensity of the artifact are related to the body height and standing posture.
  • the row coordinate interval of the artifact is all the rows in the area where the leg is located, and the column coordinate of the artifact is on the symmetry axis of the two legs.
  • the artifacts between the legs will gradually weaken with the increase of the distance between the legs and finally disappear, and due to the non-standard standing posture, the inspected person may not be in the center of the imaging scene.
  • the row coordinate interval is still calculated according to the row interval where the legs are located, and the column coordinates of the center lines of the two legs are calculated by the flip translation difference method.
  • the specific coordinates of the artifact pixels between the legs are obtained by using the first multiple threshold decision method.
  • the obtained security check image is approximately symmetrical, and the artifact between the legs is on the symmetry axis, but the symmetry axis is deviated from the center line of the image column. Therefore, the security check image leg is obtained. The position of the center line of the leg is completed to complete the calculation of the coordinates of the artifact column between the legs.
  • the invention uses the flip translation difference method to obtain the leg centerline column coordinates of the security inspection image.
  • the leg region image be I Leg (as shown in the dotted box in Figure 5), and the cyclic shift number is n, then the calculated flip translation difference function value is:
  • circshift represents the horizontal cyclic shift operation
  • fliplr represents the left and right flip operation
  • sum represents the cumulative summation
  • abs represents the absolute value operation
  • the value range of n is an integer in [-N Shift , N Shift ] (wherein, N Shift ) represents the preset first offset)
  • f(n) is a one-dimensional vector containing 2N Shift + 1 values
  • the shift number n corresponding to the minimum value in f(n) can represent the center line of the leg of the security inspection image Deviation from the centerline of the security image column.
  • the curve of the absolute value sum of the image differences obtained in the shift interval is shown in Fig. 6 .
  • the white line marks the center line of the leg of the security inspection image; among them, round means rounding, and arcmin means the n value that makes f( ⁇ ) take the minimum value. Since there is one column or multiple columns of artifact pixels, extend L Width columns of pixels in the left and right neighborhoods of L ColCtr as the search area for artifact column coordinates (that is, L Width is the column coordinate of the leg center line of the security inspection image, L ColCtr The number of pixel columns extending to the left and right neighborhoods).
  • the row coordinate range of the prior artifact search area between the legs is: [L BowBgn , N Row ], and the column coordinate range is: [L ColCtr -L Width , L ColCtr +L Width ].
  • a threshold is used to determine whether the pixels in the area are artifact pixels, and the artifact pixel threshold is set as Th Artifact .
  • L ColCtr -L Width , L ColCtr +L Width the column coordinate range [L ColCtr -L Width , L ColCtr +L Width ] of the determined artifact area.
  • the pixel value of the artifact prior search area between the legs is represented as I Leg (x, y), where x and y represent the pixel row and column coordinates, respectively, and the value range satisfies the coordinate range of the artifact prior search area. . Traverse each pixel in the prior search area, and if I Leg (x, y) satisfies the following conditions simultaneously, it is considered to be an artifact pixel:
  • the pixel value I Leg (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
  • the coordinate information of the artifact pixels is recorded, as shown in FIG. 8 .
  • the white dots in FIG. 8 mark the artifact pixels between the legs.
  • the shape of the artifact between the arms and torso is a vertical straight line or a curve, and the length and intensity of the artifact are related to the placement of the human arm.
  • the distance between the starting and ending row coordinates of the artifact between the arm torso and the center row coordinate H RowCtr of the head is S RowUp and S RowDown respectively.
  • the row coordinate interval of the verification search area is [H RowCtr +S RowUp , H RowCtr +S RowDown ]. It is stipulated that the left arm in the security inspection image is the right arm of the human body, and the right arm in the image is the left arm of the human body.
  • the column coordinate intervals of the artifact prior search area between the left and right arms and torso of the human body are determined as follows: and According to the range of the search interval, the prior search interval images of the left and right arms of the human body are obtained as I ArmLeft and I ArmRight respectively , and the area shown by the dotted box in Figure 9 is the prior search area for the artifact between the arms and torso.
  • the second multiple threshold method is used to determine whether the pixels in the area are artifact pixels. Similar to the judgment method of the artifact between the legs, assuming that the column interval of the artifact pixel I ArmLeft (x, y) between the left arm and torso is [yL Width , y+L Width ], and then expand the L Smooth column on the left and right sides. Pixels are used to represent smooth areas, and the mean values of pixels in the smooth areas on the left and right sides are V′ SmoothLeft and Similarly, the average pixel values of the smooth areas on the left and right sides of the artifact pixel I ArmRight (x, y) between the right arm and torso are V′′ SmoothLeft and
  • the pixel value I ArmLeft (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
  • the pixel I ArmRight (x, y) in the right arm prior search area satisfies the following conditions, it is considered as an artifact pixel:
  • the pixel value I ArmRight (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
  • i 1, 2,3, ..., m ⁇ , where, x Artifact (i), y Artifact (i) represent the coordinates of the i-th row and dummy column coordinates of the image pixel, m represents the total number of dummy video pixel.
  • the pixel neighborhood sequence includes the artifact area and the smooth area, and the pixel neighborhood sequence of the i-th artifact is The number of pixels included in each pixel neighborhood sequence is 2(L Wrdth +L Smooth )+1.
  • t [-L Width -L Smooth , +L Width +L Smooth ], t is an integer, A is the amplitude, ⁇ is the standard deviation of the Gaussian distribution, represents the background mean of the ith artifact pixel.
  • the value of the specified range A is That is, the difference between the maximum value in the neighborhood of the artifact pixel and the average value of the background.
  • Image background average That is, the pixel mean of the smooth region on both sides of the ith artifact pixel. Therefore, the maximum value of the obtained suppression function is the maximum value of the artifact pixel area, and the minimum value is the value of the image background, and the parameters of the suppression function need to be recalculated for each artifact pixel.
  • the present invention has the following significant advantages:
  • the area search method is used to search for the artifact between the legs and the artifact between the arms and the torso in the fixed area, which is conducive to saving computer resources and search time, and improving the efficiency of artifact search;
  • the pixel value suppression method is used to suppress the artifact pixel value, so that the artifact pixel value and its neighboring pixel value have a natural transition, so as to avoid image quality degradation due to excessive value change.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

A security check image artifact removing method using region search and pixel value suppression. The method comprises the following steps: calculating the center row coordinates of the head of a human body; determining artifact pixels between the two legs; determining artifact pixels between the arms and the trunk; and suppressing pixel values of the artifact pixels to obtain a security check image without artifacts. According to a fixed posture during human body security check, a region search method is used to search a fixed region for artifacts between the two legs and artifacts between the arms and the trunk, which is conducive to saving on computer resources and search time, and improving the artifact search efficiency.

Description

一种利用区域搜索和像素值抑制的安检图像伪影去除方法An Artifact Removal Method for Security Inspection Images Using Region Search and Pixel Value Suppression 技术领域technical field
本发明涉及图像处理技术领域,具体涉及一种利用区域搜索和像素值抑制的安检图像伪影去除方法。The invention relates to the technical field of image processing, in particular to a method for removing artifacts in a security inspection image using area search and pixel value suppression.
背景技术Background technique
近年来,国际安全形势日益严峻,机场、车站等人员密集场所的入口均安排了更加严格的安全检查。由于毫米波成像技术的不断完善以及国内对安检产品规范的出台,毫米波人体安检有巨大的应用前景。根据毫米波能穿透衣物的特点,隐藏在身体上的危险品能通过毫米波成像和模式识别技术显示并识别出来。然而,由于电磁波在人体上的多次散射会在成像结果中引入明显的伪影,主要存在于人体双腿之间、手臂躯干之间等,这严重影响了人体安检图像的显示效果及危险品识别结果。伪影去除的主要任务是在成像后对图像中的伪影进行抑制或去除,保证安检图像显示的准确性。In recent years, the international security situation has become increasingly severe, and stricter security inspections have been arranged at the entrances of crowded places such as airports and stations. Due to the continuous improvement of millimeter wave imaging technology and the introduction of domestic security inspection product specifications, millimeter wave human body security inspection has huge application prospects. According to the characteristics that millimeter waves can penetrate clothing, dangerous goods hidden on the body can be displayed and identified through millimeter wave imaging and pattern recognition technology. However, due to the multiple scattering of electromagnetic waves on the human body, obvious artifacts will be introduced in the imaging results, mainly between the human body's legs, arms and torso, etc., which seriously affects the display effect of human security images and dangerous goods. Identify the results. The main task of artifact removal is to suppress or remove the artifacts in the image after imaging, so as to ensure the accuracy of the security inspection image display.
消除人体安检图像的伪影信息通常利用三种方式,第一,利用极化特性消除二次反射伪影。美国PNNL公司通过收发毫米波的极化状态来消除二次反射伪影,安检仪的发射天线采用左旋极化,而接收天线采用右旋极化,根据单次反射会改变圆计划方向而二次反射不改变圆极化方向的特点,通过极化特性消除二次反射引起的伪影;第二,规范被检人员姿势消除伪影。由于伪影是由于两物体近距离的多次反射造成的,因此要求被检人员在安检时应按照固定姿势进行检查,双脚分开,双手离躯干有一定距离;第三,基于图像处理的伪影去除方法。以安检图像为基础,通过滤波或抠图等方法去除图像上的伪影。There are usually three ways to eliminate the artifact information of human security inspection images. First, use polarization characteristics to eliminate secondary reflection artifacts. American PNNL company eliminates secondary reflection artifacts by sending and receiving the polarization state of millimeter waves. The transmitting antenna of the security detector adopts left-handed polarization, while the receiving antenna adopts right-handed polarization. According to a single reflection, the circular plan direction will be changed and the second The reflection does not change the direction of the circular polarization, and the artifacts caused by the secondary reflection are eliminated through the polarization characteristics; secondly, the posture of the inspected person is standardized to eliminate the artifacts. Since the artifact is caused by the multiple reflections of the two objects at close range, the inspected person is required to check in a fixed posture during the security inspection, with their feet separated and their hands a certain distance from the torso; third, the artifact based on image processing Shadow removal method. Based on the security inspection image, the artifacts on the image are removed by filtering or matting.
针对基于图像处理的CT图像伪影去除方法主要包括两大类,包括基于CT图像校正和基于正弦图的伪影去除方法。Wu P.等利用基于CT图像校正的方法去除伪影,该方法针对CT图像的环状伪影,将图像从直角坐标系转换到极坐标系下,环状伪影则变换为直线,再通过全局滤波或局部滤波对直线伪影进行去除,最后再将坐标系转换到直角坐标系下,恢复CT图像。该类方法需要多次变换坐标系,使用的插值算法影响图像分辨率且计算量大;Ashrafuzzaman A.等针对CT图像中的环状伪影,以投影正弦图为基础,由于环状伪影在正弦图中表现为直线或曲线,通过滤波方法进行伪影去除,在将投影的正弦图转换为正常的CT图像。There are two main categories of CT image artifact removal methods based on image processing, including CT image correction-based and sinogram-based artifact removal methods. Wu P. et al. used a method based on CT image correction to remove artifacts. This method is aimed at the annular artifact of CT image, transforming the image from the rectangular coordinate system to the polar coordinate system, and the annular artifact is transformed into a straight line. The linear artifacts are removed by global filtering or local filtering, and finally the coordinate system is converted to a rectangular coordinate system to restore the CT image. This type of method needs to transform the coordinate system multiple times, and the interpolation algorithm used affects the image resolution and requires a large amount of computation; Ashrafuzzaman A. et al. The sinogram appears as a straight line or a curve, and the artifacts are removed by filtering, and the projected sinogram is converted into a normal CT image.
与CT图像不同,人体安检图像不存在环状伪影,伪影形状多为直线或曲线,存在于手臂躯干之间和双腿之间,伪影的强度和形状取决于被检人员的姿态。现有伪影去除方法大多基于CT图像的,而基于CT图像的伪影去除方法很难直接应用在人体安检图像中,因此需要专门研究人体安检图像的伪影去除方法。Different from CT images, human security inspection images do not have ring artifacts. The artifact shapes are mostly straight lines or curves, and exist between the arms torso and between the legs. The intensity and shape of the artifacts depend on the posture of the inspected person. Most of the existing artifact removal methods are based on CT images, and it is difficult to directly apply the artifact removal methods based on CT images in human security inspection images.
总之现有技术存在的问题是:In short, the problems existing in the prior art are:
1.基于极化特性的伪影去除方法,目前只能消除二次反射引起的伪影,不能完全消除图像中的伪影;1. The artifact removal method based on polarization characteristics can only eliminate the artifacts caused by secondary reflection at present, but cannot completely eliminate the artifacts in the image;
2.基于规范被检人员姿态的伪影去除方法,由于人的形态不同以及安检姿态无法严格限制,通过规范被检人员姿态的方法也不能完全消除伪影;2. The artifact removal method based on standardizing the posture of the inspected person cannot completely eliminate the artifact by standardizing the posture of the inspected person due to the different shapes of people and the inability to strictly limit the posture of the security inspection;
3.基于图像处理的伪影去除方法,该类方法大多集中在CT图像的伪影去除方面,对人体安检图像的伪影去除参考价值较小。3. Artifact removal methods based on image processing, most of these methods focus on the artifact removal of CT images, and have little reference value for the removal of artifacts from human security inspection images.
发明内容SUMMARY OF THE INVENTION
为了解决上述问题,本发明提出了一种利用区域搜索和像素值抑制的安检图像伪影去除方法,包括以下步骤:In order to solve the above problems, the present invention proposes a method for removing artifact from a security inspection image using area search and pixel value suppression, which includes the following steps:
计算人体头部中心行坐标:Calculate the row coordinates of the center of the human head:
在设定的头部先验搜索区域内对所有行像素的像素值进行累积求和,将累积和中大于阈值的行坐标作为头部行坐标,取头部行坐标的均值作为人体头部中心行坐标;Accumulate and sum the pixel values of all row pixels in the set head a priori search area, take the row coordinate of the cumulative sum greater than the threshold as the head row coordinate, and take the average of the head row coordinates as the center of the human head row coordinates;
判决双腿间伪影像素:Determine the artifact pixel between the legs:
确定双腿间伪影先验搜索区域,通过第一多重阈值方法判断双腿间伪影先验搜索区域内的像素是否为双腿间伪影像素,从而得到双腿间伪影像素坐标;所述双腿间伪影先验搜索区域的行搜索区域根据头部中心行坐标和身体比例计算得到,所述双腿间伪影先验搜索区域的列搜索区域通过将腿部区域图像中心线列坐标向左右扩展固定列个像素获得,所述安检图像腿部中心线列坐标通过翻转平移差分法求得;Determine the artifact prior search area between the legs, and determine whether the pixels in the artifact prior search area between the legs are artifact pixels between the legs through the first multiple threshold method, so as to obtain the artifact pixel coordinates between the legs; The row search area of the inter-leg artifact prior search area is calculated according to the row coordinates of the head center and the body scale, and the column search area of the inter-leg artifact prior search area is obtained by dividing the center line of the leg area image. The column coordinates are obtained by extending a fixed column of pixels to the left and right, and the column coordinates of the leg center line of the security inspection image are obtained by the flip translation difference method;
判决手臂躯干间伪影像素:Determining artifact pixels between arms and torso:
根据头部中心行坐标和身体比例确定左右手臂躯干间伪影的先验搜索区域,通过第二多重阈值方法和第三多重阈值方法分别判断左右手臂躯干间伪影的先验搜索区域内的像素是否为手臂躯干间伪影像素,得到手臂躯干间伪影像素的坐标;Determine the prior search area of the artifact between the left and right arm torso according to the head center row coordinate and body proportion, and use the second multiple threshold method and the third multiple threshold method to determine the prior search area of the left and right arm torso artifacts respectively. Whether the pixel of is the artifact pixel between the arm and torso, get the coordinates of the artifact pixel between the arm and torso;
对伪影像素的像素值进行抑制:Suppress the pixel value of the artifact pixel:
取出每个伪影像素及其所在行的像素邻域序列,构建伪影抑制函数进行伪影抑制,再将抑制后的像素序列替换原先的像素序列,得到去除伪影的安检图像;所述伪影像素包括双腿间伪影像素和手臂躯干间伪影像素。Take out each artifact pixel and the pixel neighborhood sequence of its row, construct an artifact suppression function for artifact suppression, and then replace the original pixel sequence with the suppressed pixel sequence to obtain an artifact-removed security inspection image; Shadow pixels include artifact pixels between legs and artifact pixels between arms and torso.
进一步地,所述翻转平移差分法具体为,将腿部区域图像进行循环移位和左右翻转后做差,并对做差后的图像差累计求和,得到不同移位数的图像差累积和向量,通过向量中最小值对应的移位数计算腿部区域图像中心线列坐标。Further, the flip-translation difference method is specifically as follows: cyclic shift and left-right flipping are performed on the leg region image, and difference is made, and the image difference after the difference is cumulatively summed to obtain the cumulative sum of image differences with different shift numbers. A vector, and the column coordinates of the center line of the image of the leg area are calculated by the shift number corresponding to the minimum value in the vector.
进一步地,所述双腿间伪影先验搜索区域的行搜索区域为[L RowBgn,N Row],其中,N Row为安检图像的行数,L RowBgn为双腿间伪影的起始行坐标,L RowBgn=round(N Row-(N Row-H RowCtr)·ρ),round表示四舍五入,H RowCtr人体头部中心行坐标,ρ为安检图像中腿长与身高的比例; Further, the row search area of the inter-leg artifact prior search area is [L RowBgn , N Row ], where N Row is the number of rows of the security inspection image, and L RowBgn is the starting row of the inter-leg artifact Coordinates, L RowBgn = round(N Row -(N Row -H RowCtr )·ρ), round means rounding, H RowCtr is the center row coordinate of the human head, and ρ is the ratio of leg length to height in the security image;
所述双腿间伪影先验搜索区域的列搜索区域为[L ColCtr-L Width,L ColCtr+L Width],其中,L Width为安检图像腿部中心线列坐标L ColCtr向左右两边邻域扩展的像素列的个数; The column search area of the artifact a priori search area between the legs is [L ColCtr -L Width , L ColCtr +L Width ], where L Width is the column coordinate of the leg center line of the security inspection image L ColCtr to the left and right neighbors The number of extended pixel columns;
所述腿部图像对称轴列坐标L ColCtr的计算公式为: The calculation formula of the coordinate L ColCtr of the symmetry axis of the leg image is:
Figure PCTCN2020115777-appb-000001
Figure PCTCN2020115777-appb-000001
其中,round表示四舍五入,arcmin表示使f(·)取得最小值的n数值;Among them, round means rounding, and arcmin means the n value that makes f( ) get the minimum value;
f(n)为翻转平移差分函数值,其具体计算公式为:f(n) is the value of the flip translation difference function, and its specific calculation formula is:
f(n)=sum(abs(circshift(I Leg,n)-fliplr(circshift(I Leg,n)))) f(n)=sum(abs(circshift(I Leg ,n)-fliplr(circshift(I Leg ,n))))
其中,circshift表示横向循环移位操作,fliplr表示左右翻转操作,sum表示累积求和,abs表示求绝对值操作,n取值范围是[-N Shift,N Shift]中的整数,则f(n)为包含2N Shift+1个数值的一维向量,f(n)中最小值对应的移位数n能够表示腿部区域图像对称轴与安检图像列中心线的偏离情况,N Shift表示预设的第一偏移量; Among them, circshift represents the horizontal cyclic shift operation, fliplr represents the left and right flip operation, sum represents the cumulative summation, abs represents the absolute value operation, and the value range of n is an integer in [-N Shift , N Shift ], then f(n ) is a one-dimensional vector containing 2N Shift + 1 values, the shift number n corresponding to the minimum value in f(n) can represent the deviation of the symmetry axis of the leg area image from the center line of the security image column, and N Shift represents the preset the first offset of ;
所述第一多重阈值判决方法具体为,如果双腿间伪影先验搜索区域内像素的像素值I Leg(x,y)同时满足以下三个条件,则像素值I Leg(x,y)所对应的像素为双腿间伪影像素: The described first multiple threshold judgment method is specifically, if the pixel value I Leg (x, y) of the pixel in the two-leg artifact a priori search area satisfies the following three conditions simultaneously, then the pixel value I Leg (x, y) ) corresponds to the pixel of the artifact between the legs:
(1)像素值I Leg(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (1) The pixel value I Leg (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
(2)I Leg(x,y)<Th Artifact(2) I Leg (x, y) < Th Artifact ;
(3)I Leg(x,y)<V SmoothLeft+Th Artifact/3且I Leg(x,y)<V SmoothRight+Th Artifact/3; (3) I Leg (x, y) < V SmoothLeft +Th Artifact /3 and I Leg (x, y) < V SmoothRight +Th Artifact /3;
其中,x,y分别表示像素行坐标和列坐标,其取值范围满足双腿间伪影先验搜索区域的坐标范围;Th Artifact为设定的伪影像素阈值;V SmoothLeft和V SmoothRight为双腿间伪影先验搜索区域左右两边的平滑区域的均值,左右平滑区域的行坐标范围与双腿间伪影先验搜索区域的行搜索区域相同,左右平滑区域的列坐标范围分别为 Among them, x and y represent the pixel row coordinates and column coordinates, respectively, and their value range satisfies the coordinate range of the artifact prior search area between the legs; Th Artifact is the set artifact pixel threshold; V SmoothLeft and V SmoothRight are double The mean value of the smooth areas on the left and right sides of the inter-leg artifact prior search area, the row coordinate range of the left and right smooth areas is the same as the row search area of the double-leg artifact prior search area, and the column coordinate ranges of the left and right smooth areas are respectively
[L ColCtr-L Width-L Smooth,L ColCtr-L Width-1]和[L ColCtr+L Width+1,L ColCtr+L Width+L Smooth],L Smooth为预设的第二偏移量。 [L ColCtr -L Width -L Smooth , L ColCtr -L Width -1] and [L ColCtr +L Width +1, L ColCtr +L Width +L Smooth ], L Smooth is the preset second offset.
进一步地,所述手臂躯干间伪影先验搜索区域的行坐标区间为[H RowCtr+S RowUp,H RowCtr+S RowDown],左右两侧手臂躯干间伪影先验搜索区域的列坐标区间分别为
Figure PCTCN2020115777-appb-000002
Figure PCTCN2020115777-appb-000003
其中S RowUp为手臂躯干间伪影的起始行坐标与头部中心行坐标H RowCtr的距离,S RowDown为手臂躯干间伪影的终止行坐标与头部中心行坐标H RowCtr的距离;
Further, the row coordinate interval of the artifact a priori search area between the arms and torso is [H RowCtr + S RowUp , H RowCtr + S RowDown ], and the column coordinate interval of the artifact a priori search area between the left and right arms torso is respectively [H RowCtr + S RowUp , H RowCtr + S RowDown ] for
Figure PCTCN2020115777-appb-000002
and
Figure PCTCN2020115777-appb-000003
where S RowUp is the distance between the starting row coordinate of the artifact between the arm torso and the head center row coordinate H RowCtr , and S RowDown is the distance between the ending row coordinate of the arm torso artifact and the head center row coordinate H RowCtr ;
所述第二多重阈值判决方法具体为,如果左手臂躯干间伪影先验搜索区域内像素的像素值I ArmLeft(x,y)同时满足以下三个条件,则像素值I ArmLeft(x,y)所对应的像素为手臂躯干间伪影像素: The second multi-threshold decision method in particular, if the pixels between the left arm torso artifact prior search area pixel value I ArmLeft (x, y) satisfies the following three conditions, the pixel value I ArmLeft (x, y) The corresponding pixel is the artifact pixel between the arm and torso:
(1)像素值I ArmLeft(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (1) The pixel value I ArmLeft (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
(2)I ArmLeft(x,y)<Th Artifact(2) I ArmLeft (x, y) < Th Artifact ;
(3)I ArmLeft(x,y)<V′ SmoothLeft+Th Artifact/3且 (3) I ArmLeft (x, y) < V′ SmoothLeft +Th Artifact /3 and
Figure PCTCN2020115777-appb-000004
Figure PCTCN2020115777-appb-000004
其中,x,y分别表示像素行坐标和列坐标,其取值范围满足左手臂躯干间伪影先验搜索区域的坐标范围;V′ SmoothLeft
Figure PCTCN2020115777-appb-000005
为左手臂躯干间伪影先验搜索区域左右两边的平滑区域的均值,左右平滑区域的行坐标范围与左手臂躯干间伪影先验搜索区域的行搜索区域相同,左右平滑区域的列坐标范围分别为[L ColCtr-L Width-L Smooth,L ColCtr-L Width-1]和[L ColCtr+L Width+1,L ColCtr+L Width+L Smooth];
Among them, x and y represent the pixel row coordinates and column coordinates, respectively, and their value ranges satisfy the coordinate range of the artifact prior search area between the left arm and torso; V′ SmoothLeft and
Figure PCTCN2020115777-appb-000005
is the mean value of the smooth areas on the left and right sides of the left arm and torso artifact prior search area. The row coordinate range of the left and right smooth areas is the same as the row search area of the left arm torso artifact prior search area, and the column coordinate range of the left and right smooth areas is the same. Respectively [L ColCtr -L Width -L Smooth , L ColCtr -L Width -1] and [L ColCtr +L Width +1, L ColCtr +L Width +L Smooth ];
所述第三多重阈值判决方法具体为,如果右手臂躯干间伪影先验搜索区域内像素的像素值I ArmRight(x,y)同时满足以下三个条件,则像素值I ArmRight(x,y)所对应的像素为手臂躯干间伪影像素: The third method of multi-threshold decision Specifically, if the inter-pixel right arm torso artifact prior search area pixel value I ArmRight (x, y) satisfies the following three conditions, the pixel value I ArmRight (x, y) The corresponding pixel is the artifact pixel between the arm and torso:
(1)I ArmRight(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (1) I ArmRight (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
(2)I ArmRight(x,y)<Th Artifact(2) I ArmRight (x, y) < Th Artifact ;
(3)像素值I ArmRight(x,y)满足I ArmRight(x,y)<VS SmoothLeft+Th Artifact/3且 (3) The pixel value I ArmRight (x, y) satisfies I ArmRight (x, y) < VS SmoothLeft +Th Artifact /3 and
Figure PCTCN2020115777-appb-000006
Figure PCTCN2020115777-appb-000006
进一步地,所述伪影像素的坐标集合为M,M={(x Artifact(i),y Artifact(i))|i=1,2,3,...,m},其中,x Artifact(i),y Artifact(i)分别表示第i个伪影像素的行坐标和列坐标,m表示伪影像素总数; Further, the coordinate set of the artifact pixels is M, where M={(x Artifact (i), y Artifact (i))|i=1, 2, 3, ..., m}, where x Artifact (i), y Artifact (i) represents the row and column coordinates of the i-th artifact pixel, respectively, and m represents the total number of artifact pixels;
所述伪影像素所在行的像素邻域序列的列坐标的取值范围为The value range of the column coordinates of the pixel neighborhood sequence of the row where the artifact pixel is located is
[y Artifact(i)-L Width-L Smooth,y Artifact(i)+L Width+L Smooth], [y Artifact (i)-L Width -L Smooth , y Artifact (i)+L Width +L Smooth ],
通过对双腿间伪影,手臂躯干间伪影像素的判决,得到伪影像素坐标的集合M,表达式为M={(x Artifact(i),y Artifact(i))|i=1,2,3,...,m},其中,x Artifact(i),y Artifact(i)分别表示第i个伪影像素的行坐标和列坐标,m表示伪影像素总数。针对每个伪影像素(x Artifact(i),y Artifact(i)),取出其所在行的像素邻域序列,像素邻域序列,像素邻域序列包括伪影区域和平滑区域,设第i个伪影像素的像素邻域序列为
Figure PCTCN2020115777-appb-000007
每个像素邻域序列包括的像素个数为2(L Width+L Smooth)+1。
By judging the artifact pixels between the legs and the artifact pixels between the arms and torso, the set M of artifact pixel coordinates is obtained, and the expression is M={(x Artifact (i), y Artifact (i))|i=1, 2,3, ..., m}, where, x Artifact (i), y Artifact (i) represent the coordinates of the i-th row and dummy column coordinates of the image pixel, m represents the total number of dummy video pixel. For each artifact pixel (x Artifact (i), y Artifact (i)), take out the pixel neighborhood sequence of its row, the pixel neighborhood sequence, the pixel neighborhood sequence includes the artifact area and the smooth area, let the ith The pixel neighborhood sequence of the artifact pixels is
Figure PCTCN2020115777-appb-000007
The number of pixels included in each pixel neighborhood sequence is 2(L Width +L Smooth )+1.
进一步地,所述伪影抑制函数的具体公式为:Further, the specific formula of the artifact suppression function is:
Figure PCTCN2020115777-appb-000008
Figure PCTCN2020115777-appb-000008
其中,F(t)为伪影抑制函数,t∈[-L Width-L Smooth,+L Width+L Smooth],t取整数,A表示幅度,σ为高斯分布标准差,
Figure PCTCN2020115777-appb-000009
表示第i个伪影像素的背景平均值;
Among them, F(t) is the artifact suppression function, t∈[-L Width -L Smooth , +L Width +L Smooth ], t is an integer, A is the amplitude, σ is the standard deviation of the Gaussian distribution,
Figure PCTCN2020115777-appb-000009
represents the background mean value of the ith artifact pixel;
规定幅度A的数值为
Figure PCTCN2020115777-appb-000010
即伪影像素邻域内最大值与背景平均值的差,图像背景平均值
Figure PCTCN2020115777-appb-000011
即第i个伪影像素两侧的平滑区域的像素均值;
The value of the specified range A is
Figure PCTCN2020115777-appb-000010
That is, the difference between the maximum value in the neighborhood of the artifact pixel and the average value of the background, the average value of the image background
Figure PCTCN2020115777-appb-000011
That is, the pixel mean of the smooth area on both sides of the ith artifact pixel;
第i个伪影像素经过伪影抑制后的像素邻域序列
Figure PCTCN2020115777-appb-000012
为:
The pixel neighborhood sequence of the i-th artifact pixel after artifact suppression
Figure PCTCN2020115777-appb-000012
for:
Figure PCTCN2020115777-appb-000013
Figure PCTCN2020115777-appb-000013
其中,
Figure PCTCN2020115777-appb-000014
表示
Figure PCTCN2020115777-appb-000015
与F(t)的像素对应相除,通过伪影像素抑制操作,将伪影像素的数 值控制在
Figure PCTCN2020115777-appb-000016
左右;
in,
Figure PCTCN2020115777-appb-000014
Express
Figure PCTCN2020115777-appb-000015
Divide the pixel corresponding to F(t), and control the value of the artifact pixel within the range of the artifact pixel suppression operation.
Figure PCTCN2020115777-appb-000016
about;
最终获得以序列
Figure PCTCN2020115777-appb-000017
替换原序列
Figure PCTCN2020115777-appb-000018
的消除伪影的安检图像。本发明与现有技术相比,其显著优点为:
finally get the sequence
Figure PCTCN2020115777-appb-000017
replace the original sequence
Figure PCTCN2020115777-appb-000018
of artifact-removed security images. Compared with the prior art, the present invention has the following significant advantages:
(1)根据人体安检时的固定姿势,利用区域搜索方法在固定区域内搜索双腿间伪影和手臂躯干间伪影,有利于节省计算机资源和搜索时间,提高伪影搜索效率;(1) According to the fixed posture of the human body during security inspection, the area search method is used to search for the artifact between the legs and the artifact between the arms and the torso in the fixed area, which is conducive to saving computer resources and search time, and improving the efficiency of artifact search;
(2)利用多重阈值判决方式判断搜索区域内的像素是否为伪影,有利于精确判断伪影位置,同时能减少误判;(2) Using multiple threshold judgment methods to judge whether the pixels in the search area are artifacts, which is conducive to accurately judging the position of artifacts, and can reduce misjudgments at the same time;
(3)利用像素值抑制方法对伪影像素值抑制,使伪影像素值与其邻域像素值有自然的过渡,避免因为数值改变过大导致图像质量下降。(3) The pixel value suppression method is used to suppress the artifact pixel value, so that the artifact pixel value and its neighboring pixel value have a natural transition, so as to avoid image quality degradation due to excessive value change.
附图说明Description of drawings
图1人体安检图像伪影抑制方法流程图。Figure 1 is a flowchart of a method for suppressing artifacts in human security inspection images.
图2人体安检原始成像结果图。Figure 2. Original imaging results of human security inspection.
图3人体安检图像标记伪影区域图。Figure 3. Figure 3. Image of human security inspection image marking artifact area.
图4计算头部中心行坐标示意图。Figure 4 is a schematic diagram of calculating the row coordinates of the center of the head.
图5安检图像中标记双腿间伪影先验搜索区域图。Fig. 5 Map of the prior search area for marking the artifact between the legs in the security inspection image.
图6腿部区域图像经过翻转平移差分法后的累积和曲线图。Fig. 6 Cumulative sum curve graph of leg region image after flipping translation difference method.
图7标记腿部区域列中心线的安检图像。Figure 7. Security image marking the centerline of the leg area column.
图8标记双腿间伪影像素的安检图像。Figure 8 Screening images of artifact pixels marked between the legs.
图9标记手臂躯干间伪影先验搜索区域的安检图像。Figure 9. Screening images of labeled prior search regions for artifact between arms and torso.
图10标记手臂躯干间伪影像素的安检图像。Figure 10 Screening images of artifact pixels labeled between arms and torso.
图11经过伪影抑制的安检图像。Figure 11 Security image with artifact suppression.
具体实施方式detailed description
以下结合附图对本发明的一种利用区域搜索和像素值抑制的安检图像伪影去除方法的具体实施方式做详细说明,如图1所示,具体包括以下步骤:Below in conjunction with the accompanying drawings, a specific implementation of a method for removing artifact from a security inspection image using area search and pixel value suppression of the present invention will be described in detail, as shown in FIG. 1 , which specifically includes the following steps:
1.人体头部中心行坐标计算1. Calculation of the row coordinates of the center of the human head
图2为原始的安检图像,图3中白色虚线框标记出来的为伪影区域,包括上方的手臂躯干间伪影和下方的双腿间伪影。由于人体身高存在差异,而人体安检图像的尺寸比例与人体 比例相同,因此安检图像中人体头部和躯干的行坐标信息也各不相同。在合作式安检过程中,要求被检人员的姿势为手臂与躯干分开、双脚分开站立,不同人员的安检图像均具有相同姿态模式。为确定伪影位置,须通过计算头部在图像中的位置和人体各部位的固定比例来确定伪影搜索区域。Figure 2 is the original security inspection image, and the white dotted box in Figure 3 marks the artifact area, including the upper arm torso artifact and the lower leg artifact. Due to the difference in the height of the human body, and the size ratio of the human security inspection image is the same as that of the human body, the row coordinate information of the human head and torso in the security inspection image is also different. In the cooperative security inspection process, the posture of the inspected person is required to be separated from the arms and torso, and the feet are separated from each other, and the security inspection images of different personnel have the same posture pattern. In order to determine the position of the artifact, the artifact search area must be determined by calculating the position of the head in the image and the fixed proportion of each part of the human body.
为减少计算量并增加检测精度,确定人体头部的先验搜索区域,要求覆盖不同身高人体的头部信息,假设头部先验搜索区域的起始行坐标为H RowUp、终止行坐标为H RowDown,起始列坐标为H ColLeft、终止列坐标为H ColRight,将该区域内每行像素累积求和,得到一条行累积投影向量,在投影向量中找出大于阈值Th head的行坐标,并将这些行坐标求平均得到头部中心的行坐标H RowCtr,利用此坐标信息能够计算出被检人员身高,并依据身体的尺寸比例计算出手臂躯干间伪影和双腿间伪影的先验搜索区域。如图4所示,图4中白色虚线框为先验搜索区域,先验搜索区域右侧曲线为将该区域内每行像素累积求和后得到的行累积投影。 In order to reduce the amount of calculation and increase the detection accuracy, determine the a priori search area of the human head, and it is required to cover the head information of different heights. It is assumed that the starting row coordinate of the head a priori search area is H RowUp , and the ending row coordinate is H RowDown , the starting column coordinate is H ColLeft , the ending column coordinate is H ColRight , the pixels in each row in the area are accumulated and summed to obtain a row cumulative projection vector, and the row coordinate greater than the threshold Th head is found in the projection vector, and Average these row coordinates to obtain the row coordinate H RowCtr of the center of the head. Using this coordinate information, the height of the inspected person can be calculated, and the prior artifact between the arms and the torso and the artifact between the legs can be calculated according to the size ratio of the body. Search area. As shown in FIG. 4 , the white dotted box in FIG. 4 is the prior search area, and the curve on the right side of the prior search area is the row cumulative projection obtained after the cumulative summation of each row of pixels in the area.
本实施例中所述行列以安检图像坐标系为基准进行计算,所述安检图像坐标系为以安检图像左上角的起始点为坐标中心,以坐标中心向右为列坐标轴的正方向,以坐标中心向下为行坐标轴的正方向而形成的坐标系。In this embodiment, the rows and columns are calculated based on the coordinate system of the security inspection image. The coordinate system of the security inspection image is the starting point of the upper left corner of the security inspection image as the coordinate center, and the right direction of the coordinate center is the positive direction of the column coordinate axis. The coordinate system formed by the downward direction of the coordinate center is the positive direction of the row coordinate axis.
2.双腿间伪影像素判决2. Artifact pixel judgment between legs
双腿之间的伪影形状为竖直直线,伪影长度和强度与人体身高和站姿有关。理论上伪影的行坐标区间为腿部所在区域的所有行,伪影的列坐标在两腿对称轴上。但在实际情况中,双腿间伪影会随着双腿间距离的增大而逐渐减弱最后消失,且由于站姿不标准存在被检人员不在成像场景中心的情况。所以,在确定伪影先验搜索区域时,行坐标区间仍按照腿部所在行区间计算,而两腿中心线的列坐标通过翻转平移差分方法计算得到。得到先验搜索区域后,利用第一多重阈值判决方法获得双腿间伪影像素的具体坐标。The shape of the artifact between the legs is a vertical straight line, and the length and intensity of the artifact are related to the body height and standing posture. Theoretically, the row coordinate interval of the artifact is all the rows in the area where the leg is located, and the column coordinate of the artifact is on the symmetry axis of the two legs. However, in actual situations, the artifacts between the legs will gradually weaken with the increase of the distance between the legs and finally disappear, and due to the non-standard standing posture, the inspected person may not be in the center of the imaging scene. Therefore, when determining the artifact prior search area, the row coordinate interval is still calculated according to the row interval where the legs are located, and the column coordinates of the center lines of the two legs are calculated by the flip translation difference method. After the prior search area is obtained, the specific coordinates of the artifact pixels between the legs are obtained by using the first multiple threshold decision method.
a.双腿间伪影像素行区间的计算a. Calculation of the artifact pixel row interval between the legs
假设人体安检图像的行数和列数分别为N Row和N Col,安检图像中腿长与身高的比例为ρ,则根据头部中心行坐标计算出双腿间伪影的起始行坐标为L RowBgn=round(N Row-(N Row-H RowCtr)·ρ),终止行坐标为N Row,其中round表示四舍五入。 Assuming that the number of rows and columns of the human security inspection image are N Row and N Col , and the ratio of the leg length to the height in the security inspection image is ρ, the starting row coordinates of the artifact between the legs are calculated according to the row coordinates of the center of the head as L RowBgn =round(N Row -(N Row -H RowCtr )·ρ), the end row coordinate is N Row , where round represents rounding.
b.双腿间伪影像素列区间的计算b. Calculation of the artifact pixel column interval between the legs
由于人员安检时需要站立3至5秒,所得到的安检图像是近似左右对称的,双腿间伪影就在对称轴线上,但对称轴存在偏离图像列中心线的情况,因此获取安检图像腿部中心线位置即完成双腿间伪影列坐标的计算。Since the personnel need to stand for 3 to 5 seconds during the security check, the obtained security check image is approximately symmetrical, and the artifact between the legs is on the symmetry axis, but the symmetry axis is deviated from the center line of the image column. Therefore, the security check image leg is obtained. The position of the center line of the leg is completed to complete the calculation of the coordinates of the artifact column between the legs.
本发明利用翻转平移差分法求取安检图像腿部中心线列坐标,该方法包括横向循环移位、左右翻转、图像求差和累积求和四个步骤。设腿部区域图像为I Leg(如图5中虚线框所示),循环移位数为n,则计算得到翻转平移差分函数值为: The invention uses the flip translation difference method to obtain the leg centerline column coordinates of the security inspection image. Let the leg region image be I Leg (as shown in the dotted box in Figure 5), and the cyclic shift number is n, then the calculated flip translation difference function value is:
f(n)=sum(abs(circshift(I Leg,n)-fliplr(circshift(I Leg,n))))  (1) f(n)=sum(abs(circshift(I Leg ,n)-fliplr(circshift(I Leg ,n)))) (1)
其中,circshift表示横向循环移位操作,fliplr表示左右翻转操作,sum表示累积求和,abs表示求绝对值操作,n取值范围是[-N Shift,N Shift]中的整数(其中,N Shift表示预设的第一偏移量),则f(n)为包含2N Shift+1个数值的一维向量,f(n)中最小值对应的移位数n能够表示安检图像腿部中心线与安检图像列中心线的偏离情况。在移位区间内得到图像差绝对值和的曲线如图6所示。 Among them, circshift represents the horizontal cyclic shift operation, fliplr represents the left and right flip operation, sum represents the cumulative summation, abs represents the absolute value operation, and the value range of n is an integer in [-N Shift , N Shift ] (wherein, N Shift ) represents the preset first offset), then f(n) is a one-dimensional vector containing 2N Shift + 1 values, and the shift number n corresponding to the minimum value in f(n) can represent the center line of the leg of the security inspection image Deviation from the centerline of the security image column. The curve of the absolute value sum of the image differences obtained in the shift interval is shown in Fig. 6 .
计算安检图像腿部中心线列坐标列坐标为:Calculate the column coordinates of the leg centerline column coordinates of the security inspection image as:
Figure PCTCN2020115777-appb-000019
Figure PCTCN2020115777-appb-000019
如图7所示,白色线条标记出的为安检图像腿部中心线;其中,round表示四舍五入,arcmin表示使f(·)取得最小值的n数值。由于伪影像素存在一列或为多列情况,因此在L ColCtr左右两边邻域再扩展L Width列个像素作为伪影列坐标的搜索区域(即L Width为安检图像腿部中心线列坐标L ColCtr向左右两边邻域扩展的像素列的个数)。至此,双腿间伪影先验搜索区域的行坐标范围为:[L BowBgn,N Row],列坐标范围为:[L ColCtr-L Width,L ColCtr+L Width]。 As shown in Figure 7, the white line marks the center line of the leg of the security inspection image; among them, round means rounding, and arcmin means the n value that makes f(·) take the minimum value. Since there is one column or multiple columns of artifact pixels, extend L Width columns of pixels in the left and right neighborhoods of L ColCtr as the search area for artifact column coordinates (that is, L Width is the column coordinate of the leg center line of the security inspection image, L ColCtr The number of pixel columns extending to the left and right neighborhoods). So far, the row coordinate range of the prior artifact search area between the legs is: [L BowBgn , N Row ], and the column coordinate range is: [L ColCtr -L Width , L ColCtr +L Width ].
c.伪影像素判决c. Artifact pixel decision
确定先验搜索区域后,利用阈值来判决区域内的像素是否为伪影像素,设伪影像素阈值 为Th Artifact。在确定的伪影区域的列坐标范围[L ColCtr-L Width,L ColCtr+L Width]再向左右两侧分别扩展L Smooth列个像素(其中,L Smooth为预设的第二偏移量),并假设伪影区域两侧的各L Smooth列个像素为平滑区域,计算左右两边平滑区域的均值分别为V SmoothLeft和V SmoothRight。假设双腿间伪影先验搜索区域的像素值表示为I Leg(x,y),其中x,y分别表示像素行坐标和列坐标,其取值范围满足伪影先验搜索区域的坐标范围。遍历先验搜索区域内的每个像素,如果I Leg(x,y)同时满足以下条件则被认为是伪影像素: After determining the a priori search area, a threshold is used to determine whether the pixels in the area are artifact pixels, and the artifact pixel threshold is set as Th Artifact . In the column coordinate range [L ColCtr -L Width , L ColCtr +L Width ] of the determined artifact area, then extend L Smooth columns of pixels to the left and right sides respectively (where L Smooth is the preset second offset) , and assuming that each L Smooth column pixel on both sides of the artifact area is a smooth area, the mean values of the smooth areas on the left and right sides are calculated as V SmoothLeft and V SmoothRight , respectively . It is assumed that the pixel value of the artifact prior search area between the legs is represented as I Leg (x, y), where x and y represent the pixel row and column coordinates, respectively, and the value range satisfies the coordinate range of the artifact prior search area. . Traverse each pixel in the prior search area, and if I Leg (x, y) satisfies the following conditions simultaneously, it is considered to be an artifact pixel:
(a)像素值I Leg(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (a) The pixel value I Leg (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
(b)像素值大于伪影阈值I Leg(x,y)<Th Artifact(b) The pixel value is greater than the artifact threshold I Leg (x, y) < Th Artifact ;
(c)像素值I Leg(x,y)满足I Leg(x,y)<V SmoothLeft+Th Artifact/3且I Leg(x,y)<V SmoothRight+Th Artifact/3。 (c) The pixel value I Leg (x, y) satisfies I Leg (x, y) < V SmoothLeft + Th Artifact /3 and I Leg (x, y) < V SmoothRight + Th Artifact /3.
记录伪影像素的坐标信息,如图8所示,图8中白点标记的为双腿间的伪影像素。The coordinate information of the artifact pixels is recorded, as shown in FIG. 8 . The white dots in FIG. 8 mark the artifact pixels between the legs.
3.手臂躯干间伪影像素判决3. Artifact pixel judgment between arms and torso
手臂躯干间伪影形状为竖直直线或曲线,伪影长度和强度与人体手臂的摆放位置有关。首先,根据头部中心行坐标和人体比例信息确定先验搜索区域的行区间信息和列区间信息,其次利用第二和第三多重阈值判决方法对搜索区域内每个像素进行判决,得到伪影像素坐标。The shape of the artifact between the arms and torso is a vertical straight line or a curve, and the length and intensity of the artifact are related to the placement of the human arm. First, determine the row interval information and column interval information of the prior search area according to the head center row coordinates and body proportion information, and then use the second and third multiple threshold judgment methods to judge each pixel in the search area to obtain a pseudo Shadow pixel coordinates.
a.先验搜索区间确定a. A priori search interval determination
根据人体手臂与头部位置的固定关系,假设手臂躯干间伪影的起始和终止行坐标与头部中心行坐标H RowCtr.的距离分别为S RowUp和S RowDown,则手臂躯干间伪影先验搜素区域的行坐标区间为[H RowCtr+S RowUp,H RowCtr+S RowDown]。规定安检图像中左侧手臂为人体右手臂,图像中右侧手臂为人体左手臂。根据人体手臂位置与安检图像尺寸的固定比例信息,确定人 体左右两侧手臂躯干间伪影先验搜索区域的列坐标区间分别为
Figure PCTCN2020115777-appb-000020
Figure PCTCN2020115777-appb-000021
根据搜索区间范围得到人体左侧和右侧手臂的先验搜索区间图像分别为I ArmLeft和I ArmRight,图9中虚线框所示区域为手臂躯干间伪影的先验搜索区域。
According to the fixed relationship between the position of the human arm and the head, it is assumed that the distance between the starting and ending row coordinates of the artifact between the arm torso and the center row coordinate H RowCtr of the head is S RowUp and S RowDown respectively. The row coordinate interval of the verification search area is [H RowCtr +S RowUp , H RowCtr +S RowDown ]. It is stipulated that the left arm in the security inspection image is the right arm of the human body, and the right arm in the image is the left arm of the human body. According to the fixed ratio information of the position of the human arm and the size of the security inspection image, the column coordinate intervals of the artifact prior search area between the left and right arms and torso of the human body are determined as follows:
Figure PCTCN2020115777-appb-000020
and
Figure PCTCN2020115777-appb-000021
According to the range of the search interval, the prior search interval images of the left and right arms of the human body are obtained as I ArmLeft and I ArmRight respectively , and the area shown by the dotted box in Figure 9 is the prior search area for the artifact between the arms and torso.
b.伪影像素判决b. Artifact pixel decision
确定搜索区域后,利用第二多重阈值方法来判决区域内的像素是否为伪影像素。与双腿间伪影的判决方式类似,假设左手臂躯干间伪影像素I ArmLeft(x,y)的列区间为[y-L Width,y+L Width],在左右两侧再扩展L Smooth列个像素用来表示平滑区域,左右两边平滑区域的像素值均值分别V′ SmoothLeft为和
Figure PCTCN2020115777-appb-000022
同样地,右手臂躯干间伪影像素I ArmRight(x,y)的左右两边平滑区域的像素值均值分别为V″ SmoothLeft
Figure PCTCN2020115777-appb-000023
After the search area is determined, the second multiple threshold method is used to determine whether the pixels in the area are artifact pixels. Similar to the judgment method of the artifact between the legs, assuming that the column interval of the artifact pixel I ArmLeft (x, y) between the left arm and torso is [yL Width , y+L Width ], and then expand the L Smooth column on the left and right sides. Pixels are used to represent smooth areas, and the mean values of pixels in the smooth areas on the left and right sides are V′ SmoothLeft and
Figure PCTCN2020115777-appb-000022
Similarly, the average pixel values of the smooth areas on the left and right sides of the artifact pixel I ArmRight (x, y) between the right arm and torso are V″ SmoothLeft and
Figure PCTCN2020115777-appb-000023
遍历先验搜索区域内的每个像素,如果左侧手臂先验搜索区域内像素的像素值I ArmLeft(x,y)同时满足以下条件则被认为是伪影像素: Traverse each pixel in the prior search area, if the pixel value I ArmLeft (x, y) of the pixel in the left arm prior search area satisfies the following conditions at the same time, it is considered to be an artifact pixel:
(a)像素值I ArmLeft(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (a) The pixel value I ArmLeft (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
(b)像素值大于伪影阈值I ArmLeft(x,y)<Th Artifact(b) The pixel value is greater than the artifact threshold I ArmLeft (x, y) < Th Artifact ;
(c)像素值I ArmLeft(x,y)满足I ArmLeft(x,y)<V′ SmoothLeft+Th Artifact/3且 (c) The pixel value I ArmLeft (x, y) satisfies I ArmLeft (x, y) < V′ SmoothLeft +Th Artifact /3 and
Figure PCTCN2020115777-appb-000024
Figure PCTCN2020115777-appb-000024
同样地,根据第三多重阈值方法,如果右侧手臂先验搜索区域内像素I ArmRight(x,y)满足以下条件则被认为是伪影像素: Similarly, according to the third multiple threshold method, if the pixel I ArmRight (x, y) in the right arm prior search area satisfies the following conditions, it is considered as an artifact pixel:
(a)像素值I ArmRight(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (a) The pixel value I ArmRight (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
(b)像素值大于伪影阈值I ArmRight(x,y)<Th Artifact(b) The pixel value is greater than the artifact threshold I ArmRight (x, y) < Th Artifact ;
(c)像素值I ArmRight(x,y)满足I ArmRight(x,y)<V″ SmoothLeft+Th Artifact/3且 (c) The pixel value I ArmRight (x, y) satisfies I ArmRight (x, y) < V″ SmoothLeft +Th Artifact /3 and
Figure PCTCN2020115777-appb-000025
Figure PCTCN2020115777-appb-000025
记录左右手臂伪影像素的坐标信息,图10中用白点标记出来的像素为手臂躯干间伪影像素。Record the coordinate information of the left and right arm artifact pixels. The pixels marked with white dots in Figure 10 are the artifact pixels between the arms and torso.
4.伪影像素值抑制4. Artifact pixel value suppression
通过对双腿间伪影,手臂躯干间伪影像素的判决,得到伪影像素坐标的集合M,表达式为M={(x Artifact(i),y Artifact(i))|i=1,2,3,...,m},其中,x Artifact(i),y Artifact(i)分别表示第i个伪影像素的行坐标和列坐标,m表示伪影像素总数。针对每个伪影像素(x Artifact(i),y Artifact(i)),取出其所在行的像素邻域序列,像素邻域序列列坐标的取值范围为[y Artifact(i)-L Width-L Smooth,y Artifact(i)+L Width+L Smooth],像素邻域序列包括伪影区域和平滑区域,设第i个伪影的像素邻域序列为
Figure PCTCN2020115777-appb-000026
每个像素邻域序列包括的像素个数为2(L Wrdth+L Smooth)+1。
By judging the artifact pixels between the legs and the artifact pixels between the arms and torso, the set M of artifact pixel coordinates is obtained, and the expression is M={(x Artifact (i), y Artifact (i))|i=1, 2,3, ..., m}, where, x Artifact (i), y Artifact (i) represent the coordinates of the i-th row and dummy column coordinates of the image pixel, m represents the total number of dummy video pixel. For each artifact pixel (x Artifact (i), y Artifact (i)), take out the pixel neighborhood sequence of its row, and the value range of the column coordinates of the pixel neighborhood sequence is [y Artifact (i)-L Width -L Smooth , y Artifact (i)+L Width + L Smooth ], the pixel neighborhood sequence includes the artifact area and the smooth area, and the pixel neighborhood sequence of the i-th artifact is
Figure PCTCN2020115777-appb-000026
The number of pixels included in each pixel neighborhood sequence is 2(L Wrdth +L Smooth )+1.
构建伪影抑制函数F(t),其表达式为:Construct the artifact suppression function F(t) whose expression is:
Figure PCTCN2020115777-appb-000027
Figure PCTCN2020115777-appb-000027
其中,t∈[-L Width-L Smooth,+L Width+L Smooth],t取整数,A表示幅度,σ为高斯分布标 准差,
Figure PCTCN2020115777-appb-000028
表示第i个伪影像素的背景平均值。规定幅度A的数值为
Figure PCTCN2020115777-appb-000029
即伪影像素邻域内最大值与背景平均值的差。图像背景平均值
Figure PCTCN2020115777-appb-000030
即第i个伪影像素两侧的平滑区域的像素均值。因此,得到抑制函数的最大值为伪影像素区域最大值,最小值为图像背景数值,且对于每个伪影像素来说其抑制函数参数都需要重新计算。
Among them, t∈[-L Width -L Smooth , +L Width +L Smooth ], t is an integer, A is the amplitude, σ is the standard deviation of the Gaussian distribution,
Figure PCTCN2020115777-appb-000028
represents the background mean of the ith artifact pixel. The value of the specified range A is
Figure PCTCN2020115777-appb-000029
That is, the difference between the maximum value in the neighborhood of the artifact pixel and the average value of the background. Image background average
Figure PCTCN2020115777-appb-000030
That is, the pixel mean of the smooth region on both sides of the ith artifact pixel. Therefore, the maximum value of the obtained suppression function is the maximum value of the artifact pixel area, and the minimum value is the value of the image background, and the parameters of the suppression function need to be recalculated for each artifact pixel.
伪影像素经过抑制后的像素邻域序列
Figure PCTCN2020115777-appb-000031
为:
Suppressed pixel neighborhood sequence of artifact pixels
Figure PCTCN2020115777-appb-000031
for:
Figure PCTCN2020115777-appb-000032
Figure PCTCN2020115777-appb-000032
其中,
Figure PCTCN2020115777-appb-000033
表示
Figure PCTCN2020115777-appb-000034
与F(t)的像素对应相除,通过伪影像素抑制操作,将伪影像素的数值控制在
Figure PCTCN2020115777-appb-000035
左右,再将序列
Figure PCTCN2020115777-appb-000036
替换原序列
Figure PCTCN2020115777-appb-000037
得到经过伪影抑制后的安检图像。
in,
Figure PCTCN2020115777-appb-000033
Express
Figure PCTCN2020115777-appb-000034
Divide the pixel corresponding to F(t), and control the value of the artifact pixel within the range of the artifact pixel suppression operation.
Figure PCTCN2020115777-appb-000035
left and right, and then sequence
Figure PCTCN2020115777-appb-000036
replace the original sequence
Figure PCTCN2020115777-appb-000037
The security inspection image after artifact suppression is obtained.
经过伪影抑制后的安检图像如图11所示。The security inspection image after artifact suppression is shown in Figure 11.
本发明与现有技术相比,其显著优点为:Compared with the prior art, the present invention has the following significant advantages:
(1)根据人体安检时的固定姿势,利用区域搜索方法在固定区域内搜索双腿间伪影和手臂躯干间伪影,有利于节省计算机资源和搜索时间,提高伪影搜索效率;(1) According to the fixed posture of the human body during security inspection, the area search method is used to search for the artifact between the legs and the artifact between the arms and the torso in the fixed area, which is conducive to saving computer resources and search time, and improving the efficiency of artifact search;
(2)利用多重阈值判决方式判断搜索区域内的像素是否为伪影,有利于精确判断伪影位置,同时能减少误判;(2) Using multiple threshold judgment methods to judge whether the pixels in the search area are artifacts, which is conducive to accurately judging the position of artifacts, and can reduce misjudgments at the same time;
(3)利用像素值抑制方法对伪影像素值抑制,使伪影像素值与其邻域像素值有自然的过渡,避免因为数值改变过大导致图像质量下降。(3) The pixel value suppression method is used to suppress the artifact pixel value, so that the artifact pixel value and its neighboring pixel value have a natural transition, so as to avoid image quality degradation due to excessive value change.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection of the present invention. within the range.

Claims (6)

  1. 一种利用区域搜索和像素值抑制的安检图像伪影去除方法,其特征在于,包括以下步骤:A security inspection image artifact removal method utilizing area search and pixel value suppression, characterized in that it comprises the following steps:
    计算人体头部中心行坐标:Calculate the row coordinates of the center of the human head:
    在设定的头部先验搜索区域内对所有行像素的像素值进行累积求和,将累积和中大于阈值的行坐标作为头部行坐标,取头部行坐标的均值作为人体头部中心行坐标;Accumulate and sum the pixel values of all row pixels in the set head a priori search area, take the row coordinate of the cumulative sum greater than the threshold as the head row coordinate, and take the average of the head row coordinates as the center of the human head row coordinates;
    判决双腿间伪影像素:Determine the artifact pixel between the legs:
    确定双腿间伪影先验搜索区域,通过第一多重阈值方法判断双腿间伪影先验搜索区域内的像素是否为双腿间伪影像素,从而得到双腿间伪影像素坐标;所述双腿间伪影先验搜索区域的行搜索区域根据头部中心行坐标和身体比例计算得到,所述双腿间伪影先验搜索区域的列搜索区域通过将腿部区域图像中心线列坐标向左右扩展固定列个像素获得,所述安检图像腿部中心线列坐标通过翻转平移差分法求得;Determine the artifact prior search area between the legs, and determine whether the pixels in the artifact prior search area between the legs are artifact pixels between the legs through the first multiple threshold method, so as to obtain the artifact pixel coordinates between the legs; The row search area of the inter-leg artifact prior search area is calculated according to the row coordinates of the head center and the body scale, and the column search area of the inter-leg artifact prior search area is obtained by dividing the center line of the leg area image. The column coordinates are obtained by extending a fixed column of pixels to the left and right, and the column coordinates of the leg center line of the security inspection image are obtained by the flip translation difference method;
    判决手臂躯干间伪影像素:Determining artifact pixels between arms and torso:
    根据头部中心行坐标和身体比例确定左右手臂躯干间伪影的先验搜索区域,通过第二多重阈值方法和第三多重阈值方法分别判断左右手臂躯干间伪影的先验搜索区域内的像素是否为手臂躯干间伪影像素,得到手臂躯干间伪影像素的坐标;Determine the prior search area of the artifact between the left and right arm torso according to the head center row coordinate and body proportion, and use the second multiple threshold method and the third multiple threshold method to determine the prior search area of the left and right arm torso artifacts respectively. Whether the pixel of is the artifact pixel between the arm and torso, get the coordinates of the artifact pixel between the arm and torso;
    对伪影像素的像素值进行抑制:Suppress the pixel value of the artifact pixel:
    取出每个伪影像素及其所在行的像素邻域序列,构建伪影抑制函数进行伪影抑制,再将抑制后的像素序列替换原先的像素序列,得到去除伪影的安检图像;所述伪影像素包括双腿间伪影像素和手臂躯干间伪影像素。Take out each artifact pixel and the pixel neighborhood sequence of its row, construct an artifact suppression function for artifact suppression, and then replace the original pixel sequence with the suppressed pixel sequence to obtain an artifact-removed security inspection image; Shadow pixels include artifact pixels between legs and artifact pixels between arms and torso.
  2. 根据权利要求1所述的利用区域搜索和像素值抑制的安检图像伪影去除方法,其特征在于,The method for removing artifact from a security inspection image using area search and pixel value suppression according to claim 1, characterized in that:
    所述翻转平移差分法具体为,将腿部区域图像进行循环移位和左右翻转后做差,并对做差后的图像差累计求和,得到不同移位数的图像差累积和向量,通过向量中最小值对应的移位数计算腿部区域图像中心线列坐标。The flip translation difference method is specifically as follows: the leg region images are cyclically shifted and left and right flipped, and then the difference is made, and the image difference after the difference is accumulated and summed, so as to obtain the image difference accumulated sum vector of different shift numbers, and by The number of shifts corresponding to the minimum value in the vector calculates the column coordinates of the centerline of the leg area image.
  3. 根据权利要求2所述的利用区域搜索和像素值抑制的安检图像伪影去除方法,其特征在于,所述双腿间伪影先验搜索区域的行搜索区域为[L RowBgn,N Row],其中,N Row为安检图像的行数,L RowBgn为双腿间伪影的起始行坐标, The method for removing artifact of a security inspection image using area search and pixel value suppression according to claim 2, wherein the row search area of the artifact a priori search area between the legs is [L RowBgn , N Row ], Among them, N Row is the line number of the security inspection image, L RowBgn is the starting line coordinate of the artifact between the legs,
    L RowBgn=round(N Row-(N Row-H RowCtr)·ρ),round表示四舍五入,H RowCtr人体头部中心行坐标,ρ为安检图像中腿长与身高的比例; L RowBgn = round(N Row -(N Row -H RowCtr )·ρ), round means rounding, H RowCtr is the center row coordinate of the human head, and ρ is the ratio of leg length to height in the security image;
    所述双腿间伪影先验搜索区域的列搜索区域为[L ColCtr-L Width,L ColCtr+L Width],其中, L Width为安检图像腿部中心线列坐标L ColCtr向左右两边邻域扩展的像素列的个数; The column search area of the artifact a priori search area between the legs is [L ColCtr -L Width , L ColCtr +L Width ], where L Width is the column coordinate of the leg center line of the security inspection image L ColCtr to the left and right sides of the neighborhood The number of extended pixel columns;
    所述腿部图像对称轴列坐标L ColCtr的计算公式为: The calculation formula of the coordinate L ColCtr of the symmetry axis of the leg image is:
    Figure PCTCN2020115777-appb-100001
    Figure PCTCN2020115777-appb-100001
    其中,round表示四舍五入,arcmin表示使f(·)取得最小值的n数值;Among them, round means rounding, arcmin means the n value that makes f( ) get the minimum value;
    f(n)为翻转平移差分函数值,其具体计算公式为:f(n) is the value of the flip translation difference function, and its specific calculation formula is:
    f(n)=sum(abs(circshift(I Leg,n)-fliplr(circshift(I Leg,n)))) f(n)=sum(abs(circshift(I Leg ,n)-fliplr(circshift(I Leg ,n))))
    其中,circshift表示横同循环移位操作,fliplr表示左右翻转操作,sum表示累积求和,abs表示求绝对值操作,n取值范围是[-N Shift,N Shift]中的整数,则f(n)为包含2N Shift+1个数值的一维向量,f(n)中最小值对应的移位数n能够表示腿部区域图像对称轴与安检图像列中心线的偏离情况,N Shift表示预设的第一偏移量; Among them, circshift represents the horizontal cyclic shift operation, fliplr represents the left and right flip operation, sum represents the cumulative summation, abs represents the absolute value operation, and the value range of n is an integer in [-N Shift , N Shift ], then f( n) is a one-dimensional vector containing 2N Shift + 1 values, the shift number n corresponding to the minimum value in f(n) can represent the deviation of the symmetry axis of the leg area image from the center line of the security image column, and N Shift represents the pre- Set the first offset;
    所述第一多重阈值判决方法具体为,如果双腿间伪影先验搜索区域内像素的像素值I Leg(x,y)同时满足以下三个条件,则像素值I Leg(x,y)所对应的像素为双腿间伪影像素: The described first multiple threshold judgment method is specifically, if the pixel value I Leg (x, y) of the pixel in the two-leg artifact a priori search area satisfies the following three conditions simultaneously, then the pixel value I Leg (x, y) ) corresponds to the pixel of the artifact between the legs:
    (1)像素值I Leg(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (1) The pixel value I Leg (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
    (2)I Leg(x,y)>Th Artifact(2) I Leg (x, y) > Th Artifact ;
    (3)I Leg(x,y)>V SmoothLeft+Th Artifact/3且I Leg(x,y)>V SmoothRight+Th Artifact/3; (3) I Leg (x, y) > V SmoothLeft +Th Artifact /3 and I Leg (x, y) > V SmoothRight +Th Artifact /3;
    其中,x,y分别表示像素行坐标和列坐标,其取值范围满足双腿间伪影先验搜索区域的坐标范围;Th Artifact为设定的伪影像素阈值;V SmoothLeft和V SmoothRight为双腿间伪影先验搜索区 域左右两边的平滑区域的均值,左右平滑区域的行坐标范围与双腿间伪影先验搜索区域的行搜索区域相同,左右平滑区域的列坐标范围分别为 Among them, x and y represent the pixel row coordinates and column coordinates, respectively, and their value range satisfies the coordinate range of the artifact prior search area between the legs; Th Artifact is the set artifact pixel threshold; V SmoothLeft and V SmoothRight are double The mean value of the smooth areas on the left and right sides of the inter-leg artifact prior search area, the row coordinate range of the left and right smooth areas is the same as the row search area of the double-leg artifact prior search area, and the column coordinate ranges of the left and right smooth areas are respectively
    [L ColCtr-L Width-L Smooth,L ColCtr-L Width-1]和 [L ColCtr -L Width -L Smooth , L ColCtr -L Width -1] and
    [L ColCtr+L Width+1,L ColCtr+L Width+L Smooth],L Smooth为预设的第二偏移量。 [L ColCtr +L Width +1, L ColCtr +L Width +L Smooth ], L Smooth is the preset second offset.
  4. 根据权利要求3所述的利用区域搜索和像素值抑制的安检图像伪影去除方法,其特征在于,The method for removing artifact of a security inspection image using area search and pixel value suppression according to claim 3, wherein,
    所述手臂躯干间伪影先验搜索区域的行坐标区间为The row coordinate interval of the artifact prior search area between the arms and torso is:
    [H RowCtr+S RowUp,H RowCtr+S RowDown],左右两侧手臂躯干间伪影先验搜索区域的列坐标区间分别为
    Figure PCTCN2020115777-appb-100002
    Figure PCTCN2020115777-appb-100003
    其中S RowUp为手臂躯干间伪影的起始行坐标与头部中心行坐标H RowCtr的距离,S RowDown为手臂躯干间伪影的终止行坐标与头部中心行坐标H RowCtr的距离;
    [H RowCtr +S RowUp , H RowCtr +S RowDown ], the column coordinate interval of the artifact prior search area between the left and right arms and torso is respectively
    Figure PCTCN2020115777-appb-100002
    and
    Figure PCTCN2020115777-appb-100003
    where S RowUp is the distance between the starting row coordinate of the artifact between the arm torso and the head center row coordinate H RowCtr , and S RowDown is the distance between the ending row coordinate of the arm torso artifact and the head center row coordinate H RowCtr ;
    所述第二多重阈值判决方法具体为,如果左手臂躯干间伪影先验搜索区域内像素的像素值I ArmLeft(x,y)同时满足以下三个条件,则像素值I ArmLeft(x,y)所对应的像素为手臂躯干间伪影像素: The second multi-threshold decision method in particular, if the pixels between the left arm torso artifact prior search area pixel value I ArmLeft (x, y) satisfies the following three conditions, the pixel value I ArmLeft (x, y) The corresponding pixel is the artifact pixel between the arm and torso:
    (1)像素值I ArmLeft(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为[y-L Width,y+L Width]; (1) The pixel value I ArmLeft (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is [yL Width , y+L Width ];
    (2)I ArmLeft(x,y)>Th Artifact(2) I ArmLeft (x, y)>Th Artifact ;
    (3)I ArmLeft(x,y)>V′ SmoothLeft+Th Artifact/3且 (3) I ArmLeft (x, y) > V′ SmoothLeft +Th Artifact /3 and
    I ArmLeft(x,y)>V′ SmoothRig□t+Th Artifact/3; I ArmLeft (x, y)>V′ SmoothRig t +Th Artifact /3;
    其中,x,y分别表示像素行坐标和列坐标,其取值范围满足左手臂躯干间伪影先验搜索区域的坐标范围;V′ SmoothLeft和V′ SmoothRig□t为左手臂躯干间伪影先验搜索区域左右两边的平滑 区域的均值,左右平滑区域的行坐标范围与左手臂躯干间伪影先验搜索区域的行搜索区域相同,左右平滑区域的列坐标范围分别为[L ColCtr-L Width-L Smooth,L ColCtr-L Width-1]和[L ColCtr+L Width+1,L ColCtr+L Width+L Smooth]; Among them, x and y represent the pixel row coordinates and column coordinates, respectively, and their value ranges meet the coordinate range of the artifact prior search area between the left arm and torso; V′ SmoothLeft and V′ SmoothRig t are the artifact between the left arm and torso. The average value of the smooth areas on the left and right sides of the experimental search area. The row coordinate range of the left and right smooth areas is the same as the row search area of the left arm and torso artifact prior search area. The column coordinate ranges of the left and right smooth areas are [L ColCtr -L Width -L Smooth , L ColCtr -L Width -1] and [L ColCtr +L Width +1, L ColCtr +L Width +L Smooth ];
    所述第三多重阈值判决方法具体为,如果右手臂躯干间伪影先验搜索区域内像素的像素值I ArmRight(x,y)同时满足以下三个条件,则像素值I ArmRight(x,y)所对应的像素为手臂躯干间伪影像素: The third method of multi-threshold decision Specifically, if the inter-pixel right arm torso artifact prior search area pixel value I ArmRight (x, y) satisfies the following three conditions, the pixel value I ArmRight (x, y) The corresponding pixel is the artifact pixel between the arm and torso:
    (1)I ArmRight(x,y)在其所在行的邻域内为最大值,邻域列坐标范围为 (1) I ArmRight (x, y) is the maximum value in the neighborhood of the row where it is located, and the coordinate range of the neighborhood column is
    [y-L Width,y+L Wiidth]; [yL Width, y + L Wiidth ];
    (2)I ArmRight(x,y)>Th Artifact(2) I ArmRight (x, y) > Th Artifact ;
    (3)像素值I ArmRight(x,y)满足I ArmRight(x,y)>V″ SmoothLeft+Th Artifact/3且 (3) The pixel value I ArmRight (x, y) satisfies I ArmRight (x, y) > V″ SmoothLeft +Th Artifact /3 and
    I ArmRight(x,y)>V″ SmoothRig□t+Th Artifact/3。 I ArmRight (x, y)>V″ SmoothRig t +Th Artifact /3.
  5. 根据权利要求4所述的利用区域搜索和像素值抑制的安检图像伪影去除方法,其特征在于,The method for removing artifact of a security inspection image using area search and pixel value suppression according to claim 4, wherein,
    所述伪影像素的坐标集合为M,M={(x Artifact(i),y Artifact(i))|i=1,2,3,...,m},其中,x Artifact(i),y Artifact(i)分别表示第i个伪影像素的行坐标和列坐标,m表示伪影像素总数; The coordinate set of the artifact pixels is M, where M={(x Artifact (i), y Artifact (i))|i=1, 2, 3, ..., m}, where x Artifact (i) , y Artifact (i) represents the row and column coordinates of the ith artifact pixel, respectively, and m represents the total number of artifact pixels;
    所述伪影像素所在行的像素邻域序列的列坐标的取值范围为The value range of the column coordinates of the pixel neighborhood sequence of the row where the artifact pixel is located is
    [y Artifact(i)-L Width-L Smooth,y Artifact(i)+L Width+L Smooth], [y Artifact (i)-L Width -L Smooth , y Artifact (i)+L Width +L Smooth ],
    通过对双腿间伪影,手臂躯干间伪影像素的判决,得到伪影像素坐标的集合M,表达式为M={(x Artifact(i),y Artufact(i))|i=1,2,3,...,m},其中,x Artifact(i),y Artifact(i)分别表示第i个伪影像素的行坐标和列坐标,m表示伪影像素总数。针对每个伪影像素(x Artifact(i),y Artifact(i)),取出其所在行的像素邻域序列,像素邻域序列,像素邻域序列包括 伪影区域和平滑区域,设第i个伪影像素的像素邻域序列为
    Figure PCTCN2020115777-appb-100004
    每个像素邻域序列包括的像素个数为2(L Width+L Smooth)+1。
    By judging the artifact pixels between the legs and the artifact pixels between the arms and torso, the set M of artifact pixel coordinates is obtained, and the expression is M={(x Artifact (i), y Artufact (i))|i=1, 2,3, ..., m}, where, x Artifact (i), y Artifact (i) represent the coordinates of the i-th row and dummy column coordinates of the image pixel, m represents the total number of dummy video pixel. For each artifact pixel (x Artifact (i), y Artifact (i)), take out the pixel neighborhood sequence of its row, the pixel neighborhood sequence, the pixel neighborhood sequence includes the artifact area and the smooth area, let the ith The pixel neighborhood sequence of the artifact pixels is
    Figure PCTCN2020115777-appb-100004
    The number of pixels included in each pixel neighborhood sequence is 2(L Width +L Smooth )+1.
  6. 根据权利要求4所述的利用区域搜索和像素值抑制的安检图像伪影去除方法,其特征在于,The method for removing artifact of a security inspection image using area search and pixel value suppression according to claim 4, wherein,
    所述伪影抑制函数的具体公式为:The specific formula of the artifact suppression function is:
    Figure PCTCN2020115777-appb-100005
    Figure PCTCN2020115777-appb-100005
    其中,F(t)为伪影抑制函数,t∈[-L Width-L Smooth,+L Width+L Smooth],t取整数,A表示幅度,σ为高斯分布标准差,
    Figure PCTCN2020115777-appb-100006
    表示第i个伪影像素的背景平均值;
    Among them, F(t) is the artifact suppression function, t∈[-L Width -L Smooth , +L Width +L Smooth ], t is an integer, A is the amplitude, σ is the standard deviation of the Gaussian distribution,
    Figure PCTCN2020115777-appb-100006
    represents the background mean value of the ith artifact pixel;
    规定幅度A的数值为
    Figure PCTCN2020115777-appb-100007
    即伪影像素邻域内最大值与背景平均值的差,图像背景平均值
    Figure PCTCN2020115777-appb-100008
    即第i个伪影像素两侧的平滑区域的像素均值;
    The value of the specified range A is
    Figure PCTCN2020115777-appb-100007
    That is, the difference between the maximum value in the neighborhood of the artifact pixel and the average value of the background, the average value of the image background
    Figure PCTCN2020115777-appb-100008
    That is, the pixel mean of the smooth area on both sides of the ith artifact pixel;
    第i个伪影像素经过伪影抑制后的像素邻域序列
    Figure PCTCN2020115777-appb-100009
    为:
    The pixel neighborhood sequence of the i-th artifact pixel after artifact suppression
    Figure PCTCN2020115777-appb-100009
    for:
    Figure PCTCN2020115777-appb-100010
    Figure PCTCN2020115777-appb-100010
    其中,
    Figure PCTCN2020115777-appb-100011
    表示
    Figure PCTCN2020115777-appb-100012
    与F(t)的像素对应相除,通过伪影像素抑制操作,将伪影像素的数值控制在
    Figure PCTCN2020115777-appb-100013
    左右;
    in,
    Figure PCTCN2020115777-appb-100011
    Express
    Figure PCTCN2020115777-appb-100012
    Divide the pixel corresponding to F(t), and control the value of the artifact pixel within the range of the artifact pixel suppression operation.
    Figure PCTCN2020115777-appb-100013
    about;
    最终获得以序列
    Figure PCTCN2020115777-appb-100014
    替换原序列
    Figure PCTCN2020115777-appb-100015
    的消除伪影的安检图像。
    finally get the sequence
    Figure PCTCN2020115777-appb-100014
    replace the original sequence
    Figure PCTCN2020115777-appb-100015
    of artifact-removed security images.
PCT/CN2020/115777 2020-06-29 2020-09-17 Security check image artifact removing method using region search and pixel value suppression WO2022000804A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010604920.XA CN111652953B (en) 2020-06-29 2020-06-29 Security image artifact removing method utilizing region search and pixel value suppression
CN202010604920.X 2020-06-29

Publications (1)

Publication Number Publication Date
WO2022000804A1 true WO2022000804A1 (en) 2022-01-06

Family

ID=72345139

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/115777 WO2022000804A1 (en) 2020-06-29 2020-09-17 Security check image artifact removing method using region search and pixel value suppression

Country Status (2)

Country Link
CN (1) CN111652953B (en)
WO (1) WO2022000804A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111652953B (en) * 2020-06-29 2022-12-30 中国电子科技集团公司第十四研究所 Security image artifact removing method utilizing region search and pixel value suppression
TWI769602B (en) * 2020-11-30 2022-07-01 群邁通訊股份有限公司 Body posture identifying method using mmw radar and computer readable storage medium
CN112906548B (en) * 2021-02-07 2024-05-28 广东省科学院智能制造研究所 Fall detection method and system based on edge calculation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101937A1 (en) * 2016-10-10 2018-04-12 Carestream Health, Inc. Despeckling method for radiographic images
CN110570492A (en) * 2019-09-11 2019-12-13 清华大学 Neural network training method and apparatus, image processing method and apparatus, and medium
CN110766642A (en) * 2019-12-30 2020-02-07 浙江啄云智能科技有限公司 Artifact removing method
CN111652953A (en) * 2020-06-29 2020-09-11 中国电子科技集团公司第十四研究所 Security image artifact removing method utilizing region search and pixel value suppression

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992409B (en) * 2014-09-30 2018-01-12 中国科学院苏州生物医学工程技术研究所 A kind of metal artifacts reduction method of CT images
CN106909947B (en) * 2017-03-03 2020-06-26 中南大学 Mean Shift algorithm-based CT image metal artifact elimination method and system
CN111223156B (en) * 2019-11-06 2023-06-16 深圳市深图医学影像设备有限公司 Metal artifact eliminating method for dental cone beam CT system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101937A1 (en) * 2016-10-10 2018-04-12 Carestream Health, Inc. Despeckling method for radiographic images
CN110570492A (en) * 2019-09-11 2019-12-13 清华大学 Neural network training method and apparatus, image processing method and apparatus, and medium
CN110766642A (en) * 2019-12-30 2020-02-07 浙江啄云智能科技有限公司 Artifact removing method
CN111652953A (en) * 2020-06-29 2020-09-11 中国电子科技集团公司第十四研究所 Security image artifact removing method utilizing region search and pixel value suppression

Also Published As

Publication number Publication date
CN111652953A (en) 2020-09-11
CN111652953B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
WO2022000804A1 (en) Security check image artifact removing method using region search and pixel value suppression
CN104318548B (en) Rapid image registration implementation method based on space sparsity and SIFT feature extraction
JP4339541B2 (en) Optical inspection system
CN102790841B (en) Method of detecting and correcting digital images of books in the book spine area
KR101932214B1 (en) Apparatus for measuring crack using image processing technology and method thereof
CN109859226A (en) A kind of detection method of the X-comers sub-pix of figure segmentation
CN113781424B (en) Surface defect detection method, device and equipment
CN115170669A (en) Identification and positioning method and system based on edge feature point set registration and storage medium
CN109559324A (en) A kind of objective contour detection method in linear array images
CN107590496A (en) The association detection method of infrared small target under complex background
CN114627080B (en) Vehicle stamping accessory defect detection method based on computer vision
CN105787912B (en) Classification-based step type edge sub-pixel positioning method
CN109087295A (en) Bridge based on gray value sciagraphy reveals muscle visible detection method
JP2013002839A (en) Crack detection method
CN105139410B (en) The brain tumor MRI image dividing method projected using aerial cross sectional
CN114863492A (en) Method and device for repairing low-quality fingerprint image
CN114170317B (en) Swimming pool drowning prevention head position judging method and device and computer equipment
CN115330684A (en) Underwater structure apparent defect detection method based on binocular vision and line structured light
CN110348307B (en) Path edge identification method and system for crane metal structure climbing robot
Priyadarshini et al. A new edge detection method based on additions and divisions
CN104408432B (en) Infrared image target detection method based on histogram modification
CN111192280B (en) Method for detecting optic disc edge based on local feature
JP2011233060A (en) Object recognition device, object recognition method, and computer program
JP4507571B2 (en) Human body posture measurement device
CN108428250B (en) X-corner detection method applied to visual positioning and calibration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20943426

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20943426

Country of ref document: EP

Kind code of ref document: A1