Pulmonary blood vessel segmentation method, device, storage medium and electronic device

By determining the mediastinal blood vessel image in the pulmonary blood vessel segmentation method and using the pulmonary blood vessel skeleton map to optimize the three-dimensional pulmonary blood vessel image, the problem of splicing marks at the mediastinum is solved, the accuracy and aesthetics of pulmonary blood vessel segmentation are improved, and the understanding of the lungs is enhanced. Assistance in disease diagnosis.

CN114596275BActive Publication Date: 2024-08-23INFERVISION MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210205172.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2024-08-23
Estimated Expiration
2042-03-02

AI Technical Summary

Technical Problem

Existing pulmonary blood vessel segmentation methods have obvious splicing marks in the mediastinum, resulting in inaccurate and unsightly segmentation results, which affects doctors' diagnosis of lung diseases.

Method used

By determining the mediastinal blood vessel image corresponding to the mediastinal region image, and optimizing the first three-dimensional pulmonary blood vessel image based on the mediastinal blood vessel image, combined with the pulmonary blood vessel skeleton map, the pulmonary blood vessel segmentation results are further optimized to reduce splicing errors.

Benefits of technology

It improves the accuracy and aesthetics of the pulmonary blood vessel segmentation results, reduces the number of disconnected blood vessels in the mediastinum, and enhances the auxiliary nature of the diagnosis of lung diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114596275B
    Figure CN114596275B
Patent Text Reader

Abstract

The present application provides a pulmonary vascular segmentation method, device, storage medium and electronic device, which relate to the field of image processing technology. The pulmonary vascular segmentation method includes: determining the mediastinal vascular image corresponding to the mediastinal vascular image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented; processing the first three-dimensional image of the pulmonary vascular generated based on the three-dimensional image of the lung to be segmented based on the mediastinal vascular image to obtain the second three-dimensional image of the pulmonary vascular; processing the second three-dimensional image of the pulmonary vascular based on the pulmonary vascular skeleton map corresponding to the three-dimensional image of the lung to be segmented to obtain the pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented. The pulmonary vascular segmentation method in the present application optimizes the segmentation result at the mediastinum, making the final pulmonary vascular segmentation result more accurate, thereby facilitating doctors to diagnose lung-related diseases in patients.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a pulmonary blood vessel segmentation method, device, storage medium and electronic device. Background Art

[0002] In order to better assist doctors in diagnosing and treating lung-related diseases with the help of lung medical images, it is usually necessary to perform vascular segmentation on the lung medical images to obtain pulmonary vascular segmentation results.

[0003] However, due to the characteristics of dense and slender pulmonary blood vessels, the current segmentation methods for pulmonary blood vessels have the defect of poor segmentation effect. For example, the segmentation method for pulmonary computed tomography (CT) images usually needs to first cut the pulmonary CT images into blocks to obtain multiple lung blocks, and then use the deep learning model to segment each lung block separately to obtain the segmentation results corresponding to the multiple lung blocks, and finally splice the segmentation results corresponding to the multiple lung blocks to obtain the final pulmonary blood vessel segmentation results. The above segmentation method for pulmonary CT images will cause obvious splicing marks at the splicing points, especially at the splicing points related to the mediastinum, where the splicing marks are more obvious. Summary of the invention

[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a pulmonary blood vessel segmentation method, device, storage medium and electronic device.

[0005] In a first aspect, an embodiment of the present application provides a pulmonary vascular segmentation method, comprising: determining a mediastinal vascular image corresponding to the mediastinal region image based on a mediastinal region image corresponding to a three-dimensional image of a lung to be segmented; processing a first three-dimensional image of a pulmonary vascular image generated based on the three-dimensional image of a lung to be segmented based on the mediastinal vascular image to obtain a second three-dimensional image of a pulmonary vascular image; and processing the second three-dimensional image of a pulmonary vascular image based on a pulmonary vascular skeleton map corresponding to the three-dimensional image of a lung to be segmented to obtain a pulmonary vascular segmentation result of the three-dimensional image of a lung to be segmented.

[0006] In a second aspect, an embodiment of the present application provides a pulmonary vascular segmentation device, comprising: a first determination module, used to determine a mediastinal vascular image corresponding to a mediastinal region image based on a mediastinal region image corresponding to the three-dimensional image of the lung to be segmented; a first processing module, used to process a first three-dimensional image of pulmonary vessels generated based on the three-dimensional image of the lung to be segmented, based on the mediastinal vascular image, to obtain a second three-dimensional image of pulmonary vessels; a second processing module, used to process the second three-dimensional image of pulmonary vessels based on a pulmonary vascular skeleton map corresponding to the three-dimensional image of the lung to be segmented, to obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

[0007] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for executing the pulmonary vascular segmentation method mentioned in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; the processor is used to execute the pulmonary vascular segmentation method mentioned in the first aspect above.

[0009] The pulmonary vascular segmentation method provided in the present application optimizes the first pulmonary vascular three-dimensional image by determining the mediastinal vascular image corresponding to the mediastinal region image to obtain a second pulmonary vascular three-dimensional image. The second pulmonary vascular three-dimensional image is further optimized by determining the pulmonary vascular skeleton map corresponding to the three-dimensional image of the lung to be segmented, and the final pulmonary vascular segmentation result is determined. This method can optimize the pulmonary vascular segmentation results at the mediastinum, making the pulmonary vascular segmentation results more accurate and beautiful. In addition, by optimizing the second pulmonary vascular three-dimensional image through the pulmonary vascular skeleton map, the disconnected blood vessels that may exist on the second pulmonary vascular three-dimensional image can be connected, further improving the accuracy of the pulmonary vascular segmentation results and optimizing the segmentation effect, thereby better assisting doctors in the diagnosis and treatment of lung-related diseases. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0011] Figure 1 Shown is a schematic diagram of a scenario applicable to an embodiment of the present application.

[0012] Figure 2 Shown is a flowchart of a pulmonary blood vessel segmentation method provided by an exemplary embodiment of the present application.

[0013] Figure 3 Shown is a schematic diagram of a process for determining a mediastinal vascular image corresponding to a mediastinal region image provided by an exemplary embodiment of the present application.

[0014] Figure 4 A schematic diagram of a first pulmonary blood vessel three-dimensional image provided by an exemplary embodiment of the present application.

[0015] Figure 5 A schematic diagram of an image of the superior mediastinum region provided as an exemplary embodiment of the present application.

[0016] Figure 6Shown is a schematic diagram of a process for determining a mediastinal vascular image corresponding to a mediastinal region image provided by another exemplary embodiment of the present application.

[0017] Figure 7 Shown is a flowchart of a pulmonary blood vessel segmentation method provided by another exemplary embodiment of the present application.

[0018] Figure 8 Shown is a schematic structural diagram of the initial upper mediastinum region provided by an exemplary embodiment of the present application.

[0019] Fig. 9 The figure is a schematic diagram of a process of segmenting a three-dimensional lung image to be segmented to obtain a first three-dimensional image of lung blood vessels provided by an exemplary embodiment of the present application.

[0020] Fig.10 Shown is a schematic diagram of a process for obtaining a second pulmonary blood vessel three-dimensional image provided by an exemplary embodiment of the present application.

[0021] Fig.11 The figure is a schematic diagram of a process for obtaining a pulmonary blood vessel segmentation result of a three-dimensional image of a lung to be segmented provided by an exemplary embodiment of the present application.

[0022] Fig.12 Shown is a schematic structural diagram of a pulmonary blood vessel segmentation result of a three-dimensional lung image to be segmented provided by an exemplary embodiment of the present application.

[0023] Fig.13 Shown is a flowchart of a pulmonary blood vessel segmentation method provided by yet another exemplary embodiment of the present application.

[0024] Fig.14 Shown is a schematic diagram of an initial arterial blood vessel skeleton diagram provided by an exemplary embodiment of the present application.

[0025] Fig.15 Shown is a schematic diagram of a skeleton diagram of an artery to be grown provided by an exemplary embodiment of the present application.

[0026] Fig.16 Shown is a schematic diagram of a process for obtaining a pulmonary vein vascular skeleton map and a pulmonary artery vascular skeleton map provided by an exemplary embodiment of the present application.

[0027] Fig.17 Shown is a schematic structural diagram of a pulmonary vascular segmentation device provided by an exemplary embodiment of the present application.

[0028] Fig.18 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

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

[0030] CT (Computed Tomography) is a computer tomography scan that uses precisely collimated X-ray beams, gamma rays, ultrasound, etc., together with extremely sensitive detectors to perform cross-sectional scans one after another around a certain part of the human body. It has the characteristics of fast scanning time and clear images, and can be used to detect a variety of diseases.

