Beam hardening correction method and device in electronic computed tomography imaging

By constructing a beam hardening correction function containing linear and exponential correction parameters to correct CT images, the problem of low flexibility and low efficiency of beam hardening artifact correction methods in the existing technology is solved, and the image quality and quality of CT imaging are improved. flexibility.

CN118799422APending Publication Date: 2024-10-18HANGZHOU RAYIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410776089.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing beam hardening artifact correction methods have low flexibility and efficiency. Especially in CT image reconstruction, there are obvious cupping and banding artifacts in the imaging of castings, which affects image uniformity and defect identification.

Method used

By constructing a beam hardening correction function including linear correction parameters and exponential correction parameters, the three-dimensional CT projection is corrected, and the optimal parameter values ​​are found to achieve beam hardening correction, improving the flexibility and efficiency of correction without the need for phantoms or density. information.

Benefits of technology

The flexibility and efficiency of beam hardening correction in CT imaging are improved, reducing artifacts and improving image quality without the need to pre-measure or understand the density and structure of the target part.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799422A_ABST
    Figure CN118799422A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a beam hardening correction method and device in electronic computed tomography imaging. The method comprises the following steps: selecting a two-dimensional CT projection layer from three-dimensional CT projection of a target piece; constructing a beam hardening correction function which takes the three-dimensional CT projection value as an independent variable and comprises a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value; determining to use the beam hardening correction function, and performing beam hardening correction on the two-dimensional CT projection layer; searching optimal values of a linear correction parameter and an index correction parameter which enable a two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to reach the optimal image quality; and performing beam hardening correction on the three-dimensional CT projection of the target piece by adopting the beam hardening correction function according to the optimal values of the linear correction parameter and the index correction parameter. According to the embodiment of the invention, the flexibility and efficiency of beam hardening correction in CT imaging are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a beam hardening correction method and device in CT (Computed Tomography) imaging. Background Art

[0002] CT image reconstruction is the process of inferring the attenuation coefficient of the material inside the object from the projection data. The CT image reconstruction algorithm is based on a single energy spectrum X-ray, but in fact, X-rays are wide-spectrum, composed of photons of different energies.

[0003] When X-rays pass through the scanned object, the lower energy X-rays are absorbed first, resulting in an increase in the proportion of higher energy X-rays. The rays become harder and more penetrating after penetration. This phenomenon is called beam hardening. The existence of beam hardening causes the projection value to no longer be linearly related to the material thickness. Figure 1 is a schematic diagram of the influence of beam hardening effect on the attenuation curve, as shown in Figure 1 As shown in the figure, as the path of the ray passing through the workpiece becomes longer and longer, the deviation between the actual attenuation coefficient and the ideal attenuation coefficient becomes larger and larger, and the actual projection value gradually presents a nonlinear relationship as the path increases. Since the CT image reconstruction algorithm assumes that the image is reconstructed in monochrome, due to the existence of beam hardening, errors will inevitably be formed in the reconstructed image when the CT image reconstruction algorithm is used for image reconstruction. The artifact caused by this error is called beam hardening artifact.

[0004] Casting is a method of pouring liquid metal into a casting cavity that is adapted to the shape of the part to obtain a part or blank. The casting obtained by the casting method is called a casting. For this reason, the casting can be regarded as an object with uniform density, and the grayscale distribution of its CT image should be roughly uniform. For casting workpieces, the impact of beam hardening is very obvious. Due to the presence of beam hardening, the imaging of the casting has obvious cup-shaped artifacts and band-shaped artifacts. The presence of this artifact not only reduces the uniformity and image quality of the image, but also affects the judgment and identification of defects such as bubbles and impurities inside the casting. For this reason, it is necessary to perform beam hardening correction on the CT reconstructed image of the casting.

[0005] There are two main existing methods for beam hardening artifact correction:

[0006] First, beam hardening correction is performed by using multiple filters of different thicknesses and performing exponential fitting on the DR (Digital Radiography) image of the filter and the penetration thickness.

[0007] The disadvantages of this method are: it needs to measure the thickness of the filter, the algorithm has low flexibility and low efficiency.

[0008] Second, beam hardening correction is completed by correcting the air image and the phantom transmission image.

[0009] The disadvantages of this method are: it requires models such as step blocks, and the density and structure of the object being measured need to be known. The algorithm has low flexibility and low efficiency. Summary of the invention

[0010] Embodiments of the present invention provide a beam hardening correction method and apparatus in CT imaging and a non-transitory computer-readable storage medium to improve the flexibility and efficiency of beam hardening correction in CT imaging.

[0011] The technical solution of the embodiment of the present invention is achieved as follows:

[0012] A beam hardening correction method in electronic computer tomography (CT) imaging, the method comprising:

[0013] Obtain 3D CT projection of the target part;

[0014] Selecting a two-dimensional CT projection layer in the three-dimensional CT projection;

[0015] A beam hardening correction function is constructed, wherein the function takes the three-dimensional CT projection value as an independent variable, the function includes a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value, and the function operation result is the three-dimensional CT projection value after beam hardening correction;

