Medical image fusion method and device, terminal equipment and computer readable storage medium

By decomposing CT images and SPECT images into detailed and smooth images, and using edge detection and reflection image feature information for medical image fusion, the problem of edge blur and color distortion in medical image fusion is solved, and the clarity and color accuracy of the image are improved. sex.

CN118747714APending Publication Date: 2024-10-08GUANGZHOU UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410638818.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Problems of edge blur and color distortion often occur during medical image fusion. Existing methods based on the spatial domain may cause edge information blur and color information shift when processing images.

Method used

By decomposing CT images and SPECT images into detail images and smooth images containing edge features, and using the structural tensor second-order matrix model and color space transformation model to extract edge saliency and brightness channel information of the image, edge detection and reflection images are combined Feature information, construct fusion weights for image fusion, and generate the final fused image.

Benefits of technology

Effectively retain and control the edge characteristics and color details of the image, reduce the effects of edge blur and color distortion, and improve the clarity and color accuracy of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747714A_ABST
    Figure CN118747714A_ABST
Patent Text Reader

Abstract

The invention discloses a medical image fusion method and apparatus, a terminal device and a computer readable storage medium. The method comprises the steps of obtaining a registered CT image and an SPECT image; decomposing the CT image into a detail image containing edge features and a smooth image; decomposing the SPECT image into a detail image containing brightness channel information and a smooth image; performing edge detection on all the smooth images, and constructing a fusion weight according to an edge detection result to perform fusion to obtain a fused smooth image; selecting reflection image feature information with a relatively large absolute value in all detail images to construct a fusion weight for fusion, and obtaining a fused detail image; and fusing the fused smooth image and the fused detail image to generate a final fused image. By implementing the medical image fusion method provided by the invention, the problems of edge blurring and color distortion based on medical image fusion in a spatial domain are solved, and the medical image fusion quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a medical image decomposition method and a medical image fusion method. Background Art

[0002] In recent years, image fusion methods can be mainly divided into two categories: fusion methods based on transform domain and fusion methods based on spatial domain. Fusion methods based on transform domain are to perform some transformation on the source image, such as discrete two-dimensional wavelet transform, contourlet transform, shearlet transform, pyramid transform and other transformation tools. This type of fusion method is divided into three steps. First, the image is decomposed into low-frequency sub-band images and high-frequency sub-band images, and then the transformed low-frequency image and high-frequency image are combined according to certain rules. Finally, some inverse transformation such as discrete two-dimensional wavelet inverse transform, contourlet inverse transform, shearlet inverse transform, pyramid inverse transform, etc. are performed to obtain the output fusion image. This method can make full use of the characteristics of the transformation tool and frequency domain information to achieve image smoothing and detail retention and enhancement. In contrast, the fusion method based on spatial domain directly processes the pixel gray value of the image, and does not require transformation and inverse transformation, so it takes less time. Common fusion methods based on spatial domain include principal component analysis, weighted average method, variational model method, structural texture representation method, etc. These methods usually use filter windows of different scales to decompose the image into smooth images and detail images to achieve fusion effects.

[0003] Since the spatial domain-based method directly processes the pixel grayscale value, the edge information may be blurred when smoothing and enhancing the details of the image, resulting in edge blurring. In addition, some color distortion problems may be introduced when decomposing the image using filter windows of different sizes. Summary of the invention

[0004] The embodiments of the present invention provide a medical image fusion method, apparatus, terminal device and computer-readable storage medium, which can solve the edge blur and color distortion problems occurring in the medical image fusion process.

[0005] An embodiment of the present invention provides a medical image fusion method, comprising:

[0006] Acquire the registered CT image and SPECT image;

[0007] Decomposing the CT image into a first detail image containing edge features and a first smooth image;

[0008] Decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image;

[0009] Performing edge detection on the first smoothed image and the second smoothed image, constructing a smoothed image fusion weight according to the edge detection result, and fusing the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image;

[0010] Extracting the reflected image feature information of the first detail image and the second detail image through the pre-constructed intrinsic image decomposition optimization model, selecting the reflected image feature information with a larger absolute value to construct the detail image fusion weight, and fusing the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image;

[0011] The fused smooth image and the fused detail image are fused to generate the final fused image.

[0012] Furthermore, the CT image is decomposed into a first detail image containing edge features and a first smooth image, specifically:

[0013] Establish the structure tensor second-order matrix model S 1 ;