[0031] The lungs consist of five lobes, namely the left upper lobe, left lower lobe, right upper lobe, right middle lobe, and right lower lobe. Each lobe is blocked by the visceral pleura to form an independent lobe. Different lobes can also transfer substances to each other through the visceral pleura. Each lobe is composed of alveoli, bronchioles, lymphatic vessels, and blood vessels. The pulmonary blood vessels are divided into two parts: the pulmonary artery and the pulmonary vein. The pulmonary artery and the pulmonary vein constitute the pulmonary circulatory system, which receives venous return blood from organs throughout the body and completes gas exchange in the lungs.

[0032] The mediastinum is the general term for the organs, structures and connective tissues between the left and right mediastinal pleura. The mediastinum is located in the sagittal plane, slightly to the left of the center of the chest cavity, narrow at the top and wide at the bottom, short in front and long in the back. The anterior boundary of the mediastinum is the sternum, the posterior boundary is the thoracic spine, the two sides are the mediastinal pleura, the upper boundary is the upper opening of the thorax, and the lower boundary is the diaphragm. Under normal circumstances, the position of the mediastinum is relatively fixed.

[0033] Pulmonary blood vessel segmentation is of great significance for doctors to diagnose diseases. The commonly used pulmonary blood vessel segmentation method is usually to use a deep learning model to directly segment the lung CT image. However, the lung blood vessels are dense and long, and the lung window CT is usually large. When the lung CT image is downsampled and then segmented, the image resolution will be reduced, resulting in a large number of blood vessels being disconnected. The method of cutting the lung CT image into blocks and then segmenting it also requires splicing the segmentation results of the blocks, which will produce many splicing marks. These splicing marks are particularly obvious in the mediastinum, resulting in inaccurate and unsightly segmentation results, affecting doctors' judgment of lung-related diseases.

[0034] Figure 1 The figure shows a schematic diagram of a scenario applicable to the embodiment of the present application. The scenario includes an image acquisition device 110 and a computer device 120. There is a communication connection relationship between the computer device 120 and the image acquisition device 110. The communication connection can be a wired connection or a wireless connection.

[0035] Specifically, the image acquisition device 110 is used to acquire a three-dimensional image of the lung to be segmented. The image acquisition device 110 can be a CT scanner, an X-ray machine, or other devices with image acquisition functions, as long as they can acquire lung images. This application does not specifically limit the structure of the image acquisition device 1.

[0036] The computer device 120 is used to receive the three-dimensional image of the lung to be segmented acquired by the image acquisition device 110, and determine the mediastinal vascular image corresponding to the mediastinal regional image based on the mediastinal regional image corresponding to the three-dimensional image of the lung to be segmented. The computer device 120 can be a general-purpose computer or a computer device composed of a dedicated integrated circuit, etc., which is not limited in this application. For example, the computer device 120 can be a mobile terminal device such as a tablet computer, or a personal computer, and the number of computer devices 120 can be one or more, and their types can be the same or different. The embodiment of this application does not limit the number and type of computer devices 120. The computer device 120 can be used to determine the mediastinal vascular image corresponding to the mediastinal regional image, and obtain the second pulmonary vascular three-dimensional image corresponding to the three-dimensional image of the lung to be segmented based on the mediastinal vascular image, and then determine the final pulmonary vascular classification result based on the pulmonary vascular skeleton map corresponding to the three-dimensional image of the lung to be segmented.

[0037] Figure 2 FIG. 2 is a flow chart of a pulmonary vascular segmentation method provided by an exemplary embodiment of the present application. Figure 2 As shown, the pulmonary blood vessel segmentation method provided in the embodiment of the present application includes the following steps.

[0038] Step 60 , based on the mediastinum region image corresponding to the three-dimensional image of the lung to be segmented, determine the mediastinum vascular image corresponding to the mediastinum region image.

[0039] Specifically, the three-dimensional lung image to be segmented may be a CT image of the lung to be segmented. The mediastinal vascular image refers to a vascular image generated based on a mediastinal region image.

[0040] Step 70 : Based on the mediastinal vascular image, the first pulmonary vascular three-dimensional image generated based on the pulmonary three-dimensional image to be segmented is processed to obtain a second pulmonary vascular three-dimensional image.

[0041] Specifically, the vascular segmentation result of the mediastinum region in the first pulmonary vascular three-dimensional image is replaced by the mediastinal vascular image, that is, the vascular segmentation result of the mediastinum region, so as to obtain the second pulmonary vascular three-dimensional image.

[0042] Step 100: Process the second pulmonary vascular three-dimensional image based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented, and obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

[0043] Specifically, the pulmonary vascular skeleton image and the second pulmonary vascular three-dimensional image are fused to obtain a pulmonary vascular segmentation result of the three-dimensional lung image to be segmented.

[0044] In this embodiment, the first pulmonary vessel 3D image is processed by using the mediastinal vessel image, and the segmentation result of the mediastinum on the first pulmonary vessel 3D image is optimized, making the pulmonary vessel segmentation result more accurate and beautiful. In addition, the second pulmonary vessel 3D image is processed by using the pulmonary vessel skeleton map, so that the small blood vessels that may be disconnected on the second pulmonary vessel image can be connected, further improving the accuracy of the pulmonary vessel segmentation result and optimizing the segmentation effect, thereby better assisting doctors in diagnosing lung-related diseases.

[0045] In some embodiments, the upper mediastinum part and the lower mediastinum part are taken as a whole, and the mediastinum region in the mediastinum region image includes the upper mediastinum part and the lower mediastinum part as a whole. The upper mediastinal vessels and the lower mediastinal vessels are taken as a whole, and the mediastinal vessels in the mediastinal vessel image include the upper mediastinal vessels and the lower mediastinal vessels as a whole. Specifically, according to the three-dimensional image of the lung to be segmented, the corresponding mediastinal region image is determined, and then the mediastinal vessel image corresponding to the mediastinal region image is further determined. Through the technical solution in this embodiment, a mediastinal vessel image including the upper mediastinal vessels and the lower mediastinal vessels as a whole can be obtained, thereby speeding up the segmentation of pulmonary vessels.

[0046] In other embodiments, the mediastinum region image includes an upper mediastinum region image and a lower mediastinum region image, and the mediastinum vascular image includes an upper mediastinum vascular image and a lower mediastinum vascular image. Specifically, in this embodiment, the mediastinum region is divided into the upper mediastinum and the lower mediastinum. Further, the mediastinum vascular image determined based on the mediastinum region image is also divided into an upper mediastinum vascular image and a lower mediastinum vascular image. Through the technical solution in this embodiment, the interference between the pulmonary artery and the pulmonary vein can be avoided, and a pulmonary vascular segmentation result with a better segmentation effect can be obtained.

[0047] Figure 3 FIG. 1 is a flow chart of determining a mediastinal vascular image corresponding to a mediastinal region image provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0048] like Figure 3 As shown, the step of determining the mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented includes the following steps.

[0049] Step 61 : based on the superior mediastinum boundary information contained in the superior mediastinum region image, intercept the first pulmonary vascular three-dimensional image to obtain the superior mediastinum image to be segmented.

[0050] Specifically, the upper mediastinum region image only includes the upper mediastinum part. On the upper mediastinum region image, the upper mediastinum region bounding box is marked along the boundary of the upper mediastinum, and then the minimum circumscribed cube of the upper mediastinum region bounding box is cut out. According to the position information of the minimum circumscribed cube of the upper mediastinum region bounding box, at the same position of the first pulmonary blood vessel three-dimensional image, an area of ​​the same size as the minimum circumscribed cube of the upper mediastinum region bounding box is intercepted to obtain the upper mediastinum image to be segmented corresponding to the first pulmonary blood vessel three-dimensional image. It can be understood that the upper mediastinum image to be segmented includes not only the upper mediastinum region, but also some small blood vessels in the lungs.

[0051] For example, Figure 4 is a schematic diagram of a three-dimensional image of the first pulmonary blood vessel, Figure 5 Schematic diagram of the image of the superior mediastinum region. Based on the superior mediastinum boundary information, the superior mediastinum region bounding box is marked. According to the superior mediastinum region bounding box, the minimum circumscribed cube corresponding to the superior mediastinum region bounding box is cut out.

[0052] Step 62: based on the lower mediastinum boundary information contained in the lower mediastinum region image, intercept the first pulmonary vascular three-dimensional image to obtain the lower mediastinum image to be segmented.

[0053] Specifically, similar to the description in step 61, a lower mediastinum region bounding box is marked on the lower mediastinum region image, and the minimum circumscribed cube of the lower mediastinum region bounding box is cut out, and according to the position information of the minimum circumscribed cube of the lower mediastinum region bounding box, a region of the same size as the minimum circumscribed cube of the lower mediastinum region bounding box is cut out at the same position of the first pulmonary blood vessel three-dimensional image to obtain the lower mediastinum region image to be segmented corresponding to the first pulmonary blood vessel three-dimensional image. The lower mediastinum region image to be segmented includes not only the lower mediastinum region, but also some small blood vessels of the lungs.

