Image processing method, system and storage medium for vascular intervention surgery

By performing grayscale processing on angiography images and identifying obstructions, dividing and restoring blood vessel areas, the problem of complexity and high cost of angiography image processing in the existing technology is solved, and the simplicity and accuracy of vascular interventional surgeries are improved. sex.

CN117974543BActive Publication Date: 2024-09-20ZHENGZHOU UNIV
View PDF 19 Cites 0 Cited by

Patent Information

Application Number
CN202311372134.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2024-09-20
Estimated Expiration
2043-10-23

AI Technical Summary

Technical Problem

The angiographic image processing method in the existing technology is too complex, resulting in high equipment costs and complex operations, which affects the accuracy of vascular interventional surgeries.

Method used

The image extraction unit performs grayscale processing on the angiography image to divide the normal flow area, vascular obstruction area and non-contrast area of ​​the blood vessel. The image estimation unit is used to identify the vascular obstruction, restore the vascular area according to the degree of obstruction, and judge the accuracy. .

Benefits of technology

It reduces the complexity of image processing, helps doctors quickly identify vascular obstruction, simplifies catheter path guidance, and improves the simplicity and accuracy of vascular interventional surgeries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117974543B
    Figure CN117974543B
Patent Text Reader

Abstract

The present invention discloses an image processing method, system and storage medium for vascular interventional surgery, belonging to the field of image processing technology, including: step S1: obtaining angiography images; step S2: extracting normal flow areas, vascular obstruction areas and non-contrast areas of blood vessels; step S3: if the blood vessels in the vascular obstruction area are completely blocked, the shape centers of each lesion are obtained, and the direction from the branch blood vessels to the main blood vessels is connected in sequence, and the first center line is obtained by fitting, and the vascular area of ​​the vascular obstruction area is restored based on the first center line and the vascular radius; step S4: if the blood vessels are not completely blocked, the center of gravity of each lesion shape is obtained, the midpoint on the connecting line of adjacent centers of gravity is located, and the direction from the branch blood vessels to the main blood vessels is connected in sequence, and the second center line is obtained by fitting, and the vascular area is restored based on the second center line and the vascular radius. Through the present invention, the vascular area in the vascular obstruction area can be restored and its accuracy can be judged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing, and in particular relates to an image processing method, system and storage medium for vascular intervention surgery. Background Art

[0002] In people's daily lives, the inner wall of blood vessels is damaged due to pathogenic factors such as smoking, high blood pressure, and high blood lipids, which gradually enhance the inflammatory response of the inner wall of blood vessels, and the entry of inflammatory cells and the deposition of lipid substances cause subintimal bleeding. Over time, subintimal fibrosis or calcification may occur, forming calcified tissue or plaque tissue, which can easily block blood vessels and affect the normal function of blood vessels. In this case, surgical treatment is required for the blocked area of ​​blood vessels. During the treatment, the vascular tissue in the patient's body needs to be angiographically imaged to show the condition of the blood vessels in the patient's body, so as to guide the catheter to enter the corresponding blocked area for treatment. However, when performing interventional surgery in medicine, a large number of complex angiography images need to be analyzed by the operator, and the vascular obstruction phenomenon will affect the operator's identification of the vascular interventional surgery path.

[0003] Based on the above problems, the following catheter guidance methods are proposed in the prior art. For example, the Chinese patent application "CN116385540A" discloses a catheter positioning method and a catheter positioning device for a non-filling frame of angiography. The method uses the grayscale values ​​corresponding to multiple edge pixels in each frame of angiography in the angiography video to determine a dynamic grayscale marker map, and uses the dynamic grayscale marker map to determine the starting point of the catheter in each frame of the angiography image; for each frame of the angiography image, the catheter area of ​​the catheter area corresponding to the catheter in the angiography image is calculated; the catheter area in the termination frame angiography image is skeletonized to obtain the catheter centerline, and the termination point of the catheter in the termination frame angiography image is determined based on the catheter centerline. According to the catheter positioning method and the catheter positioning device, the starting point of the catheter can be accurately located, thereby determining the catheter position in the non-filling termination frame angiography image, providing an important basis for the subsequent filling frame catheter positioning. For example, the Chinese patent application "CN115511997A" discloses a method and system for processing angiography images, which includes acquiring a scanning image and angiography image related to the heart part of the target object, the angiography image at least including a real-time angiography image, determining a coronary segmentation result based on the scanning image, generating an aligned angiography image based on the coronary segmentation result and the angiography image, and generating a target angiography image based on the aligned angiography image and the angiography image.

[0004] However, the image processing method in the above-mentioned prior art is too complicated and requires high equipment cost. Summary of the invention