[0014] The second-order structure tensor matrix of each pixel is calculated through the second-order structure tensor matrix model to obtain two eigenvalues;

[0015] The edge saliency information of the CT image is extracted by using arithmetic operation of two eigenvalues, thereby obtaining a first detail image;

[0016] The first detail image is subtracted from the CT image to obtain a first smooth image.

[0017] Further, the SPECT image is decomposed into a second detail image containing brightness channel information and a second smooth image, specifically:

[0018] Establish color space transformation model and adaptive threshold segmentation model;

[0019] The color space transformation model is used to extract the brightness channel image of the SPECT image, the brightness channel image is calculated by the adaptive threshold segmentation model to obtain an adaptive threshold, and the brightness channel image is binarized by using the adaptive threshold to obtain a binarized image;

[0020] The binarized image replaces the brightness channel image before updating, and is converted into a second detail image in a spatial RGB format through a color space transformation model;

[0021] The second detail image is subtracted from the SPECT image to obtain a second smooth image.

[0022] Furthermore, the adaptive threshold is calculated through the adaptive threshold segmentation model, which is:

[0023] Initialize the inter-class variance of the adaptive threshold segmentation model to 0, and initialize the adaptive threshold to 0;

[0024] Repeat the adaptive threshold update operation until the inter-class variance reaches the maximum value, and calculate the final adaptive threshold according to the inter-class variance that reaches the maximum value;

[0025] Further, the adaptive threshold update operation includes:

[0026] Get the current adaptive threshold and the current inter-class variance;

[0027] The brightness channel image is divided into a low grayscale image and a high grayscale image according to the current adaptive threshold; wherein the grayscale values ​​of all pixels in the low grayscale image are less than or equal to the current adaptive threshold, and the grayscale values ​​of all pixels in the high grayscale image are greater than the current adaptive threshold;

[0028] Count the number of pixels in low grayscale images and the number of pixels in high grayscale images;

[0029] According to the number of pixels of the low gray level image and the number of pixels of the high gray level image, respectively calculate the ratio of the pixels of the low gray level image to the total number of pixels of the brightness channel image, the ratio of the pixels of the high gray level image to the total number of pixels of the brightness channel image, the average gray value of the low gray level image, and the average gray value of the high gray level image, and respectively obtain the low gray level pixel ratio, the high gray level pixel ratio, the low gray level average gray value, and the high gray level average gray value;

[0030] The first inter-class variance is calculated according to the low gray level pixel ratio, the high gray level pixel ratio, the low gray level average gray value and the high gray level average gray value;

[0031] The first inter-class variance is compared with the current inter-class variance. If the first inter-class variance is greater than the current inter-class variance, the current inter-class variance is updated to the first inter-class variance when the adaptive threshold update operation is performed next time, and the current adaptive threshold when the adaptive threshold update operation is performed next time is calculated according to the first inter-class variance.

[0032] If the first inter-class variance is less than or equal to the current inter-class variance, it is determined that the current inter-class variance has achieved the maximum value.

[0033] Further, edge detection is performed on the first smoothed image and the second smoothed image, a smoothed image fusion weight is constructed according to the edge detection result, and the first smoothed image and the second smoothed image are fused according to the smoothed image fusion weight to obtain a fused smoothed image, specifically:

[0034] Performing edge detection on the first smoothed image and the second smoothed image according to a preset edge detection operator to obtain a first smoothed image weight corresponding to the first smoothed image and a second smoothed image weight corresponding to the second smoothed image;

[0035] Compare the absolute values ​​of the first smoothed image weight and the second smoothed image weight, and select the larger absolute value as the smoothed image fusion weight;

[0036] The first smoothed image and the second smoothed image are fused according to the smoothed image fusion weight to obtain a fused smoothed image.

[0037] Furthermore, through the pre-constructed intrinsic image decomposition optimization model, the reflected image feature information of the first detail image and the second detail image is extracted, and the reflected image feature information with a larger absolute value is selected to construct the detail image fusion weight, and the first detail image and the second detail image are fused according to the detail image fusion weight to obtain the fused detail image, specifically:

[0038] Establish an intrinsic image decomposition optimization model, construct an energy function, and obtain the reflection image and illumination image by minimizing the energy function;

[0039] Calculate a first detail image weight and a second detail image weight according to the reflection image and the illumination image;