[0054] Step 65 , using the mediastinal vessel segmentation model, determine the upper mediastinal vessel image based on the upper mediastinal image to be segmented, and determine the lower mediastinal vessel image based on the lower mediastinal image to be segmented.

[0055] Specifically, the upper mediastinum image to be segmented and the lower mediastinum image to be segmented are respectively input into the mediastinal vascular segmentation model, and the mediastinal vascular segmentation model outputs the upper mediastinum vascular image corresponding to the upper mediastinum image to be segmented, and outputs the lower mediastinum vascular image corresponding to the lower mediastinum image to be segmented.

[0056] The superior mediastinal vascular images and inferior mediastinal vascular images also include segmentation results of some small pulmonary blood vessels, but compared with the mediastinal region, the segmentation results of the small pulmonary blood vessels are less accurate.

[0057] In this embodiment, the upper mediastinum image to be segmented and the lower mediastinum image to be segmented are obtained based on the minimum circumscribed cube of the upper mediastinum region bounding box and the minimum circumscribed cube of the lower mediastinum region bounding box, respectively, that is, the upper mediastinum image to be segmented and the lower mediastinum image to be segmented are the minimum segmentation units including the upper mediastinum and the lower mediastinum, respectively, which can reduce the video memory of the mediastinum vascular segmentation model and improve the processing speed of the mediastinum vascular segmentation model. In addition, through the technical solution in this embodiment, the upper mediastinum region and the lower mediastinum region with more accurate segmentation results can be obtained.

[0058] Figure 6 FIG. 1 is a flow chart of determining a mediastinal vascular image corresponding to a mediastinal region image provided by another exemplary embodiment of the present application. Figure 3 Based on the embodiment shown, Figure 6 The embodiment shown is described below in detail. Figure 6 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.

[0059] like Figure 6 As shown, before using the mediastinal vascular segmentation model, the following steps are also included.

[0060] Step 63: Acquire a plurality of upper mediastinum region image samples and a plurality of lower mediastinum region image samples.

[0061] Exemplarily, a plurality of upper mediastinum region image samples and a plurality of lower mediastinum region image samples are determined based on a plurality of pulmonary vascular three-dimensional image samples with different pixel pitches. For example, the pixel pitches of the pulmonary vascular image samples are 1, 0.6, 0.6, or 1, 0.7, 0.7, etc. In addition, the upper mediastinum region image samples and the lower mediastinum region image samples may come from the same lung CT image or from different lung CT images.

[0062] Step 64: Based on the plurality of upper mediastinum region image samples and the plurality of lower mediastinum region image samples, an initial network model is trained to obtain a mediastinal vascular segmentation model.

[0063] In some embodiments, the loss function used in the training process includes the classification loss function of the mediastinal artery and the mediastinal vein, the classification loss function of the mediastinal artery and the trachea, and the classification loss function of the mediastinal vein and the trachea. In addition, the loss function used in the training process also includes a blood vessel segmentation loss function, and a length regularized smoothing loss function of the artery and a length regularized smoothing loss function of the vein.

[0064] Specifically, the vascular segmentation loss function is to ensure the accurate segmentation ability of the mediastinal vascular segmentation model. Adding the classification loss function of the mediastinal artery and the mediastinal vein, the classification loss function of the mediastinal artery and the trachea, and the classification loss function of the mediastinal vein and the trachea can enable the mediastinal vascular segmentation model to better distinguish the mediastinal artery, the mediastinal vein and the trachea, and improve the output accuracy of the mediastinal vascular segmentation model. The length regularization smoothing loss function is an energy function that uses the contour length as the active contour in the active contour model. By reducing this energy function, the segmentation edge can be smoothed. Since the output result of the mediastinum is expected to be smoother and more beautiful, the length regularization smoothing loss function is introduced to assist the mediastinal vascular segmentation model in outputting smoother results.

[0065] When the upper and lower mediastinum are predicted together, the image is larger, which will reduce the resolution of the graphics. In this embodiment, the mediastinal vascular segmentation model is trained separately using the upper mediastinum region image samples and the lower mediastinum region image samples, which can maximize the resolution and receptive field of the model and improve the output accuracy of the mediastinal vascular segmentation model. In addition, the training process of the mediastinal vascular segmentation model includes a pixel spacing isotropic process, that is, the upper mediastinum region image samples and the lower mediastinum region image samples with different pixel spacings are unified to 1.0, 1.0, and 1.0. The pixel spacing isotropic process can keep the input and output sizes of the mediastinal vascular segmentation model consistent, further improve the segmentation effect of the mediastinal vascular segmentation model, and increase the robustness of the mediastinal vascular segmentation model.

[0066] Figure 7 FIG. 2 is a flow chart of a pulmonary vascular segmentation method provided by another exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 7 The embodiment shown is described below in detail. Figure 7 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0067] like Figure 7 As shown, before determining the mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented, the following steps are also included.

[0068] Step 10: segment the three-dimensional lung image to be segmented to obtain a first three-dimensional image of pulmonary blood vessels.

[0069] The first pulmonary vascular three-dimensional image includes classification information of pulmonary veins and pulmonary arteries, that is, in the first pulmonary vascular three-dimensional image, pulmonary veins and pulmonary arteries are marked with different colors. Exemplarily, Figure 4The first pulmonary vascular three-dimensional image is obtained by segmenting the lung three-dimensional image to be segmented. There are some protrusions in the mediastinum area on the first pulmonary vascular three-dimensional image, and the edge of the mediastinum is not smooth.

[0070] The pulmonary vein vessels are hidden on the first pulmonary vessel 3D image to obtain a first pulmonary artery vessel 3D image. The artery vessels are hidden on the first pulmonary vessel 3D image to obtain a first pulmonary vein vessel 3D image.

[0071] Step 20: Perform distance transformation on the arterial vessels in the first pulmonary artery 3D image, and determine an initial superior mediastinum region based on a preset distance threshold.

[0072] Specifically, the arterial blood vessels in the three-dimensional image of the first pulmonary artery are transformed in distance, and are divided into N unit distances from the inside to the outside, where N is a positive integer. The preset distance threshold is Q, where Q is a positive integer, and Q<N. Based on the preset distance threshold Q, the initial superior mediastinum region is determined. Exemplarily, N is 10 and Q is 2, that is, the arterial blood vessels in the three-dimensional image of the first pulmonary artery are divided into 10 unit distances from the inside to the outside, the outermost layer is 1, the innermost layer is 10, and the area with ≥2 unit distances is taken as the initial superior mediastinum region.

[0073] Figure 8 The figure shows the schematic diagram of the structure of the initial upper mediastinum region. The first pulmonary artery contains many small blood vessels. After the distance transformation, the small blood vessels are closer to the outermost unit, while the upper mediastinum region is thicker, so the upper mediastinum region is farther from the outermost unit. Therefore, the initial upper mediastinum region can be obtained by performing distance transformation on the arterial vessels in the three-dimensional image of the first pulmonary artery.

[0074] It can be understood that the values ​​of N and Q in this embodiment are only examples, and those skilled in the art can select the values ​​of N and Q according to actual conditions.

[0075] Step 30: Perform distance transformation on the venous vessels in the first pulmonary venous three-dimensional image, and determine an initial inferior mediastinum region based on a preset distance threshold.

[0076] Similar to the description in step 20, the venous vessels in the three-dimensional image of the first pulmonary venous vessels are subjected to distance transformation and divided into N unit distances from the inside to the outside, where N is a positive integer. The preset distance threshold is Q, where Q is a positive integer, and Q < N. Based on the preset distance threshold Q, the initial lower mediastinum region is determined. Exemplarily, N is 10 and Q is 2, that is, the venous vessels in the three-dimensional image of the first pulmonary venous vessels are divided into 10 unit distances from the inside to the outside, the outermost layer is 1, the innermost layer is 10, and the area with ≥2 unit distances is used as the initial lower mediastinum region.

[0077] Step 40: Based on the superior mediastinum boundary information contained in the first pulmonary artery vascular three-dimensional image, region growing is performed on the initial superior mediastinum region to obtain an superior mediastinum region image.

[0078] Specifically, based on the superior mediastinum boundary information contained in the first pulmonary artery vascular three-dimensional image, a limited area is determined, and the number of growth steps and the growth step length are set. According to the limited area, the number of growth steps and the growth step length, the initial superior mediastinum area is grown to obtain an superior mediastinum area image.

[0079] For example, the image of the superior mediastinum region after region growing is as follows: Figure 5 As shown, the upper mediastinum region in the upper mediastinum region image is a mediastinum region in which the terminal fine branches are removed and which is slightly larger than the initial upper mediastinum region.

[0080] Step 50: Based on the inferior mediastinum boundary information included in the first pulmonary vein three-dimensional image, region growing is performed on the initial inferior mediastinum region to obtain a inferior mediastinum region image.

