Blood vessel centerline extraction method, device, equipment and storage medium

Through the three-dimensional reconstruction of blood vessel images and the minimum spanning tree connection technology, the problem of blood vessel centerline disconnection is solved, the integrity and accuracy of the blood vessel centerline is achieved, and the extraction efficiency is improved.

CN113160189BActive Publication Date: 2024-08-23SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110460939.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-27
Publication Date
2024-08-23
Estimated Expiration
2041-04-27

AI Technical Summary

Technical Problem

In the existing technology, the blood vessel centerline extracted from blood vessel images has a disconnection problem, resulting in the inability to obtain a complete blood vessel centerline.

Method used

Through the three-dimensional reconstruction of blood vessel images, the blood vessel centerline is extracted, the endpoints of the interrupted parts are automatically determined, and connected according to the minimum spanning tree and preset constraints to generate a continuous blood vessel centerline, which is corrected through the blood vessel energy map.

Benefits of technology

It achieves the integrity and accuracy of the blood vessel centerline, avoids the need to manually specify endpoints, and improves extraction efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113160189B
    Figure CN113160189B
Patent Text Reader

Abstract

The present application is applicable to the field of image processing technology, and provides a method, device, equipment and storage medium for extracting the centerline of a blood vessel. The method includes: performing three-dimensional reconstruction of blood vessels based on blood vessel images to obtain three-dimensional blood vessel images; extracting the centerline of blood vessels in the three-dimensional blood vessel images to obtain a first blood vessel centerline; determining the endpoints of the disconnected parts of the first blood vessel centerline; connecting the endpoints of the disconnected parts of the first blood vessel centerline to obtain a second blood vessel centerline. In this way, a continuous blood vessel centerline can be extracted from the blood vessel image, ensuring the integrity of the extracted blood vessel centerline.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology, and in particular relates to a method, device, equipment and storage medium for extracting a blood vessel centerline. Background Art

[0002] The vascular centerline has the same topology and similar geometry as the blood vessel, and can well reflect the direction and spatial structure of the blood vessel. Therefore, extracting the vascular centerline from the vascular image is helpful for diagnosing, treating and monitoring vascular diseases. The blood vessel may be an artery or a vein, and the artery may be a coronary artery.

[0003] In the related art, for the acquired vascular image, the vascular image can be first segmented by a convolutional neural network, and then the vascular three-dimensional reconstruction is performed based on the image segmentation result to obtain a three-dimensional vascular image. Then, the user specifies the endpoints of the vascular, and the centerline of the vascular in the three-dimensional vascular image is extracted based on the endpoints specified by the user to obtain the vascular centerline.

[0004] However, due to the complex vascular topology and extremely small blood vessels, with a blood vessel radius of only about 0.5 mm to 3 mm, coupled with interference factors such as imaging artifacts and image segmentation algorithm errors in vascular images, the vascular centerline extracted from the three-dimensional vascular image may have many disconnections in the distal part, resulting in discontinuity in the extracted vascular centerline and the inability to obtain a complete vascular centerline. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for extracting a blood vessel centerline, which can solve the problem that the blood vessel centerline extracted in the related art is discontinuous and the complete blood vessel centerline cannot be obtained.

[0006] In a first aspect, an embodiment of the present application provides a method for extracting a blood vessel centerline, comprising:

[0007] Perform three-dimensional reconstruction of blood vessels according to the blood vessel images to obtain a three-dimensional blood vessel image;

[0008] Extracting the centerline of the blood vessel in the three-dimensional blood vessel image to obtain a first blood vessel centerline;

[0009] determining endpoints of the disconnected portion of the centerline of the first blood vessel;

[0010] The endpoints of the disconnected parts of the first blood vessel centerline are connected to obtain a second blood vessel centerline.

[0011] Optionally, performing three-dimensional reconstruction of blood vessels according to the blood vessel images to obtain three-dimensional blood vessel images includes:

[0012] Acquiring multi-slice images of the blood vessel image;

[0013] By using a fully convolutional dense network model, the multi-layer slice images are respectively segmented to obtain a plurality of two-dimensional blood vessel images corresponding to the multi-layer slice images one by one;

[0014] The three-dimensional blood vessel image is obtained by performing three-dimensional blood vessel reconstruction according to the multiple two-dimensional blood vessel images.

[0015] Optionally, determining the endpoint of the disconnected portion of the centerline of the first blood vessel comprises:

[0016] Determine the endpoints of each branch in the centerline of the first blood vessel to obtain a plurality of endpoints;

[0017] Constructing a weighted edge undirected graph with the multiple endpoints as vertices and the Euclidean distance between each two of the multiple endpoints as the weighted edge of the corresponding vertex;

[0018] Determine a minimum spanning tree of the weighted edge undirected graph, wherein the minimum spanning tree is a subgraph in the weighted edge undirected graph with the smallest sum of weighted edges;

[0019] The endpoints among the multiple endpoints that correspond to the multiple vertices in the minimum spanning tree and are not connected according to the connection method of the multiple vertices are determined as endpoints of the disconnected part.

[0020] Optionally, the connecting the endpoints of the disconnected portion of the first blood vessel centerline to obtain the second blood vessel centerline includes:

[0021] The endpoints of the disconnected portion of the first blood vessel centerline are connected according to the connection mode of the vertices corresponding to the endpoints of the disconnected portion in the minimum spanning tree to obtain the second blood vessel centerline.

[0022] Optionally, the connecting the endpoints of the disconnected portion of the centerline of the first blood vessel according to the connection mode of the vertices corresponding to the endpoints of the disconnected portion in the minimum spanning tree comprises:

[0023] If it is determined according to the connection mode of the vertices corresponding to the endpoints of the broken part in the minimum spanning tree that two endpoints of the disconnected part of the centerline of the first blood vessel need to be connected, and the two endpoints meet the preset restriction condition, the two endpoints are connected.

[0024] Optionally, the preset restriction condition includes one or more of the following conditions:

[0025] The angle between the tangent vectors of the two endpoints is greater than or equal to the angle threshold;

[0026] The distance between the two endpoints is less than or equal to the distance threshold.

[0027] Optionally, after connecting the broken endpoints in the first blood vessel centerline to obtain the second blood vessel centerline, the method further includes:

[0028] generating a blood vessel energy map according to the three-dimensional blood vessel image, wherein the energy of the blood vessel part in the blood vessel energy map corresponds to the distance from the background;

[0029] The second blood vessel centerline is corrected according to the blood vessel energy map to obtain a third blood vessel centerline.

[0030] Optionally, generating a blood vessel energy map according to the three-dimensional blood vessel image includes:

[0031] Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, wherein the blood vessel portion farther from the background in the first energy map has greater energy; determining the first energy map as the blood vessel energy map;

[0032] or,

[0033] Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, in which the blood vessel portion farther from the background has greater energy; performing inverse processing on the first energy map to obtain the blood vessel energy map, in which the blood vessel portion farther from the background has smaller energy;

[0034] or,

[0035] The blood vessel image is enhanced to obtain a first tubular structure map; the three-dimensional blood vessel image is distance transformed to obtain a first energy map, wherein the energy of the blood vessel portion farther from the background in the first energy map is greater; and the blood vessel energy map is generated according to the first tubular structure map and the first energy map.

