Method and system for constructing 3D cerebral vascular model based on cerebral vascular image segmentation
By clustering, screening and detecting effective feature points in cerebral blood vessel CT images, combined with tomography angiography technology, the problem of noise and grayscale changes caused by the SIFT algorithm in constructing a three-dimensional model of cerebral blood vessels is solved, improving the accuracy and accuracy of the model. Edge detection effect.
Patent Information
- Application Number
- CN202411203992.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-30
AI Technical Summary
When the existing three-dimensional model of cerebral blood vessels is constructed based on the SIFT algorithm, it is affected by feature point errors caused by noise and grayscale changes, resulting in inaccurate model construction.
By obtaining the gradient value of cerebral blood vessel CT images, clustering non-zero pixel points, extracting feature points and connected graphs, calculating structural information and regional information, screening effective feature points, performing edge detection, and combining tomography angiography technology to build a three-dimensional model.
It improves the construction accuracy of the three-dimensional cerebral blood vessel model, reduces the impact of noise and grayscale changes on the model, and enhances the effectiveness of feature points and the accuracy of edge detection.
Smart Images

Figure CN118736137B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for constructing a cerebral blood vessel three-dimensional model based on cerebral blood vessel image segmentation. Background Art
[0002] Cerebrovascular disease is a common brain disease. Medical staff generally collect brain information through nuclear magnetic resonance or CT technology, analyze the cerebrovascular disease through the collected CT images, and determine the treatment plan based on the analysis results. As two-dimensional image information, CT images do not clearly reflect the structural changes of blood vessels. High-resolution cerebrovascular images can be obtained through tomography angiography (CTA) technology, and the acquired images can be used to construct a three-dimensional model. The constructed three-dimensional model can better reflect the distribution structure and lesions of the blood vessels.
[0003] The SIFT algorithm can be used to obtain CT images of different levels for analysis, and the vascular area in each layer can be determined by extracting feature point data. The three-dimensional model can be constructed by matching the feature point data in CT images of different levels. However, when matching the extracted feature points in CT images using the SIFT algorithm, some feature point data are not the required feature points, such as feature point data caused by noise or feature points caused by grayscale changes in the CT itself (grayscale differences caused by different contrast agent concentrations in blood vessels), which will affect the accuracy of subsequent model construction. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a method and system for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation.
[0005] The method and system for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation of the present invention adopt the following technical solutions:
[0006] An embodiment of the present invention provides a method and system for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation, the method comprising the following steps:
[0007] Acquire a cerebrovascular image set, wherein the cerebrovascular image set includes cerebrovascular CT images of several different levels;
[0008] Acquire several feature points of the cerebrovascular CT image at each level; acquire the gradient value of each pixel in the cerebrovascular CT image, cluster the pixels whose gradient values are not 0 in the cerebrovascular CT image at each level, and obtain several connected graphs of the cerebrovascular CT image at each level; obtain the structural information of each feature point in the cerebrovascular CT image at each level according to the feature points and the connected graphs;
[0009] According to the difference in structural information of different feature points in the cerebrovascular CT image, the regional information of each feature point in the cerebrovascular CT image of each level is obtained; according to the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels, the validity of each feature point in the cerebrovascular CT image of each level is obtained; according to the size of the validity, a number of valid feature points of the cerebrovascular CT image of each level are obtained;
[0010] Edge detection is performed on each level of cerebral vascular CT images, and several effective edges of each level of cerebral vascular CT images are obtained based on effective feature points; a 3D cerebral vascular model is constructed based on tomographic angiography technology and effective edges of each level of cerebral vascular CT images.
[0011] Furthermore, the specific method of obtaining several feature points of the cerebral vascular CT image at each level is as follows:
[0012] A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image; feature points of the target cerebral vascular CT image are extracted using a SIFT algorithm to obtain a number of feature points of the target cerebral vascular CT image.
[0013] Furthermore, clustering the pixels whose gradient values are not 0 in the cerebral vascular CT images of each level to obtain a plurality of connectivity graphs of the cerebral vascular CT images of each level includes the following specific steps:
[0014] The cerebrovascular CT image of any level in the cerebrovascular image set is recorded as the target cerebrovascular CT image; the pixel points with non-zero gradient values in the target cerebrovascular CT image are recorded as the nodes of the target cerebrovascular CT image; all the nodes of the target cerebrovascular CT image are clustered by a divisive clustering algorithm based on a connected graph to obtain several connected graphs of the target cerebrovascular CT image.
[0015] Furthermore, the structural information of each feature point in the cerebral vascular CT image of each level is obtained according to the feature points and the connectivity graph, and the specific steps include the following:
[0016] The target cerebral vascular CT image The connected graph where the feature points are located is recorded as the target connected graph;
[0017] ;
[0018] In the formula, is the number of nodes in the target connected graph; The specific method of obtaining is as follows: The feature point is connected to the target in the graph The angle between the line connecting the nodes and the horizontal line is recorded as , The target cerebral vascular CT image The feature point is connected to the target in the graph The Euclidean distance of nodes, ; The specific method of obtaining is as follows: The feature point is connected to the target in the graph The angle between the line connecting the nodes and the horizontal line is recorded as , The target cerebral vascular CT image The feature point is connected to the target in the graph The Euclidean distance of nodes, , ; To take the absolute value, is an exponential function with a natural constant as base; The target cerebral vascular CT image The local saliency of feature points, The target cerebral vascular CT image The information factor of feature points, To obtain the minimum value, is the cosine function;
[0019] The information factor of each feature point in the target cerebrovascular CT image is obtained, and the information factors of all feature points in the target cerebrovascular CT image are linearly normalized, and the obtained result is used as the structural information of each feature point in the target cerebrovascular CT image.
[0020] Furthermore, the target cerebral vascular CT image The specific method for obtaining the local saliency of a feature point is as follows:
[0021] The target cerebral vascular CT image The pixel corresponding to the feature point is recorded as the first pixel, and the absolute value of the difference between the grayscale value of each pixel in the eight neighborhoods of the first pixel and the first pixel is obtained, which is recorded as the neighborhood difference of the first pixel. The minimum value of all neighborhood differences of the first pixel is taken as the first pixel in the target cerebral vascular CT image. The local saliency of feature points.
[0022] Furthermore, the step of obtaining the region information of each feature point in the cerebrovascular CT image of each level according to the structural information difference of different feature points in the cerebrovascular CT image includes the following specific steps:
[0023] A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image;
[0024] ;
[0025] In the formula, The target cerebral vascular CT image The structural information of feature points; The specific method of obtaining is as follows: obtain the target cerebral vascular CT image with the first The feature point closest to the first feature point will be The feature point closest to the feature point is recorded as the first feature point in the target cerebral vascular CT image. The first feature point of the feature points, the structural information of the first feature point is recorded as ; The target cerebral vascular CT image The Euclidean distance between the first feature point and the feature point; The specific method of obtaining is as follows: in the CT image of the target cerebral blood vessels, In addition to the first feature point of the feature points, obtain the target cerebral vascular CT image to obtain the first feature point The feature point closest to the first feature point will be The feature point closest to the feature point is recorded as the first feature point in the target cerebral vascular CT image. The second feature point of the feature point, the structural information of the second feature point is recorded as ; The target cerebral vascular CT image The Euclidean distance between the first feature point and the second feature point; To take the absolute value, The target cerebral vascular CT image The regional factor of the feature points;
[0026] The regional factor of each feature point in the target cerebrovascular CT image is obtained, and the regional factors of all feature points in the target cerebrovascular CT image are linearly normalized, and the obtained result is used as the regional information of each feature point in the target cerebrovascular CT image.
[0027] Furthermore, the validity of each feature point in the cerebrovascular CT image of each level is obtained according to the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels, and the specific steps include the following:
[0028] The target cerebral vascular CT image is recorded as CT images of cerebral vessels at each level; The CT images of the cerebral vessels at the first level and the CT images of cerebral vessels at each level;
[0029] ;
[0030] In the formula, , and The specific method of obtaining is as follows: The size of the cerebrovascular CT image at each level is recorded as , For the The length of the cerebrovascular CT image at each level, For the The width of the cerebrovascular CT images at each level is constructed A three-dimensional empty matrix of size The gray value of each pixel in the cerebrovascular CT image of each layer is used as the element value of the corresponding position of the first layer in the three-dimensional empty matrix. The gray value of each pixel in the cerebrovascular CT image of the first level is used as the element value of the corresponding position in the second layer of the three-dimensional empty matrix. The gray value of each pixel in the cerebrovascular CT image of each layer is used as the element value of the corresponding position of the third layer in the three-dimensional empty matrix to obtain a three-dimensional matrix;
[0031] The SIFT algorithm is used to match the cerebrovascular CT images at adjacent levels to obtain the matching feature points in the cerebrovascular CT images at adjacent levels. In the CT images of cerebral vessels at each level, The feature point is The matched feature points in the cerebral vascular CT image at the first level are recorded as The first matching feature point of the feature point In the CT images of cerebral vessels at each level, The feature point is The matched feature points in the cerebral vascular CT image at the first level are recorded as The second matching feature point of the feature point The feature point and The Euclidean distance of the first matching feature point of the feature point in the three-dimensional matrix is recorded as The first Euclidean distance of the feature point The feature point and The Euclidean distance of the second matching feature point of the feature point in the three-dimensional matrix is recorded as The second Euclidean distance of feature points;
[0032] The first In the CT images of cerebral vessels at each level, The regional information of the feature points is The absolute value of the difference in regional information of the first matching feature point of feature points is recorded as ; In the CT images of cerebral vessels at each level, The regional information of the feature points is The absolute value of the difference between the area information of the second matching feature point of the feature point is recorded as ; The first Euclidean distance of the feature points is The product of , will The second Euclidean distance of the feature points is The product of ,Will and The minimum value in is denoted as ;
[0033] The first feature points, The first matching feature point of the feature point and the The second matching feature point of the feature point, the corresponding elements in the three-dimensional matrix are recorded as the first element, the second element and the third element respectively, and the vector determined by pointing the first element to the second element is recorded as the The first vector of the feature point points the first element to the vector determined by the third element, recorded as The second vector of the feature point The angle between the first vector and the second vector of the feature point is recorded as ;
[0034] The first In the CT images of cerebral vessels at each level, The structural information of the feature points, The structural information of the first matching feature point and the The variance of the structural information of the second matching feature point of feature points is recorded as ;
[0035] is an exponential function with a natural constant as base; The target cerebral vascular CT image The effectiveness of feature points, is the cosine function.
[0036] Furthermore, the specific steps of obtaining a number of effective feature points of the cerebral vascular CT image at each level according to the effectiveness are as follows:
[0037] A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image;
[0038] A first threshold is preset, and feature points in the target cerebrovascular CT image whose validity is greater than the first threshold are used as valid feature points of the target cerebrovascular CT image.
[0039] Furthermore, the edge detection is performed on the cerebral vascular CT image of each layer and a plurality of effective edges of the cerebral vascular CT image of each layer are obtained according to effective feature points, and the specific steps include the following:
[0040] A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image;
[0041] Perform Canny edge detection on the target cerebrovascular CT image to obtain several edges of the target cerebrovascular CT image. The edge of more than 100 valid feature points is regarded as the effective edge of the target cerebrovascular CT image. is a preset first value.
[0042] The present invention also proposes a cerebrovascular three-dimensional model construction system based on cerebrovascular image segmentation, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the steps of the aforementioned method.
[0043] The beneficial effect of the technical solution of the present invention is as follows: after acquiring the cerebrovascular image set, the present invention obtains the feature points of the cerebrovascular CT images of each level, clusters the pixel points whose gradient values are not 0 in the cerebrovascular CT images of each level, obtains the connectivity graph of the cerebrovascular CT images of each level, obtains the structural information of each feature point in the cerebrovascular CT images of each level through the feature points and the connectivity graph, indicates the obvious situation of the structural information of the feature points, obtains the regional information of each feature point in the cerebrovascular CT images of each level through the difference of the structural information of different feature points in the cerebrovascular CT images, which can reflect the relationship between the feature points and the surrounding feature points to a certain extent. The position distribution is determined by the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels, and the validity of each feature point in the cerebrovascular CT images of each level is obtained. Then, the edge detection is performed on the cerebrovascular CT images of each level, and based on the effective feature points, the effective edges of the cerebrovascular CT images of each level are obtained, and finally the construction of the cerebrovascular three-dimensional model is completed. When obtaining the effective feature points, their local distribution in the CT images is analyzed. The obtained feature points are selected by analyzing the structural smoothness of the matching feature points in different levels, so that the feature points are more in line with the distribution of blood vessels, thereby improving the accuracy of the constructed cerebrovascular three-dimensional model. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A flowchart of the steps of a method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation provided by one embodiment of the present invention;
[0046] Figure 2 A flowchart of constructing a three-dimensional model of cerebral blood vessels provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the method and system for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0048] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0049] The specific scheme of the method and system for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation provided by the present invention is described in detail below with reference to the accompanying drawings.
[0050] See also Figure 1 , which shows a flowchart of a method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to an embodiment of the present invention, the method comprising the following steps:
[0051] Step S001: Acquire a cerebral vascular image set.
[0052] It should be noted that this embodiment obtains a high-resolution cerebral vascular image set through the computed tomography angiography (CTA) technology, detects feature points of CT images at different levels through the SIFT algorithm, matches vascular regions at different levels through the acquired feature points, and constructs a three-dimensional model of the vascular region based on the matching situation.
[0053] Specifically, a cerebrovascular image set is obtained as follows:
[0054] Several different levels of cerebrovascular CT images of the patient are obtained by tomographic angiography (CTA) technology; it should be noted that different levels of cerebrovascular CT images refer to images of different slices or layers (cross-sectional images) obtained during the scanning process, and the sizes of cerebrovascular CT images of different levels are the same; the patient has small movements such as swallowing during the image acquisition process, and there are a large number of motion artifacts in the image. Directly extracting SIFT geometric feature points from the image will introduce a large number of geometric feature points that are not located on the blood vessels. Before cerebrovascular segmentation, it is necessary to perform preliminary registration operations on the acquired CT images of different levels; the sequential similarity detection algorithm (SSDA, Sequential Similarity Detection Algorithms) is used to match the cerebrovascular CT images of different levels, and the set of cerebrovascular CT images after matching is recorded as the cerebrovascular image set; it should be noted that the sequential similarity detection algorithm (SSDA) is used to match the cerebrovascular CT images of different levels, and the specific matching is an existing method, which will not be repeated in this embodiment; the purpose is to reduce the interference of motion artifacts, and this matching is only a preliminary matching situation, and precise alignment is not required.
[0055] At this point, a set of cerebral vascular images is obtained.
[0056] Step S002, obtaining a number of feature points of the cerebrovascular CT image of each level; clustering the pixel points whose gradient values are not 0 in the cerebrovascular CT image of each level to obtain a number of connectivity graphs of the cerebrovascular CT image of each level; and obtaining the structural information of each feature point in the cerebrovascular CT image of each level based on the feature points and the connectivity graphs.
[0057] It should be noted that when constructing a three-dimensional model of cerebral blood vessels, it is necessary to determine the vascular area in the CT image. By matching and superimposing the acquired vascular area through different CT images, a complete vascular three-dimensional model can be obtained. There is a certain difference between the vascular area and the brain tissue after angiography. Due to the chaotic distribution of tissues in the brain and the different concentrations of vascular contrast agents, the complete vascular area cannot be obtained directly through threshold segmentation, which affects the accuracy of subsequent model construction. According to the above analysis, there will be a certain gradient between the vascular area and the brain tissue area. The SIFT algorithm is used to detect feature points on the acquired CT image. The complete vascular area can be obtained by combining the feature points of the vascular area with its edge information. However, when performing feature point detection, there may be feature points that are not in the vascular area. At the same time, the concentration change of the contrast agent in the blood vessel will also produce feature points, but its feature points will affect the integrity and accuracy of the vascular area segmentation.
[0058] According to the analysis, the blood vessel distribution in the brain is a whole, and there will be certain connections between the blood vessels in different levels. When analyzing the feature points in the acquired CT image to segment the blood vessel area, not only the structural changes of the acquired feature point data in the CT image itself are analyzed, but also the correlation between the levels can be analyzed to calculate the validity of the acquired feature points. The blood vessel area of the CT image is segmented according to the effective feature points to construct a three-dimensional blood vessel model.
[0059] It should be noted that according to the above logical analysis, the feature points in the CT image can be extracted by the SIFT algorithm, but directly segmenting the vascular area in the CT image through the feature points will lead to division errors. The local distribution of the feature points at each section level and the change of its overall position information can be analyzed. When performing local calculations, when the acquired blood vessel is a cross-section, the distribution of its feature points is locally aggregated, and it is discrete in the whole, but it has a strong correlation in the CT images at different levels. At the same time, the longitudinal section area of the blood vessel can locally reflect the extension of the distribution of its feature points, and it can be shown as connected in the whole. The above are all the distribution of blood vessels, but due to their different levels and positional relationships, their forms of expression are different, but the blood vessels acquired as a whole will have a common extension distribution, and the boundary information of its blood vessel area is relatively smooth and may be distributed in parallel.
[0060] Specifically, several feature points of the cerebral vascular CT image at each level are obtained, as follows:
[0061] A cerebrovascular CT image at any level in the cerebrovascular image set is recorded as a target cerebrovascular CT image; feature points of the target cerebrovascular CT image are extracted using the SIFT algorithm to obtain a number of feature points of the target cerebrovascular CT image; it should be noted that extracting feature points of the target cerebrovascular CT image using the SIFT algorithm to obtain a number of feature points of the target cerebrovascular CT image is an existing method and will not be repeated in this embodiment.
[0062] Specifically, the gradient value of each pixel in the cerebrovascular CT image is obtained, and the pixel points whose gradient values are not 0 in the cerebrovascular CT image of each level are clustered to obtain several connected graphs of the cerebrovascular CT image of each level. As an embodiment, the specific method is as follows:
[0063] It should be noted that, in this embodiment, the gradient value of each pixel in the target cerebrovascular CT image is obtained by using the Sobel operator. The specific acquisition is an existing method and will not be described in detail in this embodiment. The pixel points in the target cerebrovascular CT image whose gradient values are not 0 are recorded as nodes of the target cerebrovascular CT image. It should be noted that, since the gradient values of the feature points of the target cerebrovascular CT image are not 0, the feature points of the target cerebrovascular CT image also belong to nodes. All nodes of the target cerebrovascular CT image are clustered by using a divisive clustering algorithm based on a connected graph to obtain several connected graphs of the target cerebrovascular CT image. It should be noted that, clustering all nodes of the target cerebrovascular CT image by using a divisive clustering algorithm based on a connected graph to obtain several connected graphs of the target cerebrovascular CT image is an existing method of a divisive clustering algorithm based on a connected graph and will not be described in detail in this embodiment.
[0064] Furthermore, according to the feature points and the connectivity graph, the structural information of each feature point in the cerebral vascular CT image of each level is obtained. As an embodiment, the specific calculation method is as follows:
[0065] The target cerebral vascular CT image The connected graph where the feature points are located is recorded as the target connected graph.
[0066] ;
[0067] In the formula, is the number of nodes in the target connected graph; The specific method of obtaining is as follows: The feature point is connected to the target in the graph The angle between the line connecting the nodes and the horizontal line is recorded as , The target cerebral vascular CT image The feature point is connected to the target in the graph The Euclidean distance of nodes, It should be noted that When traversing nodes, Nodes and The feature points will not be the same pixel, so ; The specific method of obtaining is as follows: The feature point is connected to the target in the graph The angle between the line connecting the nodes and the horizontal line is recorded as , The target cerebral vascular CT image The feature point is connected to the target in the graph The Euclidean distance of nodes, , ; To take the absolute value, is an exponential function with a natural constant as the base; this embodiment adopts The model is used to present the inverse proportional relationship and normalization processing. In the specific implementation example, other inverse proportional functions and normalization functions can be set according to the implementation situation; The target cerebral vascular CT image The local saliency of feature points, The target cerebral vascular CT image The information factor of feature points, To obtain the minimum value, is the cosine function.
[0068] The information factor of each feature point in the target cerebrovascular CT image is obtained, and the information factors of all feature points in the target cerebrovascular CT image are linearly normalized, and the obtained result is used as the structural information of each feature point in the target cerebrovascular CT image.
[0069] It should be noted that Indicates The change of the feature point itself can be determined by the minimum neighborhood difference. The significance of feature points, The larger the The better the significance of a feature point, the more obvious the information it carries. It indicates the distribution of nodes in the target connected graph. The larger its value is, the smoother the node distribution is and the more obvious the overall structural change of the target connected graph is. When analyzing the distribution of feature points, the number of nodes in the target connected graph can be analyzed. The larger the number is, the more concentrated the node distribution is in the target connected graph, and the more effective the subsequent analysis of the position distribution relationship of the feature points is. By analyzing the connectivity of the feature points and nodes in the target connected graph, the changes in the angle and distance in the connectivity can be analyzed. The smaller the change in angle and distance, the smaller the The smoother the connectivity between feature points and nodes, the more consistent the overall smooth distribution on the edge of the blood vessel wall, and the more obvious the structural information of the feature points.
[0070] Among them, the target cerebral vascular CT image The specific method for obtaining the local saliency of a feature point is as follows:
[0071] The target cerebral vascular CT image The pixel corresponding to the feature point is recorded as the first pixel, and the absolute value of the difference between the grayscale value of each pixel in the eight neighborhoods of the first pixel and the first pixel is obtained, which is recorded as the neighborhood difference of the first pixel. The minimum value of all neighborhood differences of the first pixel is taken as the first pixel in the target cerebral vascular CT image. The local saliency of feature points.
[0072] At this point, the structural information of each feature point in the cerebral vascular CT image of each level is obtained.
[0073] Step S003: obtaining the regional information of each feature point in the cerebrovascular CT image of each level according to the difference in structural information of different feature points in the cerebrovascular CT image; obtaining the validity of each feature point in the cerebrovascular CT image of each level according to the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels; and obtaining a number of valid feature points of the cerebrovascular CT image of each level according to the size of the validity.
[0074] It should be noted that the structural information of each feature point obtained above can be determined by analyzing the stable change trend of the structural information of the feature points at different levels, and analyzing the connectivity between the feature points obtained at different levels, and the vascular area can be obtained based on the effective feature points and their edge information. When calculating the connectivity of feature points at different levels, due to the presence of a large number of motion artifacts in the cerebral vascular CT image, the presence of artifacts cannot be directly analyzed through the corresponding position information, and there may be a certain position fluctuation. When analyzing the overall connectivity, the overall structural changes can be considered. The boundary information of the vascular wall is relatively smooth and may be distributed in a parallel manner. The motion artifact will only cause displacement but the overall structure will not change. The validity of the feature points can be obtained by analyzing the consistency of the corresponding feature points at different levels and the smoothness of their own structural changes.
[0075] Specifically, according to the difference in structural information of different feature points in the cerebrovascular CT image, the regional information of each feature point in the cerebrovascular CT image of each level is obtained. As an embodiment, the specific calculation method is as follows:
[0076] ;
[0077] In the formula, The target cerebral vascular CT image The structural information of feature points; The specific method of obtaining is as follows: obtain the target cerebral vascular CT image with the first The feature point closest to the first feature point will be The feature point closest to the feature point is recorded as the first feature point in the target cerebral vascular CT image. The first feature point of the feature points, the structural information of the first feature point is recorded as ; The target cerebral vascular CT image The Euclidean distance between the first feature point and the feature point; The specific method of obtaining is as follows: in the CT image of the target cerebral blood vessels, In addition to the first feature point of the feature points, obtain the target cerebral vascular CT image to obtain the first feature point The feature point closest to the first feature point will be The feature point closest to the feature point is recorded as the first feature point in the target cerebral vascular CT image. The second feature point of the feature point, the structural information of the second feature point is recorded as ; The target cerebral vascular CT image The Euclidean distance between the first feature point and the second feature point; it should be noted that the first feature point and the second feature point will not be feature points; To take the absolute value, The target cerebral vascular CT image The regional factor of the feature points.
[0078] The regional factor of each feature point in the target cerebrovascular CT image is obtained, and the regional factors of all feature points in the target cerebrovascular CT image are linearly normalized, and the obtained result is used as the regional information of each feature point in the target cerebrovascular CT image.
[0079] It should be noted that By analyzing the change of feature points and the distance relationship between their positions, the position distribution of feature points and surrounding feature points can be reflected to a certain extent.
[0080] Furthermore, according to the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels, the validity of each feature point in the cerebrovascular CT images of each level is obtained. As an embodiment, the specific calculation method is as follows:
[0081] The target cerebral vascular CT image is recorded as CT images of cerebral vessels at each level; The CT images of the cerebral vessels at the first level and the CT images of cerebral vessels at each level; it should be noted that if If the cerebral vascular CT images at a level do not have an upper or lower level, they will not be analyzed.
[0082] ;
[0083] In the formula, , and The specific method of obtaining is as follows: The size of the cerebrovascular CT image at each level is recorded as , For the The length of the cerebrovascular CT image at each level, For the The width of the cerebrovascular CT images at each level is constructed The size of the three-dimensional empty matrix is 3, and the height of the three-dimensional empty matrix is 3; it should be noted again that the sizes of the cerebral vascular CT images at different levels are the same; The gray value of each pixel in the cerebrovascular CT image of each layer is used as the element value of the corresponding position of the first layer in the three-dimensional empty matrix. The gray value of each pixel in the cerebrovascular CT image of the first level is used as the element value of the corresponding position in the second layer of the three-dimensional empty matrix. The gray value of each pixel in the cerebral vascular CT image of each level is used as the element value of the corresponding position of the third layer in the three-dimensional empty matrix to obtain a three-dimensional matrix.
[0084] The cerebral vascular CT images at adjacent levels are matched by the SIFT algorithm to obtain the matching feature points in the cerebral vascular CT images at adjacent levels. It should be noted that the method of matching the cerebral vascular CT images at adjacent levels by the SIFT algorithm to obtain the matching feature points in the cerebral vascular CT images at adjacent levels is an existing method and will not be described in detail in this embodiment. In the CT images of cerebral vessels at each level, The feature point is The matched feature points in the cerebral vascular CT image at the first level are recorded as The first matching feature point of the feature point In the CT images of cerebral vessels at each level, The feature point is The matched feature points in the cerebral vascular CT image at the first level are recorded as The second matching feature point of the feature point The feature point and The Euclidean distance of the first matching feature point of the feature point in the three-dimensional matrix is recorded as The first Euclidean distance of the feature point The feature point and The Euclidean distance of the second matching feature point of the feature point in the three-dimensional matrix is recorded as The second Euclidean distance of feature points.
[0085] The first In the CT images of cerebral vessels at each level, The regional information of the feature points is The absolute value of the difference in regional information of the first matching feature point of feature points is recorded as ; In the CT images of cerebral vessels at each level, The regional information of the feature points is The absolute value of the difference between the area information of the second matching feature point of the feature point is recorded as ; The first Euclidean distance of the feature points is The product of , will The second Euclidean distance of the feature points is The product of ,Will and The minimum value in is denoted as .
[0086] The first feature points, The first matching feature point of the feature point and the The second matching feature point of the feature point, the corresponding elements in the three-dimensional matrix are recorded as the first element, the second element and the third element respectively, and the vector determined by pointing the first element to the second element is recorded as the The first vector of the feature point points the first element to the vector determined by the third element, recorded as The second vector of the feature point The angle between the first vector and the second vector of the feature point is recorded as .
[0087] The first In the CT images of cerebral vessels at each level, The structural information of the feature points, The structural information of the first matching feature point and the The variance of the structural information of the second matching feature point of feature points is recorded as .
[0088] is an exponential function with a natural constant as the base. The model is used to present the inverse proportional relationship and normalization processing. In the specific implementation example, other inverse proportional functions and normalization functions can be set according to the implementation situation; The target cerebral vascular CT image The effectiveness of feature points, is the cosine function.
[0089] It should be noted that Indicates the overall matching situation. The larger the value, the smoother the change of the matched feature point data. The overall feature points are connected at different levels, and the better the effectiveness. By analyzing the consistency of the change of the position information at different levels, The smaller it is, the more similar the position distribution of the feature points is, and the closer the match is. The distance needs to be considered when performing matching calculations. The larger the distance, the less likely the match is. By analyzing the changes in the angle, the smoothness of the changes in the connecting matching points can be determined. The larger the angle, the better the smoothness. The closer the feature point is to the vascular area, the greater the effectiveness of the feature point.
[0090] Furthermore, according to the effectiveness, several effective feature points of the cerebral vascular CT image at each level are obtained, as follows:
[0091] A first threshold is preset. This embodiment is described with the first threshold being 0.6. Feature points in the target cerebrovascular CT image whose validity is greater than the first threshold are taken as valid feature points of the target cerebrovascular CT image. It should be noted that feature points that are less than or equal to the first threshold are not subsequently analyzed in this embodiment.
[0092] At this point, several effective feature points of the cerebral vascular CT image at each level are obtained.
[0093] Step S004: perform edge detection on each level of the cerebral vascular CT image and obtain a number of effective edges of each level of the cerebral vascular CT image based on effective feature points; construct a cerebral vascular three-dimensional model based on the tomographic angiography technology and the effective edges of each level of the cerebral vascular CT image.
[0094] Specifically, edge detection is performed on each level of the cerebral vascular CT image and several effective edges of each level of the cerebral vascular CT image are obtained according to effective feature points, as follows:
[0095] Perform Canny edge detection on the target cerebrovascular CT image to obtain several edges of the target cerebrovascular CT image. The edge of more than 100 valid feature points is regarded as the effective edge of the target cerebrovascular CT image. is a preset first value. Give a narrative.
[0096] Furthermore, a 3D cerebral vascular model is constructed based on the effective edge of the CT image of each layer of the cerebral vascular angiography technology and the CT image of each layer of the cerebral vascular. It should be noted that the 3D cerebral vascular model is constructed based on the CT angiography (CTA) technology and the effective edge of the CT image of each layer of the cerebral vascular angiography. This is an existing method and will not be described in detail in this embodiment; please refer to Figure 2 , Figure 2 A flowchart of constructing a three-dimensional model of cerebral blood vessels provided by one embodiment of the present invention.
[0097] At this point, by analyzing the cerebral vascular CT images at each level, the effective edges of the cerebral vascular CT images at each level are obtained, and then the construction of the cerebral vascular three-dimensional model is completed.
[0098] Another embodiment of the present invention provides a system for constructing a 3D model of cerebral blood vessels based on cerebral blood vessel image segmentation, the system comprising a memory and a processor, and when the processor executes a computer program stored in the memory, the processor performs the following operations:
[0099] A cerebrovascular image set is obtained, wherein the cerebrovascular image set includes cerebrovascular CT images of several different levels; a plurality of feature points of the cerebrovascular CT images of each level are obtained; a gradient value of each pixel point in the cerebrovascular CT images is obtained, and pixel points whose gradient values are not 0 in the cerebrovascular CT images of each level are clustered to obtain a plurality of connected graphs of the cerebrovascular CT images of each level; structural information of each feature point in the cerebrovascular CT images of each level is obtained according to the feature points and the connected graphs; and the cerebrovascular CT images of each level are obtained according to the differences in structural information of different feature points in the cerebrovascular CT images. The method comprises the following steps: obtaining the regional information of each feature point in the cerebrovascular CT image; obtaining the validity of each feature point in the cerebrovascular CT image of each level according to the feature points, structural information and regional information in the cerebrovascular CT image of adjacent levels; obtaining a number of valid feature points of the cerebrovascular CT image of each level according to the size of the validity; performing edge detection on the cerebrovascular CT image of each level and obtaining a number of valid edges of the cerebrovascular CT image of each level according to the valid feature points; constructing a cerebrovascular three-dimensional model according to the tomographic angiography technology and the valid edges of the cerebrovascular CT image of each level.
[0100] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation, characterized in that: The method comprises the following steps: Acquire a cerebrovascular image set, wherein the cerebrovascular image set includes cerebrovascular CT images of several different levels; Acquire several feature points of the cerebrovascular CT image at each level; acquire the gradient value of each pixel in the cerebrovascular CT image, cluster the pixels whose gradient values are not 0 in the cerebrovascular CT image at each level, and obtain several connected graphs of the cerebrovascular CT image at each level; obtain the structural information of each feature point in the cerebrovascular CT image at each level according to the feature points and the connected graphs; According to the difference in structural information of different feature points in the cerebrovascular CT image, the regional information of each feature point in the cerebrovascular CT image of each level is obtained; according to the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels, the validity of each feature point in the cerebrovascular CT image of each level is obtained; according to the size of the validity, a number of valid feature points of the cerebrovascular CT image of each level are obtained; Edge detection is performed on each level of cerebral vascular CT images, and several effective edges of each level of cerebral vascular CT images are obtained based on effective feature points; a 3D cerebral vascular model is constructed based on tomographic angiography technology and effective edges of each level of cerebral vascular CT images.
2. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 1, characterized in that: The specific method for obtaining several feature points of the cerebral vascular CT image at each level is as follows: A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image; feature points of the target cerebral vascular CT image are extracted using a SIFT algorithm to obtain a number of feature points of the target cerebral vascular CT image.
3. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 1, characterized in that: The pixel points with non-zero gradient values in the cerebral vascular CT images of each level are clustered to obtain a plurality of connected graphs of the cerebral vascular CT images of each level, including the following specific steps: The cerebrovascular CT image of any level in the cerebrovascular image set is recorded as the target cerebrovascular CT image; the pixel points with non-zero gradient values in the target cerebrovascular CT image are recorded as the nodes of the target cerebrovascular CT image; all the nodes of the target cerebrovascular CT image are clustered by a divisive clustering algorithm based on a connected graph to obtain several connected graphs of the target cerebrovascular CT image.
4. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 3, characterized in that: The structural information of each feature point in the cerebral vascular CT image of each level is obtained according to the feature points and the connectivity graph, and the specific steps include the following: The target cerebral vascular CT image The connected graph where the feature points are located is recorded as the target connected graph; ; In the formula, is the number of nodes in the target connected graph; The specific method of obtaining is as follows: The feature point is connected to the target in the graph The angle between the line connecting the nodes and the horizontal line is recorded as , The target cerebral vascular CT image The feature point is connected to the target in the graph The Euclidean distance of nodes, ; The specific method of obtaining is as follows: The feature point is connected to the target in the graph The angle between the line connecting the nodes and the horizontal line is recorded as , The target cerebral vascular CT image The feature point is connected to the target in the graph The Euclidean distance of nodes, , ; To take the absolute value, is an exponential function with a natural constant as base; The target cerebral vascular CT image The local saliency of feature points, The target cerebral vascular CT image The information factor of feature points, To obtain the minimum value, is the cosine function; The information factor of each feature point in the target cerebrovascular CT image is obtained, and the information factors of all feature points in the target cerebrovascular CT image are linearly normalized, and the obtained result is used as the structural information of each feature point in the target cerebrovascular CT image.
5. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 4, characterized in that: The target cerebral vascular CT image The specific method for obtaining the local saliency of a feature point is as follows: The target cerebral vascular CT image The pixel corresponding to the feature point is recorded as the first pixel, and the absolute value of the difference between the grayscale value of each pixel in the eight neighborhoods of the first pixel and the first pixel is obtained, which is recorded as the neighborhood difference of the first pixel. The minimum value of all neighborhood differences of the first pixel is taken as the first pixel in the target cerebral vascular CT image. The local saliency of feature points.
6. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 1, characterized in that: The specific steps of obtaining the regional information of each feature point in the cerebrovascular CT image of each level according to the structural information difference of different feature points in the cerebrovascular CT image are as follows: A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image; ; In the formula, The target cerebral vascular CT image The structural information of feature points; The specific method of obtaining is as follows: obtain the target cerebral vascular CT image with the first The feature point closest to the first feature point will be The feature point closest to the feature point is recorded as the first feature point in the target cerebral vascular CT image. The first feature point of the feature points, the structural information of the first feature point is recorded as ; The target cerebral vascular CT image The Euclidean distance between the first feature point and the feature point; The specific method of obtaining is as follows: in the CT image of the target cerebral blood vessels, In addition to the first feature point of the feature points, obtain the target cerebral vascular CT image to obtain the first feature point The feature point closest to the first feature point will be The feature point closest to the feature point is recorded as the first feature point in the target cerebral vascular CT image. The second feature point of the feature point, the structural information of the second feature point is recorded as ; The target cerebral vascular CT image The Euclidean distance between the first feature point and the second feature point; To take the absolute value, The target cerebral vascular CT image The regional factor of the feature points; The regional factor of each feature point in the target cerebrovascular CT image is obtained, and the regional factors of all feature points in the target cerebrovascular CT image are linearly normalized, and the obtained result is used as the regional information of each feature point in the target cerebrovascular CT image.
7. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 6, characterized in that: The specific steps of obtaining the validity of each feature point in the cerebrovascular CT image of each level according to the feature points, structural information and regional information in the cerebrovascular CT images of adjacent levels are as follows: The target cerebral vascular CT image is recorded as The CT images of the cerebral vessels at the level The CT images of the cerebral vessels at the first level and the CT images of cerebral vessels at each level; ; In the formula, , and The specific method of obtaining is as follows: The size of the cerebrovascular CT image at each level is recorded as , For the The length of the cerebrovascular CT image at each level, For the The width of the cerebrovascular CT images at each level is constructed A three-dimensional empty matrix of size The gray value of each pixel in the cerebrovascular CT image of each level is used as the element value of the corresponding position of the first layer in the three-dimensional empty matrix. The gray value of each pixel in the cerebrovascular CT image of the first level is used as the element value of the corresponding position in the second layer of the three-dimensional empty matrix. The gray value of each pixel in the cerebrovascular CT image of each layer is used as the element value of the corresponding position of the third layer in the three-dimensional empty matrix to obtain a three-dimensional matrix; The SIFT algorithm is used to match the cerebrovascular CT images at adjacent levels to obtain the matching feature points in the cerebrovascular CT images at adjacent levels. In the CT images of cerebral vessels at each level, The feature point is The matched feature points in the cerebral vascular CT image at the first level are recorded as The first matching feature point of the feature point In the CT images of cerebral vessels at each level, The feature point is The matched feature points in the cerebral vascular CT image at the first level are recorded as The second matching feature point of the feature point The feature point and The Euclidean distance of the first matching feature point of the feature point in the three-dimensional matrix is recorded as The first Euclidean distance of the feature point The feature point and The Euclidean distance of the second matching feature point of the feature point in the three-dimensional matrix is recorded as The second Euclidean distance of feature points; The first In the CT images of cerebral vessels at each level, The regional information of the feature points is The absolute value of the difference in regional information of the first matching feature point of feature points is recorded as ; In the CT images of cerebral vessels at each level, The regional information of the feature points is The absolute value of the difference between the area information of the second matching feature point of the feature point is recorded as ; The first Euclidean distance of the feature points is The product of , will The second Euclidean distance of the feature points is The product of ,Will and The minimum value in is denoted as ; The first feature points, The first matching feature point of the feature point and the The second matching feature point of the feature point, the corresponding elements in the three-dimensional matrix are recorded as the first element, the second element and the third element respectively, and the vector determined by pointing the first element to the second element is recorded as the The first vector of the feature point points the first element to the vector determined by the third element, recorded as The second vector of the feature point The angle between the first vector and the second vector of the feature point is recorded as ; The first In the CT images of cerebral vessels at each level, The structural information of the feature points, The structural information of the first matching feature point and the The variance of the structural information of the second matching feature point of feature points is recorded as ; is an exponential function with a natural constant as base; The target cerebral vascular CT image The effectiveness of feature points, is the cosine function.
8. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 1, characterized in that: The specific steps of obtaining a number of effective feature points of the cerebral vascular CT image at each level according to the effectiveness are as follows: A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image; A first threshold is preset, and feature points in the target cerebrovascular CT image whose validity is greater than the first threshold are used as valid feature points of the target cerebrovascular CT image.
9. The method for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation according to claim 1, characterized in that: The step of performing edge detection on the cerebral vascular CT image at each level and obtaining a number of effective edges of the cerebral vascular CT image at each level according to effective feature points includes the following specific steps: A cerebral vascular CT image at any level in the cerebral vascular image set is recorded as a target cerebral vascular CT image; Perform Canny edge detection on the target cerebrovascular CT image to obtain several edges of the target cerebrovascular CT image. The edge of more than 100 valid feature points is regarded as the effective edge of the target cerebrovascular CT image. is a preset first value.
10. A system for constructing a 3D cerebral vascular model based on cerebral vascular image segmentation, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the method for constructing a cerebrovascular three-dimensional model based on cerebrovascular image segmentation as described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Vascular structure information extraction method and device and storage medium
CN116524548A
Cerebrovascular recognition model construction method and network construction method
CN116935164A
