Image correction method, image correction apparatus, scanning imaging apparatus, electronic device, storage medium, and computer program product

By calculating the cumulative position and pixel coordinates of the detector in the correction direction, a distortion-free image is generated using linear interpolation, which solves the image distortion problem in static human body security inspection equipment and improves the accuracy of image interpretation.

WO2026007727A1PCT designated stage Publication Date: 2026-01-08NUCTECH CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/102732
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-03
Filing Date
2025-06-23
Publication Date
2026-01-08

AI Technical Summary

Technical Problem

The images generated by existing static human body security inspection equipment based on X-ray transmission imaging technology are distorted, affecting the accuracy of image interpretation.

Method used

By calculating multiple actual cumulative positions of the detector in the correction direction, and based on the actual cumulative positions and the size of the first image in the correction direction, the mapping position and pixel coordinates are calculated, and a distortion-free second image is generated using linear interpolation.

Benefits of technology

It effectively eliminates or reduces image distortion and improves the accuracy of image interpretation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025102732_08012026_PF_FP_ABST
    Figure CN2025102732_08012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an image correction method, an image correction apparatus, a scanning imaging apparatus, an electronic device, a storage medium, and a computer program product. The scanning imaging apparatus is configured to acquire a first image of an inspection object. The image correction method comprises: computing a plurality of actual cumulative positions of detectors in a correction direction; computing, on the basis of the plurality of actual cumulative positions and the size of the first image in the correction direction, a plurality of mapping positions to which the actual cumulative positions are mapped in the first image; computing pixel point coordinates on the basis of relationships between the plurality of mapping positions and coordinates of pixel points in the first image in the correction direction, wherein the pixel point coordinates are coordinates, in the first image in the correction direction, of pixel points in a second image; computing pixel values of the pixel points in the second image on the basis of pixel values of the pixel points in the first image and the pixel point coordinates; and generating the second image on the basis of the pixel point coordinates and the pixel values of the pixel points in the second image.
Need to check novelty before this filing date? Find Prior Art

Description

Image correction method, image correction device, scanning imaging device, electronic device, storage medium, and computer program product

[0001] The present disclosure claims priority from Chinese Patent Application No. 202410889079.1 filed on July 3, 2024, the contents of which are incorporated herein by reference in their entirety. TECHNICAL FIELD

[0002] The present disclosure relates to the technical field of security inspection. Specifically, it relates to an image correction method, an image correction device, a scanning imaging device, an electronic device, a storage medium, and a computer program product. BACKGROUND

[0003] In recent years, the demand for human security inspection has been increasing in various countries. Not only do airports, ports, and border crossings need to conduct human security inspection, but also prisons, mines, and other special places have an increasing demand for human security inspection.

[0004] The stationary human security inspection equipment based on X-ray transmission imaging technology has become a more popular product on the market due to its low cost, fast and intuitive imaging, high accuracy of image interpretation, and other advantages. It can effectively detect various types of metal and non-metal contraband hidden in the body and on the body surface, such as drugs, guns, knives, explosives, etc., without contacting the body when the person being inspected is standing still.

[0005] However, the images generated by the current stationary human security inspection equipment based on X-ray transmission imaging technology have distortion and other problems, which may affect the accuracy of image interpretation.

[0006] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute the related art known to those skilled in the art. SUMMARY

[0007] The purpose of the present disclosure is to provide an image correction method, an image correction device, a scanning imaging device, an electronic device, a storage medium, and a computer program product.

[0008] According to an aspect of the present disclosure, an image correction method for a scanning imaging device is provided. The scanning imaging device includes a radiation source for emitting radiation and a detector for detecting the radiation. The scanning imaging device is configured to acquire a first image of a detection object. The method includes: calculating a plurality of actual cumulative positions of the detector in a correction direction; calculating a plurality of mapping positions of the actual cumulative positions in the first image according to the plurality of actual cumulative positions and a size of the first image in the correction direction; calculating pixel point coordinates according to a relationship between the plurality of mapping positions and coordinates of each pixel point in the first image in the correction direction, wherein the pixel point coordinates are coordinates of each pixel point in a second image in the first image in the correction direction; calculating pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates; and generating the second image according to the pixel point coordinates and the pixel values of each pixel point in the second image.

[0009] Further, the acquiring the first image of the detection object includes: controlling the radiation source and the detector to move along a first direction and scan the detection object to acquire the first image of the detection object; and the correction direction includes the first direction.

[0010] Further, the detector includes a plurality of first detector modules arranged along a second direction and a plurality of second detector modules arranged along a third direction, wherein the second direction and the third direction intersect, and a plane where the second direction and the third direction are located is perpendicular to the first direction; and the correction direction includes the second direction.

[0011] Further, the acquiring the first image of the detection object includes: controlling the radiation source and the detector to move along a first direction and scan the detection object to acquire the first image of the detection object; and the detector includes a plurality of first detector modules arranged along a second direction and a plurality of second detector modules arranged along a third direction, wherein the second direction and the third direction intersect, and a plane where the second direction and the third direction are located is perpendicular to the first direction; and the correction direction includes both the first direction and the second direction.

[0012] Further, the first image comprises a plurality of rows of pixels arranged along a first direction; the calculating the plurality of actual accumulated positions of the detector along the correction direction comprises: calculating a moving distance of the detector along the first direction in each integration time according to a speed curve of the detector during the moving process along the first direction and an integration time of the detector, and calculating an accumulated moving distance corresponding to different time nodes according to the moving distance of the detector in each integration time, wherein the integration time is a time corresponding to acquisition of a single row of pixel image by the detector, and the different time nodes correspond to the plurality of rows of pixels in the first image respectively; and calculating the actual accumulated position of the detector along the first direction according to the accumulated moving distance.

[0013] Further, the calculating the plurality of mapping positions of the actual accumulated positions in the first image along the correction direction according to the plurality of actual accumulated positions and a size of the first image along the correction direction comprises: scaling the actual accumulated positions along the first direction in proportion to an upper limit of a maximum pixel in the first image to obtain scaled actual accumulated positions, wherein the scaled actual accumulated positions are represented by coordinate values along the correction direction, and the scaled actual accumulated positions are the plurality of mapping positions.

[0014] Further, the plurality of mapping positions comprise a plurality of coordinate values in decimal representation; and the calculating the pixel point coordinates according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image along the correction direction comprises: obtaining a plurality of coordinate values in decimal representation located on both sides of each integer value in the plurality of mapping positions, wherein the coordinate positions of the integer values are target positions of the second image in the plurality of mapping positions; obtaining pixel row coordinates in the first image corresponding to the plurality of coordinate values in decimal representation; and calculating pixel row coordinates in the first image corresponding to the integer values by using a linear interpolation method according to the plurality of coordinate values in decimal representation and pixel point coordinates in the first image corresponding to the plurality of coordinate values in decimal representation, wherein the pixel point coordinates comprise the pixel row coordinates in the first image corresponding to the integer values.

[0015] Further, the calculating the pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates comprises: calculating the pixel values of each pixel point in the second image by using a linear interpolation method according to the pixel values of each pixel point in the first image and the pixel point coordinates.

[0016] Further, the first image further comprises a plurality of columns of pixels arranged along a second direction; the plurality of first detector modules comprises M first sub-detector modules, and the plurality of second detector modules comprises N second sub-detector modules, wherein M and N are positive integers greater than or equal to 1, and wherein the M first sub-detector modules of the plurality of first detector modules and the N second sub-detector modules of the plurality of second detector modules correspond to the plurality of columns of pixels of the first image, respectively; the calculating the plurality of actual cumulative positions of the detector in the correction direction further comprises: calculating M first positions of the M first sub-detector modules of the plurality of first detector modules along a straight line on which the first detector modules are located, respectively; and calculating N second positions of intersection points of extensions of lines connecting positions of the N second sub-detector modules of the plurality of second detector modules and a position of the radiation source and the straight line on which the first detector modules are located, respectively; and calculating the actual cumulative position of the detector in the second direction according to orders of the M first positions and the N second positions in the second direction.