[0036] Optionally, generating the blood vessel energy map according to the first tubular structure map and the first energy map includes:

[0037] fusing the first tubular structure image and the first energy image to obtain the blood vessel energy image, wherein the blood vessel portion farther from the background in the blood vessel energy image has greater energy;

[0038] or,

[0039] The first tubular structure map is inverted to obtain a second tubular structure map, and the first energy map is inverted to obtain a second energy map; the second tubular structure map and the second energy map are fused to obtain the blood vessel energy map, wherein the farther the blood vessel part is from the background, the smaller the energy is.

[0040] Optionally, the correcting the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline includes:

[0041] constructing a target energy function of the second blood vessel centerline according to the blood vessel energy map;

[0042] The second blood vessel centerline is corrected according to the target energy function to obtain a third blood vessel centerline.

[0043] Optionally, constructing a target energy function of the second blood vessel centerline according to the blood vessel energy map includes:

[0044] generating an energy function of the second blood vessel centerline according to the blood vessel energy map, and determining the energy function of the second blood vessel centerline as the target energy function;

[0045] or,

[0046] According to the blood vessel energy map, an energy function of the second blood vessel centerline is generated; according to the energy function, a preset curve length constraint condition and a preset curvature constraint condition, the target energy function is constructed.

[0047] Optionally, the correcting the second blood vessel centerline according to the target energy function to obtain a third blood vessel centerline includes:

[0048] If the energy of the blood vessel portion farther from the background in the blood vessel energy map is greater, adjusting the second blood vessel centerline with maximization of the target energy function as an adjustment target to obtain the third blood vessel centerline;

[0049] If the energy of the blood vessel portion farther from the background in the blood vessel energy map is smaller, then the second blood vessel centerline is adjusted with minimization of the target energy function as the adjustment target to obtain the third blood vessel centerline.

[0050] In a second aspect, an embodiment of the present application provides a blood vessel centerline extraction device, comprising:

[0051] A reconstruction module, used for performing three-dimensional reconstruction of blood vessels according to the blood vessel images to obtain a three-dimensional blood vessel image;

[0052] An extraction module, used for extracting the centerline of the blood vessel in the three-dimensional blood vessel image to obtain a first blood vessel centerline;

[0053] A determination module, used to determine the endpoints of the disconnected portion of the centerline of the first blood vessel;

[0054] The connection module is used to connect the endpoints of the disconnected parts of the first blood vessel centerline to obtain the second blood vessel centerline.

[0055] Optionally, the reconstruction module is used to:

[0056] Acquiring multi-layer slice images of the blood vessel image;

[0057] By using a fully convolutional dense network model, the multi-layer slice images are respectively segmented to obtain a plurality of two-dimensional blood vessel images corresponding to the multi-layer slice images one by one;

[0058] The three-dimensional blood vessel image is obtained by performing three-dimensional blood vessel reconstruction according to the multiple two-dimensional blood vessel images.

[0059] Optionally, the determining module is used to:

[0060] Determine the endpoints of each branch in the centerline of the first blood vessel to obtain a plurality of endpoints;

[0061] Constructing a weighted edge undirected graph with the multiple endpoints as vertices and the Euclidean distance between every two endpoints of the multiple endpoints as the weighted edge of the corresponding vertex;

[0062] Determine a minimum spanning tree of the weighted edge undirected graph, wherein the minimum spanning tree is a subgraph in the weighted edge undirected graph with the smallest sum of weighted edges;

[0063] The endpoints among the multiple endpoints that correspond to the multiple vertices in the minimum spanning tree and are not connected according to the connection method of the multiple vertices are determined as endpoints of the disconnected part.

[0064] Optionally, the connection module is used for:

[0065] The endpoints of the disconnected portion of the first blood vessel centerline are connected according to the connection mode of the vertices corresponding to the endpoints of the disconnected portion in the minimum spanning tree to obtain the second blood vessel centerline.

[0066] Optionally, the connection module is used for:

[0067] If it is determined according to the connection mode of the vertices corresponding to the endpoints of the broken part in the minimum spanning tree that two endpoints of the disconnected part of the centerline of the first blood vessel need to be connected, and the two endpoints meet the preset restriction condition, the two endpoints are connected.

[0068] Optionally, the preset restriction condition includes one or more of the following conditions:

[0069] The angle between the tangent vectors of the two endpoints is greater than or equal to the angle threshold;

[0070] The distance between the two endpoints is less than or equal to the distance threshold.

[0071] Optionally, the device further comprises:

[0072] A generating module, configured to generate a blood vessel energy map according to the three-dimensional blood vessel image, wherein the energy of the blood vessel part in the blood vessel energy map corresponds to the distance from the background;

[0073] A correction module is used to correct the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline.

[0074] Optionally, the generating module is used to:

[0075] Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, wherein the blood vessel portion farther from the background in the first energy map has greater energy; determining the first energy map as the blood vessel energy map;

[0076] or,

[0077] Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, in which the blood vessel portion farther from the background has greater energy; performing inverse processing on the first energy map to obtain the blood vessel energy map, in which the blood vessel portion farther from the background has smaller energy;

[0078] or,

[0079] The blood vessel image is enhanced to obtain a first tubular structure map; the three-dimensional blood vessel image is distance transformed to obtain a first energy map, wherein the energy of the blood vessel portion farther from the background in the first energy map is greater; and the blood vessel energy map is generated according to the first tubular structure map and the first energy map.

[0080] Optionally, the generating module is used to:

[0081] fusing the first tubular structure image and the first energy image to obtain the blood vessel energy image, wherein the blood vessel portion farther from the background in the blood vessel energy image has greater energy;

[0082] or,

[0083] The first tubular structure map is inverted to obtain a second tubular structure map, and the first energy map is inverted to obtain a second energy map; the second tubular structure map and the second energy map are fused to obtain the blood vessel energy map, wherein the farther the blood vessel part is from the background, the smaller the energy is.

[0084] Optionally, the correction module is used to:

[0085] constructing a target energy function of the second blood vessel centerline according to the blood vessel energy map;

[0086] The second blood vessel centerline is corrected according to the target energy function to obtain a third blood vessel centerline.

[0087] Optionally, the correction module is used to:

[0088] generating an energy function of the second blood vessel centerline according to the blood vessel energy map, and determining the energy function of the second blood vessel centerline as the target energy function;

[0089] or,

[0090] According to the blood vessel energy map, an energy function of the second blood vessel centerline is generated; according to the energy function, a preset curve length constraint condition and a preset curvature constraint condition, the target energy function is constructed.

[0091] Optionally, the correction module is used to:

[0092] If the energy of the blood vessel portion farther from the background in the blood vessel energy map is greater, adjusting the second blood vessel centerline with maximization of the target energy function as an adjustment target to obtain the third blood vessel centerline;

[0093] If the energy of the blood vessel portion farther from the background in the blood vessel energy map is smaller, then the second blood vessel centerline is adjusted with minimization of the target energy function as the adjustment target to obtain the third blood vessel centerline.