[0040] Compare the absolute values ​​of the first detail image weight and the second detail image weight, and select the larger absolute value as the detail image fusion weight;

[0041] The first detail image and the second detail image are fused according to the detail image fusion weight to obtain a fused detail image.

[0042] Based on the above method embodiment, the present invention provides a corresponding device embodiment, including: an image acquisition module, a CT image decomposition module, a SPECT image decomposition module, a smooth image fusion module, a detail image fusion module, and an image reconstruction module;

[0043] An image acquisition module, used to acquire the registered CT image and SPECT image;

[0044] A CT image decomposition module, used for decomposing the CT image into a first detail image containing edge features and a first smooth image;

[0045] A SPECT image decomposition module, used for decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image;

[0046] a smoothed image fusion module, configured to perform edge detection on the first smoothed image and the second smoothed image, construct a smoothed image fusion weight according to the edge detection result, and fuse the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image;

[0047] A detail image fusion module is used to extract the reflection image feature information of the first detail image and the second detail image through a pre-constructed intrinsic image decomposition optimization model, select the reflection image feature information with a larger absolute value to construct a detail image fusion weight, and fuse the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image;

[0048] The image reconstruction module is used to fuse the fused smooth image and the fused detail image to generate a final fused image.

[0049] Based on the above-mentioned method embodiment, the present invention provides a corresponding terminal device embodiment, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the steps of the medical image fusion method described in the present invention are implemented.

[0050] Based on the above method embodiment, the present invention provides a corresponding computer-readable storage medium embodiment, including: a stored computer program, which controls the device where the computer-readable storage medium is located to execute the steps of the medical image fusion method described in the present invention when the computer program is running.

[0051] Compared with the prior art, the beneficial effects of the embodiment of this solution are:

[0052] In the process of medical image fusion, the present invention first decomposes the CT image and the SPECT image into a detail image and a smooth image. The CT image is generated by X-ray imaging technology and usually has a high spatial resolution. By decomposing the CT image, a detail image and a smooth image containing edge features can be obtained. The detail image highlights the edge features in the image, while the smooth image shows an overall smooth trend. The SPECT image is generated by single photon emission computed tomography technology, which records the distribution of radioactive isotopes in the human body and usually has a low spatial resolution. By decomposing the SPECT image, a detail image and a smooth image containing brightness channel information can be obtained. The detail image highlights the brightness changes in the image, while the smooth image shows an overall brightness trend. Therefore, decomposing the CT image and the SPECT image into a detail image and a smooth image can separate the detail information and the smooth information of the image, and better retain and control various image features. Furthermore, due to image smoothing or resolution limitation, the edge information is not clear and sharp enough, and blurring occurs. To solve this problem, the present invention adopts an improved edge-preserving local energy fusion rule, uses the smoothed image as input for edge detection, and adjusts the intensity of the smoothed image according to the detection result to retain the edge information. At the same time, in order to solve the problem of offset or distortion of color information in the image during processing, the intrinsic image decomposition optimization model can be used to extract the reflected image feature information in the detail image. By selecting the reflected image feature information with a larger absolute value, the high-frequency details in the image can be highlighted, while reducing the influence of the low-frequency details, so that the important color detail information in the image can be retained after fusion, and the influence of color offset and distortion can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 is a flowchart of a medical image fusion method provided by an embodiment of the present invention;

[0054] Figure 2 is another flowchart of a medical image fusion method provided by an embodiment of the present invention;

[0055] Figure 3 These are CT and SPECT images of metastatic bronchogenic carcinoma;

[0056] Figure 4 It is a comparison of fusion images of LES, CAT, VPLGC methods and the method of the present invention based on a case of metastatic bronchial carcinoma;

[0057] Figure 5 These are CT images and SPECT images of hypertensive encephalopathy;

[0058] Figure 6It is a comparison of fusion images of LES, CAT, VPLGC methods and the method of the present invention based on a case of hypertensive encephalopathy;

[0059] Figure 7 It is a structural schematic diagram of a medical image fusion device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0061] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.

[0062] Embodiment 1:

[0063] like Figure 1 as well as Figure 2 As shown, an embodiment of the present invention provides a medical image fusion method, which at least includes the following steps:

[0064] Step S1: Acquire the registered CT image and SPECT image;