[0005] To solve the above problems, the present invention provides an image processing method, system and storage medium for vascular intervention surgery to solve the problems in the prior art.

[0006] In order to achieve the above-mentioned object of the invention, the present invention provides an image processing method for vascular intervention surgery, comprising:

[0007] Step S1: an image module acquires a first image, where the first image is a blood vessel angiography image;

[0008] Step S2: the image extraction unit extracts a first area, a second area and a third area in the first image, wherein the first area is a normal blood vessel flow area, the second area is a blood vessel obstruction area, and the third area is a non-contrast area;

[0009] Step S3: the image estimation unit identifies the second area. If the blood vessels in the second area are completely blocked, a first part and a second part are determined, wherein the first part is the main blood vessel and the second part is the branch blood vessel of the main blood vessel. The shapes of the diseased parts between the first part and the second part in the second area are obtained and defined as the first shapes. The centers of the first shapes are obtained and defined as the first connection points. The first connection points are connected in sequence from the second part to the first part, and the first center line is obtained by fitting. The first blood vessel radius of the second part is obtained. The blood vessel area between the first part and the second part is restored based on the first center line and the first blood vessel radius. If the blood vessels in the second area are not completely blocked, step S4 is continued.

[0010] Step S4: Obtain the center of gravity of each of the first shapes, connect the centers of gravity of adjacent first shapes to obtain a first connecting line, locate the midpoint on the first connecting line, define it as a second connecting point, connect the second connecting points in sequence from the second part to the first part, obtain a second center line by fitting, and restore and generate the vascular area between the first part and the second part based on the second center line and the first blood vessel radius to obtain a second image.

[0011] Furthermore, in step S2, extracting the first region, the second region, and the third region includes the following steps:

[0012] Grayscale the first image to obtain a grayscale image, obtain pixel values ​​of each pixel in the grayscale image, locate pixels belonging to a first value range, define them as first pixels, and divide adjacent first pixels into first pixel regions;

[0013] Setting a first threshold, obtaining pixel points in the grayscale image whose pixel values ​​are greater than the first threshold, defining them as second pixel points, dividing adjacent second pixel points into second pixel regions, obtaining the second pixel region closest to the first pixel region, locating the second pixel region as a third pixel region, obtaining pixel values ​​of pixel points between the first pixel region and the third pixel region, and merging the third pixel region, the first pixel region, and the region between the first pixel region and the third pixel region into the second region if the pixel values ​​are within a preset second numerical range;

[0014] A second threshold is set, an area less than or equal to the second threshold is set as the third area, and an area of ​​the first image after the second area and the third area are screened out is set as the first area.

[0015] Furthermore, in step S3, the image estimation unit determines whether the second area is completely blocked based on the following steps:

[0016] An identification area is set in the second area, pixel values ​​of each pixel point in the identification area are obtained, a first average value of the pixel values ​​is calculated, and a third threshold is set. If the first average value is less than or equal to the third threshold, it is judged that the blood vessels in the second area are completely blocked; otherwise, it is judged that the blood vessels in the second area are not completely blocked.

[0017] Furthermore, in step S3, the first part and the second part in the second area are obtained and determined based on the following steps:

[0018] A pixel selection box is set in the first area, the first area and the second area are both located in the pixel selection box, pixel points with the same pixel value and continuous position are obtained, positioned as third pixel points, the third pixel points are connected in sequence to obtain a first boundary, a second boundary, a third boundary and a fourth boundary, and a first distance between the first boundary and the second boundary is calculated, and then a second distance between the third boundary and the fourth boundary is calculated. If the second distance is less than the first distance, the area between the first boundary and the second boundary is set as the first part, and the area between the third boundary and the fourth boundary is set as the second part, wherein the second distance is the radius of the first blood vessel.

[0019] Further, the first distance and the second distance are calculated based on the following steps:

[0020] Select the third pixel point on the first boundary, calculate the distance between the third pixel point and each third pixel point on the second boundary, select the distance with the smallest value as the first shortest distance, repeat this step, calculate the first shortest distances corresponding to other third pixel points on the first boundary in turn, calculate a second average value based on all the first shortest distances, and set the second average value as the first distance;

[0021] Select the third pixel point on the third boundary, calculate the distance between the third pixel point and each third pixel point on the fourth boundary, select the distance with the smallest value as the second shortest distance, repeat this step, calculate the second shortest distances corresponding to other third pixel points on the third boundary in turn, calculate the third average value based on all the second shortest distances, and set the third average value as the second distance.

[0022] Furthermore, if the blood vessels in the second region are not completely blocked, the accuracy of the restored blood vessel region is determined based on the following steps:

[0023] A judgment box is set at the same position of the first image and the second image respectively, the judgment box in the first image includes the second area where the blood vessel is not completely blocked, a coordinate system is established in the judgment box, the third pixel point in the second image located in the judgment box is located, the first coordinate of the third pixel point in the coordinate system is obtained, the pixel point in the first image located in the first coordinate is located, defined as a fourth pixel point, a fourth threshold is set, and if the difference in pixel values ​​of the two pixel points is less than or equal to the fourth threshold, the two pixel points are judged to be the same; the matching degree α between the first image and the second image is calculated based on a first formula, and the first formula is: Among them, n is the number of the third pixel points and the fourth pixel points when the first coordinates are the same and the difference in pixel values ​​is within the fourth threshold range, N is the number of the third pixel points, and a fifth threshold is set. If the matching degree α is greater than or equal to the fifth threshold, it is determined that the restored blood vessel area is accurate.

[0024] The present invention also provides an image processing system for vascular intervention surgery, which is used to implement the above-mentioned image processing method for vascular intervention surgery. The system mainly includes:

[0025] An image module, used for acquiring a first image, wherein the first image is a blood vessel angiography image;

[0026] An image extraction unit, configured to extract a first region, a second region, and a third region from the first image, wherein the first region is a normal blood vessel flow region, the second region is a blood vessel obstruction region, and the third region is a non-contrast region;

[0027] The image estimation unit is used to identify the blockage situation of the second area. If the blood vessels in the second area are completely blocked, a first part and a second part are determined therein, wherein the first part is the main blood vessel and the second part is the branch blood vessel of the main blood vessel. The center of the shape of each lesion part is obtained, the centers are connected in sequence from the second part to the first part, a first center line is obtained by fitting, a first blood vessel radius of the second part is obtained, and a blood vessel area of ​​the vascular blockage area is restored based on the first center line and the first blood vessel radius; if the blood vessels in the second area are not completely blocked, the center of gravity of each lesion part is obtained, the midpoints on the connecting line of adjacent centers of gravity are located, the midpoints are connected in sequence from the second part to the first part, a second center line is obtained by fitting, a blood vessel area is restored based on the second center line and the first blood vessel radius, and its accuracy is judged.

[0028] The present invention also provides a computer storage medium, which stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above-mentioned image processing method for vascular intervention surgery.

[0029] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0030] The present invention performs grayscale processing on the angiography image based on an image extraction unit, divides the corresponding pixel area by setting different pixel value thresholds, extracts the normal flow area of ​​the blood vessel, the blood vessel blockage area and the non-angiography area, and can preferentially select the blood vessel blockage area to be analyzed, which is convenient for reducing the complexity of the image processing process, thereby helping doctors to quickly distinguish the blockage conditions of blood vessels in different parts of the image; further, the present invention identifies the blood vessel blockage area based on the image estimation unit, determines whether the blood vessel blockage area is completely blocked, and uses different image generation methods to restore the area of ​​the blocked blood vessel according to different degrees of blood vessel blockage, thereby further helping doctors understand the direction of the blood vessel, and then facilitating the subsequent guidance of the catheter path.

[0031] The present invention also judges the accuracy of the restored blood vessel area. If the blood vessel is not completely blocked, the accuracy of the restored blood vessel area is determined based on the degree of matching between the blocked blood vessel area and the restored blood vessel area. Doctors can perform simulated vascular intervention surgery before surgery by judging its accuracy, thereby reducing the complexity of the operation during vascular intervention surgery. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A flowchart of the steps of an image processing method for vascular intervention surgery according to the present invention;

[0033] Figure 2 is the first image distribution diagram of the present invention;

[0034] Figure 3 A schematic diagram of a blood vessel region restored and generated in a completely blocked blood vessel according to the present invention;

[0035] Figure 4 A schematic diagram of a blood vessel region restored and generated in an incompletely blocked blood vessel according to the present invention;

[0036] Figure 5 A schematic diagram for defining various boundaries for the present invention;

[0037] Figure 6 A schematic diagram of obtaining a first blood vessel radius for the present invention;

[0038] Figure 7 This is a structural diagram of an image processing system for vascular intervention surgery according to the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0040] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0041] like Figure 1 As shown, an image processing method for vascular intervention surgery comprises:

[0042] Step S1: the image module acquires a first image, which is a blood vessel angiography image.

[0043] like Figure 2 As shown, the angiography image includes the blood vessel wall, the blocked area in the blood vessel, the blood inside the blood vessel, and the blank area outside the blood vessel. The specific method of the angiography image is the existing technology and will not be repeated here.