[0094] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the blood vessel centerline extraction method described in any one of the first aspects above is implemented.

[0095] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the blood vessel centerline extraction method described in any one of the first aspects above is implemented.

[0096] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the blood vessel centerline extraction method described in any one of the first aspects above.

[0097] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0098] In the embodiment of the present application, a three-dimensional blood vessel reconstruction is performed based on the blood vessel image to obtain a three-dimensional blood vessel image, and the centerline of the blood vessel in the three-dimensional blood vessel image is extracted. After the blood vessel centerline is obtained, the endpoints of the disconnected parts of the blood vessel centerline are automatically determined, and the endpoints of the disconnected parts of the blood vessel centerline are connected, so that a continuous blood vessel centerline can be obtained, thereby ensuring the integrity of the extracted blood vessel centerline. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0100] Figure 1 is a flow chart of a blood vessel centerline extraction method provided in an embodiment of the present application;

[0101] Figure 2 is a schematic diagram of image segmentation and three-dimensional reconstruction of angiographic images provided by an embodiment of the present application;

[0102] Figure 3 It is a schematic diagram of connecting the endpoints of the disconnected portion of the centerline of a blood vessel provided by an embodiment of the present application;

[0103] Figure 4 is a partial schematic diagram of a blood vessel centerline provided in an embodiment of the present application;

[0104] Figure 5 It is a projection schematic diagram of a blood vessel energy map provided in an embodiment of the present application;

[0105] Figure 6 It is a structural schematic diagram of a blood vessel centerline extraction device provided in an embodiment of the present application;

[0106] Figure 7 It is a structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0107] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0108] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0109] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0110] First, the application scenarios and implementation environments involved in the embodiments of the present application are described.

[0111] The blood vessel centerline extraction method provided in the embodiment of the present application can be applied to the scene of extracting the centerline of the target blood vessel. Among them, the target blood vessel can be an arterial blood vessel and / or a venous blood vessel. For example, the target blood vessel can be a coronary artery or an intracranial blood vessel. In addition, it can be applied to extract the centerline of the target blood vessel from a blood vessel image, and the blood vessel image can be a medical image such as angiography image, magnetic resonance imaging or intravascular ultrasound image.

[0112] In addition, the blood vessel centerline extraction method provided in the embodiment of the present application can be applied to a computer device, which can be a mobile phone, a tablet computer, or a desktop computer, etc. The embodiment of the present application does not impose any restrictions on the specific type of the computer device. For example, the computer device can be connected to a blood vessel image acquisition device to extract the centerline of the target blood vessel from the blood vessel image acquired by the acquisition device. Alternatively, the computer device can also be integrated in the blood vessel image acquisition device, which is not limited in the embodiment of the present application.

[0113] Next, the blood vessel centerline extraction method provided in the embodiment of the present application is described in detail.

[0114] Figure 1 is a flow chart of a method for extracting a blood vessel centerline provided in an embodiment of the present application, the method being applied in a computer device, such as Figure 1 As shown, the method comprises the following steps:

[0115] Step 101: Perform three-dimensional reconstruction of blood vessels according to the blood vessel image to obtain a three-dimensional blood vessel image.

[0116] Among them, the vascular image refers to a medical image obtained by detecting the blood vessels of the subject. For example, the vascular image can be an angiography image, a nuclear magnetic resonance image, or an intravascular ultrasound image. An angiography image refers to a three-dimensional image obtained by scanning the subject after injecting a contrast agent into the subject's blood vessels. For example, the angiography image can be a CTA (Computed Tomography Angiography) image.

[0117] Among them, the blood vessels in the three-dimensional blood vessel image can be pre-set target blood vessels, such as arterial blood vessels or venous blood vessels, and the arterial blood vessels can be coronary blood vessels, etc. That is, the three-dimensional blood vessel image can be a three-dimensional blood vessel image of the target blood vessel. For example, the three-dimensional blood vessel image is a three-dimensional blood vessel image of the coronary blood vessels, so that the center line of the coronary blood vessels can be extracted later. Or, the three-dimensional blood vessel image is a three-dimensional blood vessel image of the intracranial blood vessels, so that the center line of the intracranial blood vessels can be extracted later. The embodiment of the present application does not limit the type of blood vessels in the three-dimensional blood vessel image.

[0118] In order to generate accurate and clear three-dimensional vascular images, when performing three-dimensional vascular reconstruction based on vascular images, it is usually necessary to first segment the vascular images to obtain a vascular image of the target blood vessel, and then perform three-dimensional vascular reconstruction based on the vascular image of the target blood vessel to obtain a three-dimensional vascular image of the target blood vessel.

[0119] As an example, multi-layer slice images of vascular images can be first obtained, and then the multi-layer slice images can be segmented to obtain multiple two-dimensional vascular images corresponding to the multi-layer slice images, and then the blood vessels can be reconstructed three-dimensionally based on the multiple two-dimensional vascular images to obtain a three-dimensional vascular image.

[0120] The plurality of two-dimensional blood vessel images may be two-dimensional blood vessel images of a target blood vessel, such as a two-dimensional blood vessel image of a coronary artery. The number of images of the multi-layer slice image may be preset, for example, may be preset to 275.

[0121] As an example, in order to improve the accuracy of image segmentation, the multi-layer slice image can be segmented separately by a deep learning network model. Among them, the deep learning network model can be a dense network (DenseNet) model, such as a full convolution dense network (Full Convolution-DenseNet, FC-DenseNet) model. Of course, the deep learning network model can also be other network models, which is not limited in the embodiments of the present application.

[0122] Among them, the fully convolutional dense network is a convolutional neural network with dense connections, which can adapt well to the complex tree structure of blood vessels and the significant difference in the diameter of blood vessel branches from the proximal part to the distal part. Therefore, the fully convolutional dense network model is used to perform image segmentation on vascular images. It can segment the relatively complete vascular structure and the small blood vessels in the distal part from the vascular images, thereby extracting all the branches of the blood vessels to the greatest extent to avoid omissions, thereby improving the accuracy of vascular segmentation.

[0123] Please refer to Figure 2 , Figure 2 FIG. 1 is a schematic diagram of image segmentation and three-dimensional reconstruction of angiographic images provided by an embodiment of the present application. Figure 2 As shown, 275 slice images of the angiography image can be obtained, and the 275 slice images are respectively input into the fully convolutional dense network model, and the 275 slice images are respectively segmented by the fully convolutional dense network model to obtain 275 two-dimensional vascular images of the coronary arteries corresponding to the 275 slice images. Then, the vascular three-dimensional reconstruction is performed based on the 275 two-dimensional vascular images of the coronary arteries to obtain a three-dimensional vascular image of the coronary arteries.

[0124] The deep learning network model can be obtained by training in advance according to sample data. The sample data can include multiple sample slice images of sample vascular images, and sample two-dimensional vascular images corresponding to each sample slice image. The sample two-dimensional vascular images corresponding to the sample slice images can be obtained by manually annotating the vascular branches in the sample slice images.