[0016] Determine to use the beam hardening correction function to perform beam hardening correction on the two-dimensional CT projection layer; find optimal values ​​of linear correction parameters and exponential correction parameters that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve optimal image quality;

[0017] According to the optimal values ​​of the linear correction parameter and the exponential correction parameter, the beam hardening correction function is used to perform beam hardening correction on the three-dimensional CT projection of the target part.

[0018] The beam hardening correction function is:

[0019]

[0020] Among them, p0(i,j,k θ ) is any 3D CT projection value, p′ p (i,j,k θ ) is the pair p0(i,j,k θ ) is the projection value obtained after beam hardening correction, i is the i-th row pixel channel of the detector, j is the j-th column pixel channel of the detector, k θ is the projection angle, m is the linear correction parameter, and n is the exponential correction parameter.

[0021] After acquiring the three-dimensional CT projection of the target part and before selecting a two-dimensional CT projection layer in the three-dimensional CT projection, the method further includes:

[0022] Taking the natural logarithm of all projection values ​​in the three-dimensional CT projection of the target part to obtain an optimized three-dimensional CT projection;

[0023] The selecting a two-dimensional CT projection layer in the three-dimensional CT projection includes:

[0024] Selecting a two-dimensional CT projection layer in the optimized three-dimensional CT projection;

[0025] The using the beam hardening correction function to perform beam hardening correction on the three-dimensional CT projection of the target part includes:

[0026] The beam hardening correction function is used to perform beam hardening correction on the optimized three-dimensional CT projection of the target part.

[0027] The step of searching for optimal values ​​of linear correction parameters and exponential correction parameters that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve optimal image quality comprises:

[0028] Finding an optimal value of the index correction parameter within a preset value range of the index correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves the best image quality;

[0029] The value of the exponential correction parameter is kept unchanged as the optimal value of the exponential correction parameter, and within the preset value range of the linear correction parameter, the optimal value of the linear correction parameter is continuously sought so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves the best image quality.

[0030] The step of searching for an optimal value of the index correction parameter within a preset value range of the index correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves optimal image quality comprises:

[0031] A1. Obtain a value within a preset value interval of the linear correction parameter, and keep the value of the linear correction parameter unchanged as the obtained value;

[0032] B1. Initialize the current value interval of the exponential correction parameter to the preset value interval of the exponential correction parameter;

[0033] C1. uniformly sample a first number of values ​​in the current value interval of the exponential correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the exponential correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the exponential correction parameter of this iteration;

[0034] D1. Determine whether the iterative end condition of the exponential correction parameter is met. If so, take the optimal value of the exponential correction parameter of this iteration as the final optimal value of the exponential correction parameter; otherwise, reduce the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration, and return to step C1.

[0035] The step D1 of narrowing the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration includes:

[0036] Taking the optimal value of the exponential correction parameter of this iteration as the center point, a sampling interval of the exponential correction parameter in this iteration is extended to the left and right respectively, and the obtained value interval is the current value interval of the updated exponential correction parameter.

[0037] The iteration termination condition of the exponential correction parameter in step D1 is:

[0038] The number of iterations reaches the maximum number of iterations of the preset exponential correction parameter;

[0039] Alternatively, the sampling interval of the exponential correction parameter in this iteration is not greater than a preset minimum sampling interval of the exponential correction parameter.

[0040] The step of continuing to search for an optimal value of the linear correction parameter within a preset value range of the linear correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves optimal image quality comprises:

[0041] A2. Initialize the current value interval of the linear correction parameter to the preset value interval of the linear correction parameter;

[0042] B2. uniformly sample a second number of values ​​in the current value interval of the linear correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the linear correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the linear correction parameter of this iteration;

[0043] C2. Determine whether the iteration end condition of the linear correction parameter is met. If so, take the optimal value of the linear correction parameter of this iteration as the final optimal value of the linear correction parameter; otherwise, narrow the current value range of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration, and return to step B2.

[0044] The step C2 of narrowing the current value range of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration includes:

[0045] Taking the optimal value of the linear correction parameter of this iteration as the center point, a sampling interval of the linear correction parameter in this iteration is extended to the left and right respectively, and the obtained value interval is the current value interval of the updated linear correction parameter.

[0046] The iteration end condition of the linear correction parameter in step C2 is:

[0047] The number of iterations reaches the maximum number of iterations of the preset linear correction parameters;

[0048] Alternatively, the sampling interval of the linear correction parameter in this iteration is not greater than a preset minimum sampling interval of the linear correction parameter.

[0049] The selecting a two-dimensional CT projection layer in the three-dimensional CT projection includes:

[0050] In the three-dimensional CT projection, a two-dimensional CT projection layer located in the middle channel of the row pixels is selected.

[0051] A beam hardening correction device in electronic computer tomography (CT) imaging, the device comprising:

[0052] A three-dimensional CT projection acquisition module is used to acquire a three-dimensional CT projection of a target part;