[0044] Step S2: The image extraction unit extracts the first area, the second area and the third area in the first image, wherein the first area is a normal blood vessel flow area, the second area is a blood vessel obstruction area, and the third area is a non-contrast area.

[0045] Specifically, Figure 2 As shown, the first area is Figure 2 The a area inside the middle blood vessel, the second area is Figure 2 The b area shown in the middle shadow, the third area is Figure 2 There are no blood vessels in the c area.

[0046] Step S3: The image estimation unit identifies the second area. If the blood vessels in the second area are completely blocked, the first part and the second part are determined, wherein the first part is the main blood vessel and the second part is a branch blood vessel of the main blood vessel. The shapes of each lesion part between the first part and the second part in the second area are obtained and defined as the first shape. The center of each first shape is obtained and defined as the first connection point. The first connection points are connected in sequence from the second part to the first part, and the first center line is obtained by fitting. The first blood vessel radius of the second part is obtained, and the blood vessel area between the first part and the second part is restored based on the first center line and the first blood vessel radius. If the blood vessels in the second area are not completely blocked, step S4 is continued.

[0047] Specifically, complete blockage means that the blood in the blood vessel is completely blocked, so that the blood cannot flow in the area. In this case, since the angiography image is generated based on the flow of blood, in the case of complete blockage of the blood vessel, such as Figure 2 and Figure 3 As shown, there should be blood vessels in area b, so that area a is connected to the blood vessels below it, but due to the obstruction of the lesion area, this part of the blood vessels is not displayed, that is, the second area is completely blocked by various lesions, and then the corresponding area will not be able to see any blood vessel images; therefore, when the blood vessels in the second area are completely blocked, the corresponding second area is first acquired, that is, Figure 2 In the b area, in the second area, the first part is the main blood vessel, that is, the a part of the blood vessel, and the second part is the branch blood vessel, that is Figure 2 The blood vessels below the blood vessels in part a are then used to obtain the shapes of the various lesions, such as Figure 3Among them, e1, e2, e3, and e4 are the first shapes, and then the center of each first shape, that is, the first connection point h1, is obtained. The center can be obtained by existing technology, such as convolutional neural network positioning acquisition; then, each first connection point is connected through a smooth curve to form a first center line C1 between the first part and the second part, and then the first blood vessel radius R1 of the second part is obtained, and then the first center line and the first blood vessel radius are used to restore and generate the blood vessel image between the first part and the second part, that is, Figure 3 Middle shaded area M1.

[0048] Step S4: Obtain the centroid of each first shape, connect the centroids of adjacent first shapes to obtain a first connecting line, locate the midpoint on the first connecting line, define it as a second connecting point, connect the second connecting points in sequence from the second part to the first part, obtain a second center line by fitting, and restore the vascular area between the first part and the second part based on the second center line and the first blood vessel radius to obtain a second image.

[0049] In the case of incomplete occlusion, there is a small amount of blood flow in the second area on the angiographic image, e.g. Figure 4 As shown, the second region is incompletely blocked by various lesions, e.g. Figure 4 e11, e12, e13, e14, then the corresponding area will show part of the blood vessel image; therefore, when the blood vessels in the second area are not completely blocked, first obtain the center of gravity h2 of each first shape, and its center of gravity can also be located and obtained by convolutional neural network, and then obtain the midpoint on the line connecting the adjacent centers of gravity, that is, the second connection point h3, and then connect each second connection point by fitting with a smooth curve to form a second center line C2 between the first part and the second part, and then obtain the first blood vessel radius R1 of the second part, and then restore the blood vessel image between the first part and the second part with the second center line and the first blood vessel radius, that is Figure 4 In the middle shaded area M2, how to obtain the first blood vessel radius of the second part will be described below.

[0050] The present invention uses the above scheme to divide the first image into the first area, the second area and the third area through the image extraction unit, thereby helping doctors to quickly distinguish the blockage of blood vessels in different parts of the image. The image estimation unit identifies the second area to determine whether the blood vessel is completely blocked, and uses different methods to restore the blocked blood vessel, thereby further helping doctors understand the direction of the blood vessel, and then facilitating the subsequent guidance of the catheter path. When the blood vessel is completely blocked, the center of the shape of each lesion is obtained, and the centers are connected in sequence through smooth curves, and then the first blood vessel radius of the second part is obtained, so as to generate the blood vessel of the completely blocked part. In this way, even if the blood vessel is completely blocked, the angiography area cannot show the blood vessel trend in this area, and the general direction of the blood vessel can be displayed on the image through this scheme.