[0081] Similar to the description in step 40, firstly, according to the lower mediastinum boundary information contained in the first pulmonary vein vascular three-dimensional image, a limited area is determined, and then the number of growth steps and the growth step length are set. According to the limited area, the number of growth steps and the growth step length, the initial lower mediastinum area is grown to obtain a lower mediastinum area image.

[0082] Through the technical solution in this embodiment, the upper mediastinum region image and the lower mediastinum region image are obtained, which serves as a basis for the next step of segmenting the upper mediastinum region and the lower mediastinum region, so that the segmentation results of the upper mediastinum region image and the lower mediastinum region image can be used to optimize the first pulmonary vascular three-dimensional image to obtain a more accurate pulmonary vascular segmentation result.

[0083] Fig. 9 FIG. 1 is a flow chart of segmenting a 3D lung image to be segmented to obtain a first 3D lung blood vessel image provided by an exemplary embodiment of the present application. Figure 7 Based on the embodiment shown, Fig. 9 The embodiment shown is described below in detail. Fig. 9 The embodiment shown and Figure 7 The differences and similarities of the illustrated embodiments are not described in detail.

[0084] like Fig. 9 As shown, the step of segmenting the three-dimensional lung image to be segmented to obtain a first three-dimensional image of lung blood vessels includes the following steps.

[0085] Step 11: using the lung segmentation model, based on the three-dimensional image of the lung to be segmented, determine a lung segmentation image.

[0086] Specifically, the lung segmentation image includes regions of the left and right lungs, and a mediastinum region between the left and right lungs.

[0087] Step 12: Determine a pulmonary vascular segmentation image based on the lung segmentation image using the pulmonary vascular segmentation model.

[0088] Specifically, the lung segmentation image is divided into P lung image blocks, and the segmentation positions of the P lung image blocks are recorded. The P lung image blocks are respectively input into the pulmonary vascular segmentation model to obtain P segmentation results corresponding to the P lung image blocks, and the P segmentation results are reconstructed based on the segmentation positions of the P lung image blocks to obtain a pulmonary vascular segmentation image. It can be understood that those skilled in the art can determine the value of P according to actual usage, and the embodiment of the present application does not limit the specific P value.

[0089] Step 13: Determine a first pulmonary vascular three-dimensional image based on the pulmonary vascular segmentation image by using the vascular classification model.

[0090] Specifically, the pulmonary vascular segmentation image is first divided into a left pulmonary vascular segmentation image and a right pulmonary vascular segmentation image according to the left and right lung regions. The left pulmonary vascular segmentation image and the right pulmonary vascular segmentation image are respectively input into the vascular classification model to obtain a left pulmonary vascular classification image and a right pulmonary vascular classification image corresponding to the left pulmonary vascular segmentation image and the right pulmonary vascular segmentation image, respectively, and then the left pulmonary vascular classification image and the right pulmonary vascular classification image are spliced ​​together to determine a first pulmonary vascular three-dimensional image.

[0091] Accordingly, the first pulmonary vascular three-dimensional image includes classification information of pulmonary veins and pulmonary arteries. For example, the pulmonary veins and pulmonary arteries can be marked with different colors. Figure 4 As shown, the pulmonary vein vessels and pulmonary artery vessels are represented by different grayscale values.

[0092] In this embodiment, because the data of the pulmonary vascular segmentation image is large, inputting the entire pulmonary vascular segmentation image into the vascular classification model will result in insufficient video memory. The left and right lung segmentation method can well preserve the structure of the pulmonary vascular structure, and can also reduce the video memory occupied by the vascular classification model, which is conducive to the pulmonary vascular classification model outputting correct vascular classification results.

[0093] Fig.10 FIG. 1 is a flow chart of obtaining a second pulmonary vascular three-dimensional image provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Fig.10 The embodiment shown is described below in detail. Fig.10 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0094] like Fig.10As shown, based on the mediastinal vascular image, the step of processing the first pulmonary vascular three-dimensional image generated based on the three-dimensional image of the lung to be segmented to obtain the second pulmonary vascular three-dimensional image includes the following steps.

[0095] Step 71 , based on the superior mediastinum boundary information contained in the superior mediastinum region image, determine the superior mediastinum vessel segmentation result of the superior mediastinum vessel image within the superior mediastinum boundary and the pulmonary artery vessel segmentation result of the first pulmonary artery vessel three-dimensional image outside the superior mediastinum boundary.

[0096] For example, Figure 5 As shown, according to the boundary information of the upper mediastinum region, the upper mediastinum region bounding box is marked, and the position information of the upper mediastinum region bounding box is recorded. According to the position information of the upper mediastinum region bounding box, the segmentation result of the upper mediastinum vessels in the upper mediastinum region bounding box at the same position in the upper mediastinum vessel image is determined, and the segmentation result of the pulmonary artery vessels outside the upper mediastinum region bounding box at the same position in the three-dimensional image of the first pulmonary artery vessels is determined.

[0097] Step 72: Based on the superior mediastinum boundary information, the superior mediastinum vessel segmentation result and the pulmonary artery vessel segmentation result are spliced ​​to obtain a second pulmonary artery vessel three-dimensional image.

[0098] Specifically, according to the position information of the upper mediastinum region bounding box, the upper mediastinum vessel segmentation result and the pulmonary artery vessel segmentation result are spliced ​​to obtain a second pulmonary artery vessel three-dimensional image.

[0099] Step 73, based on the inferior mediastinum boundary information contained in the inferior mediastinum region image, determine the inferior mediastinum vessel segmentation result of the inferior mediastinum vessel image within the inferior mediastinum boundary and the pulmonary vein vessel segmentation result of the first pulmonary vein vessel three-dimensional image outside the inferior mediastinum boundary.

[0100] Similar to the description in step 71, a lower mediastinum region bounding box is determined according to the lower mediastinum boundary information, and the position information of the lower mediastinum region bounding box is recorded. According to the position information of the lower mediastinum region bounding box, the lower mediastinum vessel segmentation result within the lower mediastinum region bounding box at the same position in the lower mediastinum vessel image is determined, and the pulmonary vein vessel segmentation result outside the lower mediastinum region bounding box at the same position in the first pulmonary vein vessel three-dimensional image is determined.

[0101] Step 74 , based on the inferior mediastinum boundary information, the inferior mediastinum vessel segmentation result and the pulmonary vein vessel segmentation result are spliced ​​to obtain a second pulmonary vein vessel three-dimensional image.

[0102] Specifically, according to the position information of the lower mediastinum region bounding box, the lower mediastinum vessel segmentation result and the pulmonary vein vessel segmentation result are spliced ​​to obtain a second pulmonary vein vessel three-dimensional image.

[0103] There are many protrusions at the mediastinum position of the first pulmonary artery vascular 3D image and the first pulmonary vein vascular 3D image, and the mediastinum edge position is not smooth, which affects the doctor's diagnosis of lung diseases. In this embodiment, the upper mediastinum segmentation result on the first pulmonary artery vascular 3D image is replaced with the upper mediastinum vascular segmentation result obtained after secondary segmentation, and the lower mediastinum segmentation result on the first pulmonary vein vascular 3D image is replaced with the lower mediastinum vascular segmentation result obtained after secondary segmentation, so as to obtain the second pulmonary artery vascular 3D image and the second pulmonary vein vascular 3D image with smoother mediastinum edge position and more accurate mediastinum segmentation.

[0104] Fig.11 FIG. 1 is a flow chart of obtaining the pulmonary vascular segmentation result of the 3D lung image to be segmented provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 8 The embodiment shown is described below in detail. Fig.11 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0105] like Fig.11 As shown, based on the pulmonary vascular skeleton map corresponding to the three-dimensional image of the lung to be segmented, the second three-dimensional image of the pulmonary vascular is processed to obtain the pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented, including the following steps.

[0106] Step 101, expanding the pulmonary artery blood vessel skeleton map to obtain a pulmonary artery blood vessel skeleton expansion map, and expanding the pulmonary vein blood vessel skeleton map to obtain a pulmonary vein blood vessel skeleton expansion map.

[0107] The pixel width of the pulmonary artery skeleton map and the pulmonary vein skeleton map is 1. In order to better integrate the pulmonary artery skeleton map with the second pulmonary artery 3D image, and to better integrate the pulmonary vein skeleton map with the second pulmonary vein 3D image, the pulmonary artery skeleton map and the pulmonary vein skeleton map are expanded.

[0108] Step 102, determining the pulmonary artery skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the upper mediastinum region in the pulmonary artery skeleton expansion map, and determining the pulmonary vein skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the lower mediastinum region in the pulmonary vein skeleton expansion map.

