A Noise Suppression Algorithm for Medical Images
By using 3D Gaussian filtering, noise standard deviation estimation and adaptive NLM filtering in medical image processing, the problem of poor noise suppression in 3D images is solved, and effective denoising and image edge protection in 3D space are achieved. Effect.
Patent Information
- Application Number
- CN202110433137.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-22
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-04-22
AI Technical Summary
The existing technology has poor noise suppression effect when processing 3D medical images. Artifacts are prone to occur when converting 2D images into 3D, and parameter selection is sensitive, which requires long time-consuming deep learning methods and parameter-sensitive transformation domain denoising. This method is difficult to effectively solve the noise problem of three-dimensional images.
A medical image noise suppression algorithm including 3-dimensional Gaussian filtering, noise standard deviation estimation, gradient mode image threshold transformation and adaptive NLM filtering is used to obtain the difference image through 3-dimensional Gaussian filtering and noise standard deviation estimation, combining the gradient mode image and Adaptive NLM filtering is performed on the noise standard deviation to ensure effective denoising and protection of image edges in three-dimensional space.
This algorithm makes full use of three-dimensional information, maintains image spatial resolution, and considers image gradient information in the adaptive process, significantly improving the noise suppression effect of three-dimensional medical images, avoiding the appearance of artifacts, and being more flexible in parameter settings.
Smart Images