[0051] When the blood vessel is not completely blocked, the centroid of the shape of each lesion site is obtained, thereby obtaining the midpoint on the connecting line of adjacent centroids, and connecting them in sequence through a smooth curve, and then obtaining the first blood vessel radius of the second site, thereby restoring the blood vessel area where the blood vessel is not completely blocked. In this case, since there is a partial blood vessel image in the second area, the above scheme can more accurately restore the blood vessel image that is closer to the original blood vessel.

[0052] In step S2, extracting the first region, the second region, and the third region includes the following steps:

[0053] The image extraction unit grayscales the first image to obtain a grayscale image, obtains pixel values ​​of each pixel in the grayscale image, locates pixels whose pixel values ​​belong to a first numerical range, defines them as first pixels, and divides adjacent first pixels into first pixel areas.

[0054] A first threshold is set, and pixel points whose pixel values ​​in the grayscale image are greater than the first threshold are obtained, defined as second pixel points, and adjacent second pixel points are divided into second pixel areas, and the second pixel area closest to the first pixel area is obtained, and the second pixel area is positioned as a third pixel area, and the pixel values ​​of the pixel points between the first pixel area and the third pixel area are obtained. If the pixel value is within a pre-set second numerical range, the third pixel area, the first pixel area, and the area between the first pixel area and the third pixel area are merged into a second area.

[0055] A second threshold is set, an area less than or equal to the second threshold is set as the third area, and an area after the second area and the third area are screened out in the first image is set as the first area.

[0056] Specifically, the grayscale value range of a grayscale image is measured from 0 to 255, which represents the brightness distribution of pixels, where white pixels are 255 and black pixels are 0. By processing the image into a grayscale image, subsequent image recognition is facilitated.

[0057] For example, in this embodiment, the first numerical range is set to the interval [6, 10], and the pixel value of each pixel in the grayscale image is obtained. For example, if the pixel value of a pixel is 6, it is set as the first pixel. If its adjacent pixel is also set as the first pixel, the first pixel and its surrounding pixels are divided into the first pixel area as a whole. That is, the method is used to obtain Figure 2 f1 region in the figure; the first threshold is set to 10, and the pixel points with pixel values ​​greater than 10 are set as second pixel points. If multiple second pixel points are adjacent, they are divided into second pixel regions, and the second pixel region closest to the first pixel region is obtained, and the second pixel region is positioned as the third pixel region. For example Figure 2 Specifically, when determining the distance between two pixel regions, the closest distance between the edges of the two pixel regions is used. The second numerical range is set to the interval [6,130]. ​​If the pixel value of the pixel point between the first pixel region f1 and the third pixel region f2 is within the second numerical range, such as Figure 2 In f3, the first pixel region f1 and the third pixel region f2, as well as the region f3 between the first pixel region and the third pixel region are combined and divided into the second region.

[0058] The second threshold is set to 5, and the pixel points with pixel values ​​less than or equal to 5 are obtained, and the adjacent pixel points are divided into the third area, that is, Figure 2 If there is a blank area in the first image, then in the first image, after the second area and the third area are screened out, the remaining image area is divided into the first area.

[0059] In step S3, the image estimation unit determines whether the second area is completely blocked based on the following steps:

[0060] An identification area is set in the second area, pixel values ​​of each pixel point in the identification area are obtained, a first average value of the pixel values ​​is calculated, and a third threshold is set. If the first average value is less than or equal to the third threshold, it is judged that the blood vessel in the second area is completely blocked; otherwise, it is judged that the blood vessel in the second area is not completely blocked.

[0061] Specifically, the identification area includes all pixels in the second area, the pixel value of each pixel is obtained, the pixel values ​​of all pixels are added and the average value is calculated, which is defined as the first average value. For example, the third threshold is set to 62. If the first average value is less than or equal to the third threshold value, it is judged that the blood vessel in the second area is completely blocked, because when the blood vessel is completely blocked, the area may be completely occupied by diseased tissue, and the pixel value of the diseased tissue is greater than the pixel value of the third area and less than the pixel value of the second area; if the first average value is greater than the third threshold value, it indicates that there are a certain number of pixels with large pixel values ​​in the area, so that the calculated first average value is greater than the third threshold value, which means that there is a small area of ​​the first area, that is, there is blood flow, and the blood vessel in the second area is judged to be incompletely blocked.

[0062] In step S3, the first part and the second part in the second region are determined based on the following steps:

[0063] A pixel selection box is set in the first area, the first area and the second area are both located in the pixel selection box, pixel points with the same pixel value and continuous position are obtained, located as third pixel points, the third pixel points are connected in sequence, a first boundary, a second boundary, a third boundary and a fourth boundary are obtained, a first distance between the first boundary and the second boundary is calculated, and then a second distance between the third boundary and the fourth boundary is calculated. If the second distance is less than the first distance, the area between the first boundary and the second boundary is set as the first part, and the area between the third boundary and the fourth boundary is set as the second part, wherein the second distance is the radius of the first blood vessel.

[0064] Specifically, in this case, Figure 5 As shown, the selection box is P, the first distance between the first boundary r1 and the second boundary r2 corresponds to the radius of the main blood vessel, and the second distance between the third boundary r3 and the fourth boundary r4 corresponds to the radius of its branch blood vessels. Since the radius of the main blood vessel is greater than the radius of its branch blood vessels, if the second distance is less than the first distance, it is determined that the second area is located at the intersection of the main blood vessel and its branch blood vessels. If the second distance is equal to the first distance, it is determined that the second area is located at a single blood vessel and there are no branch blood vessels.

[0065] The first distance and the second distance are calculated based on the following steps:

[0066] Select a third pixel point on the first boundary, calculate the distance between the third pixel point and each third pixel point on the second boundary, select the distance with the smallest value as the shortest distance, repeat this step, calculate the shortest distances corresponding to other third pixel points on the first boundary in turn, calculate the second average value based on all the shortest distances, and set the second average value as the first distance.

[0067] Select a third pixel point on the third boundary, calculate the distance between the third pixel point and each third pixel point on the fourth boundary, select the distance with the smallest value as the shortest distance, repeat this step, calculate the shortest distances corresponding to other third pixel points on the third boundary in turn, calculate the third average value based on all the shortest distances, and set the third average value as the second distance.

[0068] Specifically, Figure 6 As shown, first select the third pixel point on the first boundary, such as Figure 6 As shown in a, the third pixel point on the second boundary is selected accordingly. When selecting, first select the third pixel point b0 on the second boundary that is on the same horizontal line as the third pixel point a, then set the first value, for example, 5, and start from the third pixel point b0 on the second boundary. Select 5 third pixel points b1-b5 and b6-b10 upward and downward along the second boundary respectively, calculate the distance from a to b0-b10 respectively, connect the third pixel points on the two boundaries, and obtain the distance of each connecting line respectively. The calculation method can be determined by how many pixels the connecting line includes. After the calculation is completed, compare their sizes and select The distance with the smallest value is taken as the shortest distance; continue to repeatedly select third pixel points at different positions on the first boundary, obtain the shortest distances corresponding to other third pixel points according to the above steps, set a limit value, for example, 10, when the number of selected third pixel points reaches 10, then calculate the average of these 10 shortest distances and set it as the second average, which is the first distance; according to the same method, the second distance between the third boundary and the fourth boundary can be obtained. It should be noted that the third pixel points should be selected on the first boundary and the third boundary that are closer to the second area, so as to reduce the error between the first distance and the second distance.

[0069] In step S4, if the blood vessels in the second region are not completely blocked, the accuracy of the restored blood vessel region is determined based on the following steps:

[0070] A judgment box is set at the same position of the first image and the second image respectively, the judgment box in the first image includes the second area where the blood vessel is not completely blocked, a coordinate system is established in the judgment box, a third pixel point in the second image located in the judgment box is located, a first coordinate of the third pixel point in the coordinate system is obtained, a pixel point in the first image located in the first coordinate is located, defined as a fourth pixel point, a fourth threshold is set, and if the difference between the two pixel values ​​is less than or equal to the fourth threshold, the two pixel points are judged to be the same; the matching degree α between the first image and the second image is calculated based on the first formula, and the first formula is: Among them, n is the number of the third pixel points and the fourth pixel points when the first coordinates are the same and the difference in pixel values ​​is within the fourth threshold range, N is the number of the third pixel points, and the fifth threshold is set. If the matching degree α is greater than or equal to the fifth threshold, it is determined that the restored blood vessel area is accurate.

[0071] Specifically, a judgment box is set, and the accuracy of the restored blood vessel area can be analyzed by judging the pixel value between the pixel point of the restored blood vessel area and the pixel point of the incompletely blocked blood vessel in the second area on the same coordinates. In this embodiment, the fourth threshold is set to 10. For example, the difference between the pixel value of the third pixel point and the pixel value of the fourth pixel point is 6, then the third pixel point and the fourth pixel point are judged to be the same. According to the same method, the sizes of the third pixel points and the fourth pixel points on the same coordinates are compared in turn, and the number of the same pixels is counted, which is the value n. The fifth threshold is set to 70%. For example, 50 third pixels are selected in the image, of which 40 fourth pixels have the same pixel value as the third pixel point, and the output matching degree α is 80%, then it is judged that the restored blood vessel area is accurate, that is, the boundary of the restored blood vessel image is close to the boundary direction of the original, non-blocked area, indicating that the restoration effect is good.