[0053] A two-dimensional correction module is used to select any two-dimensional CT projection layer in the three-dimensional CT projection; construct a beam hardening correction function, which takes the three-dimensional CT projection value as an independent variable, and includes a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value, and the function operation result is the three-dimensional CT projection value after beam hardening correction; according to the beam hardening correction function, perform beam hardening correction on the two-dimensional CT projection layer; and find the optimal values ​​of the linear correction parameter and the exponential correction parameter that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality;

[0054] The three-dimensional correction module is used to perform beam hardening correction on the three-dimensional CT projection of the target part according to the optimal values ​​of the linear correction parameter and the exponential correction parameter using the beam hardening correction function to obtain the three-dimensional CT projection after beam hardening correction.

[0055] A non-transitory computer-readable storage medium stores instructions, which, when executed by a processor, cause the processor to perform any of the above-described beam hardening correction methods in electronic computer tomography (CT) imaging.

[0056] In the above embodiment, a beam hardening correction function is constructed with three-dimensional CT projection values ​​as independent variables and including linear correction parameters and exponential correction parameters of the three-dimensional CT projection values, and then a one-dimensional CT projection layer of the target part is taken as a correction object, and the two-dimensional CT projection layer is corrected by using the beam hardening correction function, and the optimal values ​​of the linear correction parameters and the exponential correction parameters are found so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction can achieve the best image quality, and then the optimal values ​​of the linear correction parameters and the exponential correction parameters are applied to the beam hardening correction function, and beam hardening correction is performed on the three-dimensional CT projection of the target part, thereby: without any phantom, without pre-measurement such as measuring the thickness of the filter, and without knowing the density, structure and other information of the target part in advance, beam hardening correction of CT imaging of the target part can be achieved, thereby improving the flexibility and efficiency of beam hardening correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0058] Figure 1 Schematic diagram of the influence of beam hardening effect on the attenuation curve;

[0059] Figure 2 A flow chart of a beam hardening correction method in CT imaging provided by an embodiment of the present invention;

[0060] Figure 3 Schematic diagram of cone beam CT scanning;

[0061] Figure 4 A flow chart of a method for finding an optimal value of an exponential correction parameter within a preset value range of the exponential correction parameter so that a two-dimensional CT reconstructed image corresponding to a two-dimensional CT projection layer after beam hardening correction achieves optimal image quality, provided by one embodiment of the present invention;

[0062] Figure 5 A flow chart of a method for finding an optimal value of a linear correction parameter within a preset value range of the linear correction parameter so that a two-dimensional CT reconstructed image corresponding to a two-dimensional CT projection layer after beam hardening correction achieves optimal image quality, provided by one embodiment of the present invention;

[0063] Figure 6 A schematic structural diagram of a beam hardening correction device in CT imaging provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0066] Figure 2 A flow chart of a beam hardening correction method in CT imaging provided by an embodiment of the present invention, wherein the specific steps are as follows:

[0067] Step 201: Acquire a three-dimensional CT projection of a target part.

[0068] Target parts generally refer to objects with uniform density, such as castings.

[0069] Take the acquisition of a three-dimensional CT projection of a casting as an example. In practical applications, it is necessary to first set the casting CT scanning related parameters, including: the distance from the X-ray source to the detector, the vertical distance from the X-ray source to the rotation centerline axis, the total projection angle, the projection angle interval, the voltage and current of the X-ray generator, etc.; then, according to the set CT scanning related parameters, perform a CT scan and acquire the three-dimensional CT projection of the casting.

[0070] Figure 3Schematic diagram of cone beam CT scanning. S is the X-ray source, D is the detector, O is the intersection of the line between the center point of S and the center point of D and the rotation center line axis, i is the row pixel channel of the detector, and j is the column pixel channel of the detector. During the CT scanning process, either the target part rotates around the rotation center line axis, while the X-ray source and detector remain stationary; or, the X-ray source and detector rotate around the rotation center line axis, while the target part remains stationary.

[0071] In an optional embodiment, in this step 201, after obtaining the three-dimensional CT projection of the target part, it further includes: taking the natural logarithm of all projection values ​​in the three-dimensional CT projection of the target part to obtain an optimized three-dimensional CT projection, and the "three-dimensional CT projection" mentioned in all subsequent steps is the "optimized three-dimensional CT projection".

[0072] Step 202: Select a two-dimensional CT projection layer in the three-dimensional CT projection.

[0073] In practical applications, in step 202, a two-dimensional CT projection layer may be arbitrarily selected in the row direction of the three-dimensional CT projection, for example, any two-dimensional CT projection layer located near the middle channel of the row pixel may be selected.

[0074] In an optional embodiment, a two-dimensional CT projection layer located in the middle channel of the row pixels is selected in the three-dimensional CT projection.

[0075] For example: The optimized 3D CT projection is P0(i,j,k θ ), i∈[1,I], j∈[1,J], k θ ∈[0,K θ ], i is the i-th row pixel channel of the detector, j is the j-th column pixel channel of the detector, k θ is the projection angle, I is the number of row pixel channels of the detector, J is the number of column pixel channels of the detector, and K θ is the total projection angle, and θ is the projection angle interval. Where i0 is the middle channel of the row pixel, the selected two-dimensional CT projection layer is P0(i0,j,k θ ), j∈[1,J], k θ ∈[0,K θ ].