Figure CN113129235B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical imaging technology, and in particular to a medical digital X-ray image noise suppression algorithm. Background Art
[0002] In the past two decades, X-ray computed tomography technology has developed rapidly, and the medical field has also raised the requirements for image quality. Noise is inevitable in medical images. The current noise suppression algorithms are mainly divided into four categories: the first category: spatial domain filtering, mainly represented by mean filtering, median filtering, Gaussian filtering, bilateral filtering, NLM, BM3D, etc., the second category: transform domain filtering, mainly wavelet threshold denoising, Fourier transform, the third category: total variation denoising and partial differential equation denoising. The fourth category: deep learning. Specifically, since the fourth category takes a long time, the denoising effects of the third and second categories are sensitive to parameter selection, so we choose the first category. In view of its denoising effect and running time, we choose the NLM denoising algorithm.
[0003] Most existing image denoising technologies are considered trade secrets by major companies and are not easily disclosed. Most of the existing public technologies only give two-dimensional denoising results, which are of reference significance for three-dimensional data processing. Most existing technologies process two-dimensional data. In the process from two-dimensional to three-dimensional, only one dimension is added to the surface. However, in fact, adding one dimension brings challenges to traditional two-dimensional denoising. Often, images that appear to have good noise suppression effects in two dimensions may have new artifacts in three-dimensional space. Summary of the invention
[0004] In view of the problems existing in the background technology, the present invention is devoted to studying a denoising algorithm for 3D data (but not limited to 3D, also applicable to 2D), and the technical solution of the present invention is as follows:
[0005] A medical image noise suppression algorithm comprises the following steps:
[0006] S1, perform 3D Gaussian filtering on the input image P0 to obtain P1;
[0007] S2, using the difference image D0 = P0-P1, estimate the noise standard deviation to obtain σ;
[0008] S3, calculate the gradient modulus image T1 for image P0, and then use the threshold function H(T1) to transform to obtain image H0;
[0009] S4. Using the image H0 and the noise standard deviation σ, perform adaptive NLM filtering on the image P0 to obtain the filtering result P2.
[0010] Furthermore, the S1 specifically includes: loading the CT image into the memory to obtain P0, and then performing a 3D Gaussian filter on P0 to obtain P1,
[0011]
[0012] in, is the wave radius vector, which needs to be set manually.
[0013] T stands for transpose;
[0014]
[0015] The filter kernel is defined as follows:
[0016]
[0017]
[0018]
[0019] Furthermore, the step S2 specifically includes: estimating the noise standard deviation from the differential image D0=P0-P1 to obtain σ,
[0020] D0(i,j,k)=P0(i,j,k)-P1(i,j,k)
[0021]
[0022] N is the total number of pixels in the image,
[0023] Furthermore, the step S3 specifically includes: calculating the gradient modulus of P1 to obtain image T1, performing threshold transformation H(T1) on T1 to obtain H0,
[0024]
[0025] When the subscript is out of bounds, it is expanded using mirror symmetry.
[0026] Furthermore, the threshold conversion function H(x) may also be in the following form:
[0027] H(x)=1+A log(1+B(1-e -kt ))+Ct
[0028] Among them, A, B, C, and k are all constants that are considered to be set.
[0029] Furthermore, the threshold conversion function H(x) may also be in the following form:
[0030]
[0031] Parameter k>0A controls the maximum magnification, and B controls the growth rate change.
[0032] The parameter selection principles are as follows:
[0033] is the magnification of the filter radius in the air area, and factor1 is the maximum magnification of the filter radius in the edge area.
[0034] The air area is a flat area of the image, and the edge area is an area with a large image gradient modulus.
[0035] k controls the threshold. When the image gradient modulus is greater than a certain value, the filter radius needs to be reduced.
[0036] B controls the filter radius scaling rate.
[0037] In one step, the step S4 specifically includes: combining H0 and σ to perform 3D NLM adaptive filtering on the image P0 to obtain P2,
[0038]
[0039] where p,q∈N 3 , represents the three-dimensional position vector of the image pixel,
[0040] p=(p1,p2,p3), q=(q1,q2,q3),
[0041] U(p,r):{q∈N 3 |||pq||=max(|p1-q1|,|p2-q2|,|p3-q3|)≤r},
[0042]
[0043]
[0044] r is the search radius, f is the neighborhood radius, h is the filter radius,
[0045] r,f are generally in vector form, representing the inconsistency of the correlation of the actual image in three dimensions. In this case, the corresponding formula is modified accordingly.
[0046] The medical image noise suppression algorithm of the present invention has the following beneficial effects:
[0047] 1. Fully consider the 3D information of medical 3D images and the correlation and differences between data in each dimension.
[0048] 2. Parameter settings are based on the spatial resolution of medical images, which can maximize the maintenance of image spatial resolution.
[0049] 3. The adaptive process takes into account the gradient information of the image and is better than general algorithms in maintaining image edges. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a schematic diagram of the medical image noise suppression algorithm flow of the present invention;
[0051] Figure 2 An image of a threshold transformation function in the medical image noise suppression algorithm of the present invention;
[0052] Figure 3 An image of a second form of a threshold transformation function in the medical image noise suppression algorithm of the present invention;
[0053] Figure 4 An image of a threshold transformation function of the third form in the medical image noise suppression algorithm of the present invention;
[0054] FIG. 5(1) and FIG. 5(2) are diagrams showing the denoising results of the medical image noise suppression algorithm of the present invention on a 2D image;
[0055] FIG6(1) and FIG6(2) are diagrams showing the denoising results of the medical image noise suppression algorithm of the present invention in a three-dimensional image. DETAILED DESCRIPTION
[0056] The following is combined with Figure 1 The present invention is further described in detail in the following 6 and 7 embodiments. Figure 1 is a schematic diagram of the medical image noise suppression algorithm flow of the present invention, Figures 2 to 4 These are images of three threshold transformation functions used in the medical image noise suppression algorithm of the present invention. The following examples are given to explain them in detail:
[0057] Embodiment 1
[0058] A medical image noise suppression algorithm is applied to three-dimensional medical image noise reduction technology (also applicable to two-dimensional images), and includes the following steps in sequence:
[0059] S1, perform 3D Gaussian filtering on the input image P0 to obtain P1;
[0060] S2, using the difference image D0 = P0-P1, estimate the noise standard deviation to obtain σ;
[0061] S3, calculate the gradient modulus image T1 for image P0, and then use the threshold function H(T1) to transform to obtain image H0;
[0062] S4. Using the image H0 and the noise standard deviation σ, perform adaptive NLM filtering on the image P0 to obtain the filtering result P2.
[0063] Step S1 specifically includes: loading the CT image into the memory to obtain P0, and then performing a 3D Gaussian filter on P0 to obtain P1.
[0064]
[0065] in, is the wave radius vector, which needs to be set manually.
[0066] T stands for transpose;
[0067]
[0068] The filter kernel is defined as follows:
[0069]
[0070]
[0071]
[0072] Step S2 specifically includes: from the difference image D0=P0-P1, the noise standard deviation is estimated to obtain σ, D0(i, j, k)=P0(i, j, k)-P1(i, j, k)
[0073]
[0074] N is the total number of pixels in the image,
[0075] Step S3 specifically includes: calculating the gradient modulus of P1 to obtain image T1, performing threshold transformation H(T1) on T1 to obtain H0,
[0076]
[0077] When the subscript is out of bounds, it is expanded using mirror symmetry. For example, P1(-1, j) = P1(1, j)
[0078] H(x)=A(1-e -kt )+1
[0079] Among them, A and k are control parameters. A controls the filter radius and the amplification radius.
[0080] k controls the gradient modulus square threshold, which needs to be determined based on image T1.
[0081] In this embodiment, the image of the first threshold conversion function can be used at this time, see the attached Figure 2 Image of the threshold transformation function in the medical image noise suppression algorithm. In the above step 3, the formula A controls the scaling factor of the filter radius (the actual scaling factor of the filter radius is k represents the inverse of the threshold of the gradient modulus. If the gradient modulus of a pixel is greater than the threshold, This means that the pixel is an edge point or a corner point, and the filter radius needs to be reduced to protect the geometric characteristics of the point from being smoothed out.
[0082] In this step three, the threshold conversion function H(x) can also be in the following form:
[0083] H(x)=1+A log(1+B(1-e -kt ))+Ct
[0084] Among them, A, B, C, and k are all constants that are considered to be set.
[0085] The function graph is shown in the attached Figure 3 As shown in the image of the second form of the threshold transformation function in the medical image noise suppression algorithm, these threshold transformation functions H(x) can change the shape of the function by adjusting the parameters. The above functions all have the following properties:
[0086] First, near x=0, H(x) will quickly increase the function value, thereby ensuring that as many details as possible are preserved where the gradient is not 0.
[0087] Second, after the gradient value is very large, the function value tends to be stable (such as the first conversion function) or grows slowly (such as the second conversion function, the value of C can be adjusted to control the function growth rate. When C = 0, the function has the same change trend as the first conversion function), ensuring that the filter radius at the pixel point with a large gradient is not too small.
[0088] Third, the threshold can be adjusted by controlling the parameters. The k factor in the exponential part of both conversion functions is used to control the threshold.
[0089] Fourth, the growth trend of the function can be controlled by adjusting the parameters. In the first function, A is used to control the maximum scaling factor, and in the second function, A and B are also used to control the maximum scaling factor. In the second conversion function, B can also be used to control the lifting rate near x=0.
[0090] The threshold conversion function must increase rapidly at x=0 and then flatten out after increasing to a certain extent.
[0091] In this embodiment, step three may also use an image of a threshold transformation function in a third form, and the image of the threshold transformation function is as shown in the attached figure. Figure 4 As shown, the form is as follows:
[0092]
[0093] Parameter k>0A controls the maximum magnification, and B controls the growth rate change.
[0094] The parameter selection principles are as follows:
[0095] The filter radius magnification of the air area (flat area of the image)
[0096] Factor 1 is the maximum filter radius magnification of the edge area (the area with large image gradient modulus)
[0097] k controls the threshold. When the image gradient modulus is greater than a certain value, the filter radius needs to be reduced.
[0098] B controls the filter radius scaling rate.
[0099] In this step three, three forms of function expression have been shown, and the specific parameter values are in the attached Figure 2 To Attachment Figure 4 The horizontal axis is the X value, and the vertical axis is the value of H(x) in the corresponding function form. The parameter selection has been explained in the third function definition above, and the other two functions are similar. Figure 3 In the figure, the curve is the function curve, and the straight line shows the asymptote of the function to clearly derive the relevant slope. These functions can all be used as transfer functions. Here we use the first transfer function. Only some transfer functions are exemplified here, and other transfer functions with similar (switch) properties are also available.
[0100] Step S4 specifically includes:
[0101] Combine H0 and σ to perform 3D NLM adaptive filtering on image P0 to obtain P2.
[0102]
[0103] where p,q∈N 3 , represents the three-dimensional position vector of the image pixel, p=(p1,p2,p3),q=(q1,q2,q3),
[0104]
[0105] r is the search radius, f is the neighborhood radius, and h is the filter radius.
[0106] r and f are generally in vector form, representing the inconsistency of the correlation of the actual image in three dimensions.
[0107] At this time, the corresponding formula can be modified accordingly.
[0108] In this embodiment, combined with the characteristics of medical images, we can also set r as the spatial resolution, f=r, h=factor1*σ, factor1 is generally taken as 0.1~10.
[0109] Experimental results display
[0110] The algorithm of the present invention is applicable to both 2D and 3D image data. The following is a diagram showing the denoising results of the algorithm of the present invention in the case of a 2D image: (See Figure 5 (1) and Figure 5 (2) for the denoising results of the medical image noise suppression algorithm of the present invention in a 2D image) for reference by those skilled in the art.
[0111] When applied to 3D image data, please refer to Figures 6(1) and 6(2), which are the denoising effect diagrams of the medical image noise suppression algorithm of the present invention on 3D images for reference by those skilled in the art.
[0112] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A medical image noise suppression algorithm, characterized in that: The steps include: S1, perform 3D Gaussian filtering on the input image P0 to obtain P1; S2, using the difference image D0 = P0-P1, estimate the noise standard deviation to obtain σ; S3, calculate the gradient modulus image T1 for image P0, and then use the threshold function H(T1) to transform to obtain image H0; The step S3 specifically includes: calculating the gradient modulus of P1 to obtain image T1, performing threshold transformation H(T1) on T1 to obtain H0, When the subscript is out of bounds, it is expanded using mirror symmetry; The threshold conversion function H(t) can also be in the following form: H(t)=1+Alog(1+B(1-e -kt ))+Ct, Among them, A, B, C, and k are all artificially set constants; The threshold conversion function H(t) can also be in the following form: Parameter k>0A controls the maximum magnification, and B controls the growth rate change; The parameter selection principles are as follows: Factor1 is the magnification of the air area filter radius. Factor1 is the maximum filter radius magnification of the edge area. The air area is a flat area of the image, and the edge area is an area with a large image gradient modulus. k controls the threshold. When the image gradient modulus is greater than a certain value, the filter radius needs to be reduced. S4, using the image H0 and the noise standard deviation σ, performing adaptive NLM filtering on the image P0 to obtain a filtering result P2, the step S4 specifically includes: Combine H0 and σ to perform 3D NLM adaptive filtering on image P0 to obtain P2. where p,q∈N 3 , represents the three-dimensional position vector of the image pixel, p=(p1,p2,p3), q=(q1,q2,q3), U(p,r):{q∈N 3 |||p-q||=max(|p1-q1|,|p2-q2|,|p3-q3|)≤r}, r is the search radius, f is the neighborhood radius, h is the filter radius, r,f are generally in vector form, representing the inconsistency of the correlation of the actual image in three dimensions. In this case, the corresponding formula is modified accordingly.
2. The medical image noise suppression algorithm according to claim 1, characterized in that: The step S1 specifically includes: loading the CT image into the memory to obtain P0, and then performing a 3D Gaussian filter on P0 to obtain P1, in, is the filter radius vector, which needs to be set manually. T stands for transpose; The filter kernel is defined as follows:
3. The medical image noise suppression algorithm according to claim 1, characterized in that: The step S2 specifically includes: estimating the noise standard deviation from the differential image D0=P0-P1 to obtain σ, D0(i, j, k)=P0(i, j, k)-P1(i, j, k), N is the total number of pixels in the image,
Citation Information
Patent Citations
An image processing method and device
CN101018290A
Image super-resolution method of utilizing image block classification sparse representation and self-adaptive aggregation
CN103150713A
Self-adaptive 3D (Three-Dimensional) noise reduction method for low signal-to-noise ratio video under fixed scene
CN103179325A
Principal component analysis collaborative filtering method for image multi-direction morphological structure grouping
CN103208097A
Fractional order adaptive coherent speckle filtering method based on image form fuzzy membership degree
CN103236046A
