A method, device and storage medium for automatically extracting aortic sinus-tubular junction plane
The aortic sinotubular junction plane is automatically extracted through three-dimensional reconstruction and clustering methods, which solves the problem of low manual acquisition efficiency in the existing technology, achieves efficient and accurate acquisition of sinotubular junction information, and supports valve replacement and lesion assessment.
Patent Information
- Application Number
- CN202410748465.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-12
AI Technical Summary
In the existing technology, the aorta-sinus tube junction plane is mainly obtained manually, which is time-consuming, labor-intensive and inefficient.
By acquiring a local mask image including the ascending aorta and trivalvular sinus, perform 3D reconstruction to obtain a 3D grid model, obtain the coordinates of the feature points, midpoint, and farthest point on the section, fit the distinguishing plane, and use the clustering method to classify points, select the point set on the shortest path, and fit the aorta-sinus tube junction plane.
It realizes the automatic acquisition of the aortic sinotubular junction plane, reduces manual participation, improves efficiency, can accurately extract sinotubular junction information, and supports valve replacement and lesion assessment.
Smart Images

Figure CN118334273B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method, a device and a storage medium for automatically extracting an aortic sinus-tubular junction plane. Background Art
[0002] In valve replacement surgery, understanding the sinotubular junction of the aortic sinus can help doctors more accurately select the appropriate artificial valve model and size, ensuring that the artificial valve matches the patient's own anatomical structure, thereby improving the surgical effect and reducing the occurrence of postoperative complications. In addition, the measurement of the sinotubular junction can also provide a basis for the formulation of surgical plans, such as determining the location of the surgical incision and the suturing method.
[0003] At the same time, the sinotubular junction plays a specific role in the assessment of aortic disease and prognosis:
[0004] Assessment of aortic disease:
[0005] By measuring the sinotubular junction of the aortic sinus, we can more accurately understand the morphological changes of the aorta. If there are lesions such as aortic dilatation or aneurysm, the measurement results can help doctors determine the severity, extent and development trend of the lesion so as to formulate a more appropriate treatment plan.
[0006] Prognostic assessment:
[0007] Measurement of the sinotubular junction can provide important information about the structure and function of the aorta. This information can help doctors predict the course of the patient's condition and assess the prognosis of the disease. For some patients with more complex conditions or potential risks, this assessment can provide guidance for subsequent treatment and follow-up, helping to identify problems in a timely manner and take appropriate measures.
[0008] At present, the aortic sinus-tubular junction plane is mainly obtained by relevant staff using modeling software to manually select points on two-dimensional images, which is mainly manual and time-consuming and labor-intensive. Summary of the invention
[0009] In view of this, the purpose of the present invention is to provide a method, device and storage medium for automatically extracting the aortic sinus-tubular junction plane, so as to solve the problem in the prior art that the aortic sinus-tubular junction plane is mainly obtained manually, which is time-consuming and labor-intensive.
[0010] According to a first aspect of an embodiment of the present invention, a method for automatically extracting an aortic sinus-tubular junction plane is provided, the method comprising:
[0011] A local mask image containing the ascending aorta and the three-valve sinuses was obtained;
[0012] Performing three-dimensional reconstruction on the local mask image to obtain a three-dimensional mesh model;
[0013] Acquire feature points of the contours of all sections of the local mask image in the Y-axis direction;
[0014] Obtaining the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fitting a distinguishing plane according to the midpoint coordinates and the farthest point coordinates of each section;
[0015] The feature points of the contours on all the sections are converted into actual spatial coordinate points, and the spatial coordinate points are divided into m classes according to the distance by a clustering method;
[0016] Selecting the maximum number of classes on both sides of the distinguishing plane, randomly selecting n points from each of the two selected classes, and obtaining corresponding points in the three-dimensional grid model;
[0017] All points on the shortest path between every two points on the three-dimensional grid model are obtained, all points are collected to obtain a target point set, and the aortic sinus-tubular junction plane is fitted according to the target point set.
[0018] Preferably,
[0019] The obtaining of a local mask image including the sinotubular junction comprises:
[0020] Acquire a CBCT three-dimensional image of the chest cavity, and extract a mask image of the aorta blood vessel including the heart from the CBCT three-dimensional image of the chest cavity;
[0021] A local mask image including the ascending aorta and the three-valve sinus is extracted from the mask image including the aortic blood vessel of the heart according to the position information of the heart.
[0022] Preferably,
[0023] The three-dimensional reconstruction of the local mask image to obtain a three-dimensional mesh model comprises:
[0024] The local mask image including the ascending aorta and the three-valve sinus is reconstructed into a three-dimensional model using the MarchingCube algorithm, and the three-dimensional model is meshed and smoothed to obtain the three-dimensional mesh model.
[0025] Preferably,
[0026] The step of obtaining the feature points of the contours of all the sections of the local mask image in the Y-axis direction comprises:
[0027] Obtain all sections of the local mask image in the Y-axis direction, and obtain all contour points of each section;
[0028] Calculate the cosine value of each contour point based on the vector obtained from the distance between each X point before and after each contour point;
[0029] Select any two vectors from the vectors obtained by the distance between each X point before and after each contour point and add them to get the direction vector;
[0030] The concavity and convexity of the position of each contour point is determined according to the direction vector, and the feature points on the two-dimensional mask are obtained.
[0031] Preferably,
[0032] The step of obtaining the midpoint coordinates and the farthest point coordinates of each slice of the local mask image in the Y-axis direction comprises:
[0033] Obtain pixel values of all pixels in each section of the local mask image in the Y-axis direction, obtain pixels with pixel values of 1 in the section, and select the top row containing pixels with pixel values of 1;
[0034] The midpoint coordinates of all the pixels whose pixel values are 1 in the top row are obtained, and the pixel whose pixel value is 1 and is farthest from the midpoint coordinates in the section where the midpoint coordinates are located is selected as the farthest point coordinates.
[0035] Preferably,
[0036] The selecting of the maximum number of classes on both sides of the distinguishing plane comprises:
[0037] The signed distances between the m classes and the distinguishing plane are calculated respectively, and the m classes are divided into the positive and negative sides of the distinguishing plane respectively. A class with the largest number is selected on each of the positive and negative sides of the distinguishing plane to obtain the maximum positive cluster and the maximum negative cluster.
[0038] Preferably,
[0039] The randomly selecting n points from each of the two selected classes and obtaining corresponding points in the three-dimensional grid model includes:
[0040] Randomly select n coordinate points in the largest positive cluster to obtain a first coordinate point set; randomly select n coordinate points in the largest negative cluster to obtain a second coordinate point set; set a corresponding relationship between the coordinate points in the first coordinate point set and the second coordinate point set;
[0041] Obtain coordinate points corresponding to the first coordinate point set and the second coordinate point set in the three-dimensional grid model.
[0042] Prioritize,
[0043] The step of obtaining all points on the shortest path between every two points on the three-dimensional grid model and collecting all points to obtain a target point set includes:
[0044] According to the correspondence between the first coordinate point set and the coordinate points in the second coordinate point set, obtaining in the three-dimensional grid model the shortest path from the coordinate points in the first coordinate point set to the corresponding coordinate points in the second coordinate point set;
[0045] All coordinate points on the obtained n shortest paths are collected to obtain the target point set.
[0046] According to a second aspect of an embodiment of the present invention, there is provided an automatic extraction device for the aortic sinus-tubular junction plane, the device comprising:
[0047] Mask image acquisition module: used to acquire a local mask image including the ascending aorta and the three-valve sinus;
[0048] A three-dimensional reconstruction module: used for performing three-dimensional reconstruction on the local mask image to obtain a three-dimensional mesh model;
[0049] Feature point acquisition module: used to acquire feature points of the contours of all sections of the local mask image in the Y-axis direction;
[0050] A distinguishing plane fitting module is used to obtain the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fit a distinguishing plane according to the midpoint coordinates and the farthest point coordinates of each section;
[0051] Clustering module: used to convert the feature points of the contours on all the sections into actual spatial coordinate points, and divide the spatial coordinate points into m classes according to the distance by clustering method;
[0052] Mapping module: used for selecting the maximum number of classes on both sides of the distinguishing plane, randomly selecting n points in each of the two selected classes, and obtaining corresponding points in the three-dimensional grid model;
[0053] Junction plane fitting module: used to obtain all points on the shortest path between every two points on the three-dimensional grid model, collect all points to obtain a target point set, and fit the aortic sinus-tubular junction plane according to the target point set.
[0054] According to a third aspect of an embodiment of the present invention, there is provided a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a main controller, each step in the above method is implemented.
[0055] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0056] The present application obtains a local mask image including the ascending aorta and the three-valve sinus, then performs three-dimensional reconstruction on the local mask image to obtain a three-dimensional grid model, obtains feature points of the local mask image, and fits a distinguishing plane according to the midpoint coordinates of each section and the farthest point coordinates; converts the feature points into actual spatial coordinate points, and classifies the spatial coordinate points according to the distance through a clustering method; selects the maximum number of classes on both sides of the distinguishing plane, randomly selects n points from each of the two selected classes, and obtains all points on the shortest path between every two points on the three-dimensional grid model to obtain a target point set, and fits the aortic sinus-tubular junction plane according to the target point set, thereby realizing automatic acquisition of the aortic sinus-tubular junction plane without human intervention.
[0057] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0059] Figure 1 is a flow chart of a method for automatically extracting the aortic sinus-tubular junction plane according to an exemplary embodiment;
[0060] Figure 2 is a schematic diagram of a three-dimensional grid model according to another exemplary embodiment;
[0061] Figure 3 is a schematic diagram showing generation of an aortic sinus-tubular junction plane based on a three-dimensional mesh model according to another exemplary embodiment;
[0062] Figure 4 It is a system schematic diagram of a device for automatically extracting the aortic sinus-tubular junction plane according to another exemplary embodiment. DETAILED DESCRIPTION
[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0064] Embodiment 1
[0065] Figure 1 FIG. 1 is a flow chart of a method for automatically extracting the aortic sinus-tubular junction plane according to an exemplary embodiment. Figure 1 As shown, the method includes:
[0066] S1, obtain a local mask image including the ascending aorta and three-valve sinus;
[0067] S2, performing three-dimensional reconstruction on the local mask image to obtain a three-dimensional mesh model;
[0068] S3, obtaining feature points of the contours of all sections of the local mask image in the Y-axis direction;
[0069] S4, obtaining the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fitting a distinguishing plane according to the midpoint coordinates and the farthest point coordinates of each section;
[0070] S5, converting the feature points of the contours on all the sections into actual spatial coordinate points, and dividing the spatial coordinate points into m classes according to their distances by a clustering method;
[0071] S6, selecting the maximum number of classes on both sides of the distinguishing plane, randomly selecting n points from each of the two selected classes, and acquiring corresponding points in the three-dimensional grid model;
[0072] S7, acquiring all points on the shortest path between every two points on the three-dimensional grid model, gathering all the points to obtain a target point set, and fitting the aortic sinus-tubular junction plane according to the target point set;
[0073] It can be understood that the present application extracts the mask of the aorta for a given CBCT three-dimensional image and retains the heart part; wherein, in the field of mask image processing and computer vision, it is an image binary mask used to mark and separate the region of interest, which is usually a binary or Boolean image of the same size as the original image, in which the selected area is marked as 1 (or True), and the remaining areas are marked as 0 (or False). The role of the mask image is to limit specific operations on the image, such as filtering, edge detection, region extraction, image enhancement, etc., to occur only in this area; through the generation and application of the mask image, the target part in the original image can be separated from the background area, so as to facilitate subsequent analysis, recognition, positioning and other operations;
[0074] On the extracted mask, the local mask including the ascending aorta and the three-valve sinus is intercepted using the position information of the heart, and then the local mask is reconstructed into a 3D mesh model using the MarchingCube algorithm, and further optimized to make it smooth, as shown in the attached figure. Figure 2As shown in the figure, the MarchingCube algorithm is also called "Isosurface Extraction", which is a classic algorithm for 3D discrete data scene rendering. The core idea of the algorithm is to approximate the isosurface through linear interpolation. Its 2D version is called marching squares. The main function of the algorithm is to extract the isosurface in space and approximate it with a triangular surface.
[0075] Using the local mask obtained above, based on the slice in the y-axis direction, the contour points of the slice are obtained, and then the cosine value of each point is calculated based on the vector obtained by the spacing of the previous and next 5 points, and the concavity of the position of the point is determined according to the direction vector obtained by adding the two vectors, so as to obtain the feature points on the two-dimensional mask. The specific calculation formula is as follows:
[0076] By contour point The two vectors obtained by the distance between the k ordered points before and after are centered, and the two vectors are used to calculate each point The cosine value of Two vectors at a point as well as :
[0077]
[0078] in, x , y Respectively represent the coordinate values of the contour points;
[0079] According to vector as well as Get Points Cosine value:
[0080]
[0081] Define the coordinates of the Q point and define the concavity and convexity, where,
[0082] ;
[0083]
[0084] Among them, 0 means that point Q is a concave point, and 1 means that point Q is a convex point; as well as Indicate point The coordinate value of , , , For vector and The coordinate value of ;
[0085] Get the pixel values of all pixels in each section of the local mask image in the Y-axis direction, get the pixel values of 1 in the section, select the top row containing the pixel values of 1. It is worth noting that for a section, since it is a mask image, a surface can be regarded as composed of many pixels. For this plane, it is divided into many rows. Suppose there are 100 rows, numbered 0-99 respectively. Starting from row 0, calculate the pixel values of all pixels in row 0 to see if there are pixels with a pixel value of 1. If not, continue to calculate the pixel values of the pixels in row 1. If there are pixels with a pixel value of 1 in row 1, then row 1 is the top row mentioned in this application. It can also be understood as the row where the pixel with a pixel value of 1 appears first (if it appears for the first time in the 10th row, then the 10th row is the top row), and the midpoint coordinates of all the pixels with a pixel value of 1 are found from the top row (usually the pixels with a pixel value of 1 appear continuously in a row). In a section, in addition to the top row, there will be pixels with a pixel value of 1 in other rows, such as the 88th row and the 99th row, but because they are not the first to appear, they are not the top row. After obtaining the midpoint coordinates, continue to look for the pixel with a pixel value of 1 in the section that is farthest from the midpoint coordinates; according to the midpoint coordinates of all sections and the farthest coordinate points, a distinguishing plane is fitted;
[0086] The feature points on the two-dimensional mask are converted into actual spatial coordinate points. The coordinate points are divided into m categories according to distance through clustering, and then the signed distance with the distinguishing plane is calculated, and then the category with the largest number of points is selected on the positive and negative sides respectively;
[0087] From the two major categories obtained above, n points are randomly selected, category A {ap1, ap2, ..., apn}, category B {bp1, bp2, ..., bpn}, where ap1 corresponds to bp1, and so on (the corresponding relationship can be set randomly, but in order to avoid too many shortest distances and reduce the amount of calculation, each point in category A corresponds to each point in category B). Then, the point pairs corresponding to {ap1, bp1}, ..., {apn, bpn} are obtained from the three-dimensional grid model obtained above, and the shortest paths of the corresponding points in {ap1, ap2, ..., apn} and {bp1, bp2, ..., bpn} are calculated on the three-dimensional grid model, and the points on the shortest path are gathered to obtain the final target point set. The point set density obtained in this way is more uniform, which reduces the influence of noise points on plane fitting. A plane is fitted according to the target point set, that is, the aorta sinus junction plane, as shown in the attached figure. Figure 3 shown.
[0088] Embodiment 2:
[0089] Figure 4 is a system schematic diagram of a device for automatically extracting the aortic sinus-tubular junction plane according to another exemplary embodiment, the device comprising:
[0090] Mask image acquisition module 1: used to acquire a local mask image including the ascending aorta and the three-valve sinus;
[0091] 3D reconstruction module 2: used for performing 3D reconstruction on the local mask image to obtain a 3D mesh model;
[0092] Feature point acquisition module 3: used to acquire feature points of the contours of all sections of the local mask image in the Y-axis direction;
[0093] Differentiation plane fitting module 4: used to obtain the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fit the differentiation plane according to the midpoint coordinates and the farthest point coordinates of each section;
[0094] Clustering module 5: used for converting the feature points of the contours on all the sections into actual spatial coordinate points, and dividing the spatial coordinate points into m classes according to the distance by clustering method;
[0095] Mapping module 6: used for selecting the maximum number of classes on both sides of the distinguishing plane, randomly selecting n points in each of the two selected classes, and obtaining corresponding points in the three-dimensional grid model;
[0096] Junction plane fitting module 7: used for obtaining all points on the shortest path between every two points on the three-dimensional grid model, collecting all points to obtain a target point set, and fitting the aortic sinus-tubular junction plane according to the target point set;
[0097] It can be understood that the mask image acquisition module 1 is used to acquire a local mask image including the ascending aorta and the three-valve sinuses; the three-dimensional reconstruction module 2 is used to perform three-dimensional reconstruction on the local mask image to obtain a three-dimensional mesh model; the feature point acquisition module 3 is used to acquire the feature points of the contours of all sections of the local mask image in the Y-axis direction; the distinguishing plane fitting module 4 is used to acquire the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fit the distinguishing plane according to the midpoint coordinates and the farthest point coordinates of each section; the clustering module Block 5 is used to convert the feature points of the contours on all the sections into actual spatial coordinate points, and divide the spatial coordinate points into m classes according to the distance through the clustering method; the mapping module 6 is used to select the maximum number of classes on both sides of the distinguishing plane, randomly select n points from each of the two selected classes, and obtain the corresponding points in the three-dimensional grid model; the junction plane fitting module 7 is used to obtain all points on the shortest path between every two points on the three-dimensional grid model, collect all points to obtain the target point set, and fit the aortic sinus junction plane according to the target point set.
[0098] Embodiment three:
[0099] This embodiment provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a main controller, each step in the above method is implemented;
[0100] It is understandable that the storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0101] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0102] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0103] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0104] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0105] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0106] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0107] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0108] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0109] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for automatically extracting the aortic sinus-tubular junction plane, characterized in that: The method comprises: A local mask image containing the ascending aorta and the three-valve sinuses was obtained; Performing three-dimensional reconstruction on the local mask image to obtain a three-dimensional mesh model; Acquire feature points of the contours of all sections of the local mask image in the Y-axis direction; Obtaining the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fitting a distinguishing plane according to the midpoint coordinates and the farthest point coordinates of each section; The feature points of the contours on all the sections are converted into actual spatial coordinate points, and the spatial coordinate points are divided into m classes according to the distance by a clustering method; Selecting the maximum number of classes on both sides of the distinguishing plane, randomly selecting n points from each of the two selected classes, and obtaining corresponding points in the three-dimensional grid model; All points on the shortest path between every two points on the three-dimensional grid model are obtained, all points are collected to obtain a target point set, and the aortic sinus-tubular junction plane is fitted according to the target point set.
2. The method according to claim 1, characterized in that The acquiring of a local mask image including the ascending aorta and the three-valve sinus comprises: Acquire a CBCT three-dimensional image of the chest cavity, and extract a mask image of the aorta blood vessel including the heart from the CBCT three-dimensional image of the chest cavity; A local mask image including the ascending aorta and the three-valve sinus is extracted from the mask image including the aortic blood vessel of the heart according to the position information of the heart.
3. The method according to claim 2, characterized in that The three-dimensional reconstruction of the local mask image to obtain a three-dimensional mesh model comprises: The local mask image including the ascending aorta and the three-valve sinus is reconstructed into a three-dimensional model using the MarchingCube algorithm, and the three-dimensional model is meshed and smoothed to obtain the three-dimensional mesh model.
4. The method according to claim 3, characterized in that The step of obtaining the feature points of the contours of all the sections of the local mask image in the Y-axis direction comprises: Obtain all sections of the local mask image in the Y-axis direction, and obtain all contour points of each section; Calculate the cosine value of each contour point based on the vector obtained from the distance between each X point before and after each contour point; Select any two vectors from the vectors obtained by the distance between each X point before and after each contour point and add them to get the direction vector; The concavity and convexity of the position of each contour point is determined according to the direction vector, and the feature points on the two-dimensional mask are obtained.
5. The method according to claim 4, characterized in that The step of obtaining the midpoint coordinates and the farthest point coordinates of each slice of the local mask image in the Y-axis direction comprises: Obtain pixel values of all pixels in each section of the local mask image in the Y-axis direction, obtain pixels with pixel values of 1 in the section, and select the top row containing pixels with pixel values of 1; The midpoint coordinates of all the pixels whose pixel values are 1 in the top row are obtained, and the pixel whose pixel value is 1 and is farthest from the midpoint coordinates in the section where the midpoint coordinates are located is selected as the farthest point coordinates.
6. The method according to claim 5, characterized in that The selecting of the maximum number of classes on both sides of the distinguishing plane comprises: The signed distances between the m classes and the distinguishing plane are calculated respectively, and the m classes are divided into the positive and negative sides of the distinguishing plane respectively. A class with the largest number is selected on each of the positive and negative sides of the distinguishing plane to obtain the maximum positive cluster and the maximum negative cluster.
7. The method according to claim 6, characterized in that The randomly selecting n points from each of the two selected classes and obtaining corresponding points in the three-dimensional grid model includes: Randomly select n coordinate points in the largest positive cluster to obtain a first coordinate point set; randomly select n coordinate points in the largest negative cluster to obtain a second coordinate point set; set a corresponding relationship between the coordinate points in the first coordinate point set and the second coordinate point set; Obtain coordinate points corresponding to the first coordinate point set and the second coordinate point set in the three-dimensional grid model.
8. The method according to claim 7, characterized in that The step of obtaining all points on the shortest path between every two points on the three-dimensional grid model and collecting all points to obtain a target point set includes: According to the correspondence between the first coordinate point set and the coordinate points in the second coordinate point set, obtaining in the three-dimensional grid model the shortest path from the coordinate points in the first coordinate point set to the corresponding coordinate points in the second coordinate point set; All coordinate points on the obtained n shortest paths are collected to obtain the target point set.
9. An automatic extraction device for the aortic sinus-tubular junction plane, characterized in that: The device comprises: Mask image acquisition module: used to acquire a local mask image including the ascending aorta and the three-valve sinus; A three-dimensional reconstruction module: used for performing three-dimensional reconstruction on the local mask image to obtain a three-dimensional mesh model; Feature point acquisition module: used to acquire feature points of the contours of all sections of the local mask image in the Y-axis direction; A distinguishing plane fitting module is used to obtain the midpoint coordinates and the farthest point coordinates of each section of the local mask image in the Y-axis direction, and fit a distinguishing plane according to the midpoint coordinates and the farthest point coordinates of each section; Clustering module: used to convert the feature points of the contours on all the sections into actual spatial coordinate points, and divide the spatial coordinate points into m classes according to the distance by clustering method; Mapping module: used for selecting the maximum number of classes on both sides of the distinguishing plane, randomly selecting n points in each of the two selected classes, and obtaining corresponding points in the three-dimensional grid model; Junction plane fitting module: used to obtain all points on the shortest path between every two points on the three-dimensional grid model, collect all points to obtain a target point set, and fit the aortic sinus-tubular junction plane according to the target point set.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the main controller, each step of the method for automatically extracting the aortic sinus-tubular junction plane as described in any one of claims 1 to 8 is implemented.
