A fully automatic medical image segmentation method and device based on shape prior

By using a fully automatic method of shape prior in OCT image segmentation, using the catheter outer wall detection results and the geometric active contour model, the problem of poor anti-interference ability of low-quality images is solved, efficient segmentation of OCT images is achieved, and segmentation is improved. precision and automation.

CN113706494BActive Publication Date: 2024-09-13NANJING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110966535.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2024-09-13
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

Existing OCT image segmentation methods have poor anti-interference ability on low-quality images and high processing costs, making it difficult to achieve accurate segmentation of blood vessel walls.

Method used

A fully automatic medical image segmentation method based on shape prior is adopted. By integrating the catheter outer wall detection results as a shape prior into the variational framework, the geometric active contour model and the total energy functional are used for segmentation, the shape prior is automatically updated, and the solution is iteratively solved until The iteration stop condition is reached.

Benefits of technology

It achieves effective segmentation of OCT images with interfering factors such as missing borders, blood, and artifacts, and automatically generates blood vessel shape priors of different radii without manual intervention or optimization of shape parameters, improving segmentation accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113706494B
    Figure CN113706494B
Patent Text Reader

Abstract

The present invention discloses a fully automatic medical image segmentation method and device based on shape prior, which is suitable for separating blood vessel walls in OCT images. The method comprises: selecting an OCT image to be processed, converting the original OCT data into a rectangular coordinate system, extracting the part with the largest grayscale value as a reference image; detecting the outer wall of the catheter and generating the outer wall surface of the catheter; integrating the outer wall surface of the catheter into a variational framework as initialization and shape prior to obtain a geometric active contour model based on shape prior; solving the active contour model, updating the shape prior according to the obtained segmentation curve, alternately performing model solving and shape prior updating operations until the iteration stop condition is reached to obtain a segmentation result. The present invention can automatically generate shape priors for blood vessels of different radii, thereby effectively segmenting the inner wall of blood vessels on OCT images with interference from factors such as missing boundaries, blood, and artifacts, and does not require manual intervention or optimization of shape parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of medical image processing, and in particular relates to a fully automatic medical image segmentation method and device based on automatically updated shape priors. Background Art

[0002] The main cause of coronary heart disease is atherosclerotic lesions, which cause the coronary artery lumen to narrow, leading to arterial occlusion and life-threatening. In medicine, the degree of lumen stenosis is a key indicator for evaluating vascular health, and the detection of lumen stenosis is mainly achieved by calculating the vascular area. In addition, lumen area information is also crucial for the selection of coronary stent size and placement in clinical treatment. Accurate segmentation of the lumen / vascular wall on medical images can provide accurate lumen area information.

[0003] Many imaging methods are used to evaluate the status and degree of stenosis of coronary arteries. The main conventional imaging methods include angiography, intravascular ultrasound imaging (IVUS), and intravascular optical coherence tomography (IVOCT or OCT). OCT has become a widely used imaging technology in clinical practice because it can provide high-resolution images and display the internal structure of blood vessels.

[0004] The imaging quality of OCT is usually closely related to the operator's experience and imaging equipment. There are still challenging problems in actual image segmentation. First, due to the inevitable shadow of the guidewire in each image, the lumen boundary in the OCT image is always partially missing. In addition, being too far from the imaging guidewire and the presence of occlusion will cause partial loss of the target boundary. Secondly, there is interference information in the image. Some pseudo targets such as residual blood and guidewires have similar grayscale features to the blood vessel wall, which affects the accuracy of segmentation. Third, the blood vessels on the OCT image show violent fluctuations, which are motion artifacts caused by the high-speed rotation of the guidewire. It is worth noting that the above problems appear in almost every image, and due to the different levels of operators, different degrees of image degradation are caused, so dealing with these problems is very important for accurate lumen segmentation.