[0109] Specifically, according to the position information of the minimum circumscribed cube corresponding to the upper mediastinum region, the pulmonary artery vascular skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the upper mediastinum region at the same position in the pulmonary artery vascular skeleton expansion map is determined. Accordingly, according to the position information of the minimum circumscribed cube corresponding to the lower mediastinum region, the pulmonary vein vascular skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the lower mediastinum region at the same position in the pulmonary vein vascular skeleton expansion map is determined.

[0110] Step 103 , based on the position information of the minimum circumscribed cube corresponding to the upper mediastinum region, the pulmonary artery vessel skeleton expansion image to be fused and the second pulmonary artery vessel three-dimensional image are fused to obtain a pulmonary artery vessel fused image.

[0111] Specifically, according to the position information of the minimum circumscribed cube corresponding to the superior mediastinum region, the pulmonary artery at the corresponding position on the second pulmonary artery three-dimensional image is fused with the pulmonary artery skeleton expansion image to be fused to obtain a pulmonary artery fusion image.

[0112] Step 104 , for the pulmonary artery fusion image, region growing is performed on the superior mediastinal vessels and the pulmonary artery vessels at the joint of the superior mediastinal vessel segmentation result and the pulmonary artery vessel segmentation result, respectively.

[0113] Specifically, at the junction of the superior mediastinal vessel segmentation result and the pulmonary artery vessel segmentation result, regional growth is performed on the superior mediastinal vessel and the pulmonary artery vessel respectively along the extension direction of the pulmonary artery vessel skeleton until the superior mediastinal vessel and the pulmonary artery vessel are connected at the junction of the superior mediastinal vessel segmentation result and the pulmonary artery vessel segmentation result.

[0114] Step 105 , determining a pulmonary artery vessel segmentation result based on overlapping information between the pulmonary artery vessel skeleton expansion region in the pulmonary artery vessel fusion image and the region growing result of the superior mediastinal vessel and the region growing result of the pulmonary artery vessel.

[0115] Specifically, the intersection of the pulmonary artery skeleton expansion area and the superior mediastinal vascular area growth results, as well as the intersection of the pulmonary artery skeleton expansion area and the pulmonary artery vascular area growth results are taken, the width of the pulmonary artery skeleton expansion area that exceeds the superior mediastinal vascular area growth is removed, and the width of the pulmonary artery skeleton expansion area that exceeds the pulmonary artery area growth is removed, the original thickness of the pulmonary artery is retained, and the pulmonary artery segmentation result is obtained.

[0116] Step 106 , based on the position information of the minimum circumscribed cube corresponding to the lower mediastinum region, the pulmonary vein vessel skeleton expansion image to be fused and the second pulmonary vein vessel three-dimensional image are fused to obtain a pulmonary vein vessel fused image.

[0117] Similar to the description in step 103, specifically, according to the position information of the minimum circumscribed cube corresponding to the lower mediastinum region, the pulmonary vein vessels at the corresponding position on the second pulmonary vein vessel three-dimensional image are fused with the pulmonary vein vessel skeleton expansion image to be fused to obtain a pulmonary vein vessel fusion image.

[0118] Step 107 , for the pulmonary vein fusion image, at the joint of the inferior mediastinum vessel segmentation result and the pulmonary vein vessel segmentation result, region growing is performed on the inferior mediastinum vessel and the pulmonary vein vessel, respectively.

[0119] Similar to the description in step 104, at the junction of the inferior mediastinal vessel segmentation result and the pulmonary vein vessel segmentation result, regional growth is performed on the inferior mediastinal vessel and the pulmonary vein vessel respectively along the extension direction of the pulmonary vein vessel skeleton until the inferior mediastinal vessel and the pulmonary vein vessel are connected at the junction of the inferior mediastinal vessel segmentation result and the pulmonary vein vessel segmentation result.

[0120] Step 108, determining a pulmonary vein segmentation result based on overlapping information between the pulmonary vein skeleton expansion region in the pulmonary vein fusion image and the region growing result of the inferior mediastinal vessels and the region growing result of the pulmonary vein vessels;

[0121] Similar to the description in step 105, the intersection of the pulmonary vein skeleton expansion area and the inferior mediastinum vessel area growth result, as well as the intersection of the pulmonary vein skeleton expansion area and the pulmonary vein vessel area growth result are taken, the width of the pulmonary vein skeleton expansion area that exceeds the inferior mediastinum vessel area after growth, and the width of the pulmonary vein skeleton expansion area that exceeds the pulmonary vein vessel area after growth are removed, the original thickness of the pulmonary vein vessels is retained, and the pulmonary vein vessel segmentation result is obtained.

[0122] Step 109 , reconstructing the pulmonary vein segmentation result and the pulmonary artery segmentation result to obtain the pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

[0123] For example, the structural schematic diagram of the pulmonary blood vessel segmentation result of the 3D lung image to be segmented is as follows: Fig.12 As shown in Figure 2, the mediastinum region of the pulmonary vascular segmentation result is smoother and more beautiful.

[0124] In this embodiment, there may be small blood vessels disconnected at the splicing of the upper mediastinal blood vessel segmentation result and the pulmonary artery blood vessel segmentation result in the second pulmonary artery blood vessel three-dimensional image, and there may also be small blood vessels disconnected at the splicing of the lower mediastinal blood vessel segmentation result and the pulmonary vein blood vessel segmentation result in the second pulmonary vein blood vessel three-dimensional image. However, the pulmonary artery blood vessel skeleton map and the pulmonary vein blood vessel skeleton map retain the structure of the original blood vessels. By fusing the pulmonary artery blood vessel skeleton expansion map to be fused with the second pulmonary artery blood vessel three-dimensional image, and fusing the pulmonary vein blood vessel skeleton expansion map to be fused with the second pulmonary vein blood vessel three-dimensional image, the disconnected blood vessels on the second pulmonary artery blood vessel three-dimensional image and the second pulmonary vein blood vessel three-dimensional image can be connected. In addition, through the technical solution in this embodiment, at the disconnected blood vessels, it can be ensured that the connected blood vessels maintain the thickness of the original blood vessels, thereby obtaining a more accurate pulmonary blood vessel segmentation result.

[0125] Fig.13 FIG. 2 is a flow chart of a pulmonary vascular segmentation method provided by another exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Fig.13 The embodiment shown is described below in detail. Fig.13 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0126] like Fig.13 As shown, before processing the second pulmonary vascular three-dimensional image based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented to obtain the third pulmonary vascular three-dimensional image, the following steps are also included.

[0127] Step 80: Generate an initial venous vessel skeleton map and an initial arterial vessel skeleton map based on the first pulmonary vascular three-dimensional image.

[0128] Specifically, the first pulmonary artery 3D image is processed using an image processing function to obtain an initial arterial skeleton image, and the first pulmonary venous 3D image is processed using an image processing function to obtain an initial venous skeleton image.

[0129] For example, Fig.14 As shown, an initial arterial vessel skeleton image is obtained through a first pulmonary arterial vessel skeleton three-dimensional image.

[0130] Step 90: Based on the end point growing algorithm, the initial venous vascular skeleton image and the initial arterial vascular skeleton image are processed respectively to obtain a pulmonary venous vascular skeleton image and a pulmonary arterial vascular skeleton image.

[0131] Specifically, the end points of the lung region on the initial venous vascular skeleton map and the end points of the lung region on the initial arterial vascular skeleton map are determined respectively. According to the end points of the lung region on the initial venous vascular skeleton map, the initial venous vascular skeleton map is subjected to a series of processing to obtain a pulmonary venous vascular skeleton map. Correspondingly, according to the end points of the lung region on the initial arterial vascular skeleton map, the initial arterial vascular map is subjected to a series of processing to obtain a pulmonary arterial vascular skeleton map.

[0132] In this embodiment, the initial venous vascular skeleton map and the initial arterial vascular skeleton map are obtained separately. Different from obtaining a complete vascular skeleton map including arteries and veins, the technical solution in this embodiment can effectively prevent the arterial skeleton and the venous skeleton from adhering together, thereby improving the accuracy of the obtained initial venous vascular skeleton map and the initial arterial vascular skeleton map. In addition, the venous vascular skeleton in the lower mediastinum region of the initial venous vascular skeleton map and the arterial vascular skeleton in the upper mediastinum region of the initial arterial vascular skeleton map may have many protruding and erroneously generated vascular skeletons. Through the end point growth algorithm, on the basis of the initial venous vascular skeleton map and the initial arterial vascular skeleton map, a more accurate pulmonary venous vascular skeleton map and a pulmonary arterial vascular skeleton map can be obtained.

[0133] Fig.16 The figure shows a schematic diagram of a process for obtaining a pulmonary vein skeleton diagram and a pulmonary artery skeleton diagram provided by an exemplary embodiment of the present application. Fig.13 Based on the embodiment shown, Fig.16 The embodiment shown is described below in detail. Fig.16 The embodiment shown and Fig.13 The differences and similarities of the illustrated embodiments are not described in detail.