[0017] Further, the calculating the plurality of mapping positions of the actual cumulative positions in the first image according to the plurality of actual cumulative positions and a size of the first image in the correction direction further comprises: performing equal proportion scaling on the actual cumulative positions in the second direction with the largest column of pixels in the first image as an upper limit to obtain scaled actual cumulative positions, wherein the scaled actual cumulative positions are represented by coordinate values along the correction direction, and the scaled actual cumulative positions are the plurality of mapping positions.

[0018] Further, the plurality of mapping positions comprise a plurality of coordinate values represented by decimals; and the calculating the pixel point coordinates according to relationships between the plurality of mapping positions and coordinates of each pixel point in the first image in the correction direction further comprises: obtaining a plurality of coordinate values represented by decimals located on two sides of each integer value in the plurality of mapping positions, wherein a coordinate position of the integer value is a target position of the second image in the plurality of mapping positions; obtaining pixel column coordinates in the first image corresponding to the plurality of coordinate values represented by decimals; and calculating pixel column coordinates in the first image corresponding to the integer value using a linear interpolation method according to the plurality of coordinate values represented by decimals and the pixel point coordinates in the first image corresponding to the plurality of coordinate values represented by decimals, wherein the pixel point coordinates comprise the pixel column coordinates in the first image corresponding to the integer value.

[0019] Further, the calculating pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates further comprises: calculating the pixel values of each pixel point in the second image using a linear interpolation method according to the pixel values of each pixel point in the first image and the pixel point coordinates.

[0020] Further, the moving of the radiation source and the detector along the first direction comprises an accelerated movement, a uniform movement and a decelerated movement.

[0021] According to another aspect of the present disclosure, there is provided an image correction device for a scanning imaging device, the scanning imaging device comprising a radiation source configured to emit radiation and a detector configured to detect the radiation, the scanning imaging device being configured to acquire a first image of a detection object, wherein the device comprises:

[0022] a first calculating module configured to calculate a plurality of actual cumulative positions of the detector in a correction direction;

[0023] a second calculating module configured to calculate a plurality of mapping positions of the actual cumulative positions in the first image according to the plurality of actual cumulative positions and a size of the first image in the correction direction;

[0024] a third calculating module configured to calculate pixel point coordinates according to a relationship between the plurality of mapping positions and coordinates of each pixel point in the first image in the correction direction, wherein the pixel point coordinates are coordinates of each pixel point in a second image in the first image in the correction direction;

[0025] a fourth calculating module configured to calculate pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates; and

[0026] an image generating module configured to generate the second image according to the pixel point coordinates and the pixel values of each pixel point in the second image.

[0027] According to yet another aspect of the present disclosure, there is provided a scanning imaging device, wherein the scanning imaging device comprises a radiation source configured to emit radiation, a detector configured to detect the radiation and generate a detection signal, and an image processor configured to receive the detection signal, generate a first image according to the detection signal, and process the first image by using the method according to any one of the above to generate a second image.

[0028] Further, the scanning imaging device further comprises a detector arm and a motion controller, the detector is disposed on the detector arm, and the motion controller is configured to control the detector arm and the radiation source to move along a first direction.

[0029] Further, the detector arm comprises at least one of an L-shaped detector arm, a C-shaped detector arm or a U-shaped detector arm.

[0030] Further, the scanning imaging device further comprises a detection channel; the ray source and the detector are respectively located on two sides of the detection channel.

[0031] According to yet another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of the above.

[0032] According to still another aspect of the present disclosure, a computer-readable storage medium is provided, storing computer-executable instructions which, when executed, implement the method of any one of the above.

[0033] According to yet still another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method of any one of the above. BRIEF DESCRIPTION OF DRAWINGS

[0034] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description when taken in conjunction with the accompanying drawings, in which:

[0035] FIG. 1 is a top view of a scanning imaging device according to an embodiment of the present disclosure;

[0036] FIG. 2 is a schematic view of the moving trajectories of a ray source and a detector according to an embodiment of the present disclosure;

[0037] FIG. 3 is a flowchart of an image correction method according to an embodiment of the present disclosure;

[0038] FIG. 4 is a flowchart of the S01 step in the image correction method according to an embodiment of the present disclosure;

[0039] FIG. 5 is a flowchart of the S03 step in the image correction method according to an embodiment of the present disclosure;

[0040] FIG. 6A is a schematic view of a first image before the image correction method is applied according to an embodiment of the present disclosure; FIG. 6B is a schematic view of a second image after the image correction method is applied according to an embodiment of the present disclosure;

[0041] FIG. 7 is a flowchart of the S01 step in the image correction method according to another embodiment of the present disclosure;

[0042] FIG. 8 is a flowchart of the S03 step in the image correction method according to another embodiment of the present disclosure;

[0043] FIG. 9 is a block diagram of an image correction device according to an embodiment of the present disclosure;

[0044] FIG. 10 is a block diagram of a structure of a scanning imaging apparatus according to an embodiment of the present disclosure;

[0045] FIG. 11 is a side view planar diagram of a scanning imaging apparatus according to an embodiment of the present disclosure;

[0046] FIG. 12 is a block diagram of an electronic device suitable for an image correction method according to an embodiment of the present disclosure.

[0047] It is noted that, for the sake of clarity, the size of layers, structures or regions in the drawings can be exaggerated or reduced, i.e. the drawings are not necessarily drawn to scale relative to each other. DETAILED DESCRIPTION

[0048] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all of the embodiments of the present disclosure. Based on the described embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the scope of the present disclosure.

[0049] It is noted that, in the drawings, the size and relative size of the elements can be exaggerated for the sake of clarity and / or description. Thus, the size and relative size of the elements in the drawings are not necessarily drawn to scale. In the description and drawings, identical or similar reference numerals indicate identical or similar components.

[0050] Unless otherwise defined, technical terms or scientific terms used in the present disclosure should be understood as having the same meaning as commonly understood by one of ordinary skill in the art. The terms "first", "second", and similar terms in the present disclosure do not denote any order, quantity, or importance, but are used to distinguish different components. The terms "include" or "contain" and similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects.

[0051] In this document, unless otherwise specifically stated, directional terms such as "upper", "lower", "left", "right", "inner", "outer" and the like are used with reference to the orientation or position shown in the drawings, and are used only for the convenience of describing the present disclosure, and do not indicate or imply that the indicated device, element or component must have a particular orientation, be constructed or operated in a particular orientation. It is to be understood that when the absolute position of the described object changes, the relative positional relationship they represent may also change accordingly. Therefore, these directional terms cannot be understood as a limitation on the present disclosure.

[0052] In this document, directional terms such as "first direction", "second direction" are used to describe different directions of a scanning imaging device or an image, for example, row direction and column direction of an image. It should be understood that such representation is only an exemplary description, and is not a limitation of the present disclosure.

[0053] "About" in this document means not strictly limited boundaries, allowing values within the range of process and measurement errors.

[0054] In this document, "parallel" means that the angle formed by two straight lines is greater than or equal to -10° and less than or equal to 10°, so it also includes the angle greater than or equal to -5° and less than or equal to 5°.

[0055] The inventor found that in the current static human security inspection equipment based on X-ray transmission imaging technology, the different arrangement positions of the detector caused by the structure of the detector arm, the inconsistent distance from the ray source to each detector, and the acceleration and deceleration process of the detector arm at the beginning and end of the movement may cause image distortion, and the proportion of the human body image generated by scanning and the actual human body is different. It is specifically shown that: as shown in FIG. 6A, the imaging of the arm and elbow of one side of the human body is elongated and the area is increased due to the different arrangement positions of the detector in the detector arm; the imaging of the head and foot of the human body is elongated and the area is increased due to the acceleration and deceleration of the detector arm. Such distorted image will affect the image judgment accuracy.

[0056] Therefore, the embodiment of the present disclosure provides an image correction method, which can at least alleviate or even eliminate the image distortion problem, thereby improving the image judgment accuracy.

