A trachea segmentation method and device based on multi-step hierarchical growth of CT slices
By adopting a multi-step hierarchical growth method on CT slice images and performing hierarchical growth according to different tube wall characteristics, the problem of leakage in tracheal segmentation in traditional methods is solved, and more precise and accurate tracheal segmentation results are achieved.
Patent Information
- Application Number
- CN202110373252.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional tracheobronchial segmentation method is prone to leakage when automatically segmenting CT sequence images, especially due to regional growth errors caused by blurred tracheal edges and similar pixel values, making it impossible to accurately segment the trachea.
A multi-step hierarchical growth method based on CT slices is used to remove noise through preprocessing. The KMeans algorithm is used to segment the lung area. The seed points are selected and multi-directional diffusion growth is performed according to different wall characteristics. Stop conditions are set to avoid leakage. The main segmentation Trachea and bronchi.
The precision and accuracy of the tracheal segmentation results are achieved, leakage problems are avoided, and the reliability and calculation efficiency of the segmentation process are improved.
Smart Images

Figure CN112862823B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of disease segmentation, and in particular to a trachea segmentation method and device based on multi-step hierarchical growth of CT slices. Background Art
[0002] Correctly understanding the direction and distribution of the trachea plays a key role in doctors' diagnosis of the patient's condition, including but not limited to judging the formation of lung diseases, the direction of blood vessels, and the conditions of lung segments and lobes.
[0003] At present, the traditional tracheobronchial segmentation is based on the automatic segmentation of CT sequence images, which mainly uses the region growing method. However, this method has an obvious disadvantage, which is that it is extremely easy to leak. The reason for this disadvantage is that the edge of the trachea is relatively fuzzy, and the pixel value of the tracheal wall is very close to the surrounding pixel value, which causes the algorithm to mistakenly enter the vast empty area in the lung that does not belong to the trachea during region growing. The area in the lung here is also air like the trachea, so the computer cannot use normal threshold methods to determine whether it belongs to the trachea, so the model grows arbitrarily in the lungs, consuming a lot of computing resources and causing erroneous results.
[0004] In view of the above problems in the prior art, there is an urgent need for a corresponding region growing method for different pipe wall regions, so as to solve the problem of leakage while obtaining a more accurate segmentation result. Summary of the invention
[0005] The purpose of the present invention is to provide a trachea segmentation method and device based on multi-step hierarchical growth of CT slices, aiming to solve the problem that leakage is easy to occur when the traditional segmentation method is used to automatically segment CT sequence images of the trachea and bronchus.
[0006] The present invention provides a trachea segmentation method based on multi-step hierarchical growth of CT slices, comprising:
[0007] S1. Preprocessing the CT image sequence: removing the noise part of the CT image sequence by threshold processing, reducing the CT image sequence to a fixed size by resampling, and segmenting the lung area from the CT image sequence by KMeans algorithm;
[0008] S2. Segmentation of the main trachea: a seed point is selected in the CT image where the main trachea region is clearly visible, and diffusion growth is performed in multiple pixel points in multiple directions with the selected seed point as the center, and a stop condition is preset. When the stop condition is met, the diffusion growth stops, and the pixel points where the diffusion growth stops are connected one by one to obtain the segmentation result of the main trachea;
[0009] S3. Segmentation of bronchus: Based on the CT image of the segmented lung area obtained in S1, the lung area to be segmented is extracted, and two different bronchial starting areas are automatically located in the selected CT image. The center point of the starting area is used as the seed point, and the seed point is diffused in six directions including forward, backward, left, right, up and down until the preset stop condition is met. The pixel points where the diffusion growth is stopped are connected one by one to obtain the bronchial segmentation result.
[0010] The present invention provides a trachea segmentation device based on multi-step hierarchical growth of CT slices, comprising:
[0011] Preprocessing module: used for removing noise from the CT image sequence by threshold processing, reducing the CT image sequence to a fixed size by resampling, and segmenting the lung region from the CT image sequence by KMeans algorithm;
[0012] The main trachea segmentation module is used to select a seed point in the CT image where the main trachea area is clearly visible, diffusely grow multiple pixel points in multiple directions with the selected seed point as the center, and according to the stop condition, stop the pixel points that meet the stop condition from further diffuse growth, and connect the pixel points that stop diffuse growth one by one to obtain the main trachea segmentation result;
[0013] Bronchial segmentation module: used to extract the segmented lung area from the preprocessed CT image, automatically locate two different bronchial starting areas in the CT image containing two bronchial starting positions, use the center point of the starting area as the seed point, set the seed point to diffuse and grow in six directions: forward, backward, left, right, up and down, until the stop condition of the main bronchial segmentation module is met, and stop the diffusion and growth, and connect the pixel points that stop diffusing and growing one by one to obtain the bronchial segmentation result.
[0014] An embodiment of the present invention also provides a trachea segmentation device based on multi-step hierarchical growth of CT slices, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the above-mentioned trachea segmentation method based on multi-step hierarchical growth of CT slices are implemented.
[0015] An embodiment of the present invention further provides a computer-readable storage medium, on which a program for implementing information transmission is stored, and when the program is executed by a processor, the steps of the above method are implemented.
[0016] By adopting the embodiment of the present invention, a hierarchical multi-step region growing method is used for different tube wall regions according to the thickness of the tube wall, thereby achieving a more accurate segmentation result while avoiding the occurrence of leakage problems.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a schematic diagram of a trachea segmentation method based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention;
[0020] Figure 2 is a schematic diagram of trachea segmentation results based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention;
[0021] Figure 3 is a schematic diagram of a trachea segmentation device based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention;
[0022] Figure 4 It is a schematic diagram of a trachea segmentation device based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0025] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In addition, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0026] Method Embodiment
[0027] According to an embodiment of the present invention, a trachea segmentation method based on multi-step hierarchical growth of CT slices is provided. Figure 1 is a schematic diagram of a trachea segmentation method based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention, such as Figure 1 As shown, the trachea segmentation method based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention specifically includes:
[0028] S1. Preprocess the CT image sequence: remove the noise part of the CT image sequence through threshold processing, reduce the CT image sequence to a fixed size through resampling, and segment the lung area from the CT image sequence through the KMeans algorithm.
[0029] Specifically, firstly, the CT value of each CT image in the CT image sequence is set to -2000HU as the threshold, and the value of the part of each CT image in the CT image sequence with a CT value less than -2000HU is set to 0 to remove the noise part in the CT image. If the RescaleSlope value of the CT image is not equal to 1, the image is enlarged or reduced in a corresponding proportion according to the specific value; then the CT sequence images are resampled. In the resampling process, the inter-layer spacing and the distance between pixels of the CT image sequence are first obtained, wherein the inter-layer spacing represents the size of the image tip of each layer of the CT image sequence, and the distance between pixels represents the size information within the layer. According to different size information, The standard enlarges or reduces the image accordingly and unifies the size of all CT images. The last step is to segment the lungs. The KMeans algorithm is used to automatically segment the lung image into two left and right areas. The left and right areas use the center points of their respective areas as seed points. The organ area and the irrelevant background area are directly segmented using the difference in HU values between the organ area and the irrelevant background area to obtain a preliminary lung segmentation result. There will be many small nodes on the image of the preliminary lung segmentation result. At this time, it is necessary to perform corrosion operation on the lung segmentation result to destroy the small nodes on the lung image, and then perform expansion operation to re-include and connect the broken areas around the lungs to obtain a more accurate lung segmentation result.
[0030] S2. Segmentation of the main trachea: A seed point is selected in the CT image where the main trachea area is clearly visible, and diffusion growth is performed in multiple pixel points in multiple directions with the selected seed point as the center. A preset stop condition is set. When the stop condition is met, the diffusion growth stops, and the pixel points where the diffusion growth stops are connected one by one to obtain the segmentation result of the main trachea.
[0031] Specifically, after the CT image sequence has been preprocessed, usually when the sequence is between 10 and 20 layers, the area of the main trachea will be more obvious. According to this experience, the present invention sets the seed point on the 15th layer of the CT image, and then selects a point in the middle of the horizontal and vertical coordinates as the seed point according to the area where all pixel values of this CT image are greater than 10, and performs regional growth. The specific growth and stop rules are: with the set seed point as the center point, diffuse to 26 pixel points in all directions, and the diffused point continues to diffuse to 26 pixel points in all directions as a seed point until the diffused pixel point meets the condition that more than 3 pixels of the 26 pixel points in all directions have pixel values that are not within the normal range of 0-40, the pixel will no longer diffuse and grow, and after all diffused pixel points stop growing, the pixel points that have stopped diffusing are connected one by one to obtain the segmentation result of the main trachea.
[0032] S3. Segmentation of bronchus: Based on the CT image of the segmented lung area obtained in S1, the lung area to be segmented is extracted, and two different bronchial starting areas are automatically located in the selected CT image. The center point of the starting area is used as the seed point, and the seed point is diffused in six directions including forward, backward, left, right, up and down until the preset stop condition is met. The pixel points where the diffusion growth is stopped are connected one by one to obtain the bronchial segmentation result.
[0033] Specifically, first, according to the segmentation result of the lung area obtained in the first step S1, the lung area to be segmented is extracted, and all the parts of the segmentation results that exceed this area will be discarded. Then, the seed point is selected. The same as when segmenting the main trachea, a CT image layer including the starting positions of the two bronchi is selected in advance based on experience. Then, the label function of skimage is used to automatically locate the starting areas of the two different bronchi. Then, the maximum and minimum values of the horizontal and vertical coordinates of the two starting areas are used respectively to calculate the average values, which are regarded as the center points of their respective areas. These two center points are used as the seed points for the starting growth of the two bronchi to perform regional growth. Because the wall thickness of the bronchus is relatively small, if 26-point diffusion is used, the stopping condition will be easily met, resulting in the loss of a large number of nodes. Therefore, the growth rule for regional growth of the bronchus is different from that of the main trachea in that the selected seed point diffuses and grows to 6 pixels in six directions: forward, backward, left, right, up and down. The stopping condition for the diffusion of the pixels is the same as that for the main trachea. Similarly, after all the diffused pixels have stopped growing, the pixels that have stopped diffusing are connected one by one to obtain the segmentation result of the bronchus.
[0034] Finally, the segmentation results of the bronchi and main trachea are combined to obtain all the segmentation results. Figure 2 Schematic diagram of the segmentation results of the trachea and bronchi.
[0035] By adopting the embodiment of the present invention, according to the different characteristics of the main trachea and bronchi trachea walls, a multi-step region growing method with a hierarchical method is used for different wall areas according to the thickness of the wall, thereby achieving a more accurate segmentation result while avoiding the occurrence of leakage problems.
[0036] Device Example 1
[0037] According to an embodiment of the present invention, a trachea segmentation device based on multi-step hierarchical growth of CT slices is provided. Figure 3 Schematic diagram of a tracheal segmentation device based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention. Figure 3 As shown, the trachea segmentation device based on multi-step hierarchical growth of CT slices according to an embodiment of the present invention specifically includes:
[0038] The preprocessing module 30 is used to remove the noise part of the CT image sequence by threshold processing, reduce the CT image sequence to a fixed size by resampling, and segment the lung area from the CT image sequence by KMeans algorithm.
[0039] The preprocessing module 30 is specifically used for:
[0040] According to a preset threshold, the value of the part of each CT image in the CT image sequence whose CT value is less than the threshold is set to 0, and the noise part of the CT image is removed;
[0041] Obtaining the inter-slice spacing and inter-pixel distance of the CT image sequence, and zooming in or out the CT images accordingly according to different size information and a predetermined standard, so as to unify the sizes of all CT images;
[0042] The KMeans algorithm is used to automatically segment the lung CT image into two areas, the organ area and the irrelevant background area are segmented using the difference in image CT values, and finally the segmentation result is corroded and then expanded to obtain the lung area segmentation result.
[0043] The main trachea segmentation module 32 is used to select a seed point in the CT image where the main trachea area is clearly visible, diffusely grow multiple pixel points in multiple directions with the selected seed point as the center, and according to the set stop condition, stop the pixel points that meet the stop condition from further diffusing and growing, and connect the pixel points that have stopped diffusing and growing one by one to obtain the segmentation result of the main trachea.
[0044] The main trachea segmentation module 32 is mainly used to control the diffusion growth of pixel points by setting the start and end conditions and diffusion rules of region growth to obtain the main trachea segmentation result.
[0045] Bronchial segmentation module 34: used to extract the segmented lung area from the preprocessed CT image, automatically locate two different bronchial starting areas in the CT image containing two bronchial starting positions, use the center point of the starting area as the seed point, set the seed point to diffuse and grow in six directions: forward, backward, left, right, up and down, until the diffusion and growth are stopped when the stop condition of the main bronchial segmentation module is met, and connect the pixel points that have stopped diffusing and growing one by one to obtain the bronchial segmentation result.
[0046] The bronchial segmentation module 34 is mainly used to: obtain the bronchial segmentation result by setting the starting conditions and diffusion rules of the region growth that are different from those of the main bronchial segmentation module, controlling the diffusion growth of pixels.
[0047] The embodiment of the present invention is a system embodiment corresponding to the above-mentioned method embodiment. The specific operations of each module can be understood by referring to the description of the method embodiment, which will not be repeated here.
[0048] Device Example 2
[0049] The embodiment of the present invention provides a tracheal segmentation device based on multi-step hierarchical growth of CT slices, such as Figure 4 As shown, it includes: a memory 40, a processor 42, and a computer program stored in the memory 40 and executable on the processor 42. When the computer program is executed by the processor 42, the following method steps are implemented:
[0050] S1. Preprocess the CT image sequence: remove the noise part of the CT image sequence through threshold processing, reduce the CT image sequence to a fixed size through resampling, and segment the lung area from the CT image sequence through the KMeans algorithm.
[0051] Specifically, firstly, the CT value of each CT image in the CT image sequence is set to -2000HU as the threshold, and the value of the part of each CT image in the CT image sequence with a CT value less than -2000HU is set to 0 to remove the noise part in the CT image. If the RescaleSlope value of the CT image is not equal to 1, the image is enlarged or reduced in a corresponding proportion according to the specific value; then the CT sequence images are resampled. In the resampling process, the inter-layer spacing and the distance between pixels of the CT image sequence are first obtained, wherein the inter-layer spacing represents the size of the image tip of each layer of the CT image sequence, and the distance between pixels represents the size information within the layer. According to different size information, The standard enlarges or reduces the image accordingly and unifies the size of all CT images. The last step is to segment the lungs. The KMeans algorithm is used to automatically segment the lung image into two left and right areas. The left and right areas use the center points of their respective areas as seed points. The organ area and the irrelevant background area are directly segmented using the difference in HU values between the organ area and the irrelevant background area to obtain a preliminary lung segmentation result. There will be many small nodes on the image of the preliminary lung segmentation result. At this time, it is necessary to perform corrosion operation on the lung segmentation result to destroy the small nodes on the lung image, and then perform expansion operation to re-include and connect the broken areas around the lungs to obtain a more accurate lung segmentation result.
[0052] S2. Segmentation of the main trachea: A seed point is selected in the CT image where the main trachea area is clearly visible, and diffusion growth is performed in multiple pixel points in multiple directions with the selected seed point as the center. A preset stop condition is set. When the stop condition is met, the diffusion growth stops, and the pixel points where the diffusion growth stops are connected one by one to obtain the segmentation result of the main trachea.
[0053] Specifically, after the CT image sequence has been preprocessed, usually when the sequence is between 10 and 20 layers, the area of the main trachea will be more obvious. According to this experience, the present invention sets the seed point on the 15th layer of the CT image, and then selects a point in the middle of the horizontal and vertical coordinates as the seed point according to the area where all pixel values of this CT image are greater than 10, and performs regional growth. The specific growth and stop rules are: with the set seed point as the center point, diffuse to 26 pixel points in all directions, and the diffused point continues to diffuse to 26 pixel points in all directions as a seed point until the diffused pixel point meets the condition that more than 3 pixels of the 26 pixel points in all directions have pixel values that are not within the normal range of 0-40, the pixel will no longer diffuse and grow, and after all diffused pixel points stop growing, the pixel points that have stopped diffusing are connected one by one to obtain the segmentation result of the main trachea.
[0054] S3. Segmentation of bronchus: Based on the CT image of the segmented lung area obtained in S1, the lung area to be segmented is extracted, and two different bronchial starting areas are automatically located in the selected CT image. The center point of the starting area is used as the seed point, and the seed point is diffused in six directions including forward, backward, left, right, up and down until the preset stop condition is met. The pixel points where the diffusion growth is stopped are connected one by one to obtain the bronchial segmentation result.
[0055] Specifically, first, according to the segmentation result of the lung area obtained in the first step S1, the lung area to be segmented is extracted, and all the parts of the segmentation results that exceed this area will be discarded. Then, the seed point is selected. The same as when segmenting the main trachea, a CT image layer including the starting positions of the two bronchi is selected in advance based on experience. Then, the label function of skimage is used to automatically locate the starting areas of the two different bronchi. Then, the maximum and minimum values of the horizontal and vertical coordinates of the two starting areas are used respectively to calculate the average values, which are regarded as the center points of their respective areas. These two center points are used as the seed points for the starting growth of the two bronchi to perform regional growth. Because the wall thickness of the bronchus is relatively small, if 26-point diffusion is used, the stopping condition will be easily met, resulting in the loss of a large number of nodes. Therefore, the growth rule for regional growth of the bronchus is different from that of the main trachea in that the selected seed point diffuses and grows to 6 pixels in six directions: forward, backward, left, right, up and down. The stopping condition for the diffusion of the pixels is the same as that for the main trachea. Similarly, after all the diffused pixels have stopped growing, the pixels that have stopped diffusing are connected one by one to obtain the segmentation result of the bronchus.
[0056] Finally, the segmentation results of the bronchi and the main trachea are merged to obtain all the segmentation results.
[0057] Device Example 3
[0058] An embodiment of the present invention provides a computer-readable storage medium, on which a program for implementing information transmission is stored. When the program is executed by the processor 42, the following method steps are implemented:
[0059] S1. Preprocess the CT image sequence: remove the noise part of the CT image sequence through threshold processing, reduce the CT image sequence to a fixed size through resampling, and segment the lung area from the CT image sequence through the KMeans algorithm.
[0060] Specifically, firstly, the CT value of each CT image in the CT image sequence is set to -2000HU as the threshold, and the value of the part of each CT image in the CT image sequence with a CT value less than -2000HU is set to 0 to remove the noise part in the CT image. If the RescaleSlope value of the CT image is not equal to 1, the image is enlarged or reduced in a corresponding proportion according to the specific value; then the CT sequence images are resampled. In the resampling process, the inter-layer spacing and the distance between pixels of the CT image sequence are first obtained, wherein the inter-layer spacing represents the size of the image tip of each layer of the CT image sequence, and the distance between pixels represents the size information within the layer. According to different size information, The standard enlarges or reduces the image accordingly and unifies the size of all CT images. The last step is to segment the lungs. The KMeans algorithm is used to automatically segment the lung image into two left and right areas. The left and right areas use the center points of their respective areas as seed points. The organ area and the irrelevant background area are directly segmented using the difference in HU values between the organ area and the irrelevant background area to obtain a preliminary lung segmentation result. There will be many small nodes on the image of the preliminary lung segmentation result. At this time, it is necessary to perform corrosion operation on the lung segmentation result to destroy the small nodes on the lung image, and then perform expansion operation to re-include and connect the broken areas around the lungs to obtain a more accurate lung segmentation result.
[0061] S2. Segmentation of the main trachea: A seed point is selected in the CT image where the main trachea area is clearly visible, and diffusion growth is performed in multiple pixel points in multiple directions with the selected seed point as the center. A preset stop condition is set. When the stop condition is met, the diffusion growth stops, and the pixel points where the diffusion growth stops are connected one by one to obtain the segmentation result of the main trachea.
[0062] Specifically, after the CT image sequence has been preprocessed, usually when the sequence is between 10 and 20 layers, the area of the main trachea will be more obvious. According to this experience, the present invention sets the seed point on the 15th layer of the CT image, and then selects a point in the middle of the horizontal and vertical coordinates as the seed point according to the area where all pixel values of this CT image are greater than 10, and performs regional growth. The specific growth and stop rules are: with the set seed point as the center point, diffuse to 26 pixel points in all directions, and the diffused point continues to diffuse to 26 pixel points in all directions as a seed point until the diffused pixel point meets the condition that more than 3 pixels of the 26 pixel points in all directions have pixel values that are not within the normal range of 0-40, the pixel will no longer diffuse and grow, and after all diffused pixel points stop growing, the pixel points that have stopped diffusing are connected one by one to obtain the segmentation result of the main trachea.
[0063] S3. Segmentation of bronchus: Based on the CT image of the segmented lung area obtained in S1, the lung area to be segmented is extracted, and two different bronchial starting areas are automatically located in the selected CT image. The center point of the starting area is used as the seed point, and the seed point is diffused in six directions including forward, backward, left, right, up and down until the preset stop condition is met. The pixel points where the diffusion growth is stopped are connected one by one to obtain the bronchial segmentation result.
[0064] Specifically, first, according to the segmentation result of the lung area obtained in the first step S1, the lung area to be segmented is extracted, and all the parts of the segmentation results that exceed this area will be discarded. Then, the seed point is selected. The same as when segmenting the main trachea, a CT image layer including the starting positions of the two bronchi is selected in advance based on experience. Then, the label function of skimage is used to automatically locate the starting areas of the two different bronchi. Then, the maximum and minimum values of the horizontal and vertical coordinates of the two starting areas are used respectively to calculate the average values, which are regarded as the center points of their respective areas. These two center points are used as the seed points for the starting growth of the two bronchi to perform regional growth. Because the wall thickness of the bronchus is relatively small, if 26-point diffusion is used, the stopping condition will be easily met, resulting in the loss of a large number of nodes. Therefore, the growth rule for regional growth of the bronchus is different from that of the main trachea in that the selected seed point diffuses and grows to 6 pixels in six directions: forward, backward, left, right, up and down. The stopping condition for the diffusion of the pixels is the same as that for the main trachea. Similarly, after all the diffused pixels have stopped growing, the pixels that have stopped diffusing are connected one by one to obtain the segmentation result of the bronchus.
[0065] Finally, the segmentation results of the bronchi and the main trachea are merged to obtain all the segmentation results.
[0066] The computer-readable storage medium in this embodiment includes, but is not limited to, ROM, RAM, magnetic disk or optical disk, etc.
[0067] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A trachea segmentation method based on multi-step hierarchical growth of CT slices, characterized in that: include: S1. Preprocessing the CT image sequence: removing the noise part of the CT image sequence by threshold processing, reducing the CT image sequence to a fixed size by resampling, and segmenting the lung area from the CT image sequence by KMeans algorithm; The method of removing the noise part of the CT image sequence by threshold processing specifically includes: setting a threshold value, setting the value of the part of each CT image in the CT image sequence whose CT value is less than the threshold value to 0, so as to remove the noise part of the CT image; The resampling of the CT image sequence to a fixed size specifically includes: firstly obtaining the inter-slice spacing and inter-pixel distance of the CT image sequence, and correspondingly enlarging or reducing the CT image according to different size information and a predetermined standard, so as to unify the sizes of all CT images; The method of segmenting the lung region by the KMeans algorithm specifically includes: using the KMeans algorithm to automatically segment the lung CT image into two left and right regions, using the center points of the respective regions as seed points, using the difference in image CT values to segment the organ region and the irrelevant background region, performing an erosion operation on the segmentation result and then performing an expansion operation to obtain a final lung region segmentation result; S2. Segmentation of the main trachea: a seed point is selected in the CT image where the main trachea region is clearly visible, and diffusion growth is performed in multiple pixel points in multiple directions with the selected seed point as the center, and a stop condition is preset. When the stop condition is met, the diffusion growth stops, and the pixel points where the diffusion growth stops are connected one by one to obtain the segmentation result of the main trachea; The method of performing diffusion growth to multiple pixel points in multiple directions with the selected seed point as the center specifically includes: performing diffusion growth to 26 pixel points in multiple directions with the selected seed point as the center, and the diffused point continues to diffuse to 26 pixel points in all directions as a seed point until it stops; The preset stop condition specifically includes: among the 26 pixels on all sides of a certain pixel, the pixel values of more than 3 pixels are not within the normal range of 0-40; S3. Segmenting bronchus: extracting the lung region to be segmented according to the CT image of the segmented lung region obtained in S1, automatically locating two different bronchial starting regions in the selected CT image, taking the center point of the starting region as the seed point, and diffusing the seed point in six directions, namely, forward, backward, left, right, up, and down, until the diffusion growth stops when the preset stop condition is met, and connecting the pixel points where the diffusion growth stops one by one to obtain the bronchial segmentation result; The center point of the starting area is obtained by calculating the average value of the maximum and minimum values of the horizontal and vertical coordinates of each area.
2. A tracheal segmentation device based on multi-step hierarchical growth of CT slices, characterized in that: include: Preprocessing module: used for removing noise from the CT image sequence by threshold processing, reducing the CT image sequence to a fixed size by resampling, and segmenting the lung region from the CT image sequence by KMeans algorithm; The preprocessing module is specifically used for: According to a preset threshold, the value of the part of each CT image in the CT image sequence whose CT value is less than the threshold is set to 0, and the noise part of the CT image is removed; Obtaining the inter-slice spacing and inter-pixel distance of the CT image sequence, and zooming in or out the CT images accordingly according to different size information and a predetermined standard, so as to unify the sizes of all CT images; The KMeans algorithm is used to automatically segment the lung CT image into two areas, the organ area and the irrelevant background area are segmented using the difference in image CT values, and finally the segmentation result is corroded and then expanded to obtain the lung area segmentation result; Main trachea segmentation module: used to select a seed point in the CT image where the main trachea area is clearly visible, diffusely grow multiple pixel points in multiple directions with the selected seed point as the center, and stop the pixel points that meet the stop condition from further diffuse growth according to the set stop condition, and connect the pixel points that stop diffuse growth one by one to obtain the main trachea segmentation result; The main trachea segmentation module is specifically used for: By setting the start and end conditions and diffusion rules of region growth, the diffusion growth of pixels is controlled to obtain the main trachea region; Bronchial segmentation module: used to extract the segmented lung area from the preprocessed CT image, automatically locate two different bronchial starting areas in the CT image containing two bronchial starting positions, use the center point of the starting area as the seed point, set the seed point to diffuse and grow in six directions: forward, backward, left, right, up and down, until the diffusion and growth are stopped when the stop condition of the main bronchial segmentation module is met, and connect the pixel points that stop diffusing and growing one by one to obtain the bronchial segmentation result; The bronchial segmentation module is specifically used for: By setting the starting conditions and diffusion rules of the region growth that are different from those of the main trachea segmentation module, the diffusion growth of pixels is controlled to obtain the bronchial region.
3. A tracheal segmentation device based on multi-step hierarchical growth of CT slices, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the trachea segmentation method based on multi-step hierarchical growth of CT slices as described in claim 1 are implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an implementation program for information transmission, and when the program is executed by the processor, the steps of the trachea segmentation method based on multi-step hierarchical growth of CT slices as described in claim 1 are implemented.
Citation Information
Patent Citations
Method for automatically extracting tracheal tree from chest CT image
CN108171703A
Method for segmenting medical images and detecting surface anomalies in anatomical structures
US6246784B1
Automated method and system for the segmentation of lung regions in computed tomography scans
WO2001054066A1