[0134] like Fig.16 As shown, based on the end point growing algorithm, the initial venous vascular skeleton map and the initial arterial vascular skeleton map are processed respectively to obtain the pulmonary venous vascular skeleton map and the pulmonary arterial vascular skeleton map, including the following steps.

[0135] Step 91, based on the adjacent pixel information of each of the blood vessel skeleton pixels included in the initial arterial blood vessel skeleton image, determine the end point of the arterial blood vessel skeleton.

[0136] Specifically, the skeleton width of the initial arterial skeleton image is 1 pixel. The adjacent pixel information includes adjacent pixel position information and adjacent pixel quantity information. If the number of adjacent pixels of a blood vessel skeleton pixel is equal to 1, the blood vessel skeleton pixel is an end point; if the number of adjacent pixels of a blood vessel skeleton pixel is equal to 2, the blood vessel skeleton pixel is an intermediate point; if the number of adjacent pixels of a blood vessel skeleton pixel is equal to 3, the blood vessel skeleton pixel is a trifurcated point.

[0137] Step 92: based on the superior mediastinum boundary information contained in the superior mediastinum region image, the superior mediastinum region in the initial arterial skeleton image is cut off to obtain the arterial skeleton image to be grown.

[0138] For example, Figure 5 As shown, according to the upper mediastinum boundary information contained in the upper mediastinum region image, the upper mediastinum region bounding box is determined. According to the position information of the upper mediastinum region bounding box, the initial arterial skeleton in the upper mediastinum bounding box at the same position in the initial arterial skeleton image is cut off to obtain the arterial skeleton image to be grown. Fig.15 Shown is a schematic diagram of the skeleton of the artery to be grown.

[0139] Step 93, determining the end points of the arterial vessels of the arterial vessel skeleton graph to be grown.

[0140] Specifically, the end points of the arterial vessels in the inner region of the lung in the arterial vessel skeleton image to be grown are determined.

[0141] Step 94, based on the adjacent pixel information of each of the vascular skeleton pixels contained in the initial arterial vascular skeleton image, the arterial end points are grown to obtain a pulmonary artery vascular skeleton image.

[0142] Specifically, based on the adjacent pixel position information of the vascular skeleton pixels contained in the initial arterial skeleton image, a breadth-first search is performed on the arterial end points of the internal lung area to obtain all the skeleton pixels connected to the arterial end points of the internal lung area, and all the skeleton pixels connected to the arterial end points of the internal lung area are connected to obtain the pulmonary artery skeleton pixels.

[0143] Step 95, based on the adjacent pixel information of each of the blood vessel skeleton pixels included in the initial blood vessel skeleton image, determine the end point of the blood vessel skeleton.

[0144] Similar to the description in step 91, the adjacent pixel position information and adjacent pixel number information of the blood vessel skeleton pixel in the initial venous blood vessel skeleton image are marked, and the blood vessel skeleton pixel whose adjacent pixel number is equal to 1 is determined as the venous blood vessel skeleton end point.

[0145] Step 96: based on the inferior mediastinum boundary information contained in the inferior mediastinum region image, the inferior mediastinum region in the initial venous vessel skeleton image is cut off to obtain the venous vessel skeleton image to be grown.

[0146] Specifically, the lower mediastinum region bounding box is determined according to the lower mediastinum boundary information of the lower mediastinum region image. According to the position information of the lower mediastinum region bounding box, the initial venous skeleton in the lower mediastinum bounding box at the same position in the initial venous skeleton map is cut off to obtain the venous skeleton map to be grown.

[0147] Step 97, determining the end points of the venous vessels of the venous vessel skeleton graph to be grown.

[0148] Specifically, the end points of the venous vessels in the inner region of the lung in the venous vessel skeleton image to be grown are determined.

[0149] Step 98, based on the adjacent pixel information of each of the vascular skeleton pixels included in the initial venous vascular skeleton image, the venous vascular end points are grown to obtain a pulmonary venous vascular skeleton image.

[0150] Specifically, based on the adjacent pixel position information of the vascular skeleton pixels contained in the initial venous skeleton image, a breadth-first search is performed on the venous end points in the internal lung area to obtain all the skeleton pixels connected to the venous end points in the internal lung area, and all the skeleton pixels connected to the venous end points in the internal lung area are connected to obtain the pulmonary venous skeleton pixels.

[0151] The mediastinum region on the initial arterial vascular skeleton map and the initial venous vascular skeleton map also includes a part of the vascular skeleton connected to the left and right lungs. Through the technical solution in this embodiment, on the one hand, the inaccurate skeleton of the mediastinum region on the initial arterial vascular skeleton map and the initial venous vascular skeleton map can be removed. On the other hand, the end point growing algorithm can be used to retrieve the vascular skeleton connected to the left and right lungs in the mediastinum region on the initial venous vascular skeleton map and the initial arterial vascular skeleton map, thereby ensuring the integrity and accuracy of the vascular skeletons in the obtained pulmonary artery vascular skeleton map and the pulmonary venous vascular skeleton map.

[0152] Combination of the above Figures 2 to 16 , describes in detail the embodiment of the pulmonary vascular segmentation method of the present application, and the following is combined with Fig.17 , describes in detail the embodiment of the pulmonary vascular segmentation device of the present application. It should be understood that the description of the embodiment of the pulmonary vascular segmentation method corresponds to the description of the embodiment of the pulmonary vascular segmentation device, and therefore, the part not described in detail can be referred to the previous method embodiment.

[0153] Fig.17 FIG. 1 is a schematic diagram of the structure of a pulmonary vascular segmentation device provided by an exemplary embodiment of the present application. Fig.17 As shown, the pulmonary vascular segmentation device provided in the embodiment of the present application includes:

[0154] A first determination module 1710 is used to determine a mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented;

[0155] A first processing module 1720 is configured to process, based on the mediastinal vascular image, a first pulmonary vascular three-dimensional image generated based on the pulmonary three-dimensional image to be segmented, to obtain a second pulmonary vascular three-dimensional image;

[0156] The second processing module 1730 is used to process the second pulmonary vascular three-dimensional image based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented, and obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

[0157] In one embodiment of the present application, the first determination module 1710 is also used to intercept the first pulmonary blood vessel three-dimensional image based on the upper mediastinum boundary information contained in the upper mediastinum region image to obtain the upper mediastinum image to be segmented; intercept the first pulmonary blood vessel three-dimensional image based on the lower mediastinum boundary information contained in the lower mediastinum region image to obtain the lower mediastinum image to be segmented; use the mediastinal blood vessel segmentation model to determine the upper mediastinum blood vessel image based on the upper mediastinum image to be segmented, and determine the lower mediastinum blood vessel image based on the lower mediastinum image to be segmented.

[0158] In one embodiment of the present application, the first determination module 1710 is also used to obtain multiple upper mediastinum region image samples and multiple lower mediastinum region image samples, wherein the multiple upper mediastinum region image samples and the multiple lower mediastinum region image samples are determined based on multiple pulmonary vascular three-dimensional image samples with different pixel spacings; based on the multiple upper mediastinum region image samples and the multiple lower mediastinum region image samples, an initial network model is trained to obtain the mediastinal vascular segmentation model, wherein the loss functions used in the training process include the classification loss function of the mediastinal artery and the mediastinal vein, the classification loss function of the mediastinal artery and the trachea, and the classification loss function of the mediastinal vein and the trachea.

[0159] In one embodiment of the present application, the first determination module 1710 is also used to segment the three-dimensional lung image to be segmented to obtain a first three-dimensional image of lung blood vessels; perform distance transformation on the arterial vessels in the first three-dimensional image of pulmonary artery blood vessels, and determine an initial upper mediastinum region based on a preset distance threshold; perform distance transformation on the venous vessels in the first three-dimensional image of pulmonary vein blood vessels, and determine an initial lower mediastinum region based on a preset distance threshold; perform regional growth on the initial upper mediastinum region based on the upper mediastinum boundary information contained in the first three-dimensional image of pulmonary artery blood vessels to obtain an upper mediastinum region image; perform regional growth on the initial lower mediastinum region based on the lower mediastinum boundary information contained in the first three-dimensional image of pulmonary vein blood vessels to obtain a lower mediastinum region image.

[0160] In one embodiment of the present application, the first determination module 1710 is also used to determine a lung segmentation image based on the three-dimensional image of the lung to be segmented using a lung segmentation model; determine a pulmonary vascular segmentation image based on the lung segmentation image using a pulmonary vascular segmentation model; and determine a first pulmonary vascular three-dimensional image based on the pulmonary vascular segmentation image using a vascular classification model.