[0057] FIG. 1 is a top view of a scanning imaging device according to an embodiment of the present disclosure; and FIG. 2 is a schematic diagram of the moving track of a ray source and a detector according to an embodiment of the present disclosure.

[0058] Exemplarily, in some embodiments of the present disclosure, in combination with reference to FIGS. 1 and 2, the scanning imaging device 100 includes a ray source 10 for emitting rays and a detector 30 for detecting rays, and the scanning imaging device is configured to acquire a first image P1 of a detection object 20.

[0059] Exemplarily, the detection object 20 can be located between the ray source 10 and the detector 30.

[0060] Exemplarily, the detection object 20 can be a human body, or other articles, such as a luggage package.

[0061] Exemplarily, in combination with reference to FIG. 1 and FIG. 2, acquiring the first image P1 of the detection object 20 can include: controlling the ray source 10 and the detector 30 to move along the first direction Z and scan the detection object 20 to acquire the first image P1 of the detection object 20. For example, the ray source 10 and the detector 30 can collect a plurality of rows of pixels in the process of moving along the first direction Z. The ray source can collect one row of pixels in one integration time t0. That is, the integration time t0 is the time corresponding to the acquisition of a single row of pixel image by the detector. The integration time t0 is related to the parameters of the detector 30 itself, for example, related to the exposure time.

[0062] Exemplarily, the total time required for the detector 30 to scan the entire detection object 20 in the first direction Z is t n , for example, the time required for scanning the entire detection object 20 from top to bottom or from bottom to top along the first direction Z is t n . Each integration time is t0. t n may be an integer multiple of t0, for example, t n / t0 = n, n is a positive integer greater than or equal to 1. The detector 30 can collect n rows of pixels in t n . Each row of pixels corresponds to a time node.

[0063] Exemplarily, the moving distance of the detector 30 in one integration time t0 is h. The moving distance h in the integration time t0 corresponding to different time nodes can be the same or different. For example, referring to FIG. 2, the first row of pixels corresponds to the first time node t1, that is, the detector starts to move from the starting position O1, and after one integration time t0, the moving distance is h1, and at this time, the corresponding time node is the first time node t1. After the first time node t1, the detector continues to move from the height h1 for one integration time t0, and the moving distance is h2, and at this time, the corresponding time node is the second time node t2. Adjacent two time nodes can be separated by one integration time t0, for example, t2-t1=t0. In turn, after the (n-1)th time node t (n-1) , the detector continues to move for one integration time t0, and the moving distance is hn, and at this time, the corresponding time node is the nth time node t n , and at this time, the scanning ends, and n rows of pixels are collected. The detector moves from the starting position O1 to the position O2 (end position) corresponding to the nth time node t n , which is the moving track of the detector scanning the entire detection object 20. The total height H1 of the detection object 20 in the first direction Z is equal to the sum of the moving distances in each integration time, that is, H1=h1+h2+h3+…+h(n-1)+hn.

[0064] For example, taking the human body as an example, the height of the human body is 1.8 meters, and the standing direction of the human body (from the foot to the head) is parallel to the first direction Z. When the detector scans the human body from the foot to the head, the total time t n is 10s, and the integration time t0 is 0.01s, t n / t0 = 1000, so 1000 integration times can be included in the entire scanning process of the detector, and 1000 rows of pixels can be collected.

[0065] For example, continuing to refer to FIG. 1, the detector 30 can include a plurality of first detector modules 31 arranged along a second direction X and a plurality of second detector modules 32 arranged along a third direction Y. The second direction X and the third direction Y intersect, and the plane on which the second direction X and the third direction Y are located is perpendicular to the first direction Z. For example, the first detector module 31 is directly opposite the detection object 20, and the second detector module 32 is located on the side of the detection object 20.

[0066] In some embodiments, the plurality of first detector modules 31 can include M first sub-detectors 310, and the plurality of second detector modules 32 can include N second sub-detectors 320, where M and N are positive integers greater than or equal to 1. For example, one first detector module 31 can include one first sub-detector 310. One second detector module 32 can include one second sub-detector 320. The M first sub-detectors 310 in the plurality of first detector modules 31 and the N second sub-detectors 320 in the plurality of second detector modules 32 correspond to a plurality of columns of pixels of the first image P1, respectively. For example, scanning the detection object 20 using the M first sub-detectors 310 arranged along the second direction X can obtain M columns of pixels. Scanning the detection object 20 using the N second sub-detectors 320 arranged along the third direction Y can obtain N columns of pixels. Scanning the detection object 20 using the M first sub-detectors 310 in the plurality of first detector modules 31 and the N second sub-detectors 320 in the plurality of second detector modules 32 together can obtain M+N columns of pixels.

[0067] In some embodiments, due to the space limitation of the scanning imaging device, the detector usually includes a plurality of sub-detectors arranged in different directions, thereby increasing the scanning coverage of the detector.

[0068] For example, the first image P1 obtained by scanning the detection object 20 using the scanning imaging device 100 can include a plurality of rows and a plurality of columns of pixels. The number of rows of the first image P1 is related to the total time t n of the detector 30 scanning the entire detection object 20 and the integration time t0 corresponding to the collection of a single row of pixels. The number of columns of the first image P1 is related to the total number of the first sub-detector 310 and the second sub-detector 320 in the detector 30.

[0069] It should be noted that the embodiments of the present disclosure take the L-shaped detector as an example, but the embodiments of the present disclosure are not limited thereto. The detector can also adopt other shape designs, such as a U-shaped detector or a C-shaped detector.

[0070] The inventor has found through research that, since the movement process of the detector scanning the detection object is not uniform speed scanning, there is a proportion imbalance in the first direction Z of the image collected by scanning in some time periods (for example, the non-uniform speed movement stage), which causes the first image P1 formed to have image distortion in the first direction Z. In addition, since there are differences in the interval distances between the source center of the ray source 10 and each sub-detector position, the position of the source center of the ray source 10 and the position of the detection object 20, and the detection object 20 and each sub-detector position, which causes the first image P1 formed to have image distortion in the second direction X.

[0071] In order to solve the above-mentioned image distortion problem, the embodiments of the present disclosure provide an image correction method for a scanning imaging device, which corrects the first image P1 in the first direction Z and / or the second direction X, thereby reducing or eliminating the image distortion effect and improving the accuracy of the image.

[0072] FIG. 3 is a flowchart of an image correction method according to an embodiment of the present disclosure.

[0073] Exemplarily, in some embodiments of the present disclosure, referring to FIG. 3, an image correction method is provided, which can be used for image correction of a scanning imaging device. The image correction method can include the following S01-S05 steps.

[0074] In the S01 step, a plurality of actual cumulative positions of the detector in the correction direction are calculated.

[0075] In the S02 step, a plurality of mapping positions of the actual cumulative positions in the first image are calculated according to the plurality of actual cumulative positions and the size of the first image in the correction direction.

[0076] In the S03 step, pixel point coordinates are calculated according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image in the correction direction. The pixel point coordinates are the coordinates of each pixel point in the second image in the first image in the correction direction.

[0077] In the S04 step, the pixel values of each pixel point in the second image are calculated according to the pixel values of each pixel point in the first image and the pixel point coordinates.

[0078] In the S05 step, the second image is generated according to the pixel point coordinates and the pixel values of each pixel point in the second image.

[0079] Exemplarily, the correction direction can include a first direction Z. For example, in combination with reference to FIG. 1 and FIG. 2, the first direction Z can be a moving direction of the detector 30 and the ray source 10 in the scanning imaging device 100 when scanning the detection object 20. Exemplarily, the first image P1 can include a plurality of rows of pixels arranged along the first direction Z. In some embodiments, the first image P1 can be corrected in the first direction Z to reduce or eliminate image distortion in the first direction Z.