[0065] In one embodiment of the present invention, taking metastatic bronchial carcinoma as an example, a registration algorithm is used to match different source image data at spatial pixel positions to obtain two registered metastatic bronchial carcinoma CT images of different modalities ( Figure 3 (a)) and SPECT images of metastatic bronchial carcinoma ( Figure 3 (b)), by obtaining the registered metastatic bronchial carcinoma CT image and metastatic bronchial carcinoma SPECT image as the input for subsequent image fusion processing.

[0066] Step S2: decomposing the CT image into a first detail image containing edge features and a first smooth image;

[0067] In a preferred embodiment, decomposing the CT image into a first detail image containing edge features and a first smooth image comprises:

[0068] Establish the structure tensor second-order matrix model S 1 :

[0069]

[0070] The second-order matrix of the structure tensor is calculated for each pixel through the second-order matrix model of the structure tensor, and two eigenvalues ​​λ are obtained. 1 ,λ 2 ;

[0071] Using two eigenvalues ​​λ 1 ,λ 2 The following arithmetic operation extracts the edge saliency information of the CT image, thereby obtaining the first detail image

[0072]

[0073] Subtract the first detail image from the CT image to obtain the first smooth image

[0074]

[0075] Among them, I 1 represents the CT image, Gx is the horizontal gradient value of the two-dimensional image, Gy is the vertical gradient value of the two-dimensional image, and α is the weight coefficient;

[0076] In one embodiment of the present invention, the acquired registered metastatic bronchial carcinoma CT image is input into the established structure tensor second-order matrix model S 1 In the figure, the second-order matrix of the structure tensor describes the local structural feature information in the image. By calculating the second-order matrix of the structure tensor, the two eigenvalues ​​λ of the metastatic bronchial carcinoma CT image can be obtained: 1 ,λ 2 The size of the eigenvalue is related to the significance of the edge. Then, the two eigenvalues ​​are used for arithmetic operations to extract the edge significance information of the metastatic bronchial carcinoma CT image and obtain the first detail image corresponding to the metastatic bronchial carcinoma CT image. The first smooth image corresponding to the metastatic bronchial carcinoma CT image is obtained by subtracting the first detail image from the metastatic bronchial carcinoma CT image.

[0077] Step S3: decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image;

[0078] In a preferred embodiment, decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image comprises:

[0079] Establish color space transformation model and adaptive threshold segmentation model;

[0080] The color space transformation model is used to extract the brightness channel image of the SPECT image. The brightness channel image is calculated by the adaptive threshold segmentation model to obtain an adaptive threshold. The brightness channel image is binarized using the adaptive threshold to obtain a binarized image, namely:

[0081]

[0082] The binarized image replaces the brightness channel image before updating, and is converted into the second detail image in spatial RGB format through the color space transformation model, namely:

[0083]

[0084] Subtract the second detail image from the SPECT image to obtain the second smooth image

[0085]

[0086] Among them, I 2 represents the SPECT image, represents the binarized image, represents the brightness channel image extracted by the color space transformation model, represents the adaptive threshold, represents the second smoothed image, Represents the second detail image.

[0087] In a preferred embodiment, the adaptive threshold is obtained by calculating the adaptive threshold segmentation model, including:

[0088] Initialize the inter-class variance of the adaptive threshold segmentation model to 0, and initialize the adaptive threshold to 0;

[0089] Repeat the adaptive threshold update operation until the inter-class variance reaches the maximum value, and calculate the final adaptive threshold according to the inter-class variance that reaches the maximum value;

[0090] Further, the adaptive threshold update operation includes:

[0091] Get the current adaptive threshold and the current inter-class variance;

[0092] The brightness channel image is divided into a low grayscale image and a high grayscale image according to the current adaptive threshold; wherein the grayscale values ​​of all pixels in the low grayscale image are less than or equal to the current adaptive threshold, and the grayscale values ​​of all pixels in the high grayscale image are greater than the current adaptive threshold;

[0093] Count the number of pixels in low grayscale images and the number of pixels in high grayscale images;

[0094] According to the number of pixels of the low gray level image and the number of pixels of the high gray level image, respectively calculate the ratio of the pixels of the low gray level image to the total number of pixels of the brightness channel image, the ratio of the pixels of the high gray level image to the total number of pixels of the brightness channel image, the average gray value of the low gray level image, and the average gray value of the high gray level image, and respectively obtain the low gray level pixel ratio, the high gray level pixel ratio, the low gray level average gray value, and the high gray level average gray value;