[0005] OCT imaging equipment images in blood vessels, and the raw data obtained is the image of blood vessels in polar coordinates. Some segmentation algorithms directly segment the lumen boundary on this data through classification, active contours and clustering. However, the raw data in polar coordinates cannot provide geometric information of blood vessels. These data are usually converted to Cartesian coordinates and the images are segmented by threshold method, dynamic programming, Dijkstra algorithm, level set method, interpolation method, etc. However, most of the above algorithms are completed on OCT images with good image quality, while segmentation on low-quality images is rarely involved. In addition, for the interference factors that are prevalent in OCT images, such as partially missing boundaries, pseudo boundaries caused by guidewire shadows and residual blood, some algorithms use preprocessing steps to deal with these situations, such as filling in missing, which increases additional processing costs and has poor anti-interference ability. In recent years, deep learning-based methods have also been used to segment lumen on OCT images and obtain relatively good segmentation results, but these methods usually require a large number of labeled images as training sets to ensure the accuracy of segmentation, and these labeled images are expensive and difficult to obtain. Summary of the invention

[0006] Purpose of the invention: The purpose of the present invention is to provide a medical image segmentation method to solve the problems of the existing vascular wall segmentation method on OCT images, such as lack of support for low-quality images, poor anti-interference ability, and high processing cost, so as to achieve the purpose of accurately segmenting the vascular wall.

[0007] The present invention also provides a medical imaging device for implementing the above-mentioned medical image segmentation method.

[0008] Technical solution: In order to achieve the above invention objectives, the present invention adopts the following technical solution:

[0009] In a first aspect, a fully automatic medical image segmentation method based on shape prior comprises the following steps:

[0010] (1) Selecting a 3D OCT image to be processed, converting the original OCT data into a rectangular coordinate system, and extracting the part with the largest grayscale value as a reference image;

[0011] (2) detecting the outer wall of the catheter based on the three-dimensional OCT image and generating the outer wall surface of the catheter;

[0012] (3) The outer wall of the catheter is used as the initialization of the curve and shape prior and integrated into the variational framework to obtain a geometric active contour model based on shape prior;

[0013] (4) Solve the active contour model and update the shape prior according to the obtained segmentation curve. Alternately perform model solving and shape prior updating operations until the iteration stop condition is reached to obtain the segmentation result.

[0014] According to certain embodiments of the first aspect, step (2) specifically includes: extracting two mutually perpendicular longitudinal sections of the three-dimensional OCT image, calculating the gradient of each longitudinal section in the y-axis direction, and accumulating the gradient map in the x-axis direction; clustering the upper and lower parts of the accumulated results, and selecting the class with the larger value in the two classes, in which the point farthest from the center of the image is the position of the outer wall of the catheter; obtaining two straight line positions in each longitudinal section image, and then obtaining four straight line positions in the two longitudinal sections; corresponding the straight line coordinates back to the three-dimensional image to obtain four straight lines in the three-dimensional image, calculating the cylindrical surface passing through the four straight lines, and obtaining a standard cylindrical surface, which is the outer wall surface of the catheter.

[0015] According to certain embodiments of the first aspect, the shape prior-based geometric active contour model in step (3) is represented by the following total energy functional:

[0016] E=E GAC +E prior +E regional (*)

[0017] Among them, E GAC is the energy of the geometric active contour model, E prior is the shape prior energy, E regional is the regional energy;

[0018] The energy calculation formula of the geometric active contour model is as follows:

[0019]

[0020] Among them, α, λ are the weights of the two energy terms, Φ is the level set function, H is the Heaviside function, g is a boundary operator; Ω is the image area, δ is the Dirac function, is the gradient operator, is the gradient of Φ;

[0021] The shape prior energy calculation formula is:

[0022]

[0023] Among them, β is the weight of the shape prior energy, is the level set function of the shape prior; r, c are the parameters of the shape prior, r is the radius, c is the center line;

[0024] The calculation formula of the regional energy is:

[0025] E regional =γ∫ Ω (I-f1) 2 H(Φ)+(I-f2) 2(1-H(Φ))dx

[0026] Among them, γ is the weight of regional energy, I is the gray value of the image, f1 and f2 are the average gray values ​​of the image in the regions where H is 1 and H is 0, respectively.

[0027] According to certain embodiments of the first aspect, in step (4), solving the active contour model includes: solving the total energy functional using a fast algorithm, wherein the fast algorithm uses a characteristic function u(x) to represent the segmented area, and the characteristic function is:

[0028]

[0029] Among them, Γ is the segmentation curve of the image, Ω Γ represents the inner area of ​​the curve Γ;

[0030] The total energy functional (*) is approximately expressed as follows:

[0031]