[0080] Exemplarily, the correction direction can include a second direction X. For example, continuing to refer to FIG. 1, in the scanning imaging device 100, the detector 30 includes a plurality of first detector modules 31 arranged along the second direction X and a plurality of second detector modules 32 arranged along the third direction Y, wherein the second direction X and the third direction Y intersect, and a plane in which the second direction X and the third direction Y are located is perpendicular to the first direction Z. For example, the detector 30 can include an L-shaped detector arm, a long arm 301 of the L-shaped detector arm is parallel to the second direction X and is located at the front or back of the detection object 20. A short arm 302 of the L-shaped detector arm is parallel to the third direction Y and is located at the side of the detection object 20. Exemplarily, the first image P1 can include a plurality of columns of pixels arranged along the second direction X. In some embodiments, the first image P1 can be corrected in the second direction X to reduce or eliminate image distortion in the second direction.

[0081] Exemplarily, the correction direction can include both the first direction Z and the second direction X. For example, using the scanning imaging device 100, acquiring the first image P1 of the detection object 20 includes: controlling the ray source 10 and the detector 30 to move along the first direction Z and scan the detection object 20 to acquire the first image P1 of the detection object 20. The detector 30 includes a plurality of first detector modules 31 arranged along the second direction X and a plurality of second detector modules 32 arranged along the third direction Y. The first image P1 can include a plurality of rows and columns of pixels arranged along the first direction Z and the second direction X. In some embodiments, the first image P1 can be corrected in both the first direction Z and the second direction X to reduce or eliminate image distortion in the first direction Z and the second direction X.

[0082] FIG. 4 is a flowchart of the S01 step in the image correction method according to an embodiment of the present disclosure.

[0083] Exemplarily, in an embodiment of the present disclosure, the image correction method can correct the first image P1 in the first direction Z. For example, in combination with reference to FIG. 2 and FIG. 4, calculating a plurality of actual cumulative positions of the detector in the correction direction can include the following S011-S013 steps.

[0084] In step S011, the moving distance h of the detector 30 along the first direction Z in each integration time t0 is calculated according to the speed curve of the detector 30 along the moving process in the first direction Z and the integration time t0 of the detector. The integration time t0 is the time corresponding to the acquisition of a single row of pixel images by the detector 30. For example, referring to FIG. 2, the position of the detector scan moves from the position corresponding to the first time node t1 to the position corresponding to the second time node t2 in an integration time t0, and the moving distance of this process is h2. The position of the detector scan moves from the position corresponding to the n-1th time node t (n-1) to the position corresponding to the n th time node t n in an integration time t0, and the moving distance of this process is hn. The distance between the two positions corresponding to two adjacent time nodes is the moving distance h of the detector in an integration time.

[0085] Exemplarily, the moving of the ray source 10 and the detector 30 along the first direction Z can include an acceleration moving process, a uniform moving process and a deceleration moving process. For example, in the stage when the detector 30 starts to move, the detector 30 can perform an acceleration moving process. For example, the acceleration moving process can include a uniform acceleration moving process and / or a non-uniform acceleration moving process. For another example, when the detector 30 is about to end the scan, the detector 30 can perform a deceleration moving process, which can include a uniform deceleration moving process and / or a non-uniform deceleration moving process.

[0086] In some embodiments, the speed curve can be fitted by using a piecewise linear fitting method, and the moving distance h in each integration time t0 is calculated by using the uniform variable speed straight line motion formula (1) for each fitted linear segment. The calculation of the acceleration a can use the speed values v max and v min of the two end points (i.e. the positions corresponding to two adjacent time nodes) of each linear segment.

[0087] In step S012, the cumulative moving distance h t corresponding to different time nodes is calculated according to the moving distance h of the detector in each integration time t0. Different time nodes correspond to different rows of pixels in the first image P1. For example, continuing to refer to FIG. 2, the cumulative moving distance h t corresponding to the first time node t1 is h1. The cumulative moving distance h t corresponding to the second time node t2 is h1+h2. The cumulative moving distance h t corresponding to the third time node t3 is h1+h2+h3. By analogy, the cumulative moving distance h n corresponding to the n th time node t t is h1+h2+h3+…+h(n-1)+hn.

[0088] In the S013 step, the actual cumulative position h t of the detector in the first direction Z is calculated according to the cumulative movement distance h s . For example, the actual cumulative position h s of the detector in the first direction Z can be in one-to-one correspondence with the cumulative movement distance h t .

[0089] For example, taking the first image P1 including a total of 10 rows of pixels as an example, 10 rows of pixels correspond to 10 integration times t0 required for acquisition. Referring to Table 1, the movement distance h of the detector in each integration time t0 is first calculated. Then, according to the time nodes corresponding to the 10 integration times, the actual cumulative positions h s at the 10 time nodes are calculated.

[0090] Table 1: Actual cumulative positions corresponding to different time nodes in the first direction

[0091] Exemplarily, in the embodiment of the present disclosure, in combination with referring to FIG. 2, Table 1 and Table 2, the plurality of mapping positions to which the actual cumulative positions h s are mapped in the first image P1 are calculated according to the plurality of actual cumulative positions h s and the size of the first image P1 in the correction direction in the S02 step, which can specifically include the following S021 step.

[0092] In the S021 step, the actual cumulative positions h s are scaled in the first direction Z in proportion to the maximum pixel in the first image P1 as an upper limit, to obtain the scaled actual cumulative positions h s’ , wherein the scaled actual cumulative positions h s’ are expressed by coordinate values along the correction direction, and the scaled actual cumulative positions h s’ are the plurality of mapping positions. Taking the first image including a total of 10 rows of pixels in Table 1 as an example, according to the time nodes corresponding to the 10 integration times, the actual cumulative positions h s at the corresponding 10 time nodes can be calculated. Taking 10 as an upper limit, the actual cumulative positions h s corresponding to each time node are scaled in proportion, and the scaled actual cumulative positions h s’ in the first direction as shown in Table 2 can be obtained.

[0093] Table 2: Scaled actual cumulative positions corresponding to different time nodes in the first direction

[0094] Exemplarily, referring to Table 2, the plurality of mapping positions (the plurality of scaled actual cumulative positions h s’) can include a plurality of decimal representation of coordinate values.

[0095] FIG. 5 is a flow chart of S03 step in the image correction method according to an embodiment of the present disclosure.

[0096] Exemplarily, in the embodiment of the present disclosure, in combination with reference to FIG. 5 and Table 2, for example, according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image in the correction direction, the pixel point coordinates are calculated, which can specifically include the following S031-S033 steps.

[0097] In S031 step, a plurality of decimal representation of coordinate values located on both sides of each integer value in the plurality of mapping positions are obtained. Wherein, the coordinate position of each integer value is the target position of the second image P2 in the plurality of mapping positions. For example, the scaled actual cumulative position h s’ is 2.14. Its physical meaning is that in the first direction Z, in the second image P2, at the pixel position of the 2.14th row, the gray value is the same as the pixel gray value of the 3rd row in the first image P1. The scaled actual cumulative position h s’ of the eighth time node t8 is 9.14. Its physical meaning is that in the first direction Z, in the second image P2, at the pixel position of the 9.14th row, the gray value is the same as the pixel gray value of the 8th row in the first image P1. Taking the scaled actual cumulative position h s’ of the third time node t3 as an example, the scaled actual cumulative position h s’ of the fourth time node t4 is 3.68. Taking the scaled actual cumulative position h

[0098] In S032 step, the pixel row coordinates in the first image corresponding to the plurality of decimal representation of coordinate values are obtained. Continuing to take the scaled actual cumulative position h s’ of the third time node t3 as an example, the pixel row coordinates in the first image corresponding to the plurality of decimal representation of coordinate values are 2.14 and 3.68. The scaled actual cumulative position h s’ of the fourth time node t4 is 3.68. Taking the pixel of the 2.14th row in the second image P2 as an example, it corresponds to the pixel of the 3rd row in the first image P1, and the pixel of the 3.68th row in the second image P2 corresponds to the pixel of the 4th row in the first image P1. Since the pixel of the 3rd row in the second image P2 is located between the pixels of the 2.14th and 3.68th rows in the second image P2, that is, the pixel of the 3rd row in the second image P2 corresponds to the pixel between the pixels of the 3rd and 4th rows in the first image P1. Then, the following two groups of data have a linear mapping relationship:

[0099] 2.14-3-3.68 and 3-Q(3)-4

[0100] wherein, Q(3) represents the position of the 3rd row pixel in the second image P2 in the first image P1.

[0101] The 3rd row pixel in the second image P2 is one of the target positions of the second image P2 in the plurality of mapping positions.

[0102] Similarly, the positions of other rows of pixels in the second image P2 can also be found by the above method.

[0103] By establishing a corresponding mapping relationship between the coordinate positions of each integer value in the second image P2 and the coordinate positions in the first image P1, the image of each integer value coordinate position in the second image P2 can be calculated according to the first image P1. By this method, the non-uniformly distributed coordinate positions in the second image P2 can be changed into uniformly distributed coordinate positions.

[0104] In the S033 step, the pixel row coordinates in the first image corresponding to the integer values are calculated using the linear interpolation method according to the plurality of decimal representation coordinate values and the pixel point coordinates in the first image corresponding thereto, wherein the pixel point coordinates include the pixel row coordinates in the first image corresponding to the integer values.

[0105] Continuing with the scaled actual cumulative position h s’ of the third time node t3, the scaled actual cumulative position h s’ of the fourth time node t4 is 2.14 and 3.68, respectively, the position of the 3rd row pixel in the second image P2 in the first image P1 is calculated using the linear interpolation method as follows:

[0106] Q(3) = (3-2.14) / (3.68-2.14)*(4-3)+3 = 3.56

[0107] That is, the 3rd row pixel in the second image P2 corresponds to the 3.56th row pixel in the first image P1.

[0108] Exemplarily, in the embodiment of the present disclosure, the S04 step of calculating the pixels of each pixel point in the second image according to the pixel values and pixel point coordinates of each pixel point in the first image can specifically include the following S041 step.

[0109] In the S041 step, the pixel values of each pixel point in the second image P2 are calculated using the linear interpolation method according to the pixel values and pixel point coordinates of each pixel point in the first image P1.

[0110] Exemplarily, continuing with the scaled actual cumulative position h corresponding to the third time node t3 s’ is 2.14 and the scaled actual cumulative position h corresponding to the fourth time node t4 s’ is 3.68. For example, the third row of pixels in the second image P2 corresponds to the 3.56th row of pixels in the first image P1, and the gray value of the third row of pixels in the second image P2 can be obtained by interpolation of the third and fourth rows of pixels in the first image P1, as described by the following formula:

[0111] G(3) = (3.56-3) * V(4) + (4-3.56) * V(3)

[0112] wherein G(3) represents the gray value of the third row of pixels in the second image P2, V(3) represents the gray value of the third row of pixels in the first image P1, and V(4) represents the gray value of the fourth row of pixels in the first image P1.

[0113] It should be noted that each row of pixels in the first image P1 and the second image P2 can include one or more pixel points, and the plurality of pixel points located in the same row in the first image P1 and the second image P2 are one-to-one corresponding. Through the above method, the gray value of each pixel point in a row of pixels in the second image P2 can be calculated by the respective pixel coordinates and pixel gray values in the corresponding row of pixels in the first image P1.

[0114] According to the calculation, the gray values of the pixels corresponding to the integer value positions in the second image P2 can be obtained, so that the second image corrected in the first direction Z can be generated.

[0115] It should be noted that the embodiments of the present disclosure illustrate the correction method with 10 rows of pixels, but the embodiments of the present disclosure are not limited thereto. The embodiments of the present disclosure can be applied to the processing of pixel images including more rows.

[0116] FIG. 6A is a schematic diagram of the first image before the image correction method is adopted according to an embodiment of the present disclosure; and FIG. 6B is a schematic diagram of the second image after the image correction method is adopted according to an embodiment of the present disclosure.

[0117] In the embodiments of the present disclosure, by correcting the first image P1 in the first direction Z, the image distortion caused by the non-uniform motion of the detector can be eliminated, and the corrected second image P2 can be obtained. For example, the non-uniform motion of the detector in the start-up stage or the end stage causes the distortion of the image in the area near the foot and the area near the head in the first image P1. By using the image correction method in the embodiments of the present disclosure, the distorted image can be effectively corrected to a normal image, for example, the image in the area near the foot and the area near the head in the corrected second image P2 is restored to normal, so that the security personnel can more accurately and efficiently perform the image judgment work.

[0118] FIG. 7 is a flowchart of the S01 step in the image correction method according to some other embodiments of the present disclosure.

[0119] Exemplarily, in the embodiments of the present disclosure, the image correction method can correct the first image P1 in the second direction X. For example, with reference to FIG. 1 and FIG. 7, calculating the plurality of actual cumulative positions of the detector in the correction direction can include the following S014-S016 steps:

[0120] In the S014 step, M first positions of M first sub-detectors 310 in the plurality of first detector modules 31 on a straight line where the first detector module 31 is located are calculated respectively. The straight line where the plurality of first detector modules 31 is located is parallel to the second direction X. For example, with reference to FIG. 1, from right to left, the M first positions of the M first sub-detectors 310 on the straight line where the first detector module is located are S1, S2, S3, …, SN, respectively. M For example, the M first positions can be positions corresponding to the orthographic projection of the M first sub-detectors 310 in the direction perpendicular to the second direction X.

[0121] In the S015 step, N second positions of the intersection of the extension line of the straight line where the plurality of first detector modules 31 is located and the straight line connecting the positions of the N second sub-detectors 320 in the plurality of second detector modules 32 and the position of the radiation source 10 are calculated respectively. For example, with reference to FIG. 1, from right to left, the N second positions of the intersection of the extension line of the straight line connecting the positions of the N second sub-detectors 320 in the plurality of second detector modules 32 and the position of the radiation source 10 and the straight line where the plurality of first detector modules 31 is located are S (M+1) , S (M+2) , …, S (M+N) .

[0122] The distribution of the M first positions and the N second positions is an important parameter affecting the arrangement of the plurality of columns of pixels of the first image P1 in the second direction X.

[0123] In the S016 step, the actual cumulative position h of the detector 30 in the second direction X is calculated according to the order of the M first positions and the N second positions in the second direction X s For example, the first first sub-detector 3101 located at the rightmost position S1 is taken as the starting point, and is recorded as 1. From right to left, the second first sub-detector 3102 is located at the position S2, which is spaced apart from the first first sub-detector 3101 by a distance L1. Therefore, the actual cumulative position of the second first sub-detector 3102 in the second direction X is 1+L1. The third first sub-detector 3103 is located at the position S3, which is spaced apart from the second first sub-detector 3102 by a distance L2. Therefore, the actual cumulative position of the third first sub-detector 3103 in the second direction X is 1+L1+L2. Similarly, the actual cumulative position of the Mth first sub-detector 310M in the second direction X is 1+L1+L2+…+LM-1+LM. (M-1) The N second sub-detectors 320 located in the third direction are sequentially located to the left of the position SM-1 of the Mth first sub-detector 310M with respect to the projection position of the ray source in the second direction X (the N second positions of the line connecting the positions of the N second sub-detectors 320 and the position of the ray source 10 and the extension line of the line and the straight line where the first detector module 31 is located intersect). M From bottom to top and from right to left, the second position corresponding to the first second sub-detector 3201 is S (M+1) The actual cumulative position of the first second sub-detector 3201 in the second direction X is 1+L1+L2+…+L (M-1) +L M Similarly, the second position corresponding to the Nth second sub-detector 320N is SN. (M+N) The actual cumulative position of the Nth second sub-detector 3201 in the second direction X is 1+L1+L2+…+L (M-1) +L M +…+L (M+N-1) .