[0125] For example, taking the tubular artery as an example, a coronary artery data set can be collected first. The coronary artery data set includes angiography images of multiple coronary arteries, and each coronary artery angiography image includes 275 slice images. Then, the coronary artery data set is carefully manually annotated using software to annotate all visible coronary artery branches in each slice image as much as possible. Then, the deep learning network model to be trained is trained based on the annotated coronary artery data set to obtain a trained deep learning network model. After the model training is completed, the multi-layer slice images of the angiography image are respectively input into the trained deep learning network model for image segmentation, and multiple two-dimensional vascular images corresponding to the multi-layer slice images can be output.

[0126] Step 102: extracting the centerline of the blood vessel in the three-dimensional blood vessel image to obtain a first blood vessel centerline.

[0127] The first blood vessel centerline is the centerline of the blood vessel in the three-dimensional blood vessel image. The basic structure of the first blood vessel centerline is the same as the basic structure of the corresponding blood vessel, and the first blood vessel centerline can retain the topology and Euler characteristics of the corresponding blood vessel. The first blood vessel centerline is usually a tree structure, including multiple branches.

[0128] As an example, the three-dimensional blood vessel image may be converted into a binary image first, and then the blood vessels in the converted binary image may be contracted to process the blood vessels in the binary image into a curve with a specified pixel width, and the curve with the specified pixel width may be used as the extracted first blood vessel centerline. The specified pixel width may be preset, such as 1 pixel width or 2 pixel width.

[0129] It should be noted that performing centerline extraction on a blood vessel in a three-dimensional blood vessel image can also be referred to as performing morphological skeleton extraction on the three-dimensional blood vessel image to obtain a blood vessel skeleton, which is the first blood vessel centerline. Morphological skeleton extraction can extract the centerline while retaining the topology and Euler features of the object.

[0130] As an example, the centerline of the target blood vessel in the three-dimensional blood vessel image may be extracted to obtain a first blood vessel centerline of the target blood vessel.

[0131] Step 103: Determine the endpoints of the disconnected portion of the centerline of the first blood vessel.

[0132] Due to the complex distal topological structure of blood vessels and their extremely small size, the blood vessel radius is only about 0.5 mm to 3 mm. In addition, there are often interference factors such as imaging artifacts in vascular images. Therefore, the first blood vessel centerline extracted from the three-dimensional vascular image will have many disconnections in the distal part, resulting in discontinuity of the extracted first blood vessel centerline.

[0133] In an embodiment of the present application, in order to ensure the continuity of the first blood vessel centerline, after extracting the first blood vessel centerline, the endpoints of the disconnected portion of the first blood vessel centerline can be determined first, so as to connect the endpoints of the disconnected portion of the first blood vessel centerline to form a complete and continuous blood vessel centerline.

[0134] As an example, a weighted edge undirected graph may be constructed based on the centerline of the first blood vessel, and then a minimum spanning tree of the weighted edge undirected graph may be calculated, and the endpoints of the disconnected portion of the centerline of the first blood vessel may be determined according to the minimum spanning tree.

[0135] For example, the endpoints of each branch in the centerline of the first blood vessel can be determined first to obtain multiple endpoints, and then a weighted edge undirected graph is constructed with the multiple endpoints as vertices and the distance between each two endpoints in the multiple endpoints as the weighted edge of the corresponding vertex. Then, the minimum spanning tree (MST) of the weighted edge undirected graph is determined. After that, the endpoints in the multiple endpoints that correspond to the multiple vertices in the minimum spanning tree and are not connected according to the connection method of the multiple vertices are determined as the endpoints of the disconnected part.

[0136] Among them, the weighted edge of two vertices refers to the weight of the edge between the two vertices. The weighted edge of two vertices can be the distance between the corresponding two endpoints. The weighted edge undirected graph is a completely connected graph containing multiple vertices. The minimum spanning tree of the weighted edge undirected graph is the smallest connected subgraph of the weighted edge undirected graph, which contains all the points in the weighted edge undirected graph, has the least edges to keep the graph connected, and is the subgraph with the smallest sum of weighted edges in the weighted edge undirected graph. That is, the minimum spanning tree is a subset of the edges of the weighted edge undirected graph, and the minimum spanning tree connects all the vertices of the weighted edge undirected graph together, without any loops, and the total weight of the edges is the smallest.

[0137] As an example, the distance between two endpoints may be the Euclidean distance between the two endpoints. That is, a weighted edge undirected graph may be constructed with the multiple endpoints as vertices and the Euclidean distance between each two endpoints in the multiple endpoints as the weighted edge of the corresponding vertex. Accordingly, the minimum spanning tree of the weighted edge undirected graph may be the Euclidean Minimum Spanning Tree (EMST).

[0138] According to the minimum spanning tree, it can be determined which endpoints in the first blood vessel centerline are connectable but not connected, and these connectable but not connected endpoints are the endpoints of the disconnected part of the first blood vessel centerline. By connecting these endpoints in the first blood vessel centerline, a complete and continuous blood vessel centerline can be obtained.

[0139] Please refer to Figure 3 , Figure 3 FIG. 1 is a schematic diagram of connecting the end points of the disconnected part of the center line of a blood vessel provided by an embodiment of the present application. Figure 3 As shown, the centerline of the blood vessel in the three-dimensional blood vessel image 31 is extracted to obtain a first blood vessel centerline 32. The first blood vessel centerline 32 is discontinuous, and there is a disconnected portion at the distal end. The embodiment of the present application can determine the endpoints of the disconnected portion of the first blood vessel centerline 32, and then connect the endpoints of the disconnected portion of the first blood vessel centerline 32 to obtain a second blood vessel centerline 33, which is continuous and has no disconnected portion.

[0140] Step 104: Connect the endpoints of the disconnected portion of the first blood vessel centerline to obtain a second blood vessel centerline.

[0141] As an example, the endpoints of the disconnected portion of the first blood vessel centerline may be connected according to the connection mode of multiple vertices in the minimum spanning tree to obtain the second blood vessel centerline. For example, the endpoints of the disconnected portion of the first blood vessel centerline may be connected according to the connection mode of the vertices corresponding to the endpoints of the broken portion of the first blood vessel centerline in the minimum spanning tree to obtain the second blood vessel centerline.

[0142] In addition, in order to avoid connection errors and make the curve formed by the connected endpoints conform to the specific topological structure of the blood vessel, it is also possible to add restriction conditions for the connection of the endpoints of the disconnected part according to the topological structure of the blood vessel. For any two endpoints that need to be connected in the disconnected part of the center line of the first blood vessel, it is possible to first determine whether the two endpoints meet the preset restriction conditions. If the preset restriction conditions are met, the two endpoints are connected. If the preset restriction conditions are not met, the two endpoints are not connected. In this way, the blood vessel center line obtained after connecting the endpoints of the disconnected part can conform to the topological structure characteristics of the blood vessel, avoiding connection errors.

[0143] As an example, the preset restriction condition may include one or more of the following conditions: the angle between the tangent vectors of the two endpoints is greater than or equal to the angle threshold; the distance between the two endpoints is less than or equal to the distance threshold. The angle threshold and the distance threshold may be preset. For example, the angle threshold may be 90 degrees, and the distance threshold may be 20 pixels. Of course, the angle threshold and the distance threshold may also be set to other values ​​as needed, which are not limited in the embodiments of the present application.