[0095] According to the low gray level pixel ratio, high gray level pixel ratio, low gray level average gray value and high gray level average gray value, the first inter-class variance is calculated, and the calculation formula is as follows:

[0096] The first inter-class variance = low gray level pixel ratio * high gray level pixel ratio * (low gray level average gray value - high gray level average gray value)^2;

[0097] The first inter-class variance is compared with the current inter-class variance. If the first inter-class variance is greater than the current inter-class variance, the current inter-class variance is updated to the first inter-class variance when the next adaptive threshold update operation is performed, and the current adaptive threshold is calculated according to the first inter-class variance when the next adaptive threshold update operation is performed. The calculation formula is as follows:

[0098]

[0099] If the first inter-class variance is less than or equal to the current inter-class variance, it is determined that the current inter-class variance has the maximum value;

[0100] Where L represents the grayscale level of the image, which is usually 256.

[0101] In one embodiment of the present invention, the acquired registered metastatic bronchial carcinoma SPECT image is input into a well-established color space transformation model, which converts the metastatic bronchial carcinoma SPECT image into a color space, and then extracts a brightness channel image; then the obtained brightness channel image is input into a well-established adaptive threshold segmentation model, and the grayscale information of the brightness channel image is calculated, and the image is divided into two parts according to the grayscale value range [0, L-1]: a target image [0, threshold] and a background image [threshold + 1, L-1], wherein L represents the grayscale level of the brightness channel image, and the optimal threshold is obtained as the adaptive threshold by calculating the maximum inter-class variance, and such a threshold is selected to make the difference between the target and the background as large as possible, thereby clearly distinguishing the target and the background in the image; the brightness channel image is binarized using the calculated adaptive threshold to obtain a binarized image, and the binarized image is used as a second detail image of the metastatic bronchial carcinoma SPECT image. The second smooth image corresponding to the metastatic bronchial carcinoma SPECT image is obtained by subtracting the second detail image from the metastatic bronchial carcinoma SPECT image.

[0102] Step S4: performing edge detection on the first smoothed image and the second smoothed image, constructing a smoothed image fusion weight according to the edge detection result, and fusing the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image;

[0103] In a preferred embodiment, edge detection is performed on the first smoothed image and the second smoothed image, a smoothed image fusion weight is constructed according to the edge detection result, and the first smoothed image and the second smoothed image are fused according to the smoothed image fusion weight to obtain a fused smoothed image, including:

[0104] According to the preset edge detection operator Perform edge detection on the first smoothed image and the second smoothed image to obtain the calculation formula of the smoothed image weight The first smoothed image weight corresponding to the first smoothed image is obtained according to the formula And the second smoothed image weight corresponding to the second smoothed image

[0105]

[0106]

[0107] Compare the absolute values ​​of the first smoothed image weight and the second smoothed image weight, and select the larger absolute value as the smoothed image fusion weight;

[0108] The first smoothed image and the second smoothed image are fused by the following formula to obtain a fused smoothed image:

[0109]

[0110] in, represents the smoothed image after fusion, represents the fusion weight of the smoothed image, n represents the input image number, represents the first smoothed image weight, represents the second smoothed image weight, Indicates the gradient of the image, the coefficient λ indicates the degree of information contained, and the coefficient β is used to ensure that the denominator in the fraction is not zero; L E (x, y) means checking the pixel (x, y) area features through a window, μ means the window size, i and j means the distance from the center point (x, y) to the horizontal and vertical pixels respectively. represents the first smoothed image, represents the second smoothed image.

[0111] In one embodiment of the present invention, an edge detection operator is used Edge detection is performed on the first smoothed image and the second smoothed image obtained in steps S2 and S3 to highlight the edge information in the image. In addition, in order to calculate the smoothing weight, a fixed-size window is used to check the pixel area features. According to the pixel values ​​in the window and the edge detection results, the smoothing weight of the first smoothed image can be calculated. and the smoothing weights of the second smoothed image By comparing the smoothing weights of the first smoothed image and the smoothing weights of the second smoothed image The absolute value of the image is taken as the smoothed image fusion weight, and the first smoothed image and the second smoothed image are fused to obtain a fused smoothed image.

[0112] Step S5: extracting the reflected image feature information of the first detail image and the second detail image through the pre-constructed intrinsic image decomposition optimization model, selecting the reflected image feature information with a larger absolute value to construct the detail image fusion weight, and fusing the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image;