[0124] In some embodiments, taking M as 7 and N as 3 as an example, the detector includes M+N=10 sub-detectors, and the first image P1 collected corresponds to 10 columns of pixels. The actual cumulative positions of the 7 first sub-detectors and the 3 second sub-detectors can be as shown in Table 3.

[0125] Table 3: Actual cumulative positions of 10 sub-detectors in the second direction

[0126] Exemplarily, in the embodiments of the present disclosure, combined with reference to FIG. 1, Table 3 and Table 4, the actual cumulative positions h sthe size of the first image P1 in the correction direction, to calculate the actual cumulative position h s mapping positions in the first image P1, and the method can further comprise the following step S022.

[0127] In the step S022, the actual cumulative position h s is scaled in the second direction X to obtain the scaled actual cumulative position h s, . The scaled actual cumulative position h s’ is expressed by a coordinate value along the correction direction, and the scaled actual cumulative position h s’ is expressed by a coordinate value along the correction direction. s For example, the first image P1 includes a total of 10 columns of pixels in Table 3, and the actual cumulative positions h s’ of the plurality of sub-detectors in the second direction X are scaled in proportion to obtain the scaled actual cumulative positions h s’ in the second direction X as shown in Table 4.

[0128] Table 4: Actual cumulative positions of 10 sub-detectors in the second direction

[0129] For example, referring to Table 4, the plurality of mapping positions (the plurality of scaled actual cumulative positions h s’ in the second direction X) can include a plurality of coordinate values expressed by decimals.

[0130] FIG. 8 is a flowchart of the step S03 in the image correction method according to some embodiments of the present disclosure.

[0131] For example, in the embodiments of the present disclosure, in combination with reference to FIG. 8 and Table 4, the pixel point coordinates are calculated according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image in the correction direction, and the method can further comprise the following steps S034-S036.

[0132] In the step S034, a plurality of coordinate values expressed by decimals located on both sides of each integer value in the plurality of mapping positions are obtained. The coordinate position of each integer value is a target position of the second image P2 in the plurality of mapping positions. For example, the scaled actual cumulative position h s’ of the 4th column of pixels is 3.70. The physical meaning is that in the second direction, in the second image P2, at the 3.70th column of pixels, the gray value is the same as the gray value of the 4th column of pixels in the first image P1. The scaled actual cumulative position h s’is 6.48. Its physical meaning is that in the second image P2, at the 6.48th column pixel position, its gray value is the same as the gray value of the 7th column pixel in the first image P1. The scaled actual accumulated position h s’ is 3.70 and the scaled actual accumulated position h s’ is 4.63. For example, the coordinate values of the multiple decimal representations on both sides of the integer value 4 in the mapping position are 3.70 and 4.63 respectively. Its physical meaning is that the 4th column pixel in the second image P2 is located between the 3.70th and 4.63th column pixels in the second image P2.

[0133] In the S035 step, the column pixel coordinates in the first image corresponding to the multiple decimal representation coordinate values are obtained. Continuing with the scaled actual accumulated position h s’ is 3.70 and the scaled actual accumulated position h s’ is 4.63. For example, the 3.70th column pixel in the second image P2 corresponds to the 4th column pixel in the first image P1, and the 4.63th column pixel in the second image P2 corresponds to the 5th column pixel in the first image P1. Since the 4th column pixel in the second image P2 is located between the 3.70th and 4.63th column pixels in the second image P2, that is, the pixel in the first image P1 corresponding to the 4th column pixel in the second image P2 is located between the 4th and 5th column pixels in the first image P1. Then, the following two groups of data have a linear mapping relationship:

[0134] 3.70-4-4.63 and 4-R(4)-5

[0135] wherein R(4) represents the position in the first image P1 corresponding to the 4th column pixel in the second image P2.

[0136] The 4th column pixel in the second image P2 is one of the columns in the target position of the second image P2 in the multiple mapping positions.

[0137] Similarly, the positions of other column pixels in the second image P2 in the first image P1 can also be found by the above method.

[0138] By establishing the corresponding mapping relationship between the coordinate positions of each integer value in the second image P2 and the coordinate positions in the first image P1, the image of each integer value coordinate position in the second image P2 can be calculated according to the first image P1. By this method, the non-uniformly distributed coordinate positions in the second image P2 can be changed into uniformly distributed coordinate positions.

[0139] In the S036 step, the integer value corresponding pixel column coordinates in the first image are calculated according to the multiple decimal representation coordinate values and the corresponding pixel point coordinates in the first image using the linear interpolation method. The pixel point coordinates include the integer value corresponding pixel column coordinates in the first image.

[0140] The scaled actual cumulative position h of the 4th column pixel is 3.70 s’ The scaled actual cumulative position h of the 5th column pixel is 4.63 s’ For example, the position of the 4th column pixel in the second image P2 in the first image P1 is calculated using the linear interpolation method as follows:

[0141] R(4) = (4-3.70) / (4.63-3.70)*(5-4)+4 = 4.32

[0142] That is, the 4th column pixel in the first image P1 corresponds to the 4.32th column pixel in the second image P2.

[0143] For example, in the embodiment of the present disclosure, the S04 step of calculating the pixel value of each pixel point in the second image according to the pixel value and pixel point coordinates of each pixel point in the first image can further include the following S042 step.

[0144] In the S042 step, the pixel value of each pixel point in the second image P2 is calculated using the linear interpolation method according to the pixel value and pixel point coordinates of each pixel point in the first image P1.

[0145] The scaled actual cumulative position h of the 4th column pixel is 3.70 s’ The scaled actual cumulative position h of the 5th column pixel is 4.63 s’ For example, the 4th column pixel in the second image P2 corresponds to the 4.32th column pixel in the first image P1, and the gray value of the 4th column pixel in the second image P2 can be obtained by interpolating the 4th and 5th column pixels in the first image P1 as follows:

[0146] T(4) = (4.32-4)*U(5)+(5-4.32)*U(4)

[0147] Wherein, T(4) represents the gray value of the 4th column pixel in the second image P2, U(4) represents the gray value of the 4th column pixel in the first image P1, and U(5) represents the gray value of the 5th column pixel in the first image P1.

[0148] It should be noted that one or more pixels can be included in each column of pixels in the first image P1 and the second image P2, and the plurality of pixels in the same column in the first image P1 and the second image P2 correspond one by one. Through the above method, the gray value of each pixel in a column of pixels in the second image P2 can be calculated by the pixel coordinates and pixel gray values in the corresponding column of pixels in the first image P1.

[0149] According to the calculation, the gray value of each integer value position and the corresponding pixel in the second image P2 can be obtained, so that the second image P2 corrected in the second direction X can be generated.

[0150] It should be noted that the embodiments of the present disclosure illustrate the correction method with 10 columns of pixels, but the embodiments of the present disclosure are not limited thereto. The embodiments of the present disclosure can be applied to the processing of pixel images including more columns.

[0151] By correcting the first image P1 in the second direction X, the image distortion caused by the different distribution positions of the plurality of sub-detectors in the detector can be eliminated, so that the corrected second image P2 can be obtained. Taking human body security as an example, combined with reference to FIGS. 6A and 6B, due to the different distribution positions of the plurality of sub-detectors, there is a large difference between the left and right arms in the collected first image P1, and the images near the two arm regions have obvious distortion. For example, in FIG. 6A, the left arm has obvious distortion. By using the image correction method of the embodiments of the present disclosure, the first image P1 can be corrected in the second direction X, so that the distortion of the first image P1 in the second direction X can be reduced or eliminated, and the second image P2 as shown in FIG. 6B can be obtained.

[0152] In some embodiments of the present disclosure, by correcting the first image P1 in the first direction Z and the second direction X, the image distortion caused by the non-uniform speed movement of the detector can be eliminated, and the image distortion caused by the different distribution positions of the plurality of sub-detectors in the detector can also be eliminated, so that the corrected second image P2 can be obtained. By using the image correction method of the present disclosure, the distorted image can be effectively corrected into a normal image, so that the security personnel can more accurately and efficiently perform image judgment work.

