Industrial CT beam hardening correction method
By performing circumferential DR scanning and image processing on industrial CT samples, setting correction formulas are realized, beam hardening correction is solved, and the problem of cumbersome production of pilot blocks in the prior art is improved, and detection efficiency and image quality are improved.
Patent Information
- Application Number
- CN202411141727.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The existing industrial CT beam hardening correction methods require the manufacture of homogeneous material test blocks of different thicknesses, which are cumbersome and affect the detection efficiency.
By performing circumferential DR scanning of the detected sample, obtaining circumferential DR images, performing projection pattern processing and CT reconstruction, selecting homogeneous material areas, setting a correction formula to obtain the optimal functional relationship, and achieving beam hardening correction, avoiding Manufacturing of additional test blocks.
It realizes fully automatic beam hardening correction with simple operation and no human intervention, improves the quality and efficiency of industrial CT images, and is suitable for a variety of types of industrial CT products.
Smart Images

Figure CN119023716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of CT detection technology, and in particular to an industrial CT beam hardening correction method. Background Art
[0002] With the development of detector technology, three-dimensional cone-beam industrial CT technology based on area array detectors has rapidly become popular. Industrial CT uses an X-ray machine as a radiation source, which emits wide-spectrum X-rays with continuous spectral distribution. When the wide-spectrum radiation passes through matter, the radiation with lower energy is absorbed first, that is, the attenuation coefficient of low-energy radiation is larger than that of high-energy radiation, which changes the energy spectrum of the radiation passing through the object, which is manifested as an increase in the average energy of the X-rays passing through the material. This is the beam hardening phenomenon. The beam hardening phenomenon seriously affects the CT detection effect, which is intuitively manifested as uniform density slices showing different brightness on the reconstructed image, and the pixel value distribution on the image presents "cup-shaped" or "striped" artifacts, which directly affects the determination, detection or diagnosis of defects.
[0003] At present, there are many hardening correction methods on the market. For example, the Chinese invention patent with patent number ZL202110402097.9 previously applied by the applicant discloses a beam hardening correction method for planar array industrial CT. This method uses the attenuation data of X-rays passing through materials of different thicknesses to calculate the energy spectrum of the current X-rays. On the basis of accurate estimation of the energy spectrum, the calculation result of the wide energy spectrum is mapped to a single energy spectrum to achieve hardening correction. However, since this method requires the manufacture of homogeneous material test blocks of different thicknesses, and the same detection process is used to detect the test blocks and the object to be detected, the process is relatively cumbersome. For example, the method disclosed in the paper "X-ray Energy Spectrum Estimation Method Based on Computed Tomography Scanning Data" uses a phantom with a known structure to estimate the energy spectrum distribution, that is, a phantom with a known structure and material is scanned by CT, and the functional correspondence between the length of the ray passing through the material and the attenuation data, that is, the attenuation curve, can be obtained. Similarly, this method requires the manufacture of a homogeneous material test block to ensure that the structure is known, and the test block and the object to be detected are detected using the same detection process, and the process is also relatively cumbersome. For this reason, further improvements to the existing technology are needed. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide an industrial CT beam hardening correction method with simple operation in view of the above-mentioned prior art.
[0005] The technical solution adopted by the present invention to solve the above technical problems is: an industrial CT beam hardening correction method, characterized by comprising the following steps:
[0006] Step 1, perform circumferential DR scanning on the sample to be tested to obtain n circumferential DR images of the sample to be tested; the size of each circumferential DR image of the sample to be tested is the same, which is r*s, and r and s are both positive numbers;
[0007] Step 2: Take the pixel data of the jth row in each circumferential DR image of the sample under test, and compose a projection image of all the pixel data taken out according to the sequence order of the image, and the image size of the projection image is n*s;
[0008] Step 3, performing CT reconstruction on the projection image obtained in step 2 to obtain a tomographic image of the jth row of the sample under test;
[0009] Step 4: Select at least a partial area S inside the detected sample in the j-th row of the tomographic image of the detected sample, where the area S corresponds to the area where the homogeneous material inside the detected sample is located;
[0010] Step 5: Set the correction formula y m =f(x m ), x m is the pixel value of the mth pixel in region S, m∈{1, 2, …M}, M is the total number of pixels in region S, y m For x m The pixel value after correction is obtained; f(.) is the functional relationship corresponding to the correction formula; the functional relationship corresponding to the minimum standard deviation of all corrected pixel values in the area S is obtained, and the obtained functional relationship is recorded as the optimal functional relationship;
[0011] Step 6, substituting the pixel value of each pixel point in each circumferential DR image of the detected sample into the optimal functional relationship to obtain the corrected pixel value of each pixel point in each circumferential DR image of the detected sample, thereby obtaining n DR images of the detected sample after beam hardening correction;
[0012] Step 7: reconstruct the n DR images of the detected sample after beam hardening correction to obtain a corrected CT image of the detected sample.
[0013] In order to improve the correction effect, the value range of j in step 2 is r / 2-k≤j≤r / 2+q, and r / 2-k≥1, r / 2+q≤r, k and q are both constants. The closer the value of j is to r / 2, the better the correction effect.
[0014] Preferably, in step 2 is the floor function.
[0015] Preferably, in step 3, the FDK algorithm or iterative method is used to perform CT reconstruction on the projection image.
[0016] Preferably, the region S in step 4 is a line region or a surface region.
[0017] The correction formula in the present invention may satisfy various functional relationships. Preferably, the correction formula in step 5 is: m =a+bx m +cx m 2 +dx m 3 , a, b, c and d are all constants, then obtaining the optimal functional relationship in step 5 corresponds to obtaining the optimal values of a, b, c and d.
[0018] Preferably, the value range of a is [-2 p-1 ,0], p is the number of bits used by the industrial CT detector to collect images.
[0019] Preferably, the value range of b is [0,20].
[0020] Preferably, the value range of c is [-1×10 -3 ,-1×10 -6 ].
[0021] Preferably, the value range of d is [1×10 -8 ,1×10 -11 ].
[0022] Compared with the prior art, the advantages of the present invention are: this method does not require additional processing of comparison test blocks or samples of known structures, and only needs to obtain the scanned product circumferential DR image. The CT image calibration can be achieved through image processing. The process is simple. The method avoids human intervention as much as possible, especially for homogeneous material parts. It can realize full automation and drone interaction, improve the image quality and efficiency of industrial CT, and is suitable for most types of industrial CT products currently on the market, and has industry promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a schematic diagram of the first circumferential DR image of the sample under test in an embodiment of the present invention;
[0024] Figure 2 is a schematic diagram of the circumferential DR image of the 100th sample under test in an embodiment of the present invention;
[0025] Figure 3 It is a schematic diagram of a projection diagram in an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of a tomographic image in an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of selecting a line region in a tomographic image in an embodiment of the present invention;
[0028] Figure 6 is a schematic diagram of selecting a surface area in a tomographic image in an embodiment of the present invention;
[0029] Figure 7 3 is a comparison diagram of CT images before and after correction in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The present invention is further described in detail below with reference to the accompanying drawings.
[0031] The industrial CT beam hardening correction method in this embodiment includes the following steps:
[0032] Step 1, perform circumferential DR scanning on the sample to be tested to obtain n circumferential DR images of the sample to be tested; the size of each circumferential DR image of the sample to be tested is the same, which is r*s, and r and s are both positive numbers;
[0033] In this embodiment, before the circumferential DR scanning, it is necessary to set a better scanning process for the current industrial CT, so as to ensure a better subsequent image correction effect; the sample to be tested in this embodiment may be a homogeneous complex structure or not. If the sample to be tested is a homogeneous complex structure, the area in the following step 4 can be selected at will; if the sample to be tested is not a homogeneous complex structure, the area in the following step 4 needs to be selected when selecting the area of homogeneous material;
[0034] like Figure 1 and Figure 2 As shown, in this embodiment, r=912, s is 1156;
[0035] Step 2: Take the pixel data of the jth row in each circumferential DR image of the sample under test, and compose a projection image of all the pixel data taken out according to the sequence order of the image, and the image size of the projection image is n*s;
[0036] The value range of j is r / 2-k≤j≤r / 2+q, and r / 2-k≥1, r / 2+q≤r, k and q are both constants; k and q are basically close to 0, and the closer to 0, the better the correction method in the present invention is. Preferably, is a floor rounding function. In this embodiment, Its projection diagram is as follows Figure 3 As shown;
[0037] Step 3, performing CT reconstruction on the projection image obtained in step 2 to obtain a tomographic image of the jth row of the sample under test;
[0038] In this embodiment, the FDK algorithm or the iterative method is used to perform CT reconstruction on the projection image. The technology of the FDK algorithm or the iterative method for reconstruction is an existing technology and will not be described in detail here. The tomographic image of the jth row of the detected sample is as follows: Figure 4 As shown;
[0039] Step 4: Select at least a partial area S inside the detected sample in the j-th row of the tomographic image of the detected sample, where the area S corresponds to the area where the homogeneous material inside the detected sample is located;
[0040] The region S in this embodiment is a line region or a surface region, such as Figure 5 As shown, the area S is a line area, that is, the area S is composed of lines; Figure 6 As shown, the region S is a surface region, that is, the region S is composed of a square region;
[0041] Step 5: Set the correction formula y m =f(x n ), x m is the pixel value of the mth pixel in region S, m∈{1, 2, …M}, M is the total number of pixels in region S, y m For x m The pixel value after correction is obtained; f(.) is the functional relationship corresponding to the correction formula; the functional relationship corresponding to the minimum standard deviation of all corrected pixel values in the area S is obtained, and the obtained functional relationship is recorded as the optimal functional relationship;
[0042] The functional relationship satisfied by the above correction formula can be confirmed by experiments, and the functional relationship adopted can be preliminarily selected, such as: a linear function, a quadratic function, a cubic function, etc. The correction formula in this embodiment is y m =a+bx m +cx m 2 +dx m 3 , a, b, c and d are all constants, then obtaining the optimal functional relationship in step 5 corresponds to obtaining the optimal values of a, b, c and d;
[0043] The value range of a is [-2 p-1 ,0], p is the number of bits of the industrial CT detector to collect images; the value range of b is [0,20]; the value range of c is [-1×10 -3 ,-1×10 -6 ]; the value range of d is [1×10 -8 ,1×10 -11 ];
[0044] Step 6, substituting the pixel value of each pixel point in each circumferential DR image of the detected sample into the optimal functional relationship to obtain the corrected pixel value of each pixel point in each circumferential DR image of the detected sample, thereby obtaining n DR images of the detected sample after beam hardening correction;
[0045] Step 7: reconstruct the n DR images of the detected sample after beam hardening correction to obtain a corrected CT image of the detected sample.
[0046] like Figure 7 As shown, Figure 7 (a) corresponds to the CT image of the sample before correction. Figure 7 (b) corresponds to the CT image of the sample after correction. The grayscale values are inconsistent before correction, but consistent after correction.
[0047] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An industrial CT beam hardening correction method, characterized in that The steps include: Step 1, perform circumferential DR scanning on the sample to be tested to obtain n circumferential DR images of the sample to be tested; the size of each circumferential DR image of the sample to be tested is the same, which is r*s, and r and s are both positive numbers; Step 2: Take the pixel data of the jth row in each circumferential DR image of the sample under test, and compose a projection image of all the pixel data taken out according to the sequence order of the image, and the image size of the projection image is n*s; Step 3, performing CT reconstruction on the projection image obtained in step 2 to obtain a tomographic image of the jth row of the sample under test; Step 4: Select at least a partial area S inside the detected sample in the j-th row of the tomographic image of the detected sample, where the area S corresponds to the area where the homogeneous material inside the detected sample is located; Step 5: Set the correction formula y m =f(x m ), x m is the pixel value of the mth pixel in region S, m∈{1, 2, …M}, M is the total number of pixels in region S, y m For x m The pixel value after correction; f(.) is the functional relationship corresponding to the correction formula; obtain the functional relationship corresponding to the minimum standard deviation of all corrected pixel values in the area S, and record the obtained functional relationship as the optimal functional relationship; Step 6, substituting the pixel value of each pixel point in each circumferential DR image of the detected sample into the optimal functional relationship to obtain the corrected pixel value of each pixel point in each circumferential DR image of the detected sample, thereby obtaining n DR images of the detected sample after beam hardening correction; Step 7: reconstruct the n DR images of the detected sample after beam hardening correction to obtain a corrected CT image of the detected sample.
2. The industrial CT beam hardening correction method according to claim 1, characterized in that: The value range of j in step 2 is r / 2-k≤j≤r / 2+q, and r / 2-k≥1, r / 2+q≤r, and k and q are both constants.
3. The industrial CT beam hardening correction method according to claim 2, characterized in that: In step 2 is the floor function.
4. The industrial CT beam hardening correction method according to claim 1, characterized in that: In step 3, the FDK algorithm or iterative method is used to perform CT reconstruction on the projection image.
5. The industrial CT beam hardening correction method according to claim 1, characterized in that: The region S in step 4 is a line region or a surface region.
6. The industrial CT beam hardening correction method according to any one of claims 1 to 5, characterized in that: The correction formula in step 5 is y m =a+bx m +cx m 2 +dx m 2 , a, b, c and d are all constants, then obtaining the optimal functional relationship in step 5 corresponds to obtaining the optimal values of a, b, c and d.
7. The industrial CT beam hardening correction method according to claim 6, characterized in that: The value range of a is [-2 p-1 ,0], p is the number of bits used by the industrial CT detector to collect images.
8. The industrial CT beam hardening correction method according to claim 6, characterized in that: The value range of b is [0,20].
9. The industrial CT beam hardening correction method according to claim 6, characterized in that: The value range of c is [-1×10 -3 ,-1×10 -6 ].
10. The industrial CT beam hardening correction method according to claim 6, characterized in that: The value range of d is [1×10 -8 ,1×10 -11 ].
Citation Information
Patent Citations
Synthesis correction method for CT pseudo-shadow
CN101510298A
Area array industrial CT beam hardening correction method
CN113109373A
Area array industrial CT scattering correction method
CN113125476A
CT beam sclerosis correcting method based on original projection sine diagram
CN1775176A
Beam hardening correction device, beam hardening correction method, and x-ray imaging apparatus
JP2013244188A