[0113] In a preferred embodiment, the reflected image feature information of the first detail image and the second detail image is extracted through a pre-constructed intrinsic image decomposition optimization model, and the reflected image feature information with a larger absolute value is selected to construct a detail image fusion weight, and the first detail image and the second detail image are fused according to the detail image fusion weight to obtain a fused detail image, including:

[0114] Establish an intrinsic image decomposition optimization model and construct the energy function E:

[0115]

[0116] R i =(R ir +R ig +R ib );

[0117] R j =(R jr +R jg +R jb );

[0118] By minimizing the energy function, the reflection image and the illumination image are obtained;

[0119] According to the reflection image and the illumination image, the calculation formula of the detail image weight is obtained:

[0120]

[0121] According to the calculation formula of detail image weight, the first detail image weight corresponding to the first detail image is calculated and the second detail image weight corresponding to the second detail image

[0122] Compare the absolute values ​​of the first detail image weight and the second detail image weight, select the larger absolute value as the detail image fusion weight, and fuse the first detail image and the second detail image using the following formula to obtain the fused detail image:

[0123]

[0124] Where E represents the energy function, R represents the reflection image, L represents the illumination image, I represents the input image, i represents a single pixel, N(i) represents the neighborhood range of the selected single pixel, and P represents the image blocks into which the source image is evenly divided. represents the fusion weight of the detail image, n represents the input image number, represents the first detail image weight, represents the weight of the second detail image, R i Represents the reflectivity of pixel i, R ir , R ig and R ib Respectively represent the reflectivity of pixel i in the R, G, and B bands, R j Represents the reflectivity of any pixel adjacent to pixel i, R jr , R jg and R jb Respectively represent the reflectivity of adjacent pixels in the R, G, and B bands, Represents the weighted sum of the reflectances of adjacent pixels, w ij Represents the weight, which is determined by the angular variance between the selected single pixel i and any pixel j in its neighborhood and the variance between the Y channel component of the selected single pixel i and any pixel j in its neighborhood in the color space YUV model.

[0125] In one embodiment of the present invention, for the first detail image and the second detail image obtained in steps S2 and S3, the reflectivity value R of each pixel is calculated by using the energy function E constructed in the established intrinsic image decomposition optimization model. i , and the weighted average reflectance value of its adjacent pixels ∑ j∈N(i) w ij R jBy minimizing this difference, the reflection image and illumination image of the first detail image and the second detail image can be calculated. According to the obtained reflection image and illumination image, the calculation formula of the fusion weight of the detail image can be obtained. According to the calculation formula of the fusion weight of the detail image, the detail weight of the first detail image can be obtained: and the detail weights of the second detail image Compare the detail weights of the first detail image and the detail weights of the second detail image The absolute value of the first detail image and the second detail image are fused to obtain a fused detail image.

[0126] Step S6: Fusing the fused smooth image and the fused detail image to generate a final fused image;

[0127] In one embodiment of the present invention, the fused smooth image and the fused detail image obtained in steps S4 and S5 are subjected to spatial arithmetic addition of pixel values ​​to generate a final fused image of metastatic bronchogenic carcinoma ( Figure 4 (d)).

[0128] It should be noted that Figure 4 (a)-(c) are fused images obtained based on the local extrema scheme (LES) in the prior art, the cartoon + texture decomposition fusion method (CAT) and the variational pan-sharpening with local gradient constraints (VPLGC) respectively, and are compared with the fused image ( Figure 4 (d)) By comparison, the advantages of the present invention in edge saliency and color restoration can be intuitively obtained.

[0129] In order to further reflect the effect of the present invention, the present invention also uses the above medical image fusion method to CT images of hypertensive encephalopathy ( Figure 5 (a)) and SPECT images ( Figure 5 (b)) are fused to obtain a fused image using the method of the present invention ( Figure 6(d)) is a fused image obtained by combining the local extrema scheme (LES), cartoon+texture (CAT) and variational pan-sharpening with local gradient constraints (VPLGC) in the existing technology. Figure 6 After intuitive comparison of (a)-(c)), it is found that the fused image of the present invention can be obtained ( Figure 6 (d)) In terms of edge saliency, the fused image of the present invention shows clearer and more prominent edge features. Meanwhile, in terms of color restoration, the fused image of the present invention can also better restore the color information in the CT image and the SPECT image.