[0153] FIG. 9 is a structural block diagram of an image correction device according to an embodiment of the present disclosure.

[0154] Exemplarily, in embodiments of the present disclosure, referring to FIG. 1 and FIG. 9, an image correction apparatus 200 for a scanning imaging apparatus 100 is provided. The scanning imaging apparatus 100 can include a radiation source 10 configured to emit radiation and a detector 30 configured to detect the radiation. The scanning imaging apparatus 100 is configured to acquire a first image P1 of an object 20. The image correction apparatus 200 can include a first calculation module 201, a second calculation module 202, a third calculation module 203, a fourth calculation module 204, and an image generation module 205.

[0155] The first calculation module 201 can be configured to calculate a plurality of actual cumulative positions of the detector 30 in a correction direction. The second calculation module 202 can be configured to calculate a plurality of mapping positions of the actual cumulative positions in the first image P1 according to the plurality of actual cumulative positions and a size of the first image P1 in the correction direction. The third calculation module 203 can be configured to calculate pixel point coordinates according to a relationship between the plurality of mapping positions and coordinates of each pixel point in the first image P1 in the correction direction, wherein the pixel point coordinates are coordinates of each pixel point in a second image P2 in the first image P1 in the correction direction. The fourth calculation module 204 can be configured to calculate pixel values of each pixel point in the second image P2 according to the pixel values of each pixel point in the first image P1 and the pixel point coordinates. The image generation module 205 can be configured to generate the second image P2 according to the pixel point coordinates and the pixel values of each pixel point in the second image P2.

[0156] It should be understood that the image correction apparatus according to the embodiments of the present disclosure has all the features and advantages of the image correction method described above, and specific details can be referred to the description above, which will not be repeated here.

[0157] FIG. 10 is a structural block diagram of a scanning imaging apparatus according to embodiments of the present disclosure.

[0158] Exemplarily, in embodiments of the present disclosure, referring to FIG. 10, a scanning imaging apparatus 100 is provided. The scanning imaging apparatus 100 can include a radiation source 10 configured to emit radiation. For example, the radiation can include X-ray.

[0159] The scanning imaging apparatus 100 can further include a detector 30 configured to detect the radiation and generate a detection signal.

[0160] The scanning imaging apparatus 100 can further include an image processor 50. The image processor 50 is configured to receive the detection signal and generate a first image P1 according to the detection signal. The image processor 50 is further configured to process the first image P1 by using the image correction method according to any one of the embodiments described above to generate a second image P2.

[0161] Exemplarily, with continuous reference to FIG. 10, the scanning imaging apparatus 100 can further include a detector arm 350 and a motion controller 40. The detector 30 can be disposed on the detector arm 350. The motion controller 40 is configured to control the detector arm 350 and the ray source 10 to move along a first direction Z.

[0162] It should be understood that the scanning imaging apparatus 100 according to the embodiments of the present disclosure has all the features and advantages of the image correction method described above, and specific reference can be made to the description above, which will not be repeated here.

[0163] Exemplarily, the detector arm 350 can include at least one of an L-shaped detector arm, a C-shaped detector arm, or a U-shaped detector arm.

[0164] FIG. 11 is a side view schematic diagram of a scanning imaging apparatus according to an embodiment of the present disclosure.

[0165] Exemplarily, in the embodiments of the present disclosure, with reference to FIG. 11, the scanning imaging apparatus 100 further includes a detection channel 70. The ray source 10 and the detector 30 can be located on two sides of the detection channel 70, respectively. For example, the scanning imaging apparatus 100 can be an apparatus using X-ray transmission imaging.

[0166] FIG. 12 is a block diagram of an electronic device suitable for the image correction method according to an embodiment of the present disclosure.

[0167] As shown in FIG. 12, the electronic device 800 according to the embodiments of the present disclosure includes one or more processors 801, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 802 or loaded from a storage portion 808 into a random access memory (RAM) 803. The processor 801 can include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a special-purpose microprocessor (such as an application-specific integrated circuit (ASIC)), and the like. The processor 801 can also include an on-board memory for cache use. The processor 801 can include a single processing unit or a plurality of processing units for performing different actions of the method processes according to the embodiments of the present disclosure.

[0168] In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. The processor 801 performs various operations of the method processes according to the embodiments of the present disclosure by executing programs in the ROM 802 and / or the RAM 803. It should be noted that the programs can also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 can also perform various operations of the method processes according to the embodiments of the present disclosure by executing one or more programs stored in one or more memories.

[0169] According to an embodiment of the present disclosure, the electronic device 800 can further include an input / output (I / O) interface 805 that is also connected to the bus 804. The electronic device 800 can further include one or more of the following components connected to the I / O interface 805: an input part 806 including, for example, a keyboard and a mouse; an output part 807 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage part 808 including, for example, a hard disk; and a communication part 809 including, for example, a LAN card, a modem, and the like. The communication part 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as necessary. A removable medium 811 such as a magnetic disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 810 as necessary, so that a computer program read therefrom is installed into the storage part 808 as necessary.

[0170] The present disclosure also provides a computer readable storage medium, which can be included in the device / apparatus / system described in the above embodiments, or can exist separately without being assembled into the device / apparatus / system. The above computer readable storage medium carries one or more programs, which, when executed, implement the image correction method according to the embodiments of the present disclosure.

[0171] According to an embodiment of the present disclosure, the computer readable storage medium can be a non-volatile computer readable storage medium, for example, which can include, but is not limited to, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, the computer readable storage medium can include the ROM 802 and / or the RAM 803 described above, and / or one or more memory other than the ROM 802 and the RAM 803.

[0172] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program codes for executing the methods shown in the flowcharts. When the computer program product is run in a computer system, the program codes are used to make the computer system implement the image correction method provided by the embodiments of the present disclosure.

[0173] The above-described functions defined in the system / apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. According to the embodiments of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by the computer program modules.

[0174] In one embodiment, the computer program can be stored in a tangible storage medium, such as an optical, magnetic, or other storage device. In another embodiment, the computer program can be transmitted over a network via a signal, and downloaded and installed by the communication portion 809, and / or installed from the removable medium 811. The program code included in the computer program can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, etc., or any suitable combination of the foregoing.

[0175] In such an embodiment, the computer program can be downloaded and installed from the network via the communication portion 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above-described functions defined in the system / apparatus of the embodiments of the present disclosure are performed. According to the embodiments of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by the computer program modules.

[0176] According to the embodiments of the present disclosure, the program code for performing the computer program provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, and specifically, the computer program can be implemented using high-level procedural and / or object-oriented programming language, and / or assembly / machine language. The programming language includes, but is not limited to, such as Java, C++, python, "C" language, or similar programming language. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case involving a remote computing device, the remote computing device can be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, connected through the Internet by using an Internet service provider).

[0177] The image correction method, image correction apparatus, scanning imaging apparatus, electronic device, storage medium, and computer program product of the present disclosure can almost completely eliminate the image distortion effect, and effectively reduce the missed judgment and misjudgment of security personnel.

[0178] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0179] While some embodiments of the general concept of this disclosure have been shown and described, those skilled in the art will understand that changes may be made to these embodiments without departing from the principles and spirit of the general concept of this disclosure, the scope of which is defined by the claims and their equivalents.

Claims

1. An image correction method for a scanning imaging apparatus, wherein, The scanning imaging device comprises a ray source for emitting rays and a detector for detecting the rays, and is configured to acquire a first image of a detection object, and the method comprises: calculating a plurality of actual cumulative positions of the detector in a correction direction; calculating a plurality of mapping positions of the actual cumulative positions in the first image according to the plurality of actual cumulative positions and a size of the first image in the correction direction; calculating pixel point coordinates according to a relationship between the plurality of mapping positions and coordinates of each pixel point in the first image in the correction direction, wherein the pixel point coordinates are coordinates of each pixel point in a second image in the first image in the correction direction; calculating pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates; and generating the second image according to the pixel point coordinates and the pixel values of each pixel point in the second image.