[0144] As an example, the operation of determining the tangent vector of each endpoint may include: determining the neighboring point of the endpoint on the branch where the endpoint is located, and determining the tangent vector of the endpoint based on the endpoint and the neighboring point of the endpoint on the branch where the endpoint is located. Figure 4 , Figure 4 is a partial schematic diagram of a blood vessel centerline provided in an embodiment of the present application. Figure 4 As shown, Figure 4 The centerline of the blood vessel in is disconnected, and the endpoints of the disconnected part are endpoint A and endpoint B. For endpoint A and endpoint B, we can determine the neighboring point A' of endpoint A on the branch where it is located, and the neighboring point B' of endpoint B on the branch where it is located, respectively. Then the tangent vector of endpoint A is Tangent vector at endpoint B

[0145] As an example, the operation of connecting the endpoints of the disconnected part of the centerline of the first blood vessel according to the connection method of the vertices corresponding to the endpoints of the broken part in the centerline of the first blood vessel in the minimum spanning tree includes: if it is determined that two endpoints of the disconnected part of the centerline of the first blood vessel need to be connected according to the connection method of the vertices corresponding to the endpoints of the broken part in the minimum spanning tree, and the two endpoints meet the preset restriction conditions, then the two endpoints are connected.

[0146] In the embodiment of the present application, the endpoints of the disconnected parts of the first blood vessel centerline can be connected to obtain a complete and continuous second blood vessel centerline as the final extracted target blood vessel centerline.

[0147] In another embodiment, in order to make the extracted blood vessel centerline more accurate, after connecting the endpoints of the disconnected portion of the first blood vessel centerline to obtain a complete and continuous second blood vessel centerline, the second blood vessel centerline may be further corrected. Next, an example of the correction method of the second blood vessel centerline is described.

[0148] Step 105: Generate a blood vessel energy map based on the three-dimensional blood vessel image. The energy of the blood vessel part in the blood vessel energy map corresponds to the distance from the background.

[0149] In the embodiment of the present application, in order to correct the centerline of the second blood vessel, it is necessary to first generate a blood vessel energy map based on the three-dimensional blood vessel image, so as to modify the centerline of the second blood vessel based on the blood vessel energy map.

[0150] The vascular energy map is used to indicate the energy of the vascular part in the three-dimensional vascular image, and the energy of the vascular part corresponds to the distance of the vascular part from the background. In addition, the energy of the vascular part in the vascular energy map can be indicated by the brightness of the vascular part in the vascular energy map. The greater the brightness of the vascular part, the greater the energy of the vascular part.

[0151] It should be noted that the energy of the blood vessel part in the blood vessel energy map may be proportional to the distance from the background. For example, the farther the blood vessel part is from the background in the blood vessel energy map, the greater the energy, that is, the center of the blood vessel is brighter and the edge is darker. Alternatively, the energy of the blood vessel part in the blood vessel energy map may be inversely proportional to the distance from the background. For example, the farther the blood vessel part is from the background in the blood vessel energy map, the smaller the energy, that is, the center of the blood vessel is darker and the edge is brighter.

[0152] As an example, generating a blood vessel energy map according to a three-dimensional blood vessel image may include the following implementations:

[0153] The first implementation method is to perform distance transformation on the three-dimensional blood vessel image to obtain a first energy map, in which the blood vessel portion farther from the background has greater energy; and the first energy map is determined as the blood vessel energy map.

[0154] The operation of performing distance transformation on the three-dimensional blood vessel image may include: determining the distance between each pixel in the blood vessel part of the three-dimensional blood vessel image and the background, and determining the energy of each pixel in the blood vessel part of the three-dimensional blood vessel image according to the corresponding relationship between the distance and the energy, thereby generating a first energy map. The corresponding relationship between the distance and the energy is a proportional relationship, and the greater the distance, the greater the corresponding energy.

[0155] The blood vessel energy map generated by the first implementation method is a first energy map. In the blood vessel energy map, the farther the blood vessel part is from the background, the greater the energy is. That is, in the blood vessel energy map, the energy of the blood vessel center is larger and the energy of the blood vessel edge is smaller. Accordingly, the blood vessel center is brighter and the edge is darker.

[0156] The second implementation method is to perform distance transformation on the three-dimensional blood vessel image to obtain a first energy map; and to perform inversion processing on the first energy map to obtain a blood vessel energy map, in which the farther the blood vessel part is from the background, the smaller the energy is.

[0157] The first implementation method generates a blood vessel energy map by inverting the first energy map to obtain a second energy map. In the blood vessel energy map, the farther the blood vessel part is from the background, the smaller the energy is. That is, in the blood vessel energy map, the energy of the blood vessel center is larger and the energy of the blood vessel edge is smaller. Accordingly, the blood vessel center is brighter and the edge is darker.

[0158] The third implementation method is: performing blood vessel enhancement on the blood vessel image to obtain a first tubular structure map; performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map; and generating a blood vessel energy map based on the first tubular structure map and the first energy map.

[0159] The operation of generating the blood vessel energy map according to the first tubular structure map and the first energy map may include the following implementation methods:

[0160] 1) The first tubular structure image and the first energy image are fused to obtain a blood vessel energy image, in which the farther the blood vessel portion is from the background, the greater the energy is.

[0161] 2) The first tubular structure image is inverted to obtain a second tubular structure image, and the first energy image is inverted to obtain a second energy image; the second tubular structure image and the second energy image are fused to obtain a blood vessel energy image, in which the farther the blood vessel part is from the background, the smaller the energy is.

[0162] As an example, the vascular image can be enhanced to obtain a first tubular structure map Ds, and the three-dimensional vascular image can be distance transformed to obtain a first energy map Dd. Then, the first tubular structure map is inverted to obtain a second tubular structure map -Ds, and the first energy map is inverted to obtain a second energy map -Dd. The second tubular structure map and the second energy map are fused to obtain a vascular energy map D. For example, D = (-Ds) + (-Dd).

[0163] Please refer to Figure 5 , Figure 5 It is a projection schematic diagram of a vascular energy map provided in an embodiment of the present application. Figure 5 The projection shown is the projection of the vascular energy map on the y-axis, which is given by Figure 5 It can be seen that the energy of the blood vessel energy map is larger when it is close to the edge of the blood vessel, and the energy reaches the minimum value at the center of the blood vessel.

[0164] Step 106: Correct the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline.

[0165] Correcting the second blood vessel centerline according to the vascular energy map refers to the process in which the second blood vessel centerline approaches the actual blood vessel center under the thrust of the vascular energy map, so that the corresponding energy of the corrected second blood vessel centerline is minimum or maximum when reaching the actual blood vessel center, thereby making the corrected second blood vessel centerline as close to the actual blood vessel centerline as possible.

[0166] As an example, a target energy function of the second blood vessel centerline may be constructed based on the blood vessel energy map, and then the second blood vessel centerline may be corrected based on the target energy function to obtain a third blood vessel centerline.

[0167] In order to facilitate the correction of the center line of the second blood vessel, the center line of the second blood vessel can be decomposed into multiple branches, each of which is a curve. For each of the multiple branches, the target energy function of each branch is determined according to the blood vessel energy map, and then the target energy function of each branch is used to correct each branch.