[0130] By implementing the medical image fusion method shown in the above embodiment of the present invention, the registered CT image and SPECT image can be decomposed into a combination of a detail image and a smooth image; then, the fusion weight of the smooth image is constructed by an improved edge detection operator to retain edge information; at the same time, by selecting the reflection image feature information in the intrinsic image decomposition optimization model to fuse the detail image, high-frequency details are retained and highlighted, while reducing the influence of low-frequency details; finally, the final fused image is generated by spatial pixel value reconstruction. Thus, the edge blur and color distortion problems based on medical image fusion in the spatial domain are solved, the image quality is improved, and the fused image has better edge clarity and color accuracy.

[0131] like Figure 7 As shown, based on the above method embodiment, a corresponding device embodiment is provided;

[0132] An embodiment of the present invention provides a medical image fusion device, comprising: an image acquisition module, a CT image decomposition module, a SPECT image decomposition module, a smooth image fusion module, a detail image fusion module, and an image reconstruction module;

[0133] An image acquisition module, used to acquire the registered CT image and SPECT image;

[0134] A CT image decomposition module, used for decomposing the CT image into a first detail image containing edge features and a first smooth image;

[0135] A SPECT image decomposition module, used for decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image;

[0136] a smoothed image fusion module, configured to perform edge detection on the first smoothed image and the second smoothed image, construct a smoothed image fusion weight according to the edge detection result, and fuse the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image;

[0137] A detail image fusion module is used to extract the reflection image feature information of the first detail image and the second detail image through a pre-constructed intrinsic image decomposition optimization model, select the reflection image feature information with a larger absolute value to construct a detail image fusion weight, and fuse the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image;

[0138] The image reconstruction module is used to fuse the fused smooth image and the fused detail image to generate a final fused image.

[0139] It can be understood that the above-mentioned device item embodiment corresponds to the method item embodiment of the present invention, and it can implement the damaged document image repair method provided by any one of the above-mentioned method item embodiments of the present invention.

[0140] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art may understand and implement the present invention without creative work.

[0141] Based on the above-mentioned embodiment of the medical image fusion method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the medical image fusion method of any embodiment of the present invention is implemented.

[0142] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more module elements may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0143] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0144] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0145] Based on the above method embodiment, another embodiment is provided: another embodiment of the present invention provides a computer-readable storage medium, including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the medical image fusion method described in any one of the above method embodiments of the present invention.

[0146] Wherein, the module / unit integrated in the medical image fusion device / terminal device, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0147] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A medical image fusion method, characterized in that: include: Acquire the registered CT image and SPECT image; Decomposing the CT image into a first detail image containing edge features and a first smooth image; Decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image; Performing edge detection on the first smoothed image and the second smoothed image, constructing a smoothed image fusion weight according to the edge detection result, and fusing the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image; Extracting reflected image feature information of the first detail image and the second detail image through a pre-constructed intrinsic image decomposition optimization model, selecting reflected image feature information with a larger absolute value to construct a detail image fusion weight, and fusing the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image; The fused smooth image and the fused detail image are fused to generate the final fused image.

2. The medical image fusion method according to claim 1, characterized in that: Decomposing the CT image into a first detail image containing edge features and a first smooth image comprises: Establish a second-order matrix model of structural tensor; The second-order structure tensor matrix of each pixel is calculated through the second-order structure tensor matrix model to obtain two eigenvalues; Extracting edge saliency information of CT using arithmetic operation of the two eigenvalues, thereby obtaining a first detail image; The first detail image is subtracted from the CT image to obtain a first smooth image.

3. The medical image fusion method according to claim 1, characterized in that: Decomposing the SPECT image into a second detail image containing brightness channel information and a second smooth image comprises: Establish color space transformation model and adaptive threshold segmentation model; The color space transformation model is used to extract the brightness channel image of the SPECT image, the brightness channel image is calculated by the adaptive threshold segmentation model to obtain an adaptive threshold, and the brightness channel image is binarized by using the adaptive threshold to obtain a binarized image; The binarized image replaces the brightness channel image before updating, and is converted into a second detail image in a spatial RGB format through a color space transformation model; The second detail image is subtracted from the SPECT image to obtain a second smooth image.