2. The method of claim 1, wherein, The acquisition of the first image of the detection object comprises controlling the ray source and the detector to move along a first direction and scan the detection object to acquire the first image of the detection object. The correction direction comprises the first direction.

3. The method of claim 1 or 2, wherein, The detector comprises a plurality of first detector modules arranged along a second direction and a plurality of second detector modules arranged along a third direction, wherein the second direction and the third direction intersect, and a plane in which the second direction and the third direction lie is perpendicular to the first direction. The correction direction comprises the second direction.

4. The method of claim 1, wherein, The acquisition of the first image of the detection object by the scanning imaging device comprises controlling the ray source and the detector to move along a first direction and scan the detection object to acquire the first image of the detection object. The detector comprises a plurality of first detector modules arranged along a second direction and a plurality of second detector modules arranged along a third direction, wherein the second direction and the third direction intersect, and a plane in which the second direction and the third direction lie is perpendicular to the first direction. The correction direction comprises both the first direction and the second direction.

5. The method of any one of claims 1-4, wherein, The first image comprises a plurality of rows of pixels arranged along a first direction. The calculation of the plurality of actual cumulative positions of the detector in a correction direction comprises: calculating a moving distance of the detector along the first direction in each integration time according to a speed curve of the detector during the movement along the first direction and a detector integration time, and calculating a cumulative moving distance corresponding to different time nodes according to the moving distance of the detector in each integration time, wherein the integration time is a time corresponding to the acquisition of a single-row-pixel image by the detector, and the different time nodes correspond to the plurality of rows of pixels in the first image, respectively; and calculating the actual cumulative positions of the detector in the first direction according to the cumulative moving distances.

6. The method of claim 5, wherein, The calculation of the plurality of mapping positions of the actual cumulative positions in the first image according to the plurality of actual cumulative positions and a size of the first image in the correction direction specifically comprises: scaling the actual accumulated position in the first direction with the maximum pixel value in the first image as an upper limit to obtain a scaled actual accumulated position, wherein the scaled actual accumulated position is represented by a coordinate value along the correction direction, and the scaled actual accumulated position is the plurality of mapping positions.

7. The method of claim 6, wherein, The plurality of mapping positions include a plurality of coordinate values in decimal representation. The calculating the pixel point coordinates according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image in the correction direction specifically comprises: obtaining a plurality of coordinate values in decimal representation located on both sides of each integer value in the plurality of mapping positions, wherein the coordinate position of each integer value is a target position of the second image in the plurality of mapping positions; obtaining the pixel row coordinates in the first image corresponding to the plurality of coordinate values in decimal representation, calculating the pixel row coordinates in the first image corresponding to the integer values by using a linear interpolation method according to the plurality of coordinate values in decimal representation and the pixel point coordinates in the first image corresponding to the plurality of coordinate values in decimal representation, wherein the pixel point coordinates include the pixel row coordinates in the first image corresponding to the integer values.

8. The method of claim 7, wherein, The calculating the pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates specifically comprises: calculating the pixel values of each pixel point in the second image by using a linear interpolation method according to the pixel values of each pixel point in the first image and the pixel point coordinates.

9. The method of any one of claims 1-8, wherein, The first image further includes a plurality of columns of pixels arranged along a second direction; The plurality of first detector modules include M first sub-detectors, and the plurality of second detector modules include N second sub-detectors, wherein M and N are positive integers greater than or equal to 1, wherein the M first sub-detectors in the plurality of first detector modules and the N second sub-detectors in the plurality of second detector modules correspond to the plurality of columns of pixels of the first image respectively; The calculating the plurality of actual accumulated positions of the detector in the correction direction further comprises: calculating M first positions of the M first sub-detectors in the plurality of first detector modules on a straight line where the first detector module is located respectively; and calculating N second positions of intersection points of an extension line of a line connecting positions of the N second sub-detectors in the plurality of second detector modules and a position of the ray source and the straight line where the first detector module is located respectively; and calculating the actual accumulated positions of the detector in the second direction according to the order of the M first positions and the N second positions in the second direction.

10. The method of claim 9, wherein, The calculating the plurality of mapping positions of the actual accumulated positions in the first image according to the plurality of actual accumulated positions and the size of the first image in the correction direction specifically further comprises: scaling the actual accumulated position in the second direction proportionally with the maximum pixel column in the first image as the upper limit to obtain a scaled actual accumulated position, wherein the scaled actual accumulated position is represented by a coordinate value along the correction direction, and the scaled actual accumulated position is the plurality of mapping positions.

11. The method of claim 10, wherein, The plurality of mapping positions include a plurality of coordinate values in decimal representation. The calculating the pixel point coordinates according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image in the correction direction further comprises: obtaining a plurality of coordinate values in decimal representation located on both sides of each integer value in the plurality of mapping positions, wherein the coordinate position of each integer value is a target position of the second image in the plurality of mapping positions; obtaining pixel column coordinates in the first image corresponding to the plurality of coordinate values in decimal representation, calculating the pixel column coordinates in the first image corresponding to the integer values using a linear interpolation method according to the plurality of coordinate values in decimal representation and the pixel point coordinates in the first image corresponding to the plurality of coordinate values in decimal representation, wherein the pixel point coordinates include the pixel column coordinates in the first image corresponding to the integer values.

12. The method of claim 11, wherein, calculating the pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates further comprises: calculating the pixel values of each pixel point in the second image using a linear interpolation method according to the pixel values of each pixel point in the first image and the pixel point coordinates.

13. The method of any one of claims 1-12, wherein, The moving of the ray source and the detector along the first direction includes an acceleration moving process, a uniform speed moving process and a deceleration moving process.

14. An image correction device for a scanning imaging device, wherein, The scanning imaging device includes a ray source for emitting rays and a detector for detecting the rays, and the scanning imaging device is configured to obtain a first image of a detection object, and the device includes: a first calculation module for calculating a plurality of actual accumulated positions of the detector in a correction direction; a second calculation module for calculating a plurality of mapping positions of the actual accumulated positions in the first image according to the plurality of actual accumulated positions and the size of the first image in the correction direction; a third calculation module for calculating pixel point coordinates according to the relationship between the plurality of mapping positions and the coordinates of each pixel point in the first image in the correction direction, wherein the pixel point coordinates are coordinates of each pixel point in the second image in the first image in the correction direction; a fourth calculation module for calculating the pixel values of each pixel point in the second image according to the pixel values of each pixel point in the first image and the pixel point coordinates; and an image generation module for generating a second image according to the pixel point coordinates and the pixel values of each pixel point in the second image.

15. A scanning imaging device, comprising: a ray source configured to emit rays; a detector configured to detect the rays and generate a detection signal; and an image processor configured to receive the detection signal and generate a first image according to the detection signal. ​ and processing the first image using the method of any one of claims 1-13 to generate a second image.

16. The scanning imaging apparatus of claim 15, wherein, The scanning imaging apparatus further comprises a detector arm on which the detector is disposed, and a motion controller configured to control the detector arm and the radiation source to move in a first direction.

17. The scanning imaging apparatus of claim 16, wherein, The detector arm comprises at least one of an L-shaped detector arm, a C-shaped detector arm, or a U-shaped detector arm.

18. The scanning imaging apparatus of any of claims 15-17, wherein, The scanning imaging apparatus further comprises a detection channel, and the radiation source and the detector are respectively located on two sides of the detection channel. 19.An electronic device, comprising: one or more processors; and a memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-13. 20.A computer-readable storage medium storing computer-executable instructions that, when executed, implement the method of any one of claims 1-13. 21.A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1-13.

Citation Information

Patent Citations

  • Image correction method, device and equipment

    CN110020656A

  • Image correction method and device and electronic equipment

    CN114187188A

  • Wide-angle neutron photographing method and device with image correction function, equipment and medium

    CN115825128A

  • High-precision camera image calibration distortion correction method and system and storage medium

    CN115937023A

  • X-ray back scattering image deformation correction method and device, terminal and correction system

    CN116542863A