[0072] like Figure 7 As shown, the present invention also provides an image processing system for vascular intervention surgery, which is used to implement the above-mentioned image processing method for vascular intervention surgery. The system mainly includes:

[0073] An image module, used for acquiring a first image, where the first image is a blood vessel angiography image;

[0074] An image extraction unit, used to extract a first area, a second area and a third area in the first image, wherein the first area is a normal blood vessel flow area, the second area is a blood vessel obstruction area, and the third area is a non-contrast area;

[0075] The image estimation unit is used to identify the blockage situation of the second area. If the blood vessels in the second area are completely blocked, a first part and a second part are determined, wherein the first part is the main blood vessel and the second part is the branch blood vessel of the main blood vessel. The center of the shape of each lesion part is obtained, the centers are connected in sequence from the second part to the first part, a first center line is obtained by fitting, the first blood vessel radius of the second part is obtained, and the blood vessel area of ​​the blood vessel blockage area is restored based on the first center line and the first blood vessel radius; if the blood vessels in the second area are not completely blocked, the center of gravity of each lesion part is obtained, the midpoint on the connecting line of adjacent centers of gravity is located, the midpoints are connected in sequence from the second part to the first part, a second center line is obtained by fitting, the blood vessel area is restored based on the second center line and the first blood vessel radius, and its accuracy is judged.

[0076] The present invention also provides a computer storage medium, which stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above-mentioned image processing method for vascular intervention surgery.

[0077] It should be understood that, although the various steps in the flowchart of each embodiment of the present invention are displayed in sequence according to the indication of the arrow, these steps are not necessarily executed in sequence in the order indicated by the arrow. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in each embodiment may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps. It can be understood by a person of ordinary skill in the art that all or part of the process in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a non-volatile computer-readable storage medium, and the program can include the process of the embodiment of the above-mentioned method when it is executed. Among them, any reference to the memory, storage, database or other medium used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0078] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0079] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0080] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An image processing method for vascular intervention surgery, characterized in that: The method comprises the following steps: Step S1: an image module acquires a first image, where the first image is a blood vessel angiography image; Step S2: the image extraction unit extracts a first area, a second area and a third area in the first image, wherein the first area is a normal blood vessel flow area, the second area is a blood vessel obstruction area, and the third area is a non-contrast area; The step of extracting the first region, the second region and the third region comprises the following steps: Grayscale the first image to obtain a grayscale image, obtain pixel values ​​of each pixel in the grayscale image, locate pixels belonging to a first value range, define them as first pixels, and divide adjacent first pixels into first pixel regions; Setting a first threshold, obtaining pixel points in the grayscale image whose pixel values ​​are greater than the first threshold, defining them as second pixel points, dividing adjacent second pixel points into second pixel regions, obtaining the second pixel region closest to the first pixel region and setting it as a third pixel region, obtaining pixel values ​​of pixel points between the first pixel region and the third pixel region, and merging the third pixel region, the first pixel region, and the region between the first pixel region and the third pixel region into the second region if the pixel values ​​are within a preset second numerical range; Setting a second threshold, setting an area less than or equal to the second threshold as the third area, and setting an area in the first image after the second area and the third area are screened out as the first area; Step S3: the image estimation unit identifies the second area. If the blood vessels in the second area are completely blocked, a first part and a second part are determined, wherein the first part is the main blood vessel and the second part is the branch blood vessel of the main blood vessel. The shapes of the diseased parts between the first part and the second part in the second area are obtained and defined as the first shapes. The centers of the first shapes are obtained and defined as the first connection points. The first connection points are connected in sequence from the second part to the first part, and the first center line is obtained by fitting. The first blood vessel radius of the second part is obtained. The blood vessel area between the first part and the second part is restored based on the first center line and the first blood vessel radius. If the blood vessels in the second area are not completely blocked, step S4 is continued. Step S4: Obtain the center of gravity of each of the first shapes, connect the centers of gravity of adjacent first shapes to obtain a first connecting line, locate the midpoint on the first connecting line, define it as a second connecting point, connect the second connecting points in sequence from the second part to the first part, obtain a second center line by fitting, and restore and generate the vascular area between the first part and the second part based on the second center line and the first blood vessel radius to obtain a second image.