[0076] Step 203: construct a beam hardening correction function, which takes the three-dimensional CT projection value as an independent variable, includes a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value, and the function operation result is the three-dimensional CT projection value after beam hardening correction.

[0077] In an optional embodiment, the beam hardening correction function is:

[0078]

[0079] Among them, p0(i,j,k θ ) is any 3D CT projection value, p′ p (i,j,k θ ) is the pair p0(i,j,k θ ) is the projection value obtained after beam hardening correction, i is the i-th row pixel channel of the detector, j is the j-th column pixel channel of the detector, k θ is the projection angle, m is the linear correction parameter, and n is the exponential correction parameter.

[0080] Step 204: Determine the beam hardening correction function constructed in step 203, and perform beam hardening correction on the two-dimensional CT projection layer selected in step 202; find the optimal values ​​of linear correction parameters and exponential correction parameters that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality.

[0081] For example, the two-dimensional CT projection layer selected in step 202 is P0(i0,j,k θ ), then using the beam hardening correction function constructed in step 203, the beam hardening correction for the two-dimensional CT projection layer selected in step 202 can be expressed as:

[0082]

[0083] Among them, m∈(0,M], n∈(0,N], M and N are preset values, and the specific values ​​of M and N can be set according to experience.

[0084] In an optional embodiment, in step 204, the optimal values ​​of the linear correction parameter and the exponential correction parameter are searched so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction reaches the best image quality, including: searching for the optimal value of the exponential correction parameter within a preset value range of the exponential correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction reaches the best image quality; keeping the value of the exponential correction parameter as the optimal value of the exponential correction parameter unchanged, and continuing to search for the optimal value of the linear correction parameter within the preset value range of the linear correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction reaches the best image quality. The best image quality is, for example, the maximum image contrast.

[0085] In an optional embodiment, in step 204, within a preset value range of the index correction parameter, finding an optimal value of the index correction parameter that enables the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality includes the following steps A1-D1:

[0086] A1. Obtain a value within a preset value interval of the linear correction parameter, and keep the value of the linear correction parameter unchanged as the obtained value;

[0087] B1. Initialize the current value interval of the exponential correction parameter to the preset value interval of the exponential correction parameter;

[0088] C1. uniformly sample a first number of values ​​in the current value interval of the exponential correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the exponential correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the exponential correction parameter of this iteration;

[0089] D1. Determine whether the iterative end condition of the exponential correction parameter is met. If so, take the optimal value of the exponential correction parameter of this iteration as the final optimal value of the exponential correction parameter; otherwise, reduce the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration, and return to step C1.

[0090] In an optional embodiment, in step D1, the current value range of the exponential correction parameter is narrowed according to the optimal value of the exponential correction parameter of this iteration, including: taking the optimal value of the exponential correction parameter of this iteration as the center point, expanding a sampling interval of the exponential correction parameter in this iteration to the left and to the right respectively, and the obtained value range is the current value range of the updated exponential correction parameter.

[0091] In an optional embodiment, in step D1, the exponential correction parameter iteration termination condition is: the number of iterations reaches the maximum number of iterations of the preset exponential correction parameter; or the sampling interval of the exponential correction parameter in this iteration is not greater than the minimum sampling interval of the preset exponential correction parameter.

[0092] In an optional embodiment, in step 204, within a preset value range of the linear correction parameter, continuing to search for an optimal value of the linear correction parameter that enables the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality includes the following steps A2-C2:

[0093] A2. Initialize the current value interval of the linear correction parameter to the preset value interval of the linear correction parameter;

[0094] B2. uniformly sample a second number of values ​​in the current value interval of the linear correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the linear correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the linear correction parameter of this iteration;

[0095] C2. Determine whether the iteration end condition of the linear correction parameter is met. If so, take the optimal value of the linear correction parameter of this iteration as the final optimal value of the linear correction parameter; otherwise, narrow the current value range of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration, and return to step B2.

[0096] In an optional embodiment, in step C2, the current value interval of the linear correction parameter is narrowed according to the optimal value of the linear correction parameter of this iteration, including: taking the optimal value of the linear correction parameter of this iteration as the center point, expanding a sampling interval of the linear correction parameter in this iteration to the left and to the right respectively, and the obtained value interval is the current value interval of the updated linear correction parameter.

[0097] In an optional embodiment, in step C2, the iteration termination condition of the linear correction parameter is: the number of iterations reaches the maximum number of iterations of the preset linear correction parameter, or the sampling interval of the linear correction parameter in this iteration is not greater than the minimum sampling interval of the preset linear correction parameter.

[0098] Step 205: According to the optimal values ​​of the linear correction parameter and the exponential correction parameter, the beam hardening correction function constructed in step 203 is used to perform beam hardening correction on the three-dimensional CT projection of the target part to obtain the three-dimensional CT projection after beam hardening correction.