[0168] The target energy function of each branch is the target energy equation of each molecule, which is used to indicate the energy of each branch. For example, a branch r can be defined as: p(k), k = 0, ..., m. k is used to indicate a discrete point in branch r, and m is the length of r.

[0169] As an example, the centerline of the second blood vessel is a tree structure, so it can be regarded as a depth-first traversal problem of a tree. For example, for the coronary artery, the branch endpoint where the aorta is located can be used as the root node, and the other endpoints can be used as leaf nodes. Then, the leaf nodes are traversed using the depth-first search method, and the traversed leaf nodes are placed in a stack. Each time a leaf node is traversed, all the nodes in the stack are a branch of the coronary artery tree, and the branch is saved and the stack is cleared. Until all leaf nodes are visited, the bifurcated coronary artery tree can be decomposed into several branches. After that, each branch is corrected separately.

[0170] As an example, the operation of constructing the target energy function of the second blood vessel centerline according to the blood vessel energy map includes the following two implementation methods:

[0171] The first implementation method is to generate an energy function of the centerline of the second blood vessel according to the blood vessel energy map, and determine the energy function of the centerline of the second blood vessel as the target energy function.

[0172] Specifically, for each branch in the centerline of the second blood vessel, a target energy function of each branch may be generated according to the blood vessel energy map.

[0173] For example, let p(k) = [x(k), y(k), z(k)] be the parametric equation of a branch r, k = 0, ..., m, where m is the length of the branch r. Assume that the two endpoints of the branch r are p(0) = [x0, y0, z0] and p(m) = [x e ,y e ,z e ]. Under the condition that the two endpoints of branch r are fixed, the target energy function of branch r can be expressed as the following formula (1):

[0174]

[0175] Where D(x(k), y(k), z(k)) represents the energy of point k in branch r, (x(k), y(k), z(k)) are the coordinates of point k in branch r; x(0) = x0, y(0) = y0, z(0) = z0, x(m) = x e ,y(m)=y e ,z(m)=z e .

[0176] The second implementation method: generating an energy function of the second blood vessel centerline according to the blood vessel energy map; constructing a target energy function of the second blood vessel centerline according to the energy function, a preset curve length constraint and a preset curvature constraint.

[0177] In the embodiment of the present application, in order to prevent the corrected blood vessel centerline from collapsing at one point, a preset curve length constraint and a preset curvature constraint can be added on the basis of the energy function. Among them, the preset curve length constraint is used to limit the distance between two adjacent points in the branch of the blood vessel centerline, so that the points on the branch are evenly distributed. The preset curvature constraint is used to limit the curvature at each point in the branch of the blood vessel centerline, so that the branch curve is smoother.

[0178] By adding a preset curve length constraint and a preset curvature constraint on the basis of the energy function, the corrected blood vessel centerline can be balanced among external force, smoothness and the distance between two points.

[0179] For example, let p(k) = [x(k), y(k), z(k)] be the parametric equation of a branch r, k = 0, ..., m, where m is the length of the branch r. Assume that the two endpoints of the branch r are p(0) = [x0, y0, z0] and p(m) = [x e ,y e ,z e ]. Under the condition that the two endpoints of branch r are fixed, the target energy function of branch r can be expressed as the following formula (2):

[0180]

[0181] Where D(x(k), y(k), z(k)) represents the energy of point k in branch r, (x(k), y(k), z(k)) are the coordinates of point k in branch r; x(0) = x0, y(0) = y0, z(0) = z0, x(m) = x e ,y(m)=y e ,z(m)=z e ; ||p(k)′||dk represents the length of branch r; ||p(k)″||dk represents the curvature of point k in branch r; α, β are weights.

[0182] As an example, according to the target energy function, the second blood vessel centerline is corrected to obtain the third blood vessel centerline, which includes the following two implementation methods:

[0183] The first implementation method: If the energy of the blood vessel part farther away from the background in the blood vessel energy map is greater, the second blood vessel centerline is adjusted with the maximization of the target energy function as the adjustment target to obtain the third blood vessel centerline.

[0184] That is, the target energy function can be solved for its maximum value to obtain the blood vessel centerline parameters that maximize the target energy function, and the second blood vessel centerline can be adjusted according to the obtained blood vessel centerline parameters to obtain the third blood vessel centerline.

[0185] For example, the following maximum objective energy function (3) or (4) can be solved:

[0186]

[0187]

[0188] By solving the above formula (3) or (4), the target coordinates of several points in branch r except the two end points can be obtained. The original coordinates of these points are adjusted to the target coordinates, so that the branch r can be adjusted.

[0189] The second implementation method: If the energy of the blood vessel part farther away from the background in the blood vessel energy map is smaller, then the second blood vessel centerline is adjusted with minimization of the target energy function as the adjustment target to obtain the third blood vessel centerline.

[0190] That is, the target energy function can be solved for the minimum value to obtain the blood vessel centerline parameters that minimize the target energy function, and the second blood vessel centerline can be adjusted according to the obtained blood vessel centerline parameters to obtain the third blood vessel centerline.

[0191] For example, the following minimization objective energy function (5) or (6) can be solved:

[0192]

[0193]

[0194] By solving the above formula (5) or (6), the target coordinates of several points in branch r except the two end points can be obtained. The original coordinates of these points are adjusted to the target coordinates, so that the branch r can be adjusted.

[0195] In an embodiment of the present application, a three-dimensional blood vessel reconstruction is performed based on a blood vessel image to obtain a three-dimensional blood vessel image, and a centerline of the blood vessel in the three-dimensional blood vessel image is extracted. After a first blood vessel centerline is obtained, endpoints of a disconnected portion of the first blood vessel centerline are automatically determined, and the endpoints of the disconnected portion of the first blood vessel centerline are connected, so that a continuous second blood vessel centerline can be obtained, thereby ensuring the integrity of the extracted blood vessel centerline.

[0196] In addition, after obtaining the continuous second blood vessel centerline, by generating a blood vessel energy map according to the three-dimensional blood vessel image, and correcting the second blood vessel centerline according to the blood vessel energy map, a more accurate third blood vessel centerline can be obtained, thereby improving the accuracy of extracting the blood vessel centerline. In addition, by using a fully convolutional dense network to segment the blood vessel image, a relatively complete blood vessel structure and small blood vessels in the distal part can be segmented from the blood vessel image, thereby extracting all branches of the blood vessel to the greatest extent to avoid omissions, thereby improving the accuracy of blood vessel segmentation. In addition, in the related art, after generating a three-dimensional blood vessel image according to the blood vessel image, the user needs to manually specify the endpoints and perform many interactive operations, while the embodiment of the present application does not require the user to perform interactive operations, thereby saving labor costs and improving the efficiency of extracting the blood vessel centerline.

[0197] Figure 6 is a schematic diagram of the structure of a blood vessel centerline extraction device provided in an embodiment of the present application. The device can be integrated into a computer device, such as Figure 6 As shown, the device includes: a reconstruction module 601, an extraction module 602, a determination module 603 and a connection module 604;

