A metal artifact correction method for CT images and related device
Through K-mean clustering and iterative correction technology, metal artifact correction is performed on CT images, solving the problem of introducing secondary artifacts in the prior art, and improving image quality and detection accuracy.
Patent Information
- Application Number
- CN202410613173.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-05-17
AI Technical Summary
The metal artifact correction methods in the existing CT images are prone to introduce new secondary artifacts during the repair process, resulting in insufficient image quality and difficulty in effectively removing metal artifacts, affecting detection accuracy.
The original image is segmented by K-mean clustering method to obtain metal and metal-free images, and the metal sine projection is determined separately, and the artifact information in the metal sine projection is iteratively corrected to ensure the artifact information after each correction. Reduce, and finally reconstruct the corrected metal sine projection and metal-free sine projection to obtain the corrected image.
It effectively removes metal artifacts, maintains the details of the original image, reduces image distortion, improves the quality of the corrected image, avoids the appearance of new artifacts, and improves detection accuracy.
Smart Images

Figure CN118195974B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and in particular to a method and a related device for correcting metal artifacts in CT images. Background Art
[0002] Computed Tomography (CT) is an imaging technology that obtains information about the object being measured in a non-destructive way. Since the images reconstructed by CT equipment have high accuracy and clarity, it is widely used in the field of diagnostic imaging. For example, CT equipment is widely used in the field of industrial quality inspection.
[0003] When CT equipment is used in the field of industrial quality inspection, due to the characteristics of metal objects in industrial products, the attenuation of rays is very high. Most photons are absorbed during the interaction with metal materials, resulting in very few photons reaching the detector. Therefore, when the object being measured includes metal, the projection value related to the metal read from the detector will be abnormally large, and corresponding metal artifacts will be generated in the reconstructed CT image. The metal artifacts are mainly manifested as ray-like stripes emitted from the metal area caused by large projection data. Metal artifacts reduce the clarity around the metal area in the CT image, which will directly affect the analysis and judgment of the CT image by the relevant inspection personnel. In other words, the metal artifacts in the CT image reduce the quality of the CT image, which may cause the relevant inspection personnel to misjudge the object being measured.
[0004] In the related art, metal artifacts of CT images are mainly corrected by projection domain repair. Specifically, the projection domain repair method uses a specific method to repair damaged projection data, and uses a reconstruction algorithm to obtain a complete image using the repaired data, wherein new projection data is obtained using its adjacent complete data through interpolation or other repair methods.
[0005] Although the projection domain restoration method can simply and quickly realize the correction of metal artifacts, new secondary artifacts may be introduced in the actual correction process of the projection domain restoration method, that is, the image quality of the corrected image obtained by the projection domain restoration method is not high enough. Summary of the invention
[0006] The embodiments of the present application at least provide a metal artifact correction method and related device for CT images, which avoids the emergence of new metal artifacts after correction. Since only the metal sinusoidal projection is iteratively corrected, the image details of the original image are maintained while the metal artifacts are removed, image distortion is reduced, the image quality of the corrected image is guaranteed, and the correction effect is improved.
[0007] In a first aspect, the present application provides a method for correcting metal artifacts in CT images, comprising:
[0008] The original image is segmented by K-means clustering to obtain a metal image and a non-metal image corresponding to the original image; the original image includes metal artifacts, the metal image includes image content corresponding to the metal area in the original image, and the non-metal image includes image content other than the metal area in the original image;
[0009] Determine the metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image respectively;
[0010] Perform M iterative corrections on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, m is an integer, M>m≥1;
[0011] The corrected metal sinusoidal projection and the metal-free sinusoidal projection are reconstructed to obtain a corrected image corresponding to the original image.
[0012] In a second aspect, the present application also provides a metal artifact correction device for CT images, comprising:
[0013] An obtaining unit is used to perform image segmentation on the original image by K-means clustering to obtain a metal image and a non-metal image corresponding to the original image; the original image includes metal artifacts, the metal image includes image content corresponding to the metal area in the original image, and the non-metal image includes image content in the original image except the metal area;
[0014] A determination unit, used to respectively determine a metal sinusoidal projection corresponding to the metal image and a non-metal sinusoidal projection corresponding to the non-metal image;
[0015] A correction unit is used to perform M iterative corrections on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, m is an integer, M>m≥1;
[0016] The reconstruction unit is used to reconstruct the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image.
[0017] In a third aspect, the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the metal artifact correction method for CT images provided in the present application is executed.
[0018] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the metal artifact correction method for CT images provided in the present application is executed.
[0019] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, executes the metal artifact correction method for CT images provided in the present application.
[0020] In summary, the present application provides a metal artifact correction method for CT images and a related device, the method comprising: performing image segmentation on an original image including metal artifacts by means of K-means clustering to obtain a metal image and a metal-free image corresponding to the original image; the metal image includes image content corresponding to a metal region in the original image, and the metal-free image includes image content other than the metal region in the original image; respectively determining a metal sinusoidal projection corresponding to the metal image and a metal-free sinusoidal projection corresponding to the metal-free image; since metal artifacts are generated by a metal portion included in an object under test, the artifact information in the metal sinusoidal projection is iteratively corrected M times to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, and m is an integer, M>m≥1; reconstructing the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image. Through the above method, the original image can be accurately segmented by K-means clustering, avoiding the emergence of new metal artifacts after correction. Since only the metal sinusoidal projection is iteratively corrected, the image details of the original image are maintained while the metal artifacts are removed, image distortion is reduced, the image quality of the corrected image is guaranteed, and the correction effect is improved.
[0021] Other advantages of the present application will be explained in more detail in conjunction with the following description and drawings.
[0022] It should be understood that the above description is only an overview of the technical solution of the present application, so that the technical means of the present application can be generally understood and then implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are specifically described below by example. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the present application and are used together with the specification to illustrate the technical solutions of the present application. It should be understood that the drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work. Moreover, the same reference numerals are used to represent the same components throughout the drawings. In the drawings:
[0024] Figure 1 A method flow chart of a method for metal artifact correction for CT images provided in an embodiment of the present application;
[0025] Figure 2 A specific flow chart of a method for determining a K value provided in an embodiment of the present application;
[0026] Figure 3 A specific flow chart of a metal artifact correction method provided in an embodiment of the present application;
[0027] Figure 4 A comparison diagram of metal artifact correction results of a simulated image data 1 provided in an embodiment of the present application;
[0028] Figure 5 A comparison diagram of metal artifact correction results of a simulated image data 2 provided in an embodiment of the present application;
[0029] Figure 6 A comparison diagram of metal artifact correction results of measured data 1 provided in an embodiment of the present application;
[0030] Figure 7 A comparison diagram of metal artifact correction results of measured data 2 provided in an embodiment of the present application;
[0031] Figure 8 A comparison diagram of metal artifact correction results of measured data 3 provided in an embodiment of the present application;
[0032] Fig. 9 A comparison diagram of metal artifact correction results of measured data 4 provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of a device for correcting metal artifacts in CT images provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0035] In the description of the embodiments of the present application, it should be understood that terms such as "including" or "having" are intended to indicate the presence of disclosed features, numbers, steps, behaviors, components, parts, or a combination thereof in the present specification, and do not exclude the possibility of the presence of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof.
[0036] Unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0037] The terms "first", "second", etc. are used only to distinguish the same or similar technical features for the convenience of description, and should not be understood as indicating or implying the relative importance or quantity of these technical features. Thus, the features defined by "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the term "plurality" means two or more than two.
[0038] In the related art, metal artifacts of CT images are mainly corrected by projection domain repair. Specifically, the projection domain repair method uses a specific method to repair damaged projection data, and uses a reconstruction algorithm to obtain a complete image using the repaired data, wherein new projection data is obtained using adjacent complete data through interpolation or other repair methods, such as linear interpolation (LI).
[0039] Although the projection domain restoration method can simply and quickly realize the correction of metal artifacts, new secondary artifacts may be introduced in the actual correction process of the projection domain restoration method, that is, the image quality of the corrected image obtained by the projection domain restoration method is not high enough.
[0040] In addition, in related technologies, metal artifacts in CT images are corrected through iterative correction and deep learning. Specifically, the iterative correction method is to establish a difference function between the projection value of the target image and the projection value actually collected by the CT detector, and to find the reconstructed image closest to the target image by minimizing the difference function, such as Total Variation Iterative Reconstruction (TVIR); the deep learning method is to train the model through a large number of metal artifact images, which is divided into supervised learning and unsupervised learning, including projection domain correction, image domain correction or an end-to-end combination of the two, to achieve metal artifact correction of CT images.
[0041] In practical applications, the iterative correction method mainly includes projection operation, comparison of projection operation results with measurement data results, repeated projection, and updating of multiple basic parts of the image. Since the steps in the iterative correction method in the related technology are relatively complicated and cumbersome, its practicality will be limited.
[0042] At the same time, deep learning methods require a large amount of image data for training to achieve better results, which is difficult to achieve in actual engineering. Moreover, when the model to be trained is more complex, the hardware performance requirements will also be higher. In actual applications, deep learning methods are mainly used in the medical field, and the actual application field is relatively narrow.
[0043] In view of this, the present application provides a metal artifact correction method and related devices for CT images, which avoids the emergence of new metal artifacts after correction. Since only the metal sinusoidal projection is iteratively corrected, the image details of the original image are maintained while removing the metal artifacts, reducing image distortion, ensuring the image quality of the corrected image, and improving the correction effect.
[0044] The metal artifact correction method for CT images provided in the embodiment of the present application can be implemented by a computer device, which can be a terminal device or a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0045] The following is an explanation of a method for correcting metal artifacts in CT images provided by the present application through a method embodiment. Figure 1 As shown, Figure 1A method flow chart of a method for metal artifact correction for CT images provided in an embodiment of the present application, wherein the aforementioned computer device may be a server, and the method comprises:
[0046] S101 , performing image segmentation on the original image by using a K-means clustering method to obtain a metal image and a non-metal image corresponding to the original image.
[0047] The original image refers to the CT image that needs to be corrected for metal artifacts. The original image includes metal artifacts. In practical applications, when the object to be measured includes metal, the attenuation of the rays when passing through the metal is large, resulting in the loss of some information on the path with the metal, and metal artifacts will appear during subsequent reconstruction.
[0048] At this time, since the metal artifacts are caused by the metal included in the measured object, the server can first perform image segmentation on the original image through K-means clustering to obtain a metal image and a metal-free image corresponding to the original image. The metal image includes the image content corresponding to the metal area in the original image, and the metal-free image includes the image content except the metal area in the original image, so that the subsequent steps can directly perform metal artifact correction on the metal image instead of performing metal artifact correction on the original image as a whole, avoiding resource waste and improving correction efficiency.
[0049] It should be noted that in the related art, the method of image segmentation is usually to directly classify the image area, for example, the image can be directly divided into two categories: metal area and non-metal area. However, in actual applications, since the image may include different types of metals or different types of non-metals, if the image is directly classified at this time, due to the differences between different metals, different metals are difficult to be classified into the same category of metal area, resulting in the inability to accurately segment the image through classification. In this regard, in this application, the K-means clustering method is applied to the image segmentation of the original image. Through the K-means clustering method, it is possible to achieve accurate image segmentation of the original image under the premise that the image includes different types of metals or different types of non-metals.
[0050] In a possible implementation, in S101, the original image is segmented by a K-means clustering method to obtain a metal image and a metal-free image corresponding to the original image, including:
[0051] Each pixel of the original image is divided into K categories through multiple clustering.
[0052] Taking the initial clustering in multiple clustering as an example, the clustering in this embodiment is explained. The server can determine K pixels in the original image as K initial cluster centers, where K is an integer, K ≥ 1, and the server can use any pixel in the original image as the initialized cluster center. After determining the K initial cluster centers, since the distance can be used as a standard for measuring data similarity, that is, the smaller the distance between two pixels, the higher the possibility of belonging to the same category, and the larger the distance between two pixels, the lower the possibility of belonging to the same category, the server can determine the K initial cluster centers based on the distance between each pixel in the original image and the K pixels. The distance between the pixels in the kth initial category and the corresponding initial cluster center is smaller than the distance between the pixels in the kth initial category and the corresponding initial cluster center, k is an integer, K>k≥1; after the K initial categories are obtained, the server can determine the mean of the K initial categories as K secondary cluster centers. For example, the mean of each initial category can be calculated as the corresponding secondary cluster center by the following formula:
[0053]
[0054] in, represents the secondary cluster center corresponding to the kth initial category, represents the pixel set of the kth initial category, Represents a pixel.
[0055] After determining the K secondary clustering centers, the server can perform the next clustering according to the K secondary clustering centers. After multiple clusterings, the clustering centers corresponding to the final K categories tend to be stable.
[0056] After obtaining K categories, the server may determine the pixel means corresponding to the K categories respectively.
[0057] Since the metal area has the characteristic of large pixel values, the server can obtain the metal image corresponding to the original image according to the category with the largest pixel mean among the K categories, that is, determine the category with the largest pixel mean as the metal area in the original image; at the same time, the server can obtain the non-metal image corresponding to the original image according to the categories among the K categories except the category with the largest pixel mean.
[0058] Through the above method, the original image can be segmented more accurately, thereby obtaining more accurate metal images and metal-free images.
[0059] In a possible implementation, in the aforementioned process of dividing each pixel point of the original image into K categories through multiple clustering, it is necessary to predetermine the K value. However, in the actual application of the present application, it is usually not possible to predetermine how many categories the pixel points in the original image belong to, that is, the K value cannot be predetermined. In this regard, the method further includes:
[0060] For the nth period, determine the K value corresponding to the nth period, and perform multiple clustering on the original image into K categories based on the K value corresponding to the nth period; wherein n is an integer, n>1;
[0061] Determine the pixel means corresponding to the K categories corresponding to the nth period;
[0062] If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period satisfies the difference threshold, the K value corresponding to the nth period is output, so as to perform image segmentation on the original image based on the K value corresponding to the nth period;
[0063] If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period does not meet the difference threshold, the K value corresponding to the nth period is increased by one to determine the K value corresponding to the n+1th period.
[0064] Specifically, the server may determine the K value that is finally output for image segmentation through multiple cycles.
[0065] Taking the nth cycle among multiple cycles as an example, n is an integer, n>1, the server can first determine the K value corresponding to the nth cycle, and cluster the original image into K categories multiple times based on the K value corresponding to the nth cycle; after obtaining the K categories corresponding to the K value corresponding to the nth cycle, the server can determine the pixel means corresponding to the K categories corresponding to the nth cycle; since the metal area has the characteristic of large pixel values, the server can compare the maximum pixel mean corresponding to the nth cycle with the maximum pixel mean corresponding to the n-1th cycle. If the difference between the maximum pixel mean corresponding to the nth cycle and the maximum pixel mean corresponding to the n-1th cycle meets the difference threshold, that is, , represents the maximum pixel mean corresponding to the nth period, represents the maximum pixel mean corresponding to the n-1th cycle, It represents the difference threshold, indicating that the K value corresponding to the nth period can divide the metal area in the original image more accurately, so the server can output the K value corresponding to the nth period so as to perform image segmentation on the original image based on the K value corresponding to the nth period; if the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period does not meet the difference threshold, it means that the K value corresponding to the nth period cannot divide the metal area in the original image more accurately, so the server can add one to the K value corresponding to the nth period, and determine the value after adding one to the K value corresponding to the nth period as the K value corresponding to the n+1th period.
[0066] The following is based on Figure 2 The above process is further explained as follows: Figure 2 As shown, the process includes:
[0067] Input original image;
[0068] Initialize the K value to 1;
[0069] Based on the K value corresponding to the nth period, the original image is clustered multiple times into K categories;
[0070] Determine the pixel means corresponding to the K categories corresponding to the nth period;
[0071] Compare the maximum pixel mean corresponding to the nth period with the maximum pixel mean corresponding to the n-1th period;
[0072] If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period meets the difference threshold, the K value corresponding to the nth period is output, and the original image is segmented based on the K value corresponding to the nth period to obtain the corresponding metal image and non-metal image;
[0073] If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period does not meet the difference threshold, the K value corresponding to the nth period is increased by one, and the value obtained by increasing the K value corresponding to the nth period by one is determined as the K value corresponding to the n+1th period.
[0074] S102 , respectively determining a metal sinusoidal projection corresponding to the metal image and a non-metal sinusoidal projection corresponding to the non-metal image.
[0075] After obtaining the metal image and the non-metal image in S101, since it is difficult to directly correct the metal image, the server can respectively determine the metal sinusoidal projection corresponding to the metal image and the non-metal sinusoidal projection corresponding to the non-metal image, so that the metal sinusoidal projection can be corrected in subsequent steps.
[0076] In a possible implementation, determining the metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image in S102 respectively includes:
[0077] The metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image are determined respectively by Radon transform.
[0078] Specifically, the Radon transform refers to the transformation of a two-dimensional function f Transformed into a linear function R defined in two-dimensional space f (R f Represents a two-dimensional function f In CT theory, Radon transform is the forward projection of the function. The image after Radon transform is called sinusoidal projection. At the same time, the server can also use inverse Radon transform to reconstruct the original density function image from the projected function.
[0079] Let the two-dimensional function , whose domain is R 2 ,make R is the operator of Radon transform, then It means along the straight line L Points:
[0080]
[0081]
[0082] in, It means that along the straight line L The integral of , L represents the straight line, represents a two-dimensional function, represents the horizontal axis, represents the vertical coordinate, Indicates the projection angle, which indicates the angle at which the CT device rotates around the object being measured. It represents the projection distance, which indicates the path length of the ray from the CT device through the object being measured.
[0083] In this regard, the Radon transform can be expressed using the following formula:
[0084]
[0085] in, It means along the straight line L The integral of Represents a two-dimensional function f Transformed into and The two-dimensional function is composed of represents the projection angle, Represents the projection distance, represents a two-dimensional function, represents the horizontal axis, Indicates the vertical coordinate.
[0086] S103 , performing M iterations of correction on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection.
[0087] After the metal sinusoidal projection is obtained in S102, in order to avoid generating new artifacts and ensure the correction effect, in the present application, the projection domain repair method will not be used to perform interpolation correction on the metal sinusoidal projection. Instead, the server can perform M iterative corrections on the artifact information in the metal sinusoidal projection, where M is an integer and M>1.
[0088] Taking the mth correction in M iterative corrections as an example, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, m is an integer, M>m≥1. That is, after M corrections, the server can fully remove the artifact information in the metal sinusoidal projection.
[0089] In the present application, the value of the number of iterations M may be preset by relevant testing personnel based on experience. For example, the relevant testing personnel may determine the value of the number of iterations M based on the correction effects of different numbers of iterations.
[0090] It should be noted that, unlike the iterative correction method in the related art, the iterative correction in the present application is not for all projection values actually collected by the CT detector, but only for the metal sinusoidal projection that is closely related to the metal artifacts. The method in the present application can more effectively correct the metal artifacts, thereby further ensuring the correction effect.
[0091] In a possible implementation, performing M iterations of correction on the artifact information in the metal sinusoidal projection in S103 to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection includes:
[0092] The artifact information in the metal sine projection is iterated and corrected M times by the following formula to obtain the corrected metal sine projection corresponding to the metal sine projection:
[0093]
[0094] in, represents the intermediate metal sinusoidal projection corresponding to the m+1th correction, represents the intermediate metal sinusoidal projection corresponding to the mth correction, represents the weight matrix, A mask representing the metallic sinusoidal projection, represents the Radon transform processing, A mask representing the metallic image, represents the partial derivative of the total variation norm.
[0095] Specifically, the mask of the metal sinusoidal projection Refers to the metal sinusoidal projection The corresponding position is 1, and the remaining positions are 0. Mask of metal image It means that the position corresponding to the metal image is 1, and the remaining positions are 0. The Radon transform process can convert the image into the corresponding sinusoidal projection.
[0096] Taking the (m+1)th correction as an example, the server can further remove the relevant information of the metal artifacts included in the intermediate metal sinusoidal projection corresponding to the (m+1)th correction through the above formula to obtain the intermediate metal sinusoidal projection corresponding to the (m+1)th correction.
[0097] In this embodiment, the partial derivative of the total variation norm is As the iterative objective function, minimize can reach a convergence point, i.e. If it approaches 0, the objective function approaches the minimum value and convergence is achieved after multiple iterations.
[0098] The server can be determined by the following formula :
[0099]
[0100] in, Represents the first Row and The pixel value of the pixel corresponding to the column, Represents the first Row and +1 column corresponds to the pixel value of the pixel point, Represents the first +1 line and The pixel value of the pixel corresponding to the column, Represents the first Row and -1 column corresponds to the pixel value of the pixel point, Represents the first +1 line and -1 column corresponds to the pixel value of the pixel point, Represents the first -1 row and The pixel value of the pixel corresponding to the column, Represents the first -1 row and +1 column corresponds to the pixel value of the pixel point, Avoid division by zero for very small positive numbers.
[0101] In a possible implementation, in order to eliminate the relevant information corresponding to the metal artifact in a more targeted manner, the method further includes:
[0102] The server can determine the weight matrix through the following formula :
[0103] in, represents the relaxation factor, Indicates normalizing the matrix. Represents the Metallic Sinusoidal projection.
[0104] In the related art, in order to reduce the amount of calculation, the weights referred to in the iterative process for eliminating metal artifacts are usually unchanged, that is, the weights corresponding to different pixels are usually the same.
[0105] However, since the artifact information of different pixels is not the same, in this embodiment, a changing weight matrix is used in the iteration process, that is, the weight of each pixel position is not the same, but the weight corresponding to each pixel is closely related to the value of each pixel in the metal sinusoidal projection, so as to achieve more targeted removal of the artifact information included in different pixel points in the metal image, thereby further ensuring the removal effect of the metal artifacts.
[0106] S104 , reconstructing the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image.
[0107] After obtaining the corrected metal sinusoidal projection in S103, in order to retain the image content of the original image except the metal area, the server can reconstruct the corrected metal sinusoidal projection and the metal-free sinusoidal projection, thereby obtaining a corrected image including the metal area and the metal-free area.
[0108] It should be noted that, since the artifact information in the corrected metal sinusoidal projection is corrected and the metal-free sinusoidal projection does not include artifact information, the obtained corrected image effectively removes the metal artifacts while retaining the image details of the original image.
[0109] The following is based on Figure 3 The specific process of the metal artifact correction method of the present application is further described as follows: Figure 3 As shown, the process includes:
[0110] Input the original image, which is a CT image including metal artifacts, and the CT image is a grayscale image;
[0111] Performing image segmentation on the original image to obtain a metal image including a metal area and a non-metal image including areas other than the metal area;
[0112] Determine the metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image respectively;
[0113] Iteratively correct the artifact information in the metal sinusoidal projection, and the sinusoidal projection correction that meets the iteration number is the final corrected metal sinusoidal projection;
[0114] Performing filtered back-projection (FBP) reconstruction on the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image;
[0115] Output the corrected image.
[0116] The metal artifact correction method for CT images provided in the present application is evaluated by evaluation indicators. Specifically, in the present application, the evaluation indicators include mean square error (MSE), peak signal-to-noise ratio (PSNR), and structural similarity index (SSIM).
[0117] (1) Mean square error
[0118] The mean square error refers to the difference between the original image and the corrected image in each pixel value. It is a measure of the difference between the estimated value and the estimated value. The mean square error can be determined by the following formula:
[0119]
[0120] Wherein, MSE represents mean square error, I(x, y) represents the original image, S(x, y) represents the corrected image, and O×P represents the size of the original image.
[0121] (2) Peak signal-to-noise ratio
[0122] The peak signal-to-noise ratio is to evaluate the difference between the processing result and the original image by calculating the pixel value error between the corrected image and the original image. The peak signal-to-noise ratio can be determined by the following formula:
[0123]
[0124] Among them, PSNR represents the peak signal-to-noise ratio, MAX Irepresents the pixel value range of the original image, and MSE represents the mean square error.
[0125] (3) Structural similarity
[0126] Structural similarity can be used to measure the similarity between two given images. From the perspective of image composition, structural information is defined as an attribute that is independent of brightness and contrast and reflects the structure of objects in the scene, and distortion is modeled as a combination of three different factors: brightness, contrast, and structure. Using the mean as an estimate of brightness, the standard deviation as an estimate of contrast, and the covariance as a measure of structural similarity, the structural similarity SSIM can be determined by the following formula:
[0127]
[0128] Where I represents the original image, S represents the corrected image, represents the average value of the original image, represents the average value of the corrected image, represents the variance of the original image, represents the variance of the corrected image, Represents the covariance of the original image and the corrected image, c1 and c2 are small constants.
[0129] After determining the evaluation index, the server can use the simulated image as evaluation data, and use the linear interpolation correction (LI) and the total variation iterative reconstruction (TVIR) as comparison methods to evaluate the metal artifact correction method of the present application. The comparison results are shown in Table 1. Figure 4 and Figure 5 shown.
[0130] Table 1 Comparison results of metal artifact correction evaluation indicators
[0131]
[0132] It can be concluded from Table 1 that, compared with LI, the method provided in the present application has obvious improvements in the three evaluation indicators of mean square error, peak signal-to-noise ratio and structural similarity, indicating that compared with the projection domain restoration method, the method provided in the present application can have a better removal effect on metal artifacts; compared with TVIR, the method provided in the present application has also improved in the three evaluation indicators of mean square error, peak signal-to-noise ratio and structural similarity, indicating that compared with the iterative correction method in the related technology, the method provided in the present application can also have a better removal effect on metal artifacts.
[0133] like Figure 4 As shown, Figure 4A comparison diagram of metal artifact correction results of a simulated image data 1 provided in an embodiment of the present application, Figure 4 (a) in the figure represents the original image 1 without artifacts obtained by simulation. Figure 4 (b) shows the original image 1 of the implanted metal obtained by simulation. Figure 4 (c) in the figure shows the original image 1 with artifacts obtained by simulation. Figure 4 (d) in the figure represents the corrected image 1 obtained by LI. Figure 4 (e) in the figure represents the corrected image 1 obtained by TVIR. Figure 4 (f) in the figure represents the corrected image 1 obtained by the metal artifact correction method of the present application, Figure 4 It can be seen that new artifact information appears in the corrected image obtained by LI, and the metal artifact removal effect in the corrected image obtained by TVIR is poor. However, the metal artifact removal effect in the corrected image obtained by the metal artifact correction method of the present application is better and no new artifacts appear.
[0134] like Figure 5 As shown, Figure 5 A comparison diagram of metal artifact correction results of a simulated image data 2 provided in an embodiment of the present application, Figure 5 (a) in the figure represents the original image 2 without artifacts obtained by simulation. Figure 5 (b) shows the original image 2 of the implanted metal obtained by simulation. Figure 5 (c) in the figure shows the original image 2 with artifacts obtained by simulation. Figure 5 (d) in the figure represents the corrected image 2 obtained by LI. Figure 5 (e) in the figure represents the corrected image 2 obtained by TVIR. Figure 5 (f) in the figure represents the corrected image 2 obtained by the metal artifact correction method of the present application, Figure 5 It can be seen that the corrected image obtained by the LI method has the worst effect on removing metal artifacts, and the corrected image obtained by the metal artifact correction method of the present application has the best effect on removing metal artifacts.
[0135] The server can also use the measured workpiece image as evaluation data, and use LI and TVIR as comparison methods to evaluate the metal artifact correction method of the present application. The comparison results are as follows: Figure 6 , Figure 7 , Figure 8 and Fig. 9 As shown, Figure 6 A comparison diagram of metal artifact correction results of measured data 1 provided in an embodiment of the present application, Figure 6 (a) in the figure represents the measured original image 1. Figure 6 (b) in the figure shows the measured corrected image 1 obtained by LI. Figure 6 (c) in the figure shows the measured corrected image 1 obtained by TVIR. Figure 6 (d) in the figure represents the measured corrected image 1 obtained by the metal artifact correction method of the present application; Figure 7 A comparison diagram of metal artifact correction results of measured data 2 provided in an embodiment of the present application, Figure 7 (a) in the figure represents the measured original image 2. Figure 7 (b) in the figure shows the measured corrected image 2 obtained by LI. Figure 7 (c) in the figure shows the measured corrected image 2 obtained by TVIR. Figure 7 (d) in the figure represents the measured corrected image 2 obtained by the metal artifact correction method of the present application; Figure 8 A comparison diagram of metal artifact correction results of measured data 3 provided in an embodiment of the present application, Figure 8 (a) in the figure represents the measured original image 3. Figure 8 (b) in the figure shows the measured corrected image 3 obtained by LI. Figure 8 (c) in the figure shows the measured corrected image 3 obtained by TVIR. Figure 8 (d) in the figure represents the measured corrected image 3 obtained by the metal artifact correction method of the present application; Fig. 9 A comparison diagram of metal artifact correction results of measured data 4 provided in an embodiment of the present application, Fig. 9 (a) in the figure represents the measured original image 4. Fig. 9 (b) in the figure shows the measured corrected image 4 obtained by LI. Fig. 9 (c) in the figure shows the measured corrected image 4 obtained by TVIR. Fig. 9 (d) in FIG. 4 represents the measured corrected image 4 obtained by the metal artifact correction method of the present application.
[0136] Depend on Figure 6 , Figure 7 , Figure 8 and Fig. 9 It can be seen that the corrected image obtained by LI has the worst artifact removal effect, and new artifact information will appear in the corrected image, and the corrected image obtained by the metal artifact correction method of the present application has the best metal artifact removal effect and no new artifacts appear.
[0137] It can be seen that the present application provides a metal artifact correction method for CT images, the method comprising: performing image segmentation on the original image including metal artifacts by means of K-means clustering to obtain a metal image and a metal-free image corresponding to the original image; the metal image includes the image content corresponding to the metal area in the original image, and the metal-free image includes the image content other than the metal area in the original image; respectively determining the metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image; since the metal artifact is caused by the metal part included in the measured object, the artifact information in the metal sinusoidal projection is iteratively corrected M times to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, and m is an integer, M>m≥1; reconstructing the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image. Through the above method, the emergence of new metal artifacts after correction is avoided. Since only the metal sinusoidal projection is iteratively corrected, the image details of the original image are maintained while the metal artifacts are removed, the image distortion is reduced, the image quality of the corrected image is guaranteed, and the correction effect is improved.
[0138] In the description of this specification, the description with reference to the terms "some possible embodiments", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application, and the above terms do not necessarily represent the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0139] About the method flow chart of the present application embodiment, some operations are described as different steps performed in a certain order. Such flow chart belongs to illustrative and non-restrictive. Some steps described in this article can be grouped together and performed in a single operation, or some steps can be divided into multiple sub-steps and can be performed in an order different from that shown in this article. Each step shown in the flow chart can be realized in any way by any circuit structure and / or tangible mechanism (for example, by software, hardware (for example, the logical function realized by processor or chip) etc. running on computer equipment and / or any combination thereof).
[0140] Those skilled in the art will appreciate that, in the method described in the above specific implementation, the writing order of each step does not mean a strict execution order, and the specific execution order of each step should be determined by its function and possible internal logic.
[0141] Based on the aforementioned Figure 1-Figure 9 The metal artifact correction device for CT images provided by the present application is described below through a device embodiment. Fig.10 As shown, the metal artifact correction device 1000 for CT images includes:
[0142] The obtaining unit 1001 is used to perform image segmentation on the original image by K-means clustering to obtain a metal image and a non-metal image corresponding to the original image; the original image includes metal artifacts, the metal image includes image content corresponding to the metal area in the original image, and the non-metal image includes image content other than the metal area in the original image;
[0143] A determination unit 1002, configured to respectively determine a metal sinusoidal projection corresponding to the metal image and a non-metal sinusoidal projection corresponding to the non-metal image;
[0144] The correction unit 1003 is used to perform M iterative corrections on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, m is an integer, M>m≥1;
[0145] The reconstruction unit 1004 is used to reconstruct the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image.
[0146] In a possible implementation, the correction unit 1003 is configured to:
[0147] The artifact information in the metal sine projection is iterated and corrected M times by the following formula to obtain the corrected metal sine projection corresponding to the metal sine projection:
[0148]
[0149] in, represents the intermediate metal sinusoidal projection corresponding to the m+1th correction, represents the intermediate metal sinusoidal projection corresponding to the mth correction, represents the weight matrix, A mask representing the metallic sinusoidal projection, represents the Radon transform processing, A mask representing the metallic image, represents the partial derivative of the total variation norm;
[0150] Determined by the following formula :
[0151]
[0152] in, Represents the first Row and The pixel value of the pixel corresponding to the column, Represents the first Row and +1 column corresponds to the pixel value of the pixel point, Represents the first +1 line and The pixel value of the pixel corresponding to the column, Represents the first Row and -1 column corresponds to the pixel value of the pixel point, Represents the first +1 line and -1 column corresponds to the pixel value of the pixel point, Represents the first -1 row and The pixel value of the pixel corresponding to the column, Represents the first -1 row and +1 column corresponds to the pixel value of the pixel point, Avoid division by zero for very small positive numbers.
[0153] In a possible implementation, the correction unit 1003 is further configured to:
[0154] The weight matrix is determined by the following formula :
[0155] in, represents the relaxation factor, Indicates normalizing the matrix. Represents the Metallic Sinusoidal projection.
[0156] In a possible implementation, a unit 1001 is obtained, which is used to:
[0157] Each pixel of the original image is divided into K categories through multiple clustering; for the first clustering of multiple clustering, the K pixels in the original image are determined as K initial clustering centers, and each pixel in the original image is divided into K initial categories according to the distance between each pixel in the original image and the K initial clustering centers, and the K initial clustering centers correspond to the K initial categories one by one. For the kth initial category among the K initial categories, the distance between the pixel in the kth initial category and the corresponding initial clustering center is less than the distance with other initial clustering centers, and the mean of the K initial categories is used to determine K secondary clustering centers, so as to perform the next clustering according to the K secondary clustering centers; the clustering centers corresponding to the K categories tend to be stable after multiple clustering; wherein K is an integer, K≥1, k is an integer, K>k≥1;
[0158] Determine the pixel means corresponding to the K categories respectively;
[0159] According to the category with the largest pixel mean among the K categories, a metal image corresponding to the original image is obtained; according to the categories other than the category with the largest pixel mean among the K categories, a non-metal image corresponding to the original image is obtained.
[0160] In a possible implementation, the unit 1001 is obtained, and is further used for:
[0161] For the nth period, determine the K value corresponding to the nth period, and perform multiple clustering on the original image into K categories based on the K value corresponding to the nth period; wherein n is an integer, n>1;
[0162] Determine the pixel means corresponding to the K categories corresponding to the nth period;
[0163] If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period satisfies the difference threshold, the K value corresponding to the nth period is output, so as to perform image segmentation on the original image based on the K value corresponding to the nth period;
[0164] If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period does not meet the difference threshold, the K value corresponding to the nth period is increased by one to determine the K value corresponding to the n+1th period.
[0165] In a possible implementation, the determining unit 1002 is configured to:
[0166] The metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image are determined respectively by Radon transform.
[0167] It should be noted that the device in the implementation mode of the present application can implement each process of the implementation mode of the aforementioned method and achieve the same effects and functions, which will not be repeated here.
[0168] The embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus. When the machine-readable instructions are executed by the processor, the following processing is performed:
[0169] Performing image segmentation on the original image to obtain a metal image and a non-metal image corresponding to the original image; the original image includes metal artifacts, the metal image includes image content corresponding to the metal area in the original image, and the non-metal image includes image content other than the metal area in the original image;
[0170] Determine the metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image respectively;
[0171] Perform M iterative corrections on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, m is an integer, M>m≥1;
[0172] The corrected metal sinusoidal projection and the metal-free sinusoidal projection are reconstructed to obtain a corrected image corresponding to the original image.
[0173] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the metal artifact correction method for CT images described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0174] An embodiment of the present application also provides a computer program product, including a computer program. The computer program product carries a program code. The instructions included in the program code can be used to execute the steps of the metal artifact correction method for CT images described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0175] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0176] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, their descriptions are simplified, and the relevant parts can be referred to the partial description of the method embodiments.
[0177] The apparatus, equipment and computer-readable storage medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the apparatus, equipment and computer-readable storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the apparatus, equipment and computer-readable storage medium will not be repeated here.
[0178] It should be understood by those skilled in the art that the embodiments of the present application can be implemented in the form of methods and devices (equipment or system), or computer-readable storage media. Therefore, the present application may adopt a complete hardware implementation, a complete software implementation, or an implementation combining software and hardware. Moreover, the present application may adopt the form of a computer-readable storage medium implemented on one or more computer-usable storage media (including but not limited to disk storage, read-only compact disk storage (CD-ROM), optical storage, etc.) containing computer-usable program codes.
[0179] The present application is described with reference to the flowchart and / or block diagram of the method, device (equipment or system) and computer-readable storage medium according to the implementation mode of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0180] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, wherein the instruction device implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0181] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0182] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0183] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory (Flash RAM). Memory is an example of a computer-readable medium.
[0184] Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory, read-only memory, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. In addition, although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. In addition, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple sub-steps.
[0185] Although the spirit and principle of the present application have been described above with reference to several specific embodiments, it should be understood that the present application is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined. The present application is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.
Claims
1. A method for correcting metal artifacts in CT images, characterized in that: The method comprises: Performing image segmentation on the original image by K-means clustering to obtain a metal image and a non-metal image corresponding to the original image; the original image includes metal artifacts, the metal image includes image content corresponding to the metal area in the original image, and the non-metal image includes image content in the original image except the metal area; respectively determining a metal sinusoidal projection corresponding to the metal image and a metal-free sinusoidal projection corresponding to the metal-free image; Performing M iterative corrections on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, m is an integer, M>m≥1; The iterative correction of the artifact information in the metal sinusoidal projection M times to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection includes: The artifact information in the metal sinusoidal projection is iteratively corrected M times by the following formula to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection: in, represents the intermediate metal sinusoidal projection corresponding to the m+1th correction, represents the intermediate metal sinusoidal projection corresponding to the mth correction, represents the weight matrix, A mask representing the metallic sinusoidal projection, represents the Radon transform processing, a mask representing the metal image, represents the partial derivative of the total variation norm; Determined by the following formula : in, Indicates the first Row and The pixel value of the pixel point corresponding to the column, Indicates the first Row and +1 column corresponds to the pixel value of the pixel point, Indicates the first +1 line and The pixel value of the pixel corresponding to the column, Indicates the first Row and -1 column corresponds to the pixel value of the pixel point, Indicates the first +1 line and -1 column corresponds to the pixel value of the pixel point, Indicates the first -1 row and The pixel value of the pixel corresponding to the column, Indicates the first -1 row and +1 column corresponds to the pixel value of the pixel point, Avoid division by zero for very small positive numbers; The corrected metal sinusoidal projection and the metal-free sinusoidal projection are reconstructed to obtain a corrected image corresponding to the original image.
2. The method according to claim 1, characterized in that: The method further comprises: The weight matrix is determined by the following formula : in, represents the relaxation factor, Indicates normalizing the matrix. Represents the metallic sinusoidal projection.
3. The method according to claim 1, characterized in that The method of performing image segmentation on the original image by using a K-means clustering method to obtain a metal image and a metal-free image corresponding to the original image includes: Each pixel point of the original image is divided into K categories through multiple clustering; for the first clustering of the multiple clustering, the K pixel points in the original image are determined as K initial clustering centers, and each pixel point in the original image is divided into K initial categories according to the distance between each pixel point in the original image and the K initial clustering centers, and the K initial clustering centers correspond to the K initial categories one by one. For the kth initial category among the K initial categories, the distance between the pixel point in the kth initial category and the corresponding initial clustering center is less than the distance with other initial clustering centers, and K secondary clustering centers are determined by the mean of the K initial categories, so as to perform the next clustering according to the K secondary clustering centers; the clustering centers corresponding to the K categories tend to be stable after the multiple clustering; wherein K is an integer, K≥1, and k is an integer, K>k≥1; Determine the pixel means corresponding to the K categories respectively; According to the category with the maximum pixel mean among the K categories, a metal image corresponding to the original image is obtained; according to the categories other than the category with the maximum pixel mean among the K categories, a non-metal image corresponding to the original image is obtained.
4. The method according to claim 3, characterized in that: The method further comprises: For the nth period, determine the K value corresponding to the nth period, and perform multiple clustering on the original image into K categories based on the K value corresponding to the nth period; wherein n is an integer, n>1; Determine the pixel means corresponding to the K categories corresponding to the nth period; If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the (n-1)th period satisfies the difference threshold, the K value corresponding to the nth period is output, so as to perform image segmentation on the original image based on the K value corresponding to the nth period; If the difference between the maximum pixel mean corresponding to the nth period and the maximum pixel mean corresponding to the n-1th period does not meet the difference threshold, the K value corresponding to the nth period is increased by one to determine the K value corresponding to the n+1th period.
5. The method according to claim 1, characterized in that: The step of respectively determining the metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image comprises: The metal sinusoidal projection corresponding to the metal image and the metal-free sinusoidal projection corresponding to the metal-free image are respectively determined by Radon transform.
6. A metal artifact correction device for CT images, characterized in that: The device comprises: an obtaining unit, configured to perform image segmentation on the original image by means of K-means clustering to obtain a metal image and a metal-free image corresponding to the original image; the original image includes metal artifacts, the metal image includes image content corresponding to a metal region in the original image, and the metal-free image includes image content in the original image except for the metal region; A determination unit, configured to respectively determine a metal sinusoidal projection corresponding to the metal image and a metal-free sinusoidal projection corresponding to the metal-free image; A correction unit, configured to perform M iterative corrections on the artifact information in the metal sinusoidal projection to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection; for the mth correction in the M iterative corrections, the artifact information included in the intermediate metal sinusoidal projection corresponding to the m+1th correction is less than the artifact information included in the intermediate metal sinusoidal projection corresponding to the mth correction, wherein M is an integer, M>1, m is an integer, M>m≥1; The correction unit is used to perform M iterations of correction on the artifact information in the metal sinusoidal projection by using the following formula to obtain a corrected metal sinusoidal projection corresponding to the metal sinusoidal projection: in, represents the intermediate metal sinusoidal projection corresponding to the m+1th correction, represents the intermediate metal sinusoidal projection corresponding to the mth correction, represents the weight matrix, A mask representing the metallic sinusoidal projection, represents the Radon transform processing, a mask representing the metal image, represents the partial derivative of the total variation norm; Determined by the following formula : in, Indicates the first Row and The pixel value of the pixel point corresponding to the column, Indicates the first Row and +1 column corresponds to the pixel value of the pixel point, Indicates the first +1 line and The pixel value of the pixel point corresponding to the column, Indicates the first Row and -1 column corresponds to the pixel value of the pixel point, Indicates the first +1 line and -1 column corresponds to the pixel value of the pixel point, Indicates the first -1 row and The pixel value of the pixel point corresponding to the column, Indicates the first -1 row and +1 column corresponds to the pixel value of the pixel point, Avoid division by zero for very small positive numbers; A reconstruction unit is used to reconstruct the corrected metal sinusoidal projection and the metal-free sinusoidal projection to obtain a corrected image corresponding to the original image.
7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, a metal artifact correction method for CT images as described in any one of claims 1 to 5 is performed.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the metal artifact correction method for CT images according to any one of claims 1 to 5 is executed.
9. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, performs the metal artifact correction method for CT images according to any one of claims 1 to 5.