[0032] in, is the shape prior represented by the characteristic function;

[0033] To obtain E τ (u) When u reaches a minimum, it is the optimal segmentation result.

[0034] According to certain embodiments of the first aspect, the updating of the shape prior based on the obtained segmentation curve in step (4) includes: defining the height of all cylinders as one pixel, determining the center line and radius based on the position of the segmentation curve on each frame in the image, determining the cylinder based on the center line and radius, comparing each newly generated cylinder with the reference image, recording the radius of the cylinder that does not intersect with the reference image, and calculating their average value as the unified radius of the shape prior.

[0035] In a second aspect, a medical imaging device comprises: a memory storing one or more computer programs, wherein when the one or more computer programs are executed by one or more processors, the one or more processors execute the steps of the shape prior-based fully automatic medical image segmentation method of the first aspect of the present invention.

[0036] Beneficial effects: The present invention discloses a fully automatic medical image segmentation method and device based on shape prior. For the OCT three-dimensional image to be processed, the outer wall of the catheter is first detected and the outer wall surface of the catheter is generated; the outer wall surface of the catheter is integrated into the variational framework as initialization and shape prior to obtain a geometric active contour model based on shape prior; the active contour model is solved to obtain image segmentation. The present invention can automatically generate shape priors for blood vessels of different radii, and can effectively segment the inner wall of blood vessels on OCT images with interference from factors such as missing boundaries, blood, and artifacts, and does not require manual intervention or optimization of shape parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of a fully automatic medical image segmentation method based on shape prior according to an embodiment of the present invention;

[0038] Figure 2 is a schematic diagram of straight line detection of an outer catheter on a longitudinal section according to an embodiment of the present invention;

[0039] Figure 3 is a flow chart of generating an initialized standard cylindrical surface on a three-dimensional OCT image according to an embodiment of the present invention;

[0040] Figure 4 is a schematic diagram of an initialized standard cylindrical surface generated on a three-dimensional OCT image according to an embodiment of the present invention;

[0041] Figure 5 is a comparison of segmentation results of different models on images with less interference according to an embodiment of the present invention;

[0042] Figure 6 It is a comparison of segmentation results of different models on an image with large interference according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0044] Reference Figure 1 The present invention proposes a method for lumen segmentation on a three-dimensional OCT image with adaptive shape prior, comprising the following steps:

[0045] Step (1), input the 3D OCT image to be segmented, and convert the original data into a rectangular coordinate system. Calculate the secondary Otsu threshold, and take the part with the highest gray value as the reference image of this instance.

[0046] Step (2), detecting the outer wall of the catheter and generating the outer wall surface of the catheter.

[0047] Take two perpendicular longitudinal sections on the three-dimensional OCT image, calculate the gradient in the y-axis direction for each longitudinal section, and then add them up along the x-axis direction to get a set of one-dimensional data. Split this set of data from the middle into upper and lower sides, and perform k-means clustering on each side to divide them into two categories. Take the category with larger data values ​​(also the category with fewer objects in the class), arrange the positions of the data points in the class, and use the point farthest from the center as the target point. Figure 2 Schematic diagram of straight line detection of an outer catheter on a longitudinal section according to an embodiment of the present invention; wherein (a) is a longitudinal section of a three-dimensional OCT image; (b) is a gradient map of (a) along the Y-axis direction; and (c) is the sum of the gradient map (b) along the x-axis direction.

[0048] The y-axis coordinate of the target point is the position of the corresponding detection line on the longitudinal section, which is the line where the outer wall of the catheter is located. In this way, four straight lines can be detected on the two longitudinal sections. Putting them back into the three-dimensional OCT image, a standard cylindrical surface can be determined. This is the initialization of the shape prior and segmentation curve. Figure 3 FIG. 1 is a flowchart of generating an initialized standard cylindrical surface on a three-dimensional OCT image according to an embodiment of the present invention, wherein (a) is the original data of the OCT image in polar coordinates; (b) is the image converted to rectangular coordinates; (c1) and (c2) are two mutually perpendicular longitudinal sections and the straight line where the outer wall of the catheter is located found on the longitudinal section; (d) is placing the four straight lines back into the three-dimensional image to generate a cylindrical surface, and the generated result is shown in FIG. Figure 4 As shown, as the initialization of active contours and the initialization of shape priors.