4. The medical image fusion method according to claim 3, characterized in that: The adaptive threshold is obtained by calculating the adaptive threshold segmentation model, including: Initialize the inter-class variance of the adaptive threshold segmentation model to 0, and initialize the adaptive threshold to 0; Repeat the adaptive threshold update operation until the inter-class variance reaches the maximum value, and calculate the final adaptive threshold according to the inter-class variance that reaches the maximum value; The adaptive threshold updating operation includes: Get the current adaptive threshold and the current inter-class variance; The brightness channel image is divided into a low grayscale image and a high grayscale image according to the current adaptive threshold; wherein the grayscale values ​​of all pixels in the low grayscale image are less than or equal to the current adaptive threshold, and the grayscale values ​​of all pixels in the high grayscale image are greater than the current adaptive threshold; Count the number of pixels in low grayscale images and the number of pixels in high grayscale images; According to the number of pixels of the low gray level image and the number of pixels of the high gray level image, respectively calculate the ratio of the pixels of the low gray level image to the total number of pixels of the brightness channel image, the ratio of the pixels of the high gray level image to the total number of pixels of the brightness channel image, the average gray value of the low gray level image, and the average gray value of the high gray level image, and respectively obtain the low gray level pixel ratio, the high gray level pixel ratio, the low gray level average gray value, and the high gray level average gray value; Calculating a first between-class variance according to the low gray level pixel ratio, the high gray level pixel ratio, the low gray level average gray value, and the high gray level average gray value; Compare the first inter-class variance with the current inter-class variance, and if the first inter-class variance is greater than the current inter-class variance, update the current inter-class variance to the first inter-class variance when the adaptive threshold update operation is performed next time, and calculate the current adaptive threshold when the adaptive threshold update operation is performed next time according to the first inter-class variance; If the first inter-class variance is less than or equal to the current inter-class variance, it is determined that the current inter-class variance has achieved the maximum value.

5. The medical image fusion method according to claim 1, characterized in that: Performing edge detection on the first smoothed image and the second smoothed image, constructing a smoothed image fusion weight according to the edge detection result, and fusing the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image, including: Performing edge detection on the first smoothed image and the second smoothed image according to a preset edge detection operator to obtain a first smoothed image weight corresponding to the first smoothed image and a second smoothed image weight corresponding to the second smoothed image; Compare the absolute values ​​of the first smoothed image weight and the second smoothed image weight, and select the larger absolute value as the smoothed image fusion weight; The first smoothed image and the second smoothed image are fused according to the smoothed image fusion weight to obtain a fused smoothed image.

6. The medical image fusion method according to claim 1, characterized in that: Extracting reflected image feature information of a first detail image and a second detail image through a pre-constructed intrinsic image decomposition optimization model, selecting reflected image feature information with a larger absolute value to construct a detail image fusion weight, and fusing the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image, including: Establish an intrinsic image decomposition optimization model, construct an energy function, and obtain the reflection image and illumination image by minimizing the energy function; Calculating a first detail image weight and a second detail image weight according to the reflection image and the illumination image; Compare the absolute values ​​of the first detail image weight and the second detail image weight, and select the larger absolute value as the detail image fusion weight; The first detail image and the second detail image are fused according to the detail image fusion weight to obtain a fused detail image.

7. A medical image fusion device, characterized in that: include: An image acquisition module, a CT image decomposition module, a SPECT image decomposition module, a smooth image fusion module, a detail image fusion module, and an image reconstruction module; The image acquisition module is used to acquire the registered CT image and SPECT image; The CT image decomposition module is used to decompose the CT image into a first detail image containing edge features and a first smooth image; The SPECT image decomposition module is used to decompose the SPECT image into a second detail image containing brightness channel information and a second smooth image; The smoothed image fusion module is used to perform edge detection on the first smoothed image and the second smoothed image, construct a smoothed image fusion weight according to the edge detection result, and fuse the first smoothed image and the second smoothed image according to the smoothed image fusion weight to obtain a fused smoothed image; The detail image fusion module is used to extract the reflection image feature information of the first detail image and the second detail image through a pre-constructed intrinsic image decomposition optimization model, select the reflection image feature information with a larger absolute value to construct a detail image fusion weight, and fuse the first detail image and the second detail image according to the detail image fusion weight to obtain a fused detail image; The image reconstruction module is used to fuse the fused smooth image and the fused detail image to generate a final fused image.

8. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the medical image fusion method according to any one of claims 1 to 7 is implemented.

9. A computer-readable storage medium, characterized in that: include: A stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the medical image fusion method according to any one of claims 1 to 7.