[0099] In the above embodiment, a beam hardening correction function is constructed with three-dimensional CT projection values ​​as independent variables and including linear correction parameters and exponential correction parameters of the three-dimensional CT projection values, and then a one-dimensional CT projection layer of the target part is taken as a correction object, and the two-dimensional CT projection layer is corrected by using the beam hardening correction function, and the optimal values ​​of the linear correction parameters and the exponential correction parameters are found so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction can achieve the best image quality, and then the optimal values ​​of the linear correction parameters and the exponential correction parameters are applied to the beam hardening correction function, and beam hardening correction is performed on the three-dimensional CT projection of the target part, thereby: without any phantom, without pre-measurement such as measuring the thickness of the filter, and without knowing the density, structure and other information of the target part in advance, beam hardening correction of CT imaging of the target part can be achieved, thereby improving the flexibility and efficiency of beam hardening correction.

[0100] Figure 4 A flowchart of a method for finding an optimal value of an exponential correction parameter within a preset value range of the exponential correction parameter so that a two-dimensional CT reconstructed image corresponding to a two-dimensional CT projection layer after beam hardening correction achieves optimal image quality is provided in an embodiment of the present invention, and the specific steps are as follows:

[0101] Step 401: Set m=m0, then according to formula (2), we have the following formula (3):

[0102]

[0103] Generally, m0=M / 2.

[0104] Step 402: Set the maximum number of iterations of n to iter n_max , initialize the current iteration number iter of n n =0.

[0105] Step 403: uniformly sample Q points n in the current value interval of n q (1≤q≤Q), for each n q (1≤q≤Q), execute the following steps 404-406 respectively:

[0106] The initial value interval of n is n∈(0,N], Q is a preset value, and the value of Q can be set based on experience.

[0107] Step 404: According to formula (3), the current iteration number iter is obtained. n and the current n q Next, for each projection value p0(i0,j,k θ ) is the projection value obtained after beam hardening correction, and the obtained projection value is

[0108] Step 405: Perform CT image reconstruction to obtain a two-dimensional CT reconstructed image

[0109] Wherein, x is the horizontal coordinate of the pixel point on the two-dimensional CT reconstructed image, y is the vertical coordinate of the pixel point on the two-dimensional CT reconstructed image, X is the width of the two-dimensional CT reconstructed image, and Y is the height of the two-dimensional CT reconstructed image.

[0110] Among them, CT image reconstruction algorithms include but are not limited to FDK (Feldkamp-Davis-Kress), SART (Simultaneous Algebra Reconstruction Technique), or SIRT (Simultaneous Iterative Reconstruction Technique), etc.

[0111] Step 406: Calculate the 2D CT reconstructed image The loss function

[0112] One way to calculate is as follows:

[0113]

[0114] in,

[0115]

[0116] Step 407: When the current iteration number iter n Next, for all n q (1≤q≤Q) have completed steps 404-406, for all n q (1≤q≤Q) corresponds to Perform fitting to obtain a fitting curve, find the loss function value representing the best image quality on the fitting curve, and set the n corresponding to the loss function value representing the best image quality q Set to the optimal value of n for the current number of iterations:

[0117] For example, when the loss function is calculated using formula (4), the minimum value on the fitting curve is the loss function value representing the best image quality.

[0118] Step 408: Determine whether the current condition satisfies: iter n ≥iter n_max or If so, execute step 410; otherwise, execute step 409.

[0119] in, is the sampling interval of uniform sampling in step 403 under the current number of iterations; d n It is the minimum sampling interval of the preset exponential correction parameter, and the specific value can be set based on experience, etc.

[0120] Step 409: Update the value range of n to: And update itern =iter n +1, return to step 403.

[0121] Step 410: Set the current number of iterations iter n Next As the optimal value of n best .

[0122] Figure 5 A flowchart of a method for finding an optimal value of a linear correction parameter within a preset value range of the linear correction parameter so that a two-dimensional CT reconstructed image corresponding to a two-dimensional CT projection layer after beam hardening correction can achieve the best image quality is provided in an embodiment of the present invention, and the specific steps are as follows:

[0123] Step 501: Set n=n best , then according to formula (2), we have the following formula (5):

[0124]

[0125] Step 502: Set the maximum number of iterations of m to iter m_max , initialize the current iteration number iter of m m =0.

[0126] Step 503: uniformly sample R points m in the current value interval of m r (1≤r≤R), for each m r (1≤r≤R), execute the following steps 504-506 respectively:

[0127] The initial value interval of m is m∈(0,M], R is a preset value, and the value of R can be set based on experience.

[0128] Step 504: According to formula (4), the current iteration number iter is obtained. m and the current m r Next, for each projection value p0(i0,j,k θ ) after beam hardening correction

[0129] Step 505: Perform CT image reconstruction to obtain a two-dimensional CT reconstructed image