[0049] In step (3), the outer wall of the catheter is used as the initialization of the curve and shape prior and integrated into the variational framework to obtain a geometric active contour model based on shape prior.

[0050] The geometric active contour model based on shape prior is represented by the following total energy functional:

[0051] E=E GAC +E prior +E regional (*)

[0052] Among them, E GAC is the energy of the geometric active contour model, E prior is the shape prior energy, E regional is the regional energy.

[0053] Specifically, the energy calculation formula of the geometric active contour model is as follows:

[0054]

[0055] Among them, α, λ are the weights of the two energy terms, Φ is the level set function, H is the Heaviside function, Ω is the image area, δ is the Dirac function, is the gradient operator, is the gradient of Φ; g is a boundary operator, and its specific expression is:

[0056]

[0057] Among them, I is the grayscale of the image, G σ is the Gaussian kernel function.

[0058] The shape prior energy calculation formula is:

[0059]

[0060] Among them, β is the weight of the shape prior energy, is the level set function of the shape prior; r, c are the parameters of the shape prior, r is the radius, c is the center line;

[0061] The calculation formula of regional energy is:

[0062] E regional =γ∫ Ω (I-f1) 2 H(Φ)+(I-f2) 2 (1-H(Φ))dx

[0063] Among them, γ is the weight of regional energy, I is the gray value of the image, f1 and f2 are the average gray values ​​of the image in the regions where H is 1 and H is 0, respectively.

[0064] Step (4), solve the active contour model to obtain the image segmentation result.

[0065] Among the three parts of the total energy functional, one is the expression of the classic GAC method, which is mainly related to the boundary information of the image, one is the expression related to the shape prior, and one is the expression related to the regional information; when a specific image and a segmentation curve are brought in for calculation, a value will be obtained. Different segmentation curves will result in different values. The energy functional is designed as follows: when the segmentation curve reaches the target boundary, the energy E will reach the lowest value, so solving the energy functional is to find where the minimum of the energy functional appears. Since the energy functional is relatively complex, it is necessary to iterate step by step to find this minimum. With each iterative calculation, the segmentation curve will reach a new position. It can also be said that the evolution of the curve once reaches a new position.

[0066] Solving the active contour model means solving the minimum of the energy functional, updating the shape prior according to the obtained segmentation curve, and repeating this solve-update operation until the stop condition is reached to obtain the segmentation result. Here, "solving the functional" is the process of solving the active contour line that makes the functional reach the minimum. "Segmentation" means dividing the image into two parts. As explained above, the position of the segmentation curve determines the size of E energy. The regional energy calculation formula E regional For example, f1 and f2 are the grayscale averages of the regions where H is 0 and H is 1, respectively. The value of H is determined by the segmentation curve. Specifically, H is 1 inside the curve and 0 outside. Therefore, changes in the position of the segmentation curve will lead to changes in the values ​​of these energy functionals, so that the energy functional reaches the position of the segmentation curve with a minimum value, which is the desired target boundary.

[0067] The present invention uses a fast algorithm to solve the energy functional. The fast algorithm uses a characteristic function to represent the segmented area. The characteristic function is:

[0068]

[0069] Among them, Γ is the segmentation curve of the image, Ω Γ represents the inner area of ​​the curve Γ;

[0070] Then, the boundary integral about Γ is approximately expressed by the characteristic function u as follows:

[0071]

[0072] or

[0073]

[0074] Among them, * represents convolution calculation, G τ It is expressed as:

[0075]

[0076] Then, the energy functional (*) can be approximately expressed as follows:

[0077]

[0078] in, is the shape prior represented by the characteristic function;

[0079] To obtain E τ (u) When u reaches a minimum, it is the optimal segmentation result.

[0080] In an embodiment of the present invention, the following method is provided to obtain E τ (u) Method to achieve minimum u:

[0081] E τ (u) linearization, that is, u at the kth iteration k Perform a first-order Taylor expansion at E τ (u) is approximately in the following form:

[0082] L τ (u,u k )=∫ Ω uψ k dx

[0083] in,

[0084]

[0085] Then, u of the k+1th iteration is k+1 It is obtained by solving the following linear problem:

[0086]

