X-ray nondestructive testing device, pixel size calibration method and storage medium
By setting multiple target positions in an X-ray nondestructive testing device and using fitting equations and the least squares method to calculate the pixel size of X-ray imaging, the problem of time-consuming pixel size calibration in existing technologies is solved, and automated and efficient pixel size calibration is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU HAOZHI IMAGING TECH CO LTD
- Filing Date
- 2022-06-27
- Publication Date
- 2026-04-24
AI Technical Summary
Existing X-ray non-destructive testing equipment is time-consuming in the process of X-ray imaging pixel size calibration, and requires manual measurement and calculation, which is inefficient.
An X-ray non-destructive testing device and method are adopted. By setting multiple target positions in the device, adjusting the positions of the X-ray source and detector using a motion mechanism, and calculating the X-ray imaging pixel size by combining fitting equations and the least squares method, the recalibration requirement caused by changes in the height of the detector and X-ray source is avoided.
Automatic calibration of X-ray imaging pixel size was achieved, reducing calibration time, improving calibration efficiency, and ensuring that pixel size does not change with the height of the detector and X-ray source.
Smart Images

Figure CN115165932B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to imaging pixel calibration, and more particularly to an X-ray non-destructive testing device, an X-ray imaging pixel size calibration method, and a storage medium. Background Technology
[0002] Existing industrial non-destructive testing X-ray equipment typically consists of a radiation source, a detector, a motion mechanism, and a data processing and display device, as shown in the figure below. The radiation source generates and emits X-rays; the detector receives the X-rays and creates an image; the motion mechanism, including the stage, the motion axes of the radiation source and detector, and the zero points of each axis, is responsible for carrying the object under test and moving it as needed; the data processing and display device works in series with all the above components to process and display the X-ray images.
[0003] After X-ray imaging, the dimensions of the image need to be calibrated. A common calibration method is to place a standard component (such as a needle gauge) on the stage, set the X-ray source height and detector height, acquire an X-ray image of the corresponding standard component, manually measure the pixel length of the standard component in the X-ray image, and then calculate the dimension of each pixel in the X-ray image under the current conditions based on the actual length of the standard component. This is the pixel length divided by the actual length, thus calibrating the X-ray imaging image.
[0004] According to the principle of transmission imaging, when different combinations of X-ray source height and detector height are used, the pixel size of the standard component in the X-ray image will be different. Once either the X-ray source height or the detector height changes, the pixel size of the X-ray image needs to be recalibrated. However, the pixel size of the X-ray image needs to be measured and calculated manually, which is complicated and inefficient. At the same time, it also increases the time spent on pixel size calibration. Summary of the Invention
[0005] In order to overcome the shortcomings of the prior art, one of the objectives of the present invention is to provide an X-ray non-destructive testing device that can solve the problem of long time consumption in X-ray imaging pixel size calibration of the prior art.
[0006] The second objective of this invention is to provide a method for X-ray imaging pixel size calibration, which can solve the problem of long calibration time in X-ray nondestructive testing equipment in the prior art.
[0007] The third objective of this invention is to provide a storage medium that can solve the problem of long calibration time for X-ray imaging pixel size in existing X-ray non-destructive testing equipment.
[0008] One of the objectives of this invention is achieved through the following technical solution:
[0009] An X-ray nondestructive testing device includes a radiation source, a detector, a processor, a motion mechanism, and a stage. The radiation source, located below the stage and electrically connected to the processor, emits X-rays onto a standard component on the stage, the standard component comprising multiple uniformly distributed spherical objects. The detector, located above the stage and electrically connected to the processor, generates an X-ray image of the standard component on the stage under X-ray irradiation and sends it to the processor. The motion mechanism, electrically connected to the processor, receives control commands from the processor to move the radiation source and detector, thereby adjusting the distance between the radiation source and the stage, and the distance between the detector and the stage. The processor first moves the radiation source and detector to corresponding positions according to a preset sequence based on multiple target positions set by the system, and acquires the X-ray image generated by the detector at each target position.
[0010] Then, image processing is performed on the X-ray imaging image corresponding to each target position to obtain the pixel distance between adjacent spherical objects in the corresponding standard part, and the length distance between adjacent spherical objects in the standard part in the X-ray imaging image corresponding to each target position is calculated in combination with the detector pixel size.
[0011] Then, based on the length distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, the actual length distance between adjacent spherical objects within the standard component, the detector height, the X-ray source height, the distance from the detector's imaging plane to the standard component when the detector is at the zero point position, and the distance from the X-ray source's emission focus to the standard component when the X-ray source is at the zero point position, a corresponding fitting equation is constructed. A system of equations is constructed from multiple fitting equations, and the system of equations is solved to obtain the distance from the detector's imaging plane to the standard component when the detector is at the zero point position, and the distance from the X-ray source's emission focus to the standard component when the X-ray source is at the zero point position.
[0012] Finally, the X-ray imaging pixel size is calculated based on the distance from the detector's imaging plane to the standard when the detector is at zero position, the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at zero position, and the pixel size of the detector.
[0013] Furthermore, the formula for the fitting equation is:
[0014] F0+(1-A(i))*T0=H tube (i)-H fpd (i)-A(i)*H tube (i)(1);
[0015] Where F0 is the distance from the detector's imaging plane to the standard component when the detector is at the zero point position;
[0016] T0 is the distance from the emission focal point of the X-ray source to the standard part when the X-ray source is at the zero position;
[0017] i is the index of the target location, i∈[1,N], and N is the total number of target locations;
[0018] A(i) is the magnification factor for the i-th target position, where,
[0019] In the formula, FpdPxSize is the detector pixel size, d is the pixel distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, D is the actual length distance between adjacent spherical objects within the standard component, and H... tube (i) represents the height of the radiation source at the i-th target location, H. fpd (i) represents the detector height at the i-th target position.
[0020] Furthermore, the fitting equations corresponding to the N target positions are constructed into a system of equations, which are then simplified to formula (2):
[0021] PX = B (2);
[0022] in,
[0023] Furthermore, the processor is used to solve formula (2) by least squares to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position and the distance from the imaging plane of the detector to the standard when the detector is at the zero position.
[0024] Furthermore, the formula for calculating the pixel size of an X-ray image is as follows:
[0025]
[0026] Where FpdPxSize is the detector pixel size;
[0027] A is the magnification factor. In the formula, F0 is the distance from the detector's imaging plane to the standard when the detector is at the zero position; T0 is the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position; H tube H represents the height of the radiation source when it is at zero position, which is known. fpd Let be the detector height when it is at the zero point position, which is known.
[0028] The second objective of this invention is achieved by the following technical solution:
[0029] An X-ray imaging pixel size calibration method is applied to an X-ray non-destructive testing device used for one of the purposes of this invention, the calibration method comprising:
[0030] Control steps: According to multiple preset target positions, the X-ray source and detector are sequentially moved to their corresponding positions to control the X-ray source to emit X-rays onto the standard part on the stage and simultaneously acquire the corresponding X-ray imaging image; each target position corresponds to one X-ray imaging image;
[0031] Acquisition steps: Perform image processing on the X-ray imaging image corresponding to each target position to obtain the pixel distance between adjacent spherical objects within the standard part in the corresponding X-ray imaging image, and calculate the length distance between adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position based on the detector pixel size;
[0032] Calculation steps: Based on the actual length distance of adjacent spherical objects within the standard part, the length distance of adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position, the detector height, the X-ray source height, and the distance from the detector's imaging plane to the standard part when the detector is at the zero point position, and the distance from the X-ray source's exit focus to the standard part when the X-ray source is at the zero point position, construct the corresponding fitting equation.
[0033] Solution steps: Construct a system of equations from multiple fitting equations, and solve the system of equations to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero point position and the distance from the imaging plane of the detector to the standard when the detector is at the zero point position.
[0034] Calibration steps: The X-ray imaging pixel size is calculated based on the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at zero position, the distance from the imaging plane of the detector to the standard when the detector is at zero position, and the detector pixel size.
[0035] Furthermore, the formula for the fitting equation is:
[0036] F0+(1-A(i))*T0=H tube (i)-H fpd (i)-A(i)*H tube (i) (1);
[0037] Where F0 is the distance from the detector's imaging plane to the standard component when the detector is at the zero point position;
[0038] T0 is the distance from the emission focal point of the X-ray source to the standard part when the X-ray source is at the zero position;
[0039] i is the index of the target location, i∈[1,N], and N is the total number of target locations;
[0040] A(i) is the magnification factor for the i-th target position, where,
[0041] In the formula, FpdPxSize is the detector pixel size, d is the pixel distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, D is the actual length distance between adjacent spherical objects within the standard component, and H... tube (i) represents the height of the radiation source at the i-th target location, H. fpd (i) represents the detector height at the i-th target location.
[0042] Furthermore, the solution step also includes: constructing a system of equations from the N fitting equations and simplifying it to formula (2):
[0043] PX = B (2);
[0044] in,
[0045] The solution steps also include: solving formula (2) by least squares to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position and the distance from the imaging plane of the detector to the standard when the detector is at the zero position.
[0046] Furthermore, the formula for calculating the pixel size of an X-ray image is as follows:
[0047]
[0048] Where FpdPxSize is the detector pixel size;
[0049] A is the magnification factor. In the formula, F0 is the distance from the detector's imaging plane to the standard when the detector is at the zero position; T0 is the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position; H tube H represents the height of the radiation source when it is at zero position, which is known. fpd Let be the detector height when it is at the zero point position, which is known.
[0050] The third objective of this invention is achieved by the following technical solution:
[0051] A storage medium, which is a computer-readable storage medium, stores a computer program thereon, the computer program being an X-ray imaging pixel size calibration program, the X-ray imaging pixel size calibration program being executed by a processor as a step of an X-ray imaging pixel size calibration method as described in the second objective of this invention.
[0052] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0053] This invention converts the calculation of X-ray imaging pixel size into the distance between the detector's imaging plane and the standard when the detector is at zero position, and the distance between the emission focal point of the X-ray source and the standard when the X-ray source is at zero position, by fitting equations. This makes the X-ray imaging pixel size independent of the detector height and the X-ray source height, solving the problem in the prior art where the X-ray imaging pixel size of the equipment needs to be recalibrated once the height of the detector and the X-ray source changes, resulting in time-consuming calibration. Attached Figure Description
[0054] Figure 1 This is a schematic diagram of the structure of the X-ray non-destructive testing equipment provided by the present invention;
[0055] Figure 2 A flowchart of the X-ray imaging pixel size calibration method provided by the present invention.
[0056] In the diagram: 1. Stage; 2. Standard component; 3. Detector; 4. X-ray source. Detailed Implementation
[0057] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.
[0058] Addressing the shortcomings of existing X-ray image size calibration methods, this invention improves the X-ray image size calibration algorithm in existing X-ray nondestructive testing equipment, thereby increasing calibration efficiency and reducing calibration time. By converting the X-ray imaging pixel size into the height of the X-ray source and detector at the zero-point position for calculation, the X-ray imaging pixel size does not change with the target position, thus preventing changes in the height of the detector or X-ray source.
[0059] like Figure 1 As shown, the X-ray non-destructive testing equipment targeted by this invention generally includes a radiation source 4, a detector 3, a motion mechanism, a stage 1, and a processor.
[0060] The stage 1 is used to place the standard component 2. Preferably, the standard component in this invention is a two-dimensional planar standard component, which includes multiple uniformly distributed spherical objects. Each spherical object is characterized as a near-circular shape in the X-ray imaging image. When the size of the standard component is fixed, the length distance between adjacent spherical objects within the standard component is also known.
[0061] X-ray source 4, located below stage 1, is used to generate and emit X-rays, and then emits the X-rays onto stage 1 and then onto standard part 2.
[0062] Detector 3, located above stage 1, is used to receive the X-ray imaging image formed after the standard part 2 is irradiated by X-rays, and send the X-ray imaging image to the processor.
[0063] The motion mechanism is electrically connected to the processor and is used to drive the movement of detector 3 and X-ray source 4 under the control of the processor, thereby adjusting the distance between detector 3, X-ray source 4 and stage 1, that is, adjusting the distance between detector 3, X-ray source 4 and standard component 2 on stage 1, to meet the testing requirements of different X-rays. Since different X-rays require different heights for detector 3 and X-ray source 4, the motion mechanism allows for flexible adjustment to meet various needs.
[0064] In actual measurement, the distance between the detector 3 or the X-ray source 4 and the standard part 2 can be adjusted vertically as needed to suit imaging of different standard parts 2. Furthermore, this invention does not make any improvements to the hardware of the X-ray non-destructive testing equipment. Therefore, this invention does not specifically describe how the motion mechanism adjusts the height of the detector 3 and the X-ray source 4, as this is a technique well-known to those skilled in the art.
[0065] In addition, both detector 3 and radiation source 4 have a zero point position. When detector 3 and radiation source 4 are at their respective zero point positions, the height of detector 3 and the height of radiation source 4 are known. These are parameters built into the equipment after it is manufactured.
[0066] The processor is also electrically connected to the detector 3 and the X-ray source 4, and is used to receive X-ray imaging images sent by the detector 3 and control the X-ray source 4 to emit X-rays. Simultaneously, the processor is also used to process the received X-ray imaging images. This invention addresses the problems of time-consuming X-ray imaging pixel size calibration in existing methods by providing a new method for calibrating X-ray imaging image pixel sizes. This method involves placing a selected standard component 2 on the stage 1, then setting multiple target positions within the system, and sequentially moving the detector 3 and the X-ray source 4 to the corresponding positions according to these target positions, acquiring X-ray imaging images corresponding to each target position. This allows for the calculation of the detector height at the zero-point position and the X-ray source height at the zero-point position, thereby determining the X-ray imaging image pixel size. Since the calibrated X-ray imaging pixel size is independent of the actual height of the detector and the actual height of the X-ray source, it solves the problem of time-consuming calibration caused by the need to recalibrate the X-ray imaging image pixel size every time the position of the detector or X-ray source changes.
[0067] Each target location includes the position of detector 3 and the position of radiation source 4. As mentioned above, the distance between detector 3 and stage 1 can be adjusted as needed, and similarly, the position of radiation source 4 can also be adjusted. This invention sets multiple target locations within the system, which are actually combinations of the positions of detector 3 and radiation source 4. Control of detector 3 and radiation source 4 is achieved based on the positions of detector 3 and radiation source 4 at each target location, using the zero-point positions of detector 3 and radiation source 4 as references.
[0068] When the detector 3 and the X-ray source 4 are moved to their corresponding positions according to each target position, the processor controls the X-ray source 4 to emit X-rays and receives X-ray imaging images through the detector 3.
[0069] Preferably, in this embodiment, N target locations are set. The processor will receive X-ray imaging images of the N target locations, and then perform image processing on each X-ray imaging image to obtain the pixel size of each X-ray imaging image. The corresponding fitting equation is constructed by combining the height of the detector 3, the height of the X-ray source 4, and the distance between adjacent pixels in the standard component 2 corresponding to each target location.
[0070] Specifically, the fitting equation is:
[0071] F0+(1-A(i))*T0=H tube (i)-H fpd (i)-A(i)*H tube (i) (1).
[0072] Where F0 is the distance from the imaging plane of detector 3 to standard part 2 when detector 3 is at the zero point position.
[0073] T0 is the distance from the focal point of the radiation source 4 to the standard part 2 when the radiation source 4 is at the zero position.
[0074] i is the index of the target location, i∈[1,N], and N is the total number of target locations, which is a constant and can be preset according to requirements.
[0075] A(i) is the magnification factor for the i-th target position, where,
[0076] In the formula, FpdPxSize is the detector's 3-pixel size, d is the pixel distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target location, D is the actual length distance between adjacent spherical objects within the standard component, and H... tube (i) represents the height of the ray source 4 at the i-th target location, H. fpd (i) represents the height of detector 3 at the i-th target position.
[0077] As can be seen from formula (1), the distance from the imaging plane of detector 3 to standard part 2 when detector 3 is at the zero position, the distance from the emission focal point of X-ray source 4 to standard part 2 when X-ray source 4 is at the zero position, and the pixel size of detector 3 will not change with the position of detector 3 and X-ray source 4.
[0078] Therefore, this invention stacks N fitting equations to form a system of equations, which is then simplified to formula (2):
[0079] PX = B (2).
[0080] in,
[0081] That is, by solving formula (2), the distance from the imaging plane of detector 3 to standard part 2 when detector 3 is at zero position and the distance from the emission focus of X-ray source 4 to standard part 2 when X-ray source 4 is at zero position can be obtained. Then, the X-ray imaging pixel size can be calculated based on the distance from the imaging plane of detector 3 to standard part 2 when detector 3 is at zero position, the distance from the emission focus of X-ray source 4 to standard part 2 when X-ray source 4 is at zero position, and the pixel size of detector 3.
[0082] Preferably, the present invention solves equation (2) using the least squares method. Alternatively, other algorithms can be used to solve equation (2), and solving systems of equations is well known to those skilled in the art.
[0083] Preferably, the present invention also provides a formula for calculating the pixel size of X-ray imaging:
[0084]
[0085] Where FpdPxSize is the 3-pixel size of the detector.
[0086] A is the magnification factor. In the formula, F0 is the distance from the imaging plane of detector 3 to standard component 2 when detector 3 is at the zero position; T0 is the distance from the emission focal point of radiation source 4 to standard component 2 when radiation source 4 is at the zero position; H tube H represents the height of radiation source 4 when it is at the zero point position, which is known. fpd The height of detector 3 when it is at the zero point position is known.
[0087] It is clear from formula (3) that the size of the X-ray imaging pixel does not change with the position of the X-ray source 4 and the detector 3. Therefore, when the positions of the detector 3 and the X-ray source 4 change, there is no need to recalibrate the size of the X-ray imaging pixel, which improves calibration efficiency and reduces calibration time.
[0088] Example 2
[0089] Based on Embodiment 1, the present invention also provides another embodiment, a method for X-ray imaging pixel size calibration, such as... Figure 2 As shown, it includes the following steps:
[0090] Step S1: According to the preset multiple target positions, control the X-ray source and detector to move to the corresponding positions in sequence, so as to control the X-ray source to emit X-rays to the standard part on the stage and simultaneously acquire the corresponding X-ray imaging image; each target position corresponds to one X-ray imaging image.
[0091] This invention sets multiple target positions, then moves the radiation source and detector to the corresponding positions in sequence, and then obtains the X-ray imaging image formed by the detector.
[0092] Step S2: Perform image processing on the X-ray imaging image corresponding to each target position to obtain the pixel distance between adjacent spherical objects within the standard part in the corresponding X-ray imaging image, and calculate the length distance between adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position based on the detector pixel size.
[0093] By processing the X-ray imaging images, the pixel distances between adjacent spherical objects within the standard component in the X-ray imaging image can be obtained. Then, combined with the detector pixel size, the length distance of adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target location can be calculated. Because the distances between adjacent spherical objects displayed in the X-ray imaging image of the standard component differ depending on the target location, the distances between adjacent spherical objects in the standard component after imaging will also differ. Therefore, by processing the X-ray imaging image corresponding to each target location and combining it with the detector pixel size, the distances between adjacent spherical objects within the standard component in the X-ray imaging image of each target location can be obtained, which is also the length distance between adjacent spherical objects.
[0094] Step S3: Based on the actual length distance of adjacent spherical objects within the standard part, the length distance of adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position, the detector height, the X-ray source height, the distance from the detector's imaging plane to the standard part when the detector is at the zero point position, and the distance from the X-ray source's exit focus to the standard part when the X-ray source is at the zero point position, construct the corresponding fitting equation.
[0095] Equations are constructed to derive the distance from the detector's imaging plane to the standard when the detector is at zero position, and the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at zero position, so that these equations can be solved.
[0096] The formula for the fitting equation is:
[0097] F0+(1-A(i))*T0=H tube (i)-H fpd (i)-A(i)*H tube (i) (1);
[0098] Where F0 is the distance from the detector's imaging plane to the standard component when the detector is at the zero point position;
[0099] T0 is the distance from the emission focal point of the X-ray source to the standard part when the X-ray source is at the zero position;
[0100] i is the index of the target location, i∈[1,N], and N is the total number of target locations;
[0101] A(i) is the magnification factor for the i-th target position, where,
[0102] In the formula, FpdPxSize is the pixel size of the detector, d is the pixel distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, D is the actual length distance between adjacent spherical objects within the standard component, and H... tube (i) represents the height of the radiation source at the i-th target location, H. fpd (i) represents the detector height at the i-th target location.
[0103] Step S4: Construct a set of equations from multiple fitting equations, and solve the set of equations to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero point position and the distance from the imaging plane of the detector to the standard when the detector is at the zero point position.
[0104] By combining multiple fitting equations into a system of equations and then solving the system of equations, we can obtain the distance from the detector's imaging plane to the standard when the detector is at the zero point position, and the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero point position.
[0105] Preferably, the present invention uses the least squares method to solve the system of equations.
[0106] Among them, the fitting equations corresponding to the N target positions are constructed into a system of equations and simplified to formula (2):
[0107] PX = B (2);
[0108] in,
[0109] Step S5: Calculate the X-ray imaging pixel size based on the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position, the distance from the imaging plane of the detector to the standard when the detector is at the zero position, and the detector pixel size.
[0110] The formula for calculating the pixel size of an X-ray image is as follows:
[0111]
[0112] Where FpdPxSize is the detector pixel size;
[0113] A is the magnification factor. In the formula, F0 is the distance from the detector's imaging plane to the standard when the detector is at the zero position; T0 is the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position; H tube H represents the height of the radiation source when it is at zero position, which is known. fpd Let be the detector height when it is at the zero point position, which is known.
[0114] Example 3
[0115] Based on Embodiment 2, the present invention also provides a storage medium, which is a computer-readable storage medium storing a computer program thereon. The computer program is an X-ray imaging pixel size calibration program, and the X-ray imaging pixel size calibration program is executed by a processor in the following steps:
[0116] Control steps: According to multiple preset target positions, the X-ray source and detector are sequentially moved to their corresponding positions to control the X-ray source to emit X-rays onto the standard part on the stage and simultaneously acquire the corresponding X-ray imaging image; each target position corresponds to one X-ray imaging image;
[0117] Acquisition steps: Perform image processing on the X-ray imaging image corresponding to each target position to obtain the pixel distance between adjacent spherical objects within the standard part in the corresponding X-ray imaging image, and calculate the length distance between adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position based on the detector pixel size;
[0118] Calculation steps: Based on the actual length distance of adjacent spherical objects within the standard part, the length distance of adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position, the detector height, the X-ray source height, and the distance from the detector's imaging plane to the standard part when the detector is at the zero point position, and the distance from the X-ray source's exit focus to the standard part when the X-ray source is at the zero point position, construct the corresponding fitting equation.
[0119] Solution steps: Construct a system of equations from multiple fitting equations, and solve the system of equations to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero point position and the distance from the imaging plane of the detector to the standard when the detector is at the zero point position.
[0120] Calibration steps: The X-ray imaging pixel size is calculated based on the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at zero position, the distance from the imaging plane of the detector to the standard when the detector is at zero position, and the detector pixel size.
[0121] Furthermore, the formula for the fitting equation is:
[0122] F0+(1-A(i))*T0=H tube (i)-H fpd (i)-A(i)*H tube (i) (1);
[0123] Where F0 is the distance from the detector's imaging plane to the standard component when the detector is at the zero point position;
[0124] T0 is the distance from the emission focal point of the X-ray source to the standard part when the X-ray source is at the zero position;
[0125] i is the index of the target location, i∈[1,N], and N is the total number of target locations;
[0126] A(i) is the magnification factor for the i-th target position, where,
[0127] In the formula, FpdPxSize is the detector pixel size, d is the pixel distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, D is the actual length distance between adjacent spherical objects within the standard component, and H... tube (i) represents the height of the radiation source at the i-th target location, H. fpd (i) represents the detector height at the i-th target location.
[0128] Furthermore, the solution step also includes: constructing a system of equations from the N fitting equations and simplifying it to formula (2):
[0129] PX = B (2);
[0130] in,
[0131] The solution steps also include: solving formula (2) by least squares to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position and the distance from the imaging plane of the detector to the standard when the detector is at the zero position.
[0132] Furthermore, the formula for calculating the pixel size of an X-ray image is as follows:
[0133]
[0134] Where FpdPxSize is the detector pixel size;
[0135] A is the magnification factor. In the formula, F0 is the distance from the detector's imaging plane to the standard when the detector is at the zero position; T0 is the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position; H tube H represents the height of the radiation source when it is at zero position, which is known. fpd Let be the detector height when it is at the zero point position, which is known.
[0136] The above embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Any non-substantial changes and substitutions made by those skilled in the art based on the present invention shall fall within the scope of protection claimed by the present invention.
Claims
1. An X-ray nondestructive testing device, comprising a radiation source, a detector, a processor, a motion mechanism, and a stage; wherein, The X-ray source, located below the stage and electrically connected to the processor, is used to emit X-rays and project them onto a standard component on the stage. The standard component comprises multiple uniformly distributed spherical objects. The detector, located above the stage and electrically connected to the processor, is used to generate an X-ray image of the standard component on the stage under X-ray irradiation and send it to the processor. The motion mechanism, electrically connected to the processor, receives control commands from the processor to move the X-ray source and detector, thereby adjusting the distance between the X-ray source and the stage, and the distance between the detector and the stage. The processor is characterized in that it first moves the X-ray source and detector to corresponding positions according to a preset sequence based on multiple target positions set by the system, and acquires an X-ray image generated by the detector at each target position. Then, image processing is performed on the X-ray imaging image corresponding to each target position to obtain the pixel distance between adjacent spherical objects in the corresponding standard part, and the length distance between adjacent spherical objects in the standard part in the X-ray imaging image corresponding to each target position is calculated in combination with the detector pixel size. Then, based on the length distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, the actual length distance between adjacent spherical objects within the standard component, the detector height, the X-ray source height, the distance from the detector's imaging plane to the standard component when the detector is at the zero point position, and the distance from the X-ray source's emission focus to the standard component when the X-ray source is at the zero point position, a corresponding fitting equation is constructed. A system of equations is constructed from multiple fitting equations, and the system of equations is solved to obtain the distance from the detector's imaging plane to the standard component when the detector is at the zero point position, and the distance from the X-ray source's emission focus to the standard component when the X-ray source is at the zero point position. Finally, the X-ray imaging pixel size is calculated based on the distance from the detector's imaging plane to the standard when the detector is at zero position, the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at zero position, and the detector's pixel size. The formula for the fitting equation is: (1); in, This is the distance from the detector's imaging plane to the standard component when the detector is at its zero position; This is the distance from the focal point of the X-ray source to the standard component when the X-ray source is at zero position; i is the index of the target location, i∈[1,N], and N is the total number of target locations; A(i) is the magnification factor for the i-th target position, where, In the formula, FpdPxSize is the detector pixel size, d is the pixel distance between adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target location, and D is the actual length distance between adjacent spherical objects within the standard component. Let be the height of the radiation source at the i-th target position. Let be the detector height at the i-th target position.
2. The X-ray nondestructive testing equipment according to claim 1, characterized in that, The fitting equations corresponding to the N target positions are constructed into a system of equations, which are then simplified to formula (2): PX=B------ (2); in, , , 。 3. The X-ray nondestructive testing equipment according to claim 2, characterized in that, The processor is used to solve formula (2) by least squares to obtain the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at the zero position and the distance from the imaging plane of the detector to the standard when the detector is at the zero position.
4. The X-ray nondestructive testing equipment according to claim 1, characterized in that, The formula for calculating the pixel size of an X-ray image is: ; Where FpdPxSize is the detector pixel size; A is the magnification factor, where... ; This is the distance from the detector's imaging plane to the standard component when the detector is at its zero position; This is the distance from the focal point of the X-ray source to the standard component when the X-ray source is at zero position; The height of the radiation source when it is at the zero point position is known. Let be the detector height when it is at the zero point position, which is known.
5. A method for calibrating the pixel size of X-ray imaging, applied as described in claim 1. The X-ray nondestructive testing equipment according to any one of the four methods is characterized in that, The calibration method includes: Control steps: According to multiple preset target positions, the X-ray source and detector are sequentially moved to their corresponding positions to control the X-ray source to emit X-rays onto the standard part on the stage and simultaneously acquire the corresponding X-ray imaging image; each target position corresponds to one X-ray imaging image; Acquisition steps: Perform image processing on the X-ray imaging image corresponding to each target position to obtain the pixel distance between adjacent spherical objects within the standard part in the corresponding X-ray imaging image, and calculate the length distance between adjacent spherical objects within the standard part in the X-ray imaging image corresponding to each target position based on the detector pixel size; Calculation steps: Based on the actual length distance of adjacent spherical objects within the standard component, the length distance of adjacent spherical objects within the standard component in the X-ray imaging image corresponding to each target position, the detector height, the X-ray source height, and the distance from the detector's imaging plane to the standard component when the detector is at the zero point position, and the distance from the X-ray source's exit focus to the standard component when the X-ray source is at the zero point position, construct the corresponding fitting equations; Solution steps: Construct a system of equations from multiple fitting equations, and solve the system of equations to obtain the distance from the X-ray source's exit focus to the standard component when the X-ray source is at the zero point position and the distance from the detector's imaging plane to the standard component when the detector is at the zero point position; Calibration steps: The X-ray imaging pixel size is calculated based on the distance from the emission focal point of the X-ray source to the standard when the X-ray source is at zero position, the distance from the imaging plane of the detector to the standard when the detector is at zero position, and the detector pixel size.
6. A storage medium, said storage medium being a computer-readable storage medium, having stored thereon a computer program, said computer program being an X-ray imaging pixel size calibration program, characterized in that, The X-ray imaging pixel size calibration program is executed by the processor according to the steps of the X-ray imaging pixel size calibration method as described in claim 5.
Citation Information
Patent Citations
Calibration method of projection coordinate of ray source focus in three-dimensional microscopic CT scanning system
CN101515370A
Calibration method for reconstruction voxel dimension of X-ray three-dimensional microscope based on optical-coupling detector
CN104048600A