[0130] Wherein, x is the horizontal coordinate of the pixel point on the two-dimensional CT reconstructed image, y is the vertical coordinate of the pixel point on the two-dimensional CT reconstructed image, X is the width of the two-dimensional CT reconstructed image, and Y is the height of the two-dimensional CT reconstructed image.

[0131] The CT image reconstruction algorithm includes but is not limited to FDK, SART, or SIRT.

[0132] Step 506: Calculate the 2D CT reconstructed image The loss function

[0133] One way to calculate is as follows:

[0134]

[0135] in,

[0136]

[0137] Step 507: When the current iteration number iter m Next, for all m r (1≤r≤R) have completed steps 504-506, for all m r (1≤r≤R) corresponds to Perform fitting to obtain a fitting curve, find the loss function value representing the best image quality on the fitting curve, and convert the m corresponding to the loss function value representing the best image quality r Set to the optimal value of m for the current number of iterations:

[0138] For example, when the loss function is calculated using formula (6), the minimum value on the fitting curve is the loss function value representing the best image quality.

[0139] Step 508: Determine whether the current condition satisfies: iter m ≥iter m_max or If so, execute step 510; otherwise, execute step 509.

[0140] in, is the sampling interval of uniform sampling in step 503 under the current number of iterations; d m It is the minimum sampling interval of the preset linear correction parameter, and the specific value can be set based on experience, etc.

[0141] Step 509: Update the value range of m to: And update iter m =iter m +1, return to step 503.

[0142] Step 510: Set the current iteration number iter m Next As the optimal value of m best .

[0143] When the optimal value n of n is obtained through step 410 best , and obtain the optimal value m of m through step 510 best When n best 、m best and the optimized 3D CT projection P0(i,j,k θ )(i∈[1,I],j∈[1,J],k θ ∈[0,K θ ]) into formula (1), we can get the 3D CT projection p′ of the target after beam hardening correction: p (i,j,k θ )(i∈[1,I],j∈[1,J],k θ ∈[0,K θ ]),Right now:

[0144]

[0145] Afterwards, for p′ p (i,j,k θ )(i∈[1,I],j∈[1,J],k θ ∈[0,K θ ]) CT image reconstruction is performed to obtain a three-dimensional CT reconstructed image after beam hardening correction.

[0146] Figure 6 The structure diagram of the beam hardening correction device in CT imaging provided by an embodiment of the present invention mainly includes: a three-dimensional CT projection acquisition module 61, a two-dimensional correction module 62 and a three-dimensional correction module 63, wherein:

[0147] The three-dimensional CT projection acquisition module 61 is used to acquire the three-dimensional CT projection of the target part.

[0148] The two-dimensional correction module 62 is used to select any two-dimensional CT projection layer in the three-dimensional CT projection; construct a beam hardening correction function, which takes the three-dimensional CT projection value as an independent variable, and includes a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value, and the function operation result is the three-dimensional CT projection value after beam hardening correction; perform beam hardening correction on the two-dimensional CT projection layer according to the beam hardening correction function; and find the optimal values ​​of the linear correction parameter and the exponential correction parameter that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality.

[0149] The three-dimensional correction module 63 is used to perform beam hardening correction on the three-dimensional CT projection of the target part using a beam hardening correction function according to the optimal values ​​of the linear correction parameter and the exponential correction parameter to obtain the three-dimensional CT projection after beam hardening correction.

[0150] In an optional embodiment, the beam hardening correction function constructed by the two-dimensional correction module 62 is:

[0151]

[0152] Among them, p0(i,j,k θ ) is any 3D CT projection value, p′ p (i,j,k θ ) is the pair p0(i,j,k θ ) is the projection value obtained after beam hardening correction, i is the i-th row pixel channel of the detector, j is the j-th column pixel channel of the detector, k θ is the projection angle, m is the linear correction parameter, and n is the exponential correction parameter.

[0153] In an optional embodiment, after the 3D CT projection acquisition module 61 acquires the 3D CT projection of the target part, the module further comprises: performing a natural logarithm operation on all projection values ​​in the 3D CT projection of the target part to obtain an optimized 3D CT projection;

[0154] Furthermore, the two-dimensional correction module 62 selects a one-dimensional CT projection layer in the three-dimensional CT projection, including: selecting a one-dimensional CT projection layer in the optimized three-dimensional CT projection;

[0155] Furthermore, the three-dimensional correction module 63 performs beam hardening correction on the three-dimensional CT projection of the target part using the beam hardening correction function, including: performing beam hardening correction on the optimized three-dimensional CT projection of the target part using the beam hardening correction function.

[0156] In an optional embodiment, the two-dimensional correction module 62 searches for optimal values ​​of the linear correction parameter and the exponential correction parameter that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality, including: searching for the optimal value of the exponential correction parameter within a preset value range of the exponential correction parameter that enables the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality; keeping the value of the exponential correction parameter as the optimal value of the exponential correction parameter unchanged, and continuing to search for the optimal value of the linear correction parameter within the preset value range of the linear correction parameter that enables the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality.

[0157] In an optional embodiment, the two-dimensional correction module 62 searches for an optimal value of the index correction parameter within a preset value range of the index correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves the best image quality, including:

[0158] A1. Obtain a value within a preset value interval of the linear correction parameter, and keep the value of the linear correction parameter unchanged as the obtained value;

[0159] B1. Initialize the current value interval of the exponential correction parameter to the preset value interval of the exponential correction parameter;

[0160] C1. uniformly sample a first number of values ​​in the current value interval of the exponential correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the exponential correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the exponential correction parameter of this iteration;

[0161] D1. Determine whether the iterative end condition of the exponential correction parameter is met. If so, take the optimal value of the exponential correction parameter of this iteration as the final optimal value of the exponential correction parameter; otherwise, reduce the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration, and return to step C1.

[0162] In an optional embodiment, the two-dimensional correction module 62 reduces the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration in step D1, including: taking the optimal value of the exponential correction parameter of this iteration as the center point, and expanding a sampling interval of the exponential correction parameter in this iteration to the left and to the right respectively, and the obtained value range is the current value range of the updated exponential correction parameter.

[0163] In an optional embodiment, the iteration termination condition of the exponential correction parameter of the two-dimensional correction module 62 in step D1 is: the number of iterations reaches the maximum number of iterations of the preset exponential correction parameter; or, the sampling interval of the exponential correction parameter in this iteration is not greater than the minimum sampling interval of the preset exponential correction parameter.

[0164] In an optional embodiment, the two-dimensional correction module 62 continues to search for an optimal value of the linear correction parameter within a preset value range of the linear correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves the best image quality, including:

[0165] A2. Initialize the current value interval of the linear correction parameter to the preset value interval of the linear correction parameter;

[0166] B2. uniformly sample a first number of values ​​in the current value interval of the linear correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the linear correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the linear correction parameter of this iteration;

[0167] C2. Determine whether the iteration end condition of the linear correction parameter is met. If so, take the optimal value of the linear correction parameter of this iteration as the final optimal value of the linear correction parameter; otherwise, narrow the current value range of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration, and return to step B2.

[0168] In an optional embodiment, the two-dimensional correction module 62 in step C2 reduces the current value interval of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration, including: taking the optimal value of the linear correction parameter of this iteration as the center point, and expanding a sampling interval of the linear correction parameter in this iteration to the left and to the right respectively, and the obtained value interval is the current value interval of the updated linear correction parameter.

[0169] In an optional embodiment, the iteration termination condition of the linear correction parameters of the two-dimensional correction module 62 in step C2 is: the number of iterations reaches the maximum number of iterations of the preset linear correction parameters; or, the sampling interval of the linear correction parameters in this iteration is not greater than the minimum sampling interval of the preset linear correction parameters.

[0170] In an optional embodiment, the two-dimensional correction module 62 selects a two-dimensional CT projection layer in the three-dimensional CT projection, including: selecting a two-dimensional CT projection layer located in the middle channel of the row pixels in the three-dimensional CT projection.

[0171] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which stores instructions. When the instructions are executed by a processor, the processor executes the beam hardening correction method in CT imaging as described in any of the aforementioned embodiments.

[0172] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims disclosed herein may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope disclosed in the present application.

[0173] Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.

Claims

1. A beam hardening correction method in computer tomography (CT) imaging, characterized in that: The method includes: Obtain 3D CT projection of the target part; Selecting a two-dimensional CT projection layer in the three-dimensional CT projection; A beam hardening correction function is constructed, wherein the function takes the three-dimensional CT projection value as an independent variable, the function includes a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value, and the function operation result is the three-dimensional CT projection value after beam hardening correction; Determine to use the beam hardening correction function to perform beam hardening correction on the two-dimensional CT projection layer; find optimal values ​​of linear correction parameters and exponential correction parameters that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve optimal image quality; According to the optimal values ​​of the linear correction parameter and the exponential correction parameter, the beam hardening correction function is used to perform beam hardening correction on the three-dimensional CT projection of the target part.

2. The method according to claim 1, characterized in that The beam hardening correction function is: Among them, p0(i, j, k θ ) is any 3D CT projection value, p′ p (i,j,k θ ) is the pair p0(i, j, k θ ) is the projection value obtained after beam hardening correction, i is the i-th row pixel channel of the detector, j is the j-th column pixel channel of the detector, k θ is the projection angle, m is the linear correction parameter, and n is the exponential correction parameter.

3. The method according to claim 1, characterized in that After acquiring the three-dimensional CT projection of the target part and before selecting a two-dimensional CT projection layer in the three-dimensional CT projection, the method further includes: Taking the natural logarithm of all projection values ​​in the three-dimensional CT projection of the target part to obtain an optimized three-dimensional CT projection; The selecting a two-dimensional CT projection layer in the three-dimensional CT projection includes: Selecting a two-dimensional CT projection layer in the optimized three-dimensional CT projection; The using the beam hardening correction function to perform beam hardening correction on the three-dimensional CT projection of the target part includes: The beam hardening correction function is used to perform beam hardening correction on the optimized three-dimensional CT projection of the target part.

