Vascular image reconstruction method, device, electronic device and storage medium
Through sliding window segmentation and Gaussian weight map processing, combined with preset model fusion processing, the problem of poor blood vessel image reconstruction results is solved, the distinction between blood vessels, skin, and irrelevant tissues is achieved, and the reconstruction accuracy and automation are improved.
Patent Information
- Application Number
- CN202310005689.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-01-04
AI Technical Summary
Existing vascular image reconstruction methods have poor results when reconstructing non-DSA, CTA, and PC-MRV images, especially due to the high similarity between skin and irrelevant tissues and blood vessels, resulting in poor vascular image reconstruction results and the need for manual intervention.
Sliding window segmentation processing is used, Gaussian weight maps are calculated and voxels are multiplied with the image, a preset model is input for processing, and probability maps and Gaussian weight maps are fused to achieve reconstruction of vascular images.
It effectively distinguishes blood vessels from skin and irrelevant tissues, improves the accuracy and automation of blood vessel image reconstruction, and reduces manual intervention.
Smart Images

Figure CN116309902B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer graphics, and in particular to a method, device, electronic device and storage medium for reconstructing a vascular image. Background Art
[0002] The main examination methods for diagnosing vascular diseases include DSA angiography, CT angiography (CTA), contrast-enhanced magnetic resonance vascular imaging (CE-MRV) and MRI non-contrast vascular imaging (TOF-MRV, PC-MRV, BRAVO-MRV).
[0003] At present, vascular reconstruction mainly includes threshold segmentation, tracking-based methods, and model-based methods. The threshold segmentation method separates blood vessels from the image by selecting a suitable threshold. This method requires frequent manual operations to select a suitable threshold, and due to the uneven brightness of the blood vessels, blood vessels may be discontinuous. The tracking-based method starts from a point in the image and analyzes the pixels orthogonal to the tracking direction to detect the centerline or boundary of the blood vessel. This method requires the user to specify the starting point, end point, and search end condition of the tracking. The model-based method mainly uses a deformable model. This method requires the user to give an initial contour line. The contour line gradually approaches the edge of the target under the promotion of internal and external forces. The main principle is to establish an energy equation based on image information and target features, and complete target extraction through energy optimization.
[0004] The above method has good reconstruction effects on DSA, CTA, and PC-MRV images. However, when reconstructing other vascular images, due to the high similarity between skin and irrelevant tissues and blood vessels, the vascular image reconstruction effect is very poor and cannot meet the doctor's preoperative planning needs. In addition, the reconstruction process requires manual intervention. Summary of the invention
[0005] In view of this, embodiments of the present invention provide a method, device, electronic device and storage medium for reconstructing a vascular image, so as to at least partially solve the above problems.
[0006] According to a first aspect of an embodiment of the present invention, a method for reconstructing a vascular image is provided, comprising: performing segmentation processing on a vascular image by means of a sliding window to obtain a segmented image; calculating and obtaining a Gaussian weight map corresponding to the segmented image; voxel-wise multiplying the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image; inputting the weighted map of the segmented image into a preset model for processing to obtain a probability map of the segmented image; and fusing the probability map of the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image.
[0007] In another implementation of the present invention, segmenting the vascular image by means of a sliding window to obtain a segmented image includes: segmenting the vascular image according to a preset model size by means of a sliding window to obtain a segmented image.
[0008] In another implementation of the present invention, the method further includes: for the blood vessel scanning image, selecting a threshold value that meets the grayscale value of black voxels to obtain a blood vessel scanning image processed by the threshold value.
[0009] In another implementation of the present invention, the method further includes: resampling the threshold-processed vascular scanning image in voxel space to obtain a vascular scanning image with the same voxel spatial resolution; and performing grayscale value normalization processing on the vascular scanning image with the same voxel spatial resolution to obtain a vascular image with the same grayscale value distribution.
[0010] In another implementation of the present invention, the method further includes: classifying and dividing the blood vessels in the vascular image according to their thickness to obtain classification labels, wherein the classification labels include thick blood vessel class, thin blood vessel class, and non-blood vessel class; using the vascular image as a sample and training a reference model according to the classification labels to obtain a preset model.
[0011] In another implementation of the present invention, the step of inputting the weighted map of the segmented image into a preset model for processing to obtain a probability map of the segmented image includes: flipping the weighted map of the segmented image at least once to obtain at least one flipped weighted map of the segmented image; inputting the at least one flipped weighted map of the segmented image into a preset model for processing to obtain a probability map corresponding to the at least one flipped weighted map of the segmented image; and performing mean processing on the probability map corresponding to the at least one flipped weighted map of the segmented image to obtain a probability map of the segmented image.
[0012] In another implementation of the present invention, the method further includes: performing classification label probability normalization processing on the probability map of the segmented image to obtain a normalized probability map of the segmented image.
[0013] In another implementation of the present invention, the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image are fused to obtain a reconstructed vascular image, including: respectively combining the normalized probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a probability map of the combined image and a Gaussian weight map of the combined image; and calculating the probability map of the combined image and the Gaussian weight map of the combined image to obtain a reconstructed three-channel four-dimensional vascular image.
[0014] In another implementation of the present invention, the method further includes: selecting and processing the three-channel four-dimensional vascular images according to the classification label probability to obtain a three-dimensional vascular image; and drawing and displaying the three-dimensional vascular image.
[0015] According to a second aspect of an embodiment of the present invention, a vascular image reconstruction device is provided, comprising: a segmentation processing module, used to perform segmentation processing on the vascular image by means of a sliding window to obtain a segmented image; a calculation processing module, used to calculate and obtain a Gaussian weight map corresponding to the segmented image; a voxel processing module, used to perform voxel multiplication of the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image; a preset model module, used to input the weighted map of the segmented image into a preset model for processing to obtain a probability map of the segmented image; and a fusion processing module, used to perform fusion processing on the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image.
[0016] According to a third aspect of an embodiment of the present invention, there is provided an electronic device comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect.
[0017] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.
[0018] In the scheme of the embodiment of the present invention, the vascular image is segmented by a sliding window to obtain a segmented image; the Gaussian weight map corresponding to the segmented image is calculated and obtained; the segmented image and the Gaussian weight map corresponding to the segmented image are voxel-multiplied to obtain a weighted map of the segmented image; the weighted map of the segmented image is input into a preset model for processing to obtain a probability map of the segmented image; the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image are fused to obtain a reconstructed vascular image. Through the above steps, when reconstructing the vascular image, the blood vessels can be distinguished from the skin and irrelevant tissues, and a better vascular image reconstruction effect can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0020] Figure 1 FIG. 4 is a flowchart of a method for reconstructing a blood vessel image according to an embodiment of the present invention.
[0021] Figure 2 A schematic block diagram of a blood vessel image reconstruction method according to an embodiment of the present invention.
[0022] Figure 3 The figure is a schematic block diagram of an Internet of Things information data transmission device according to an embodiment of the present invention.
[0023] Figure 4 FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and in detail below in conjunction with the drawings 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. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0025] It should be understood that the terms "first", "second", and "third" in the claims, specifications, and drawings of the present disclosure are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specifications and claims of the present disclosure indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0026] It should also be understood that the terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. As used in this disclosure and claims, the singular forms of "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this disclosure and claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations.
[0027] Figure 1 The exemplary process of a blood vessel image reconstruction method according to an embodiment of the present invention is shown. The blood vessel image reconstruction method according to this embodiment includes:
[0028] S210: Segment the blood vessel image by means of a sliding window to obtain a segmented image.
[0029] S220: Calculate and obtain a Gaussian weight map corresponding to the segmented image.
[0030] S230: voxel-wise multiplication of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image.
[0031] It should be noted that, since the prediction accuracy of the edge of the vascular image is low, in order to increase the weight of the voxel in the center of the vascular image, the segmented image and the Gaussian weight map corresponding to the segmented image are voxel-multiplied to obtain a weighted map of the segmented image. Specifically, a Gaussian distribution function can be used to create a preset model of size, preferably a Gaussian weight map of size patchsize can be created, and the segmented image obtained by sliding the window and the Gaussian weight map corresponding to the segmented image are voxel-multiplied. The three-dimensional Gaussian distribution function is ,in , , for the vascular image coordinate system, Independent of each other, .
[0032] S240: Inputting the weighted graph of the segmented image into a preset model for processing to obtain a probability graph of the segmented image.
[0033] S250: Fusing the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a reconstructed blood vessel image.
[0034] In the scheme of the embodiment of the present invention, the vascular image is segmented by a sliding window to obtain a segmented image; the Gaussian weight map corresponding to the segmented image is calculated and obtained; the segmented image and the Gaussian weight map corresponding to the segmented image are voxel-multiplied to obtain a weighted map of the segmented image; the weighted map of the segmented image is input into a preset model for processing to obtain a probability map of the segmented image; the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image are fused to obtain a reconstructed vascular image. Through the above steps, when reconstructing the vascular image, the blood vessels can be distinguished from the skin and irrelevant tissues, and a better vascular image reconstruction effect can be achieved.
[0035] In a possible implementation, segmenting the vascular image by means of a sliding window to obtain a segmented image includes: segmenting the vascular image according to a preset model size by means of a sliding window to obtain a segmented image.
[0036] It should be noted that the segmentation of the vascular image according to the preset model size by means of a sliding window here means that since the preset model size has been adjusted through the data set attributes during model training, the vascular image can be segmented into several segmented images of the preset model size by means of a sliding window.
[0037] It should be noted that the above preset model is trained using the nnUNet model as a reference model. nnUNet is a medical image segmentation framework that is adaptive to any new data set. The framework can automatically adjust all hyperparameters according to the properties of a given data set, including batchsize, patchsize, learning rate, etc. Therefore, the size of the patchsize has been adjusted by nnUNet through the data set properties during model training, and the vascular image can be segmented into several segmented images of the same size as the patchsize through a sliding window.
[0038] Specifically, in order to prevent splicing artifacts, the initial step size of the sliding window is set to 1 / 2 of the patch size. The sliding window method is: suppose the size of the vascular image in the X-axis direction is M x , the size of the input image in the X-axis direction is P x , the initial step length of the sliding window in the X-axis direction is S x , then the number of sliding windows in the X-axis direction is ,in represents rounding up, and the actual step length of the sliding window in the X-axis direction is Similarly, find the number of sliding windows on the Y axis and the Z axis and the actual sliding window step size. Through the sliding window, we can get Segmented images.
[0039] In a possible implementation, the method further includes: for the blood vessel scan image, selecting a threshold value that matches the grayscale value of a black voxel to obtain a blood vessel scan image that has been subjected to threshold processing.
[0040] It should be noted that, since part of the background in the vascular scanning image is black, that is, the grayscale value is very small, usually less than or equal to 10, this part of the background does not contain valid information. Cropping does not affect the subsequent model prediction results. On the contrary, it can significantly reduce the size of the image and improve the efficiency of the model prediction. Therefore, for the vascular scanning image, a threshold that conforms to the grayscale value of the black voxel can be selected to obtain a vascular scanning image after threshold processing.
[0041] Specifically, for the vascular scanning image, by calculating the coordinates of all voxels with grayscale values greater than 10, these coordinates are statistically calculated to obtain the minimum and maximum values in the three directions of X, Y, and Z, namely X-min, Y-min, Z-min, X-max, Y-max, and Z-max. These six values are used to construct a range area, select the voxels within the range area, and crop the voxels outside the range area to obtain the vascular scanning image processed by grayscale value.
[0042] In a possible implementation, the method further includes: resampling the threshold-processed vascular scanning image in voxel space to obtain a vascular scanning image with the same voxel spatial resolution; and performing grayscale value normalization processing on the vascular scanning image with the same voxel spatial resolution to obtain a vascular image with the same grayscale value distribution.
[0043] It should be noted that resampling is to solve the problem of inconsistent actual space sizes represented by a single voxel in different images. Because convolutional neural networks only operate in voxel space, they ignore the size information in the actual physical space. In order to avoid this difference, the vascular image needs to be resampled in voxel space to ensure that the actual physical space size represented by each voxel in the vascular image is consistent. To this end, the thresholded vascular scan image can be resampled in voxel space to obtain a vascular scan image with the same voxel spatial resolution;
[0044] Specifically, the interpolation method of cubic spline interpolation is used to resample the median of the voxel space of each dimension of the blood vessel processed by gray value to obtain a blood vessel scanning image with the same voxel space.
[0045] It should be noted that the purpose of performing grayscale value standardization processing on the blood vessel scanning images with the same voxel spatial resolution is to make the grayscale values of the blood vessel scanning images have the same distribution.
[0046] Specifically, the method used for standardization is Z-Score standardization. Only the non-black areas of the image, that is, the grayscale values are greater than 10, are standardized, and the grayscale values of the black areas are set to 0. The standardization process of non-black voxels is: let the image data be M, there are p non-black voxels in total, the normalized image data is N, and the mean grayscale value of all non-black voxels in the image is calculated. , standard deviation , then the gray value of each non-black pixel in the standardized image Through the above method, invalid information can be removed, interference information can be weakened, and the accuracy of vascular image processing can be improved.
[0047] In a possible implementation, the method further includes: classifying and dividing the blood vessels in the vascular image according to their thickness to obtain classification labels, wherein the classification labels include thick blood vessel class, thin blood vessel class, and non-vascular class; using the vascular image as a sample and training a reference model according to the classification labels to obtain a preset model.
[0048] It should be noted that, if the blood vessel is trained as a complete label during the training process, the thicker part of the blood vessel will be missing in the subsequent prediction. In order to avoid this situation, the present invention divides the thicker part and the thinner part of the blood vessel, as well as the non-vascular part, into three types of classification labels for training, and merges the classification labels into complete blood vessels during prediction, thereby achieving better prediction results. Through the above, the preset model can eliminate the interference of skin and irrelevant tissues, and the model training process does not require manual intervention, thereby improving the accuracy of the preset model. Specifically, there are generally 10 blood vessel images obtained by scanning. In order to prevent overfitting, the data enhancement method in the nnUNet model can be used to expand the blood vessel images during the training stage. The data expansion method can be rotation transformation, scale transformation, introduction of Gaussian noise, Gamma transformation, etc.
[0049] Preferably, in order to increase the portability of the model, the preset model can be trained in a pytorch environment. By converting the preset model into the ONNX format and porting it to the C++ platform for use, it can be applied to a variety of processing platforms, thereby improving the portability of the preset model. ONNX (Open Neural Network Exchange) is a multi-framework shared, open-protocol neural network exchange format that defines a set of standard formats that are independent of the environment and platform, and is used to enhance the interactivity of various AI models.
[0050] In a possible implementation, the step of inputting the weighted map of the segmented image into a preset model for processing to obtain a probability map of the segmented image includes: flipping the weighted map of the segmented image at least once to obtain at least one flipped weighted map of the segmented image; inputting the at least one flipped weighted map of the segmented image into a preset model for processing to obtain a probability map corresponding to the at least one flipped weighted map of the segmented image; and performing mean processing on the probability map corresponding to the at least one flipped weighted map of the segmented image to obtain a probability map of the segmented image.
[0051] Specifically, the weighted graph of the segmented image can be flipped 7 times along the X, Y, and Z axes, and a total of 8 images, including the original image before flipping, are input into the preset model for processing, and the mean of the processing results is used as the probability map of the segmented image.
[0052] In a possible implementation, the method further includes: performing classification label probability normalization processing on the probability map of the segmented image to obtain a normalized probability map of the segmented image.
[0053] Specifically, the probability map of the segmented image needs to be processed using the SoftMax function. Since there are three types of classification labels, the SoftMax function is ,in, is the predicted probability that the voxel belongs to the i-th class.
[0054] In a possible implementation, the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image are fused to obtain a reconstructed vascular image, including: respectively combining the normalized probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a probability map of the combined image and a Gaussian weight map of the combined image; and calculating the probability map of the combined image and the Gaussian weight map of the combined image to obtain a reconstructed three-channel four-dimensional vascular image.
[0055] It should be noted that in order to obtain a complete reconstructed vascular image, multiple segmented images need to be stitched together. Specifically, the stitching process needs to calculate the probability map of the normalized segmented image and the Gaussian weight map corresponding to the segmented image respectively. For the overlapping parts, the addition method can be adopted to obtain a complete probability map and a complete Gaussian weight map. Finally, the voxel corresponding to the complete probability map is divided by the voxel corresponding to the complete Gaussian weight map to obtain the reconstructed vascular image.
[0056] In a possible implementation, the method further includes: selecting and processing the three-channel four-dimensional vascular images according to the classification label probability to obtain a three-dimensional vascular image; and drawing and displaying the three-dimensional vascular image.
[0057] It should be noted that if Figure 2 As shown in the figure, since the reconstructed vascular image is a vascular image of three-channel four-dimensional data, each channel represents the probability of belonging to a certain class in the classification label. By selecting the channel number with the largest belonging probability as the prediction result and merging the thicker and thinner blood vessels, the vascular image of three-channel four-dimensional data is converted into a three-dimensional binary vascular image. Then the VTK surface drawing function is used to draw and display the three-dimensional binary vascular image.
[0058] Figure 3 FIG. 2 is a schematic block diagram of a vascular image reconstruction device according to another embodiment of the present invention. The solution of the embodiment of the present invention can be applied to electronic devices, including but not limited to: terminal devices with communication functions or electronic devices with interactive behavior capabilities.
[0059] The vascular image reconstruction device of this embodiment includes: a segmentation processing module, which is used to segment the vascular image by a sliding window to obtain a segmented image; a calculation processing module, which is used to calculate and obtain a Gaussian weight map corresponding to the segmented image; a voxel processing module, which is used to voxel multiply the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image; a preset model module, which is used to input the weighted map of the segmented image into a preset model for processing to obtain a probability map of the segmented image; and a fusion processing module, which is used to fuse the probability map of the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image.
[0060] In other examples, the segmentation processing module is specifically used to segment the vascular image according to a preset model size by means of a sliding window to obtain a segmented image.
[0061] In other examples, the segmentation processing module is specifically used to: for the vascular scanning image, select a threshold value that meets the grayscale value of black voxels to obtain a vascular scanning image that has been subjected to threshold processing.
[0062] In other examples, the segmentation processing module is specifically used to: resample the threshold-processed vascular scanning image in voxel space to obtain a vascular scanning image with the same voxel spatial resolution; and perform grayscale value normalization processing on the vascular scanning image with the same voxel spatial resolution to obtain a vascular image with the same grayscale value distribution.
[0063] In other examples, the preset model module is specifically used to: classify and divide the blood vessels in the vascular image according to their thickness to obtain classification labels, wherein the classification labels include thick blood vessel class, thin blood vessel class, and non-vascular class; use the vascular image as a sample and train the reference model according to the classification labels to obtain a preset model.
[0064] In other examples, the voxel processing module is specifically used to: flip the weighted map of the segmented image at least once to obtain at least one flipped segmented image weighted map; input the at least one flipped segmented image weighted map into a preset model for processing to obtain a probability map corresponding to the at least one flipped segmented image weighted map; perform mean processing on the probability map corresponding to the at least one flipped segmented image weighted map to obtain a probability map of the segmented image.
[0065] In other examples, the preset model module is specifically used to: perform classification label probability normalization processing on the probability map of the segmented image to obtain a normalized probability map of the segmented image.
[0066] In other examples, the fusion processing module is specifically used to: respectively combine the probability map of the normalized segmented image and the Gaussian weight map corresponding to the segmented image to obtain the probability map of the combined image and the Gaussian weight map of the combined image; calculate and process the probability map of the combined image and the Gaussian weight map of the combined image to obtain a reconstructed three-channel four-dimensional vascular image.
[0067] In other examples, the fusion processing module is specifically used to: select and process the four-dimensional vascular images of the three channels according to the classification label probability to obtain a three-dimensional vascular image; and draw and display the three-dimensional vascular image.
[0068] Reference Figure 4 , shows a schematic structural diagram of an electronic device according to another embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0069] like Figure 4 As shown, the electronic device may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 storing a program 410 , and a communication bus 408 .
[0070] The processor, the communication interface, and the memory communicate with each other via a communication bus. The communication interface is used to communicate with other electronic devices or servers. The processor is used to execute a program, and specifically can execute the relevant steps in the above method embodiment. Specifically, the program may include a program code, and the program code includes computer operation instructions.
[0071] The processor may be a CPU, or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0072] Memory is used to store programs. The memory may include high-speed RAM memory and may also include non-volatile memory, such as at least one disk storage.
[0073] The program can be specifically used to enable the processor to perform the following operations: segment the vascular image by means of a sliding window to obtain a segmented image; calculate and obtain a Gaussian weight map corresponding to the segmented image; voxel-wise multiply the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image; input the weighted map of the segmented image into a preset model for processing to obtain a probability map of the segmented image; and fuse the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image.
[0074] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not intended to limit the embodiments of the present invention. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the patent protection scope of the embodiments of the present invention should be defined by the claims. The systems, devices, modules or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions.
[0075] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0076] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0077] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0080] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The 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 RAM. Memory is an example of a computer-readable medium.
[0081] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer 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 (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (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. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0082] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0083] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0085] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A vascular image reconstruction method, comprising: The blood vessel image is segmented by a sliding window to obtain a segmented image; Calculate and obtain the Gaussian weight map corresponding to the segmented image; Performing voxel multiplication of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image; Inputting the weighted graph of the segmented image into a preset model for processing to obtain a probability graph of the segmented image; fusing the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image; The method further comprises: selecting a threshold value that matches the grayscale value of black voxels for the blood vessel scan image to obtain a blood vessel scan image processed by the threshold value; Resampling the threshold-processed vascular scan images in voxel space to obtain vascular scan images with the same voxel spatial resolution; performing grayscale value normalization processing on the vascular scan images with the same voxel spatial resolution to obtain vascular images with the same grayscale value distribution; Classifying the blood vessels in the blood vessel image according to their thickness to obtain classification labels, wherein the classification labels include thick blood vessel class, thin blood vessel class, and non-blood vessel class; using the blood vessel image as a sample and training a reference model according to the classification labels to obtain a preset model; The step of inputting the weighted graph of the segmented image into a preset model for processing to obtain a probability graph of the segmented image comprises: flipping the weighted graph of the segmented image at least once to obtain at least one flipped weighted graph of the segmented image; inputting the at least one flipped weighted graph of the segmented image into a preset model for processing to obtain a probability graph corresponding to the at least one flipped weighted graph of the segmented image; and performing mean processing on the probability graph corresponding to the at least one flipped weighted graph of the segmented image to obtain a probability graph of the segmented image. The probability map of the segmented image is subjected to a classification label probability normalization process to obtain a normalized probability map of the segmented image.
2. The method according to claim 1, wherein: The segmentation process of the blood vessel image by means of a sliding window to obtain a segmented image includes: The vascular image is segmented according to the preset model size by means of a sliding window to obtain a segmented image.
3. The method according to claim 1, wherein: The step of fusing the probability map of the segmented image with the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image includes: Combining the normalized probability map of the segmented image and the Gaussian weight map corresponding to the segmented image respectively to obtain a probability map of the combined image and a Gaussian weight map of the combined image; The probability map of the combined image and the Gaussian weight map of the combined image are calculated and processed to obtain a reconstructed three-channel four-dimensional blood vessel image.
4. The method according to claim 3, wherein: The method further comprises: Selecting and processing the four-dimensional blood vessel images of the three channels according to the classification label probability to obtain a three-dimensional blood vessel image; The three-dimensional blood vessel image is drawn and displayed.
5. A vascular image reconstruction device, comprising: A segmentation processing module is used to segment the blood vessel image by means of a sliding window to obtain a segmented image; A calculation processing module, used for calculating and obtaining a Gaussian weight map corresponding to the segmented image; A voxel processing module, used for performing voxel multiplication of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a weighted map of the segmented image; A preset model module is used to input the weighted graph of the segmented image into the preset model for processing to obtain a probability graph of the segmented image; A fusion processing module, used for fusing the probability map of the segmented image and the Gaussian weight map corresponding to the segmented image to obtain a reconstructed vascular image; The segmentation processing module is specifically used to: select a threshold value that matches the grayscale value of black voxels for the blood vessel scan image, and obtain a blood vessel scan image that has been processed by the threshold value; Resampling the threshold-processed vascular scan images in voxel space to obtain vascular scan images with the same voxel spatial resolution; performing grayscale value normalization processing on the vascular scan images with the same voxel spatial resolution to obtain vascular images with the same grayscale value distribution; Among them, the preset model module is specifically used to: classify and divide the blood vessels in the blood vessel image according to their thickness to obtain classification labels, wherein the classification labels include thick blood vessel class, thin blood vessel class, and non-blood vessel class; use the blood vessel image as a sample and train the reference model according to the classification labels to obtain the preset model; wherein the voxel processing module is specifically used to: flip the weighted map of the segmented image at least once to obtain at least one flipped segmented image weighted map; input the at least one flipped segmented image weighted map into the preset model for processing to obtain a probability map corresponding to the at least one flipped segmented image weighted map; perform mean processing on the probability map corresponding to the at least one flipped segmented image weighted map to obtain a probability map of the segmented image; The preset model module is specifically used to: perform classification label probability normalization processing on the probability map of the segmented image to obtain a normalized probability map of the segmented image.
6. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method according to any one of claims 1 to 4.
7. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