[0161] In one embodiment of the present application, the first processing module 1720 is also used to determine, based on the superior mediastinum boundary information contained in the superior mediastinum region image, the superior mediastinum vessel segmentation result of the superior mediastinum vessel image within the superior mediastinum boundary, and the pulmonary artery vessel segmentation result of the first pulmonary artery vessel three-dimensional image outside the superior mediastinum boundary; based on the superior mediastinum boundary information, splice the superior mediastinum vessel segmentation result and the pulmonary artery vessel segmentation result to obtain the second pulmonary artery vessel three-dimensional image; based on the inferior mediastinum boundary information contained in the inferior mediastinum region image, determine the inferior mediastinum vessel segmentation result of the inferior mediastinum vessel image within the inferior mediastinum boundary, and the pulmonary vein vessel segmentation result of the first pulmonary vein vessel three-dimensional image outside the inferior mediastinum boundary.

[0162] In one embodiment of the present application, the second processing module 1730 is also used to expand the pulmonary artery skeleton map to obtain a pulmonary artery skeleton expansion map, expand the pulmonary vein skeleton map to obtain a pulmonary vein skeleton expansion map; determine the pulmonary artery skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the upper mediastinum region in the pulmonary artery skeleton expansion map, and determine the pulmonary vein skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the lower mediastinum region in the pulmonary vein skeleton expansion map; based on the position information of the minimum circumscribed cube corresponding to the upper mediastinum region, fuse the pulmonary artery skeleton expansion map to be fused with the second pulmonary artery three-dimensional image to obtain a pulmonary artery fusion image; for the pulmonary artery fusion image, perform regional growth on the upper mediastinum vessels and the pulmonary artery vessels at the junction of the upper mediastinum vessel segmentation result and the pulmonary artery vessel segmentation result, respectively; based on the pulmonary artery blood The pulmonary artery segmentation result is determined based on the overlapping information between the pulmonary artery skeleton expansion area in the pulmonary artery fusion image and the regional growth results of the superior mediastinal vessels and the regional growth results of the pulmonary artery vessels; based on the position information of the minimum circumscribed cube corresponding to the inferior mediastinal region, the pulmonary vein skeleton expansion map to be fused and the second pulmonary vein three-dimensional image are fused to obtain a pulmonary vein fusion image; for the pulmonary vein fusion image, at the joint of the inferior mediastinal vessel segmentation result and the pulmonary vein segmentation result, regional growth is performed on the inferior mediastinal vessels and the pulmonary vein vessels respectively; based on the overlapping information between the pulmonary vein skeleton expansion area in the pulmonary vein fusion image and the regional growth results of the inferior mediastinal vessels and the regional growth results of the pulmonary vein vessels, the pulmonary vein segmentation result is determined; the pulmonary vein segmentation result and the pulmonary artery result are reconstructed to obtain the pulmonary vessel segmentation result of the three-dimensional image of the lungs to be segmented.

[0163] In one embodiment of the present application, the second processing module 1730 is also used to generate an initial venous vascular skeleton map and an initial arterial vascular skeleton map based on the first pulmonary vascular three-dimensional image; based on the end point growing algorithm, the initial venous vascular skeleton map and the initial arterial vascular skeleton map are processed respectively to obtain a pulmonary venous vascular skeleton map and a pulmonary arterial vascular skeleton map.

[0164] In one embodiment of the present application, the second processing module 1730 is also used to determine the end points of the arterial skeleton based on the adjacent pixel information of each vascular skeleton pixel point contained in the initial arterial skeleton map; based on the superior mediastinum boundary information contained in the superior mediastinum region image, cut off the superior mediastinum region in the initial arterial skeleton map to obtain the arterial skeleton map to be grown; determine the end points of the arterial skeleton map to be grown; based on the adjacent pixel information of each vascular skeleton pixel point contained in the initial arterial skeleton map, grow the end points of the arterial skeleton to obtain the pulmonary arterial skeleton map; based on the adjacent pixel information of each vascular skeleton pixel point contained in the initial venous skeleton map, determine the end points of the venous skeleton; based on the inferior mediastinum boundary information contained in the inferior mediastinum region image, cut off the inferior mediastinum region in the initial venous skeleton map to obtain the venous skeleton map to be grown; determine the end points of the venous skeleton map to be grown; based on the adjacent pixel information of each vascular skeleton pixel point contained in the initial venous skeleton map, grow the end points of the venous skeleton to obtain the pulmonary venous skeleton map.

[0165] Below, reference Fig.18 To describe an electronic device according to an embodiment of the present application. Fig.18 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application.

[0166] like Fig.18 As shown, the electronic device 1800 includes one or more processors 1801 and a memory 1802 .

[0167] The processor 1801 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 1800 to perform desired functions.

[0168] The memory 1802 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 1801 may run the program instructions to implement the pulmonary vascular segmentation method of each embodiment of the present application described above and / or other desired functions. Various contents such as a first pulmonary vascular three-dimensional image, a second pulmonary vascular three-dimensional image, a pulmonary vascular skeleton map, etc. may also be stored in the computer-readable storage medium.

[0169] In one example, the electronic device 1800 may further include: an input device 1003 and an output device 1004 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0170] The input device 1803 may include, for example, a keyboard, a mouse, etc.

[0171] The output device 1804 can output various information to the outside, including the first pulmonary vascular three-dimensional image, the second pulmonary vascular three-dimensional image, the pulmonary vascular skeleton map, etc. The output device 1804 can include, for example, a display, a speaker, a printer, and a communication network and its connected remote output device, etc.

[0172] Of course, to simplify, Fig.18 Only some of the components related to the present application in the electronic device 1800 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 1800 may also include any other appropriate components.

[0173] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the pulmonary vascular segmentation method according to various embodiments of the present application described above in this specification.

[0174] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0175] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the pulmonary vascular segmentation method according to various embodiments of the present application described above in this specification.

[0176] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0177] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0178] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0179] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0180] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A pulmonary vascular segmentation method, characterized in that: include: Determine a mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented; Based on the mediastinal vascular image, processing a first pulmonary vascular three-dimensional image generated based on the to-be-segmented lung three-dimensional image to obtain a second pulmonary vascular three-dimensional image; Based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented, processing the second three-dimensional image of the pulmonary vascular to obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented; Wherein, based on the mediastinal vascular image, processing the first pulmonary vascular three-dimensional image generated based on the to-be-segmented lung three-dimensional image to obtain the second pulmonary vascular three-dimensional image includes: replacing the vascular segmentation result of the mediastinal region in the first pulmonary vascular three-dimensional image with the vascular segmentation result of the mediastinal region in the mediastinal vascular image to obtain the second pulmonary vascular three-dimensional image; The step of processing the second pulmonary vascular three-dimensional image based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented to obtain the pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented includes: fusing the pulmonary vascular skeleton image and the second pulmonary vascular three-dimensional image to obtain the pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

2. The pulmonary blood vessel segmentation method according to claim 1, characterized in that: The mediastinum region image includes an upper mediastinum region image and a lower mediastinum region image, and the mediastinum vascular image includes an upper mediastinum vascular image and a lower mediastinum vascular image.

3. The pulmonary blood vessel segmentation method according to claim 2, characterized in that: The step of determining the mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented comprises: Based on the upper mediastinum boundary information contained in the upper mediastinum region image, intercepting the first pulmonary vascular three-dimensional image to obtain an upper mediastinum image to be segmented; Based on the lower mediastinum boundary information contained in the lower mediastinum region image, intercepting the first pulmonary vascular three-dimensional image to obtain a lower mediastinum image to be segmented; The mediastinal vessel segmentation model is used to determine the upper mediastinal vessel image based on the upper mediastinal image to be segmented, and the lower mediastinal vessel image is determined based on the lower mediastinal image to be segmented.

4. The pulmonary blood vessel segmentation method according to claim 3, characterized in that: Before using the mediastinal vascular segmentation model, the method further includes: Acquire a plurality of upper mediastinum region image samples and a plurality of lower mediastinum region image samples, wherein the plurality of upper mediastinum region image samples and the plurality of lower mediastinum region image samples are determined based on a plurality of pulmonary vascular three-dimensional image samples with different pixel spacings; Based on the multiple upper mediastinum region image samples and the multiple lower mediastinum region image samples, an initial network model is trained to obtain the mediastinum vascular segmentation model, wherein the loss functions used in the training process include the classification loss function of the mediastinal artery and the mediastinal vein, the classification loss function of the mediastinal artery and the trachea, and the classification loss function of the mediastinal vein and the trachea.

5. The pulmonary blood vessel segmentation method according to any one of claims 2 to 4, characterized in that: The first pulmonary vascular three-dimensional image includes a first pulmonary artery vascular three-dimensional image and a first pulmonary vein vascular three-dimensional image. Before determining the mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the pulmonary three-dimensional image to be segmented, the method further includes: Segmenting the three-dimensional image of the lung to be segmented to obtain the first three-dimensional image of the pulmonary blood vessels; Performing distance transformation on the arterial vessels in the first pulmonary artery three-dimensional image, and determining an initial upper mediastinum region based on a preset distance threshold; Performing distance transformation on the venous vessels in the first pulmonary venous vessel three-dimensional image, and determining an initial lower mediastinum region based on the preset distance threshold; Based on the superior mediastinum boundary information contained in the first pulmonary artery vascular three-dimensional image, performing region growing on the initial superior mediastinum region to obtain the superior mediastinum region image; Based on the inferior mediastinum boundary information included in the first pulmonary vein three-dimensional image, region growing is performed on the initial inferior mediastinum region to obtain the inferior mediastinum region image.