[0198] A reconstruction module 601 is used to perform three-dimensional reconstruction of blood vessels according to the blood vessel image to obtain a three-dimensional blood vessel image;

[0199] An extraction module 602 is used to extract the centerline of the blood vessel in the three-dimensional blood vessel image to obtain a first blood vessel centerline;

[0200] A determination module 603 is used to determine the endpoints of the disconnected portion of the centerline of the first blood vessel;

[0201] The connection module 604 is used to connect the endpoints of the disconnected part of the first blood vessel centerline to obtain the second blood vessel centerline.

[0202] Optionally, the reconstruction module 601 is used to:

[0203] Acquire multi-slice images of the blood vessel image;

[0204] The multi-layer slice image is segmented respectively by a fully convolutional dense network model to obtain a plurality of two-dimensional vascular images corresponding to the multi-layer slice image;

[0205] The blood vessel is reconstructed in three dimensions according to the multiple two-dimensional blood vessel images to obtain the three-dimensional blood vessel image.

[0206] Optionally, the determining module 603 is used to:

[0207] Determine the endpoints of each branch in the centerline of the first blood vessel to obtain a plurality of endpoints;

[0208] Constructing a weighted edge undirected graph with the multiple endpoints as vertices and the Euclidean distance between every two endpoints of the multiple endpoints as the weighted edge of the corresponding vertex;

[0209] Determine a minimum spanning tree of the weighted edge undirected graph, where the minimum spanning tree is a subgraph in the weighted edge undirected graph with the smallest sum of weighted edges;

[0210] The endpoints among the multiple endpoints that correspond to the multiple vertices in the minimum spanning tree and are not connected according to the connection method of the multiple vertices are determined as endpoints of the disconnected part.

[0211] Optionally, the connection module 604 is used to:

[0212] The endpoints of the disconnected portion of the first blood vessel centerline are connected according to the connection mode of the vertices corresponding to the endpoints of the disconnected portion in the minimum spanning tree to obtain the second blood vessel centerline.

[0213] Optionally, the connection module 604 is used to:

[0214] If it is determined according to the connection mode of the vertices corresponding to the endpoints of the broken part in the minimum spanning tree that two endpoints of the disconnected part of the centerline of the first blood vessel need to be connected, and the two endpoints meet the preset restriction condition, then the two endpoints are connected.

[0215] Optionally, the preset restriction condition includes one or more of the following conditions:

[0216] The angle between the tangent vectors of the two endpoints is greater than or equal to the angle threshold;

[0217] The distance between the two endpoints is less than or equal to the distance threshold.

[0218] Optionally, the device further comprises:

[0219] A generating module, configured to generate a blood vessel energy map according to the three-dimensional blood vessel image, wherein the energy of the blood vessel part in the blood vessel energy map corresponds to the distance from the background;

[0220] The correction module is used to correct the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline.

[0221] Optionally, the generation module is used to:

[0222] Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, wherein the blood vessel portion farther from the background in the first energy map has greater energy; determining the first energy map as the blood vessel energy map;

[0223] or,

[0224] Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, in which the blood vessel portion farther from the background has greater energy; performing inverse processing on the first energy map to obtain the blood vessel energy map, in which the blood vessel portion farther from the background has less energy;

[0225] or,

[0226] The blood vessel image is enhanced to obtain a first tubular structure map; the three-dimensional blood vessel image is distance transformed to obtain a first energy map, in which the farther the blood vessel part is from the background, the greater the energy; the blood vessel energy map is generated based on the first tubular structure map and the first energy map.

[0227] Optionally, the generation module is used to:

[0228] The first tubular structure image and the first energy image are fused to obtain the blood vessel energy image, wherein the blood vessel portion farther from the background in the blood vessel energy image has greater energy;

[0229] or,

[0230] The first tubular structure image is inverted to obtain a second tubular structure image, and the first energy image is inverted to obtain a second energy image. The second tubular structure image and the second energy image are fused to obtain the blood vessel energy image, in which the farther the blood vessel part is from the background, the smaller the energy is.

[0231] Optionally, the correction module is used to:

[0232] constructing a target energy function of the centerline of the second blood vessel according to the blood vessel energy map;

[0233] According to the target energy function, the second blood vessel centerline is corrected to obtain a third blood vessel centerline.

[0234] Optionally, the correction module is used to:

[0235] generating an energy function of the centerline of the second blood vessel according to the blood vessel energy map, and determining the energy function of the centerline of the second blood vessel as the target energy function;

[0236] or,

[0237] According to the blood vessel energy map, an energy function of the second blood vessel centerline is generated; according to the energy function, a preset curve length constraint condition and a preset curvature constraint condition, the target energy function is constructed.

[0238] Optionally, the correction module is used to:

[0239] If the energy of the blood vessel portion farther from the background in the blood vessel energy map is greater, the second blood vessel centerline is adjusted with the maximization of the target energy function as the adjustment target to obtain the third blood vessel centerline;

[0240] If the energy of the blood vessel portion farther from the background in the blood vessel energy map is smaller, then the second blood vessel centerline is adjusted with minimization of the target energy function as the adjustment target to obtain the third blood vessel centerline.

[0241] In an embodiment of the present application, a three-dimensional blood vessel reconstruction is performed based on a blood vessel image to obtain a three-dimensional blood vessel image, and a centerline of the blood vessel in the three-dimensional blood vessel image is extracted. After a first blood vessel centerline is obtained, endpoints of a disconnected portion of the first blood vessel centerline are automatically determined, and the endpoints of the disconnected portion of the first blood vessel centerline are connected, so that a continuous second blood vessel centerline can be obtained, thereby ensuring the integrity of the extracted blood vessel centerline.

[0242] In addition, after obtaining the continuous second blood vessel centerline, by generating a blood vessel energy map according to the three-dimensional blood vessel image, and correcting the second blood vessel centerline according to the blood vessel energy map, a more accurate third blood vessel centerline can be obtained, thereby improving the accuracy of extracting the blood vessel centerline. In addition, by using a fully convolutional dense network to segment the blood vessel image, a relatively complete blood vessel structure and small blood vessels in the distal part can be segmented from the blood vessel image, thereby extracting all branches of the blood vessel to the greatest extent to avoid omissions, thereby improving the accuracy of blood vessel segmentation. In addition, in the related art, after generating a three-dimensional blood vessel image according to the blood vessel image, the user needs to manually specify the endpoints and perform many interactive operations, while the embodiment of the present application does not require the user to perform interactive operations, thereby saving labor costs and improving the efficiency of extracting the blood vessel centerline.

[0243] Figure 7 700 is a structural block diagram of a computer device 700 provided in an embodiment of the present application. The computer device 700 may be an electronic device such as a mobile phone, a tablet computer, a desktop computer, a server, etc. The computer device 700 may be used to implement the blood vessel centerline extraction method provided in the above embodiment.

[0244] Typically, the computer device 700 includes a processor 701 and a memory 702 .

[0245] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0246] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is used to be executed by the processor 701 to implement the blood vessel centerline extraction method provided in the method embodiment of the present application.

[0247] In some embodiments, the computer device 700 may also optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device may include: at least one of a display screen 704, an audio circuit 705, a communication interface 706 and a power supply 707.