2. The image processing method for vascular intervention surgery according to claim 1, characterized in that: In step S3, the image estimation unit determines whether the second area is completely blocked based on the following steps: An identification area is set in the second area, pixel values ​​of each pixel point in the identification area are obtained, a first average value of the pixel values ​​is calculated, and a third threshold is set. If the first average value is less than or equal to the third threshold, it is determined that the blood vessels in the second area are completely blocked; otherwise, it is determined that the blood vessels in the second area are not completely blocked.

3. The image processing method for vascular intervention surgery according to claim 1, characterized in that: In step S3, the first part and the second part in the second area are determined based on the following steps: A pixel selection box is set in the first area, the first area and the second area are both located in the pixel selection box, pixel points with the same pixel value and continuous position are obtained, positioned as third pixel points, the third pixel points are connected in sequence to obtain a first boundary, a second boundary, a third boundary and a fourth boundary, and a first distance between the first boundary and the second boundary is calculated, and then a second distance between the third boundary and the fourth boundary is calculated. If the second distance is less than the first distance, the area between the first boundary and the second boundary is set as the first part, and the area between the third boundary and the fourth boundary is set as the second part, wherein the second distance is the radius of the first blood vessel.

4. The image processing method for vascular interventional surgery according to claim 3, characterized in that: The first distance and the second distance are calculated based on the following steps: Select the third pixel point on the first boundary, calculate the distance between the third pixel point and each third pixel point on the second boundary, select the distance with the smallest value as the first shortest distance, repeat this step, calculate the first shortest distances corresponding to other third pixel points on the first boundary in turn, calculate a second average value based on all the first shortest distances, and set the second average value as the first distance; Select the third pixel point on the third boundary, calculate the distance between the third pixel point and each third pixel point on the fourth boundary, select the distance with the smallest value as the second shortest distance, repeat this step, calculate the second shortest distances corresponding to other third pixel points on the third boundary in turn, calculate the third average value based on all the second shortest distances, and set the third average value as the second distance.

5. The image processing method for vascular intervention surgery according to claim 3, characterized in that: If the blood vessels in the second region are not completely blocked, the accuracy of the restored blood vessel region is determined based on the following steps: A judgment box is set at the same position of the first image and the second image respectively, the judgment box in the first image includes the second area where the blood vessel is not completely blocked, a coordinate system is established in the judgment box, the third pixel point in the second image located in the judgment box is located, the first coordinate of the third pixel point in the coordinate system is obtained, the pixel point in the first image located in the first coordinate is located, defined as a fourth pixel point, a fourth threshold is set, and if the difference in pixel values ​​of the two pixel points is less than or equal to the fourth threshold, the two pixel points are determined to be the same; the matching degree of the first image and the second image is calculated based on the first formula , the first formula is: , where n is the number of the third pixel points and the fourth pixel points when the first coordinates are the same and the difference in pixel values ​​is within the fourth threshold range, and N is the number of the third pixel points. The fifth threshold is set. If the matching degree If it is greater than or equal to the fifth threshold, it is determined that the restored blood vessel area is accurate.

6. An image processing system for vascular intervention surgery, used to implement an image processing method for vascular intervention surgery as claimed in any one of claims 1 to 5, characterized in that: The system includes the following modules: An image module, used for acquiring a first image, wherein the first image is a blood vessel angiography image; An image extraction unit, configured to extract a first region, a second region, and a third region from the first image, wherein the first region is a normal blood vessel flow region, the second region is a blood vessel obstruction region, and the third region is a non-contrast region; The image estimation unit is used to identify the blockage situation of the second area. If the blood vessels in the second area are completely blocked, a first part and a second part are determined therein, wherein the first part is the main blood vessel and the second part is the branch blood vessel of the main blood vessel. The center of the shape of each lesion part is obtained, the centers are connected in sequence from the second part to the first part, a first center line is obtained by fitting, a first blood vessel radius of the second part is obtained, and a blood vessel area of ​​the vascular blockage area is restored based on the first center line and the first blood vessel radius; if the blood vessels in the second area are not completely blocked, the center of gravity of each lesion part is obtained, the midpoints on the connecting line of adjacent centers of gravity are located, the midpoints are connected in sequence from the second part to the first part, a second center line is obtained by fitting, a blood vessel area is restored based on the second center line and the first blood vessel radius, and its accuracy is judged.

7. A computer storage medium, characterized in that: The computer storage medium stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the image processing method for vascular intervention surgery according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Angiography image processing method and system

    CN115511997A

  • Catheter positioning method and catheter positioning device for angiography non-filled frame

    CN116385540A

  • Cardioangiographic image analysis system

    CN102346803A

  • System for simulating endovascular intervention operation

    CN105096716A

  • Blood vessel image processing method and apparatus, computer device and storage medium

    CN108805871A