6. The pulmonary blood vessel segmentation method according to claim 5, characterized in that: The step of segmenting the three-dimensional lung image to be segmented to obtain the first three-dimensional pulmonary blood vessel image includes: Determine a lung segmentation image based on the three-dimensional image of the lung to be segmented by using a lung segmentation model; Determine a pulmonary vascular segmentation image based on the lung segmentation image using a pulmonary vascular segmentation model; The first pulmonary vascular three-dimensional image is determined based on the pulmonary vascular segmentation image using a vascular classification model.

7. The pulmonary blood vessel segmentation method according to any one of claims 2 to 4, characterized in that: The first pulmonary vascular three-dimensional image includes a first pulmonary artery vascular three-dimensional image and a first pulmonary vein vascular three-dimensional image, and the second pulmonary vascular three-dimensional image includes a second pulmonary artery vascular three-dimensional image and a second pulmonary vein vascular three-dimensional image. The step of processing, based on the mediastinal vascular image, a first pulmonary vascular three-dimensional image generated based on the to-be-segmented lung three-dimensional image to obtain a second pulmonary vascular three-dimensional image includes: Determine, based on the superior mediastinum boundary information contained in the superior mediastinum region image, the superior mediastinum vessel segmentation result within the superior mediastinum boundary of the superior mediastinum vessel image and the pulmonary artery vessel segmentation result outside the superior mediastinum boundary of the first pulmonary artery vessel three-dimensional image; Based on the superior mediastinum boundary information, the superior mediastinum vessel segmentation result and the pulmonary artery vessel segmentation result are spliced ​​to obtain the second pulmonary artery vessel three-dimensional image; Determine, based on the inferior mediastinum boundary information contained in the inferior mediastinum region image, the inferior mediastinum vessel segmentation result within the inferior mediastinum boundary of the inferior mediastinum vessel image and the pulmonary vein vessel segmentation result outside the inferior mediastinum boundary of the first pulmonary vein vessel three-dimensional image; Based on the inferior mediastinum boundary information, the inferior mediastinum vessel segmentation result and the pulmonary vein vessel segmentation result are spliced ​​to obtain the second pulmonary vein vessel three-dimensional image.

8. The pulmonary blood vessel segmentation method according to any one of claims 2 to 4, characterized in that: The pulmonary vascular skeleton image includes a pulmonary vein vascular skeleton image and a pulmonary artery vascular skeleton image, and the second pulmonary vascular three-dimensional image includes a second pulmonary artery vascular three-dimensional image and a second pulmonary vein vascular three-dimensional image. The step of processing the second pulmonary vascular three-dimensional image based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented to obtain the pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented includes: Expanding the pulmonary artery blood vessel skeleton diagram to obtain an expanded pulmonary artery blood vessel skeleton diagram, and expanding the pulmonary vein blood vessel skeleton diagram to obtain an expanded pulmonary vein blood vessel skeleton diagram; Determine the pulmonary artery vascular skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the upper mediastinum region in the pulmonary artery vascular skeleton expansion map, and determine the pulmonary vein vascular skeleton expansion map to be fused within the minimum circumscribed cube corresponding to the lower mediastinum region in the pulmonary vein vascular skeleton expansion map; Based on the position information of the minimum circumscribed cube corresponding to the superior mediastinum region, fusing the to-be-fused pulmonary artery vessel skeleton expansion image and the second pulmonary artery vessel three-dimensional image to obtain a pulmonary artery vessel fused image; For the pulmonary artery fusion image, at the joint of the superior mediastinal vessel segmentation result and the pulmonary artery vessel segmentation result, regional growth is performed on the superior mediastinal vessel and the pulmonary artery vessel respectively; Determine a pulmonary artery vessel segmentation result based on overlapping information between the pulmonary artery vessel skeleton expansion region in the pulmonary artery vessel fusion image and the region growing result of the superior mediastinal vessel and the region growing result of the pulmonary artery vessel; Based on the position information of the minimum circumscribed cube corresponding to the inferior mediastinum region, the to-be-fused pulmonary vein vessel skeleton expansion image and the second pulmonary vein vessel three-dimensional image are fused to obtain a pulmonary vein vessel fusion image; For the pulmonary vein vessel fusion image, at the joint of the inferior mediastinum vessel segmentation result and the pulmonary vein vessel segmentation result, regional growth is performed on the inferior mediastinum vessel and the pulmonary vein vessel respectively; Determine a pulmonary vein vessel segmentation result based on overlapping information between a pulmonary vein vessel skeleton expansion region in the pulmonary vein vessel fusion image and a region growing result of the inferior mediastinal vessel and a region growing result of the pulmonary vein vessel; The pulmonary vein segmentation result and the pulmonary artery segmentation result are reconstructed to obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

9. The pulmonary blood vessel segmentation method according to any one of claims 1 to 4, characterized in that: The pulmonary vascular skeleton image includes a pulmonary vein vascular skeleton image and a pulmonary artery vascular skeleton image. Before the second pulmonary vascular three-dimensional image is processed based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented to obtain the third pulmonary vascular three-dimensional image, the method further includes: generating an initial venous vessel skeleton map and an initial arterial vessel skeleton map based on the first pulmonary vascular three-dimensional image; Based on the end point growing algorithm, the initial venous blood vessel skeleton map and the initial arterial blood vessel skeleton map are processed respectively to obtain the pulmonary venous blood vessel skeleton map and the pulmonary arterial blood vessel skeleton map.

10. The pulmonary blood vessel segmentation method according to claim 9, characterized in that: The mediastinum region image includes an upper mediastinum region image and a lower mediastinum region image, and the end point growing algorithm is based on respectively processing the initial venous vascular skeleton image and the initial arterial vascular skeleton image to obtain the pulmonary venous vascular skeleton image and the pulmonary arterial vascular skeleton image, including: Determining the end points of the arterial blood vessel skeleton based on the adjacent pixel point information of each of the blood vessel skeleton pixels contained in the initial arterial blood vessel skeleton image; Based on the superior mediastinum boundary information contained in the superior mediastinum region image, the superior mediastinum region in the initial arterial blood vessel skeleton image is cut off to obtain the arterial blood vessel skeleton image to be grown; Determining the end points of the arterial vessels of the arterial vessel skeleton diagram to be grown; Based on the adjacent pixel point information of each of the blood vessel skeleton pixels contained in the initial arterial blood vessel skeleton image, the arterial blood vessel end points are grown to obtain the pulmonary artery blood vessel skeleton image; Determine the end point of the venous blood vessel skeleton based on the adjacent pixel point information of each of the blood vessel skeleton pixels contained in the initial venous blood vessel skeleton image; Based on the lower mediastinum boundary information contained in the lower mediastinum region image, the lower mediastinum region in the initial venous vessel skeleton image is cut off to obtain the venous vessel skeleton image to be grown; Determine the end point of the venous vessel skeleton diagram to be grown; Based on the adjacent pixel point information of each of the blood vessel skeleton pixels contained in the initial venous blood vessel skeleton image, the venous blood vessel end points are grown to obtain the pulmonary venous blood vessel skeleton image.

11. A pulmonary vascular segmentation device, characterized in that: include: A first determination module is used to determine a mediastinal vascular image corresponding to the mediastinal region image based on the mediastinal region image corresponding to the three-dimensional image of the lung to be segmented; A first processing module is configured to process, based on the mediastinal vascular image, a first pulmonary vascular three-dimensional image generated based on the pulmonary three-dimensional image to be segmented, to obtain a second pulmonary vascular three-dimensional image; a second processing module, configured to process the second pulmonary vascular three-dimensional image based on the pulmonary vascular skeleton image corresponding to the three-dimensional image of the lung to be segmented, so as to obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented; The first processing module is further used to replace the blood vessel segmentation result of the mediastinum region in the first pulmonary blood vessel three-dimensional image with the blood vessel segmentation result of the mediastinum region in the mediastinum blood vessel image to obtain the second pulmonary blood vessel three-dimensional image; The second processing module is further used to fuse the pulmonary vascular skeleton image and the second pulmonary vascular three-dimensional image to obtain a pulmonary vascular segmentation result of the three-dimensional image of the lung to be segmented.

12. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the pulmonary blood vessel segmentation method according to any one of claims 1 to 10 above.

13. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to execute the pulmonary blood vessel segmentation method according to any one of claims 1 to 10.