[0248] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the computer device 700, and the computer device 700 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.

[0249] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, the above-mentioned blood vessel centerline extraction method is implemented.

[0250] In an exemplary embodiment, a computer program product is also provided. When the computer program product is executed, it is used to implement the above-mentioned blood vessel centerline extraction method.

[0251] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for extracting the centerline of a blood vessel, It is characterized in that The method comprises: Acquire multi-slice images of vascular images; By using a fully convolutional dense network model, the multi-layer slice images are respectively segmented to obtain a plurality of two-dimensional blood vessel images corresponding to the multi-layer slice images one by one; Performing three-dimensional reconstruction of blood vessels according to the multiple two-dimensional blood vessel images to obtain a three-dimensional blood vessel image; Extracting the centerline of the blood vessel in the three-dimensional blood vessel image to obtain a first blood vessel centerline; determining endpoints of the disconnected portion of the centerline of the first blood vessel; Connecting the endpoints of the disconnected portion of the first blood vessel centerline to obtain a second blood vessel centerline; generating a blood vessel energy map according to the three-dimensional blood vessel image, wherein the energy of the blood vessel part in the blood vessel energy map corresponds to the distance from the background; Correcting the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline; Wherein, determining the endpoints of the disconnected portion of the centerline of the first blood vessel includes: Determine the endpoints of each branch in the centerline of the first blood vessel to obtain a plurality of endpoints; Constructing a weighted edge undirected graph with the multiple endpoints as vertices and the Euclidean distance between every two endpoints of the multiple endpoints as a weighted edge; Determine a minimum spanning tree of the weighted edge undirected graph, wherein the minimum spanning tree is a subgraph in the weighted edge undirected graph with the smallest sum of weighted edges; Determine endpoints among the multiple endpoints that correspond to the multiple vertices in the minimum spanning tree and are not connected according to the connection method of the multiple vertices as endpoints of the disconnected part; The step of connecting the endpoints of the disconnected parts of the first blood vessel centerline to obtain the second blood vessel centerline includes: If it is determined that two endpoints of the disconnected part of the centerline of the first blood vessel need to be connected according to the connection method of the vertices corresponding to the endpoints of the disconnected part in the minimum spanning tree, and the two endpoints meet the preset restriction conditions, the two endpoints are connected; the preset restriction conditions include one or more of the following conditions: the angle between the tangent vectors of the two endpoints is greater than or equal to the angle threshold; the distance between the two endpoints is less than or equal to the distance threshold.

2. The method according to claim 1, It is characterized in that Generating a blood vessel energy map according to the three-dimensional blood vessel image includes: Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map, wherein the blood vessel portion farther from the background in the first energy map has greater energy; determining the first energy map as the blood vessel energy map; or, Performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map; performing inversion processing on the first energy map to obtain the blood vessel energy map, wherein the blood vessel portion farther from the background in the blood vessel energy map has smaller energy; or, Performing blood vessel enhancement on the blood vessel image to obtain a first tubular structure map; performing distance transformation on the three-dimensional blood vessel image to obtain a first energy map; and generating the blood vessel energy map based on the first tubular structure map and the first energy map.

3. The method according to claim 2, It is characterized in that Generating the blood vessel energy map according to the first tubular structure map and the first energy map includes: fusing the first tubular structure image and the first energy image to obtain the blood vessel energy image, wherein the blood vessel portion farther from the background in the blood vessel energy image has greater energy; or, The first tubular structure map is inverted to obtain a second tubular structure map, and the first energy map is inverted to obtain a second energy map; the second tubular structure map and the second energy map are fused to obtain the blood vessel energy map, wherein the farther the blood vessel part is from the background, the smaller the energy is.

4. The method according to any one of claims 1 to 3, It is characterized in that The step of correcting the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline includes: constructing a target energy function of the second blood vessel centerline according to the blood vessel energy map; The second blood vessel centerline is corrected according to the target energy function to obtain a third blood vessel centerline.

5. The method according to claim 4, It is characterized in that The step of constructing a target energy function of the second blood vessel centerline according to the blood vessel energy map comprises: generating an energy function of the second blood vessel centerline according to the blood vessel energy map, and determining the energy function of the second blood vessel centerline as the target energy function; or, According to the blood vessel energy map, an energy function of the second blood vessel centerline is generated; according to the energy function, a preset curve length constraint condition and a preset curvature constraint condition, the target energy function is constructed.

6. The method according to claim 4, It is characterized in that The step of correcting the second blood vessel centerline according to the target energy function to obtain a third blood vessel centerline includes: If the energy of the blood vessel portion farther from the background in the blood vessel energy map is greater, adjusting the second blood vessel centerline with maximization of the target energy function as an adjustment target to obtain the third blood vessel centerline; If the energy of the blood vessel portion farther from the background in the blood vessel energy map is smaller, then the second blood vessel centerline is adjusted with minimization of the target energy function as the adjustment target to obtain the third blood vessel centerline.

7. A blood vessel centerline extraction device, It is characterized in that The device comprises: A reconstruction module is used to obtain multi-layer slice images of vascular images; perform image segmentation on the multi-layer slice images respectively through a fully convolutional dense network model to obtain a plurality of two-dimensional vascular images corresponding to the multi-layer slice images; perform three-dimensional reconstruction of the blood vessels based on the plurality of two-dimensional vascular images to obtain a three-dimensional vascular image; An extraction module, used for extracting the centerline of the blood vessel in the three-dimensional blood vessel image to obtain a first blood vessel centerline; A determination module, used to determine the endpoints of the disconnected portion of the centerline of the first blood vessel; A connection module, used for connecting the endpoints of the disconnected parts of the first blood vessel centerline to obtain a second blood vessel centerline; A generating module, configured to generate a blood vessel energy map according to the three-dimensional blood vessel image, wherein the energy of the blood vessel part in the blood vessel energy map corresponds to the distance from the background; A correction module, used for correcting the second blood vessel centerline according to the blood vessel energy map to obtain a third blood vessel centerline; Wherein, the determination module is specifically used for: Determine the endpoints of each branch in the centerline of the first blood vessel to obtain a plurality of endpoints; Constructing a weighted edge undirected graph with the multiple endpoints as vertices and the Euclidean distance between every two endpoints of the multiple endpoints as a weighted edge; Determine a minimum spanning tree of the weighted edge undirected graph, wherein the minimum spanning tree is a subgraph in the weighted edge undirected graph with the smallest sum of weighted edges; Determine endpoints among the multiple endpoints that correspond to the multiple vertices in the minimum spanning tree and are not connected according to the connection method of the multiple vertices as endpoints of the disconnected part; Wherein, the connection module is specifically used for: If it is determined that two endpoints of the disconnected part of the centerline of the first blood vessel need to be connected according to the connection method of the vertices corresponding to the endpoints of the disconnected part in the minimum spanning tree, and the two endpoints meet the preset restriction conditions, the two endpoints are connected; the preset restriction conditions include one or more of the following conditions: the angle between the tangent vectors of the two endpoints is greater than or equal to the angle threshold; the distance between the two endpoints is less than or equal to the distance threshold.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.