4. The method according to any one of claims 1 to 3, characterized in that: The step of searching for optimal values ​​of linear correction parameters and exponential correction parameters that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve optimal image quality comprises: Finding an optimal value of the index correction parameter within a preset value range of the index correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves the best image quality; The value of the exponential correction parameter is kept unchanged as the optimal value of the exponential correction parameter, and within the preset value range of the linear correction parameter, the optimal value of the linear correction parameter is continuously sought so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves the best image quality.

5. The method according to claim 4, characterized in that The step of searching for an optimal value of the index correction parameter within a preset value range of the index correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves optimal image quality comprises: A1. Obtain a value within a preset value interval of the linear correction parameter, and keep the value of the linear correction parameter unchanged as the obtained value; B1. Initialize the current value interval of the exponential correction parameter to the preset value interval of the exponential correction parameter; C1. uniformly sample a first number of values ​​in the current value interval of the exponential correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the exponential correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the exponential correction parameter of this iteration; D1. Determine whether the iterative end condition of the exponential correction parameter is met. If so, take the optimal value of the exponential correction parameter of this iteration as the final optimal value of the exponential correction parameter; otherwise, reduce the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration, and return to step C1.

6. The method according to claim 5, characterized in that The step D1 of narrowing the current value range of the exponential correction parameter according to the optimal value of the exponential correction parameter of this iteration includes: Taking the optimal value of the exponential correction parameter of this iteration as the center point, a sampling interval of the exponential correction parameter in this iteration is extended to the left and right respectively, and the obtained value interval is the current value interval of the updated exponential correction parameter.

7. The method according to claim 1, characterized in that The iteration termination condition of the exponential correction parameter in step D1 is: The number of iterations reaches the maximum number of iterations of the preset exponential correction parameter; Alternatively, the sampling interval of the exponential correction parameter in this iteration is not greater than a preset minimum sampling interval of the exponential correction parameter.

8. The method according to any one of claims 4 to 7, characterized in that: The step of continuing to search for an optimal value of the linear correction parameter within a preset value range of the linear correction parameter so that the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction achieves optimal image quality comprises: A2. Initialize the current value interval of the linear correction parameter to the preset value interval of the linear correction parameter; B2. uniformly sample a second number of values ​​in the current value interval of the linear correction parameter, and for each value, respectively calculate the two-dimensional CT projection layer after beam hardening correction; select the two-dimensional CT reconstructed image with the best image quality from the two-dimensional CT reconstructed images corresponding to the two-dimensional CT projection layers after beam hardening correction; and use the linear correction parameter corresponding to the two-dimensional CT reconstructed image with the best image quality as the optimal value of the linear correction parameter of this iteration; C2. Determine whether the iteration end condition of the linear correction parameter is met. If so, take the optimal value of the linear correction parameter of this iteration as the final optimal value of the linear correction parameter; otherwise, narrow the current value range of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration, and return to step B2.

9. The method according to claim 8, characterized in that The step C2 of narrowing the current value range of the linear correction parameter according to the optimal value of the linear correction parameter of this iteration includes: Taking the optimal value of the linear correction parameter of this iteration as the center point, a sampling interval of the linear correction parameter in this iteration is extended to the left and right respectively, and the obtained value interval is the current value interval of the updated linear correction parameter.

10. The method according to claim 1, characterized in that The iteration end condition of the linear correction parameter in step C2 is: The number of iterations reaches the maximum number of iterations of the preset linear correction parameters; Alternatively, the sampling interval of the linear correction parameter in this iteration is not greater than a preset minimum sampling interval of the linear correction parameter.

11. The method according to claim 1, characterized in that: The selecting a two-dimensional CT projection layer in the three-dimensional CT projection includes: In the three-dimensional CT projection, a two-dimensional CT projection layer located in the middle channel of the row pixels is selected.

12. A beam hardening correction device in computer tomography (CT) imaging, characterized in that: The device includes: A three-dimensional CT projection acquisition module is used to acquire a three-dimensional CT projection of a target part; A two-dimensional correction module is used to select any two-dimensional CT projection layer in the three-dimensional CT projection; construct a beam hardening correction function, which takes the three-dimensional CT projection value as an independent variable, and includes a linear correction parameter and an exponential correction parameter of the three-dimensional CT projection value, and the function operation result is the three-dimensional CT projection value after beam hardening correction; according to the beam hardening correction function, perform beam hardening correction on the two-dimensional CT projection layer; and find the optimal values ​​of the linear correction parameter and the exponential correction parameter that enable the two-dimensional CT reconstructed image corresponding to the two-dimensional CT projection layer after beam hardening correction to achieve the best image quality; The three-dimensional correction module is used to perform beam hardening correction on the three-dimensional CT projection of the target part according to the optimal values ​​of the linear correction parameter and the exponential correction parameter using the beam hardening correction function to obtain the three-dimensional CT projection after beam hardening correction.

13. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores instructions, which, when executed by a processor, cause the processor to perform the beam hardening correction method in electronic computed tomography (CT) imaging according to any one of claims 1 to 11.