[0087] Since the minimum of the linear functional on the convex set must be reached on the boundary, there is the following solution:

[0088]

[0089] In summary, the process of solving the active contour model in the embodiment of the present invention is as follows:

[0090] (a) Rapid solution of curve evolution and calculation of ψ k :

[0091]

[0092] P k Perform threshold processing and get:

[0093]

[0094] Where k = 0, 1, 2, ..., u 0 This is the initial cylindrical surface obtained in step (2).

[0095] (b) Determine the new shape prior based on the evolution curve:

[0096] The three-dimensional segmentation result obtained in step (a) is recorded as u j , create a new list list j According to u j , for each frame of the 3D OCT image, the segmentation curve Update the shape prior, specifically: in each frame, The center of the represented area is taken as the new center of the circle The radius of the smallest circumscribed circle is used as the new radius, and a new circular area is generated accordingly. Wherein, i=1,2…n. is the number of frames of the three-dimensional image.

[0097] The circular area that will be generated Compare with the reference image, if If it does not intersect with the reference image of the corresponding frame, it is counted in the list list j . Calculate list j The average value of all radii in is denoted by r j , then the new shape prior The center line and radius r j The only certainty.

[0098] (c) Repeat steps (a)-(b) until u j+1 =u j , or list j Is empty.

[0099] The implementation effect of the method of the present invention is verified by a specific example below.

[0100] For 12 three-dimensional OCT coronary vascular images, a total of 3240 two-dimensional images, the segmentation results of the image segmentation method based on adaptive shape prior of the present invention are compared with the segmentation method and interpolation model without prior (see "Lambros S Athanasiou et al. Fully automated lumen segmentation of intracoronary optical coherencetomography images. In: Medical Imaging 2017: Image Processing. Vol. 10133. International Society for Optics and Photonics. 2017, p. 101332I."), and the Dice coefficient is used to compare the segmentation performance, and the calculation formula is:

[0101]

[0102] Among them, A is the segmentation result, and G is the real target area manually marked by the doctor. It can be seen that Dice measures the overlap between the segmentation result and the real target area. When Dice is high, it means that the experimental method is more effective. In the experiment, the parameters α=1, β=-0.5, λ=0.2, γ=1 are taken. Table 1 is a comparison of the Dice values ​​obtained by applying different segmentation models to 12 three-dimensional OCT images.

[0103] Table 1 Dice values ​​corresponding to each model segmentation in the example

[0104] Model Dice Interpolation Model 86.7±7.3 Model without shape prior 75.0±4.8 Model of the present invention 93.6±2.4

[0105] Experiments show that the model of the present invention has better segmentation results than the other two model methods when segmenting three-dimensional OCT images.

[0106] Figure 5 It is a comparison of the segmentation results of some images with less interference according to different models. Figure 6 It is a comparison of the segmentation results of some images with greater interference according to different models, where the first column is the initial image, the second column is the manually annotated real target boundary, the third column is the segmentation result of the interpolation model (see "Lambros S Athanasiou et al. Fully automated lumen segmentation of intracoronary optical coherence tomography images. In: Medical Imaging 2017: Image Processing. Vol. 10133. International Society for Optics and Photonics. 2017, p. 101332I."), the fourth column is the segmentation result of the model of the present invention after removing the shape prior term, and the fifth column is the segmentation result of the model of the present invention. It can be seen that the segmentation result of the model of the present invention is significantly better than other methods, especially in Figure 6 The image displayed is heavily disturbed.

[0107] According to another embodiment of the present invention, a medical imaging device is provided, comprising: a memory storing one or more computer programs, wherein when the one or more computer programs are executed by one or more processors, the one or more processors execute steps including the fully automatic medical image segmentation method based on shape prior as described above.

[0108] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0109] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A fully automatic medical image segmentation method based on shape prior, characterized in that: The following steps are involved: (1) Selecting a 3D OCT image to be processed, converting the original OCT data into a rectangular coordinate system, and extracting the part with the largest grayscale value as a reference image; (2) detecting the outer wall of the catheter based on the three-dimensional OCT image and generating the outer wall surface of the catheter; (3) The outer wall of the catheter is used as the curve and the shape prior is initialized and integrated into the variational framework to obtain a geometric active contour model based on shape prior. The geometric active contour model based on shape prior is represented by the following total energy functional: E=E GAC +E prior +E regional Among them, E GAC is the energy of the geometric active contour model, E prior is the shape prior energy, E regional is the regional energy; The energy calculation formula of the geometric active contour model is as follows: Among them, α, λ are the weights of the two energy terms, Φ is the level set function, H is the Heaviside function, g is a boundary operator; Ω is the image area, δ is the Dirac function, is the gradient operator, is the gradient of Φ; The shape prior energy calculation formula is: Among them, β is the weight of the shape prior energy, is the level set function of the shape prior, r, c are the parameters of the shape prior, r is the radius, c is the center line; The calculation formula of the regional energy is: E regional =γ∫ Ω (I-f1) 2 H(Φ)+(I-f2) 2 (1-H(Φ))dx Among them, γ is the weight of regional energy, I is the gray value of the image, f1 and f2 are the average gray values ​​of the image in the regions where H is 1 and H is 0 respectively; (4) Solve the active contour model and update the shape prior according to the obtained segmentation curve. Alternately perform model solving and shape prior updating operations until the iteration stop condition is reached to obtain the segmentation result.

2. The shape prior based fully automatic medical image segmentation method according to claim 1, characterized in that: In the step (1), the part with the largest gray value is extracted by two Otsu thresholds as the reference image.

3. The shape prior based fully automatic medical image segmentation method according to claim 1, characterized in that: The step (2) comprises: extracting two mutually perpendicular longitudinal sections of the three-dimensional OCT image, respectively calculating the gradient of each longitudinal section in the y-axis direction, and accumulating the gradient map in the x-axis direction; respectively clustering the upper and lower parts of the accumulated results, selecting the class with the larger value in the two classes, and the point in this class farthest from the center of the image is the position of the outer wall of the catheter; obtaining two straight line positions in each longitudinal section image, and then obtaining four straight line positions in the two longitudinal sections; corresponding the straight line coordinates back to the three-dimensional image to obtain four straight lines in the three-dimensional image, calculating the cylindrical surface passing through the four straight lines, and obtaining a standard cylindrical surface, which is the outer wall surface of the catheter.

4. The shape prior based fully automatic medical image segmentation method according to claim 1, characterized in that: The specific expression of the boundary operator is: Among them, G σ is the Gaussian kernel function.

5. The shape prior based fully automatic medical image segmentation method according to claim 1, characterized in that: In the step (4), solving the active contour model includes: using a fast algorithm to solve the total energy functional, the fast algorithm uses a characteristic function to represent the segmented area, and the characteristic function is: Among them, Γ is the segmentation curve of the image, Ω Γ represents the inner area of ​​the curve Γ; The boundary integral about Γ is approximated by the characteristic function u as follows: or Among them, * represents convolution calculation, n represents the spatial dimension, R n represents the n-dimensional space, τ is the parameter about G, G τ It is expressed as: The total energy functional (*) is approximately expressed as follows: in, is the shape prior represented by the characteristic function; To obtain E τ (u) When u reaches a minimum, it is the optimal segmentation result.

6. The shape prior based fully automatic medical image segmentation method according to claim 5, characterized in that: To obtain E τ (u) To achieve the minimum u includes: τ (u) linearization, that is, u at the kth iteration k Perform a first-order Taylor expansion at E τ (u) is approximately in the following form: L τ (u,u k )=∫ Ω uψ k dx in, Then, u of the k+1th iteration is k+1 It is obtained by solving the following linear problem: Since the minimum of the linear functional on the convex set must be reached on the boundary, there is the following solution:

7. The shape prior based fully automatic medical image segmentation method according to claim 5, characterized in that: The updating of the shape prior according to the obtained segmentation curve includes: defining the height of all cylinders as one pixel, determining the center line and radius according to the position of the segmentation curve on each frame in the image, determining the cylinder according to the center line and radius, comparing each newly generated cylinder with the reference image, recording the radius of the cylinder that does not intersect with the reference image, and calculating their average value as the unified radius of the shape prior.

8. A medical imaging device, characterized in that: include: A memory storing one or more computer programs, wherein when the one or more computer programs are executed by one or more processors, the one or more processors execute the steps of the shape prior-based fully automatic medical image segmentation method as described in any one of claims 1 to 7.