Blood vessel wall thickness measuring method and device, electronic equipment and storage medium
By obtaining the coordinates of the edge points of the vascular intima and adventitia, determining the matching point pairs and calculating the vascular wall thickness, the problem of inapplicability of transverse and longitudinal section measurements is solved, and the measurement accuracy and adaptability are improved.
Patent Information
- Application Number
- CN202510720418.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-19
AI Technical Summary
Existing vascular wall thickness measurement schemes cannot be applied to both transverse and longitudinal sections, and have poor adaptability to different vascular morphologies, resulting in low measurement accuracy.
By obtaining the coordinates of the intimal and adventitial edge points of the target blood vessel, the closest matching point pairs are determined, and the center line or extended line segment is constructed based on the adjacent matching point pairs to calculate the blood vessel wall thickness and adapt to different blood vessel morphologies.
The device can measure the thickness of blood vessel wall simultaneously on transverse and longitudinal sections, improve the measurement accuracy and adapt to the changes of different blood vessel morphologies.
Smart Images

Figure CN120672823A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical image processing. Specifically, the present application relates to a method, device, electronic device and storage medium for measuring blood vessel wall thickness. Background Art
[0002] With an aging population and rising health awareness, the demand for medical imaging technology continues to increase. Cardiovascular and cerebrovascular disease is one of the leading causes of death in China, and its incidence is expected to rise further with the aging population. Computer-aided vascular morphology analysis can provide the local thickness distribution of the vessel wall, annotating the locations of intima-media thickening and plaque formation. This can provide clinicians with more accurate and comprehensive diagnostic information in the field of medical imaging, aiding in disease detection and treatment monitoring.
[0003] However, the current vascular wall thickness measurement scheme is only applicable to a single imaging section, is not compatible with both transverse and longitudinal sections of blood vessels, and is difficult to adapt to different vascular morphologies, resulting in low measurement accuracy. Summary of the Invention
[0004] The embodiments of the present application provide a method, device, electronic device, and storage medium for measuring blood vessel wall thickness, which are used to solve the technical problems that blood vessel wall thickness measurement cannot be applied to both transverse and longitudinal sections of blood vessels, has poor adaptability to different blood vessel morphologies, and has low measurement accuracy.
[0005] According to a first aspect of an embodiment of the present application, a method for measuring blood vessel wall thickness is provided, the method comprising: obtaining an intimal edge point set and an adventitial edge point set of a target blood vessel; the intimal edge point set including coordinates of each intimal edge point of the target blood vessel, and the adventitial edge point set including coordinates of each adventitial edge point of the target blood vessel; Determine at least one first matching point pair based on the intimal edge point set and the adventitia edge point set; each first matching point pair includes a first intimal edge point in the intimal edge point set and a first adventitia edge point in the adventitia edge point set that are closest points to each other; Based on all two adjacent first matching point pairs, the intima edge point set and the adventitia edge point set, at least one corresponding second matching point pair is determined; each second matching point pair includes a second intima edge point and a second adventitia edge point, the second intima edge point and the second adventitia edge point are located in a first area formed by the two adjacent first matching point pairs, and the coordinates of the four vertices of the first area are respectively the coordinates of the two adjacent first matching point pairs; the vascular wall thickness of multiple positions in the target blood vessel is obtained, wherein each position refers to an intima edge point and an adventitia edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness of the position is the distance between the corresponding intima edge point and the adventitia edge point.
[0006] In one possible implementation, For every two adjacent first matching point pairs, determining a first area corresponding to the adjacent first matching point pairs; If it is determined that there are intima edge points and adventitia edge points in the first area, one of the first matching point pairs is used as the first matching point pair, and the other matching point pair is used as the second matching point pair; a first line segment is determined based on the coordinates of the first intima edge point and the first adventitia edge point of the first matching point pair, a second line segment is determined based on the coordinates of the first intima edge point and the first adventitia edge point of the second matching point pair, and an angle between the first line segment and the second line segment is determined; If the angle between the first line segment and the second line segment is not greater than the angle threshold, determining a center line based on the first line segment and the second line segment, and determining at least one second matching point pair based on the projection lengths of each second intima edge point and each second adventitia edge point on the center line; the center line is a line obtained by connecting the center points of the first line segment and the second line segment; If the angle between the first line segment and the second line segment is greater than the angle threshold, the first line segment and the second line segment are extended to determine the intersection of the extended first line segment and the extended second line segment, and at least one second matching point pair is determined based on the angle between the line segment formed by each second inner membrane edge point and each second outer membrane edge point and the intersection point and the extended first line segment.
[0007] In another possible implementation, a vector of the center line is determined based on the coordinates of the center point of the first line segment and the coordinates of the center point of the second line segment; For each second intimal edge point, determining the projection length of the second intimal edge point on the center line according to the coordinates of the intimal edge point and the vector of the center line; For each second adventitial edge point, determining the projection length of the second adventitial edge point on the center line according to the coordinates of the adventitial edge point and the vector of the center line; If the number of the second intimal edge points in the first region is not greater than the number of the second adventitial edge points, then for each second intimal edge point, the second adventitial edge point having the smallest difference in projection length with the second intimal edge point is selected from the second adventitial edge points to form a second matching point pair; If the number of second outer membrane edge points in the first area is not greater than the number of second inner membrane edge points, then for each second outer membrane edge point, the second inner membrane edge point with the smallest difference in projection length from the second outer membrane edge point is selected from the second inner membrane edge points to form a second matching point pair.
[0008] In yet another possible implementation, the coordinates of the intersection point are determined according to the first line segment and the second line segment; For each second intimal edge point, connect the second intimal edge point with the intersection point to obtain a third line segment, and determine the angle between the extended first line segment and the third line segment; For each second adventitial edge point, connect the second adventitial edge point with the intersection point to obtain a fourth line segment, and determine the magnitude of the angle between the extended first line segment and the fourth line segment; If the number of the second intimal edge points in the first region is not greater than the number of the second adventitial edge points, then for each second intimal edge point, the second adventitial edge point having the smallest angle difference with the second intimal edge point is selected from the second adventitial edge points to form a second matching point pair; If the number of second outer membrane edge points in the first region is not greater than the number of second inner membrane edge points, then for each second outer membrane edge point, the second inner membrane edge point with the smallest angle difference with the second outer membrane edge point is selected from the second inner membrane edge points to form a second matching point pair.
[0009] In another possible implementation, after obtaining the vessel wall thicknesses at multiple locations in the target vessel, for each location, if the vessel wall thickness is greater than a first thickness threshold and less than a second thickness threshold, the location is determined as a location of intima-media thickening of the target vessel. For the blood vessel wall thickness at each location, if the blood vessel wall thickness is greater than a second thickness threshold, the location is regarded as a location where plaque is formed in the target blood vessel.
[0010] In another possible implementation, for each intimal edge point in the intimal edge point set, a Euclidean distance between the intimal edge point and any adventitial edge point in the adventitial edge point set is determined based on the coordinates of the intimal edge point, and the adventitial edge point with the smallest Euclidean distance to the intimal edge point is selected as the target adventitial edge point. If it is determined that the Euclidean distance between the target outer membrane edge point and the inner membrane edge point is less than the Euclidean distance between the target outer membrane edge point and other inner membrane edge points in the inner membrane edge point set, the inner membrane edge point is taken as the first inner membrane edge point, and the target outer membrane edge point is taken as the first outer membrane edge point to determine the first matching point pair.
[0011] In another possible implementation, Obtaining a binary mask image of the target blood vessel; When the binary mask image is a binary mask image of a longitudinal blood vessel, the maximum and minimum values of the longitudinal coordinates of the pixel points corresponding to the first value are extracted from left to right, the coordinates of the pixel point corresponding to the minimum value are used as the coordinates of the intima edge point, and the coordinates of the pixel point corresponding to the maximum value are used as the coordinates of the adventitia edge point; When the binary mask image is a binary mask image of a transverse blood vessel, the binary mask image of the target blood vessel includes a binary mask image of the endothelium and a binary mask image of the adventitia, the binary mask images of the endothelium and the adventitia are preprocessed respectively, contour extraction is performed on the preprocessed binary mask image of the endothelium, and coordinates of pixels on the endothelium contour are used as coordinates of the endothelium edge point; contour extraction is performed on the preprocessed binary mask image of the adventitia, and coordinates of pixels on the adventitia contour are used as coordinates of the adventitia edge point; Determining an intima edge point set and an adventitia edge point set of a target blood vessel according to each intima edge point and each adventitia edge point; The tunica intima and the adventitia in the preprocessed binary mask image are both simply connected regions, the first value of the mask in the binary mask image of the tunica intima is used to characterize the tunica intima region of the target vessel, the first value of the binary mask image of the adventitia is used to characterize the adventitia region of the target vessel, and the second value of the mask in the binary mask images of the tunica intima and adventitia is used to characterize other regions of the target vessel. In another possible implementation, Determine the intimal outlier points in the intimal edge point set according to the pixel coordinate values of each intimal edge point, and determine the adventitia outlier points in the adventitia edge point set according to the pixel coordinate values of each adventitia edge point; Deleting each outlier point from the intimal edge point set and the adventitia edge point set, and interpolating a new intimal edge point at a position corresponding to each intimal outlier point in the intimal edge point set, and interpolating a new adventitia edge point at a position corresponding to each adventitia outlier point in the adventitia edge point set, to obtain the intimal edge point set and the adventitia edge point set of the target blood vessel; The coordinates of the new intimal edge point are obtained based on the coordinates of the intimal edge points in the intimal edge point set excluding the intimal outlier points, and the coordinates of the new adventitial edge point are obtained based on the coordinates of the adventitial edge points in the adventitial edge point set excluding the adventitial outlier points. According to a second aspect of an embodiment of the present application, a device for measuring blood vessel wall thickness is provided, the device comprising: an acquisition module, configured to acquire an intimal edge point set and an adventitial edge point set of a target blood vessel; the intimal edge point set includes the coordinates of each intimal edge point of the target blood vessel, and the adventitial edge point set includes the coordinates of each adventitial edge point of the target blood vessel; a first determining module, configured to determine at least one first matching point pair based on the intimal edge point set and the adventitia edge point set; each first matching point pair includes a first intimal edge point in the intimal edge point set and a first adventitia edge point in the adventitia edge point set that are closest points to each other; a second determination module, configured to determine at least one second matching point pair based on all two adjacent first matching point pairs, the intima edge point set, and the adventitia edge point set; each second matching point pair includes a second intima edge point and a second adventitia edge point, the second intima edge point and the second adventitia edge point being located within a first region formed by the two adjacent first matching point pairs, the coordinates of the four vertices of the first region being the coordinates of the two adjacent first matching point pairs; A processing module is used to obtain the vascular wall thickness at multiple locations in the target blood vessel, wherein each location refers to an intima edge point and an adventitia edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness at the location is the distance between the corresponding intima edge point and the adventitia edge point.
[0012] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first aspect are implemented.
[0013] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.
[0014] According to the fifth aspect of the embodiment of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When the processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device performs the steps of implementing the method provided in the first aspect.
[0015] The beneficial effects of the technical solution provided by the embodiments of the present application are: A method for measuring blood vessel wall thickness provided in an embodiment of the present application obtains an intima edge point set including coordinates of each intima edge point of a target blood vessel and an adventitia edge point set including coordinates of each adventitia edge point of each target blood vessel, thereby determining at least one first matching point pair, wherein each first matching point pair includes a first intima edge point in the intima edge point set and a first adventitia edge point in the adventitia edge point set that are closest to each other. At least one second matching point pair is determined based on all two adjacent first matching point pairs, wherein the second matching point pair includes a second intima edge point and a second adventitia edge point, the second intima edge point and the second adventitia edge point being located within a first region formed by the two adjacent first matching point pairs, wherein the coordinates of the four vertices of the first region are respectively the coordinates of the two adjacent first matching point pairs. The method also obtains the blood vessel wall thickness at multiple locations in the target blood vessel, wherein each location is formed by an intima edge point and an adventitia edge point in one of the first matching point pairs or one of the second matching point pairs, and the blood vessel wall thickness at each location is the distance between the corresponding intima edge point and adventitia edge point. The first matching point pair is determined by calculating the closest intima edge point and adventitia edge point to each other, and the local parallel position of the target blood vessel is determined. Then, based on the positions of the two adjacent first matching point pairs, the second adventitia edge point and the second intima edge point that can establish a matching relationship between the adjacent matching point pairs are determined. Therefore, the vascular wall thickness of the target blood vessel at various positions can be obtained based on the first matching point pair and the second matching point pair, realizing that the measurement of vascular wall thickness can be applied to both transverse and longitudinal sections of blood vessels, adapting to different vascular morphologies, and improving measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.
[0017] Figure 1 A schematic diagram of the system architecture for implementing a method for measuring blood vessel wall thickness according to an embodiment of the present application; Figure 2 A schematic flow chart of a method for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 3 A schematic flow chart of a method for determining a second matching point pair in a method for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 4 A schematic flow chart of a method for determining a second matching point pair based on a projection length in a method for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 5 A partial schematic diagram of a target blood vessel provided in an embodiment of the present application, wherein the angle between the first line segment and the second line segment is not greater than a preset angle; Figure 6A schematic flow chart of a method for determining a second matching point pair based on an included angle in a method for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 7 A partial schematic diagram of a target blood vessel in which the angle between the first line segment and the second line segment is greater than a preset angle provided in an embodiment of the present application Figure 8 A schematic flow chart of a method for determining a first matching point pair in a method for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 9 A schematic flow chart of a method for determining an intima edge point set and an adventitia edge point set in a method for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 10 A schematic diagram of a method for measuring blood vessel wall thickness provided in an embodiment of the present application for determining matching point pairs based on a transverse blood vessel medical image; Figure 11 A schematic structural diagram of a device for measuring blood vessel wall thickness provided in an embodiment of the present application; Figure 12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following describes the embodiments of the present application in conjunction with the accompanying drawings. It should be understood that the embodiments described below in conjunction with the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0019] Those skilled in the art will understand that, unless otherwise stated, the singular forms "a", "an", "" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the present technical field. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to a connection relationship between the one element and the other element through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".
[0020] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0021] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on, or combine with each other, and the same terms, similar features, and similar implementation steps in different embodiments will not be repeated.
[0022] Figure 1 A schematic diagram of a system architecture for implementing a method for measuring blood vessel wall thickness provided in an embodiment of the present application, wherein the system architecture includes: a terminal 120 and a server 140.
[0023] The terminal 120 is installed with and runs an application program that includes a method for measuring the thickness of a blood vessel wall. The terminal 120 is configured to obtain a set of intimal edge points and an adventitial edge point set of a target blood vessel, determine a first matching point pair and a second matching point pair based on the set of intimal edge points and the adventitial edge point set of the target blood vessel, and obtain the thickness of the blood vessel wall at multiple locations in the target blood vessel based on the first matching point pair and the second matching point pair.
[0024] The terminal 120 is connected to the server 140 via a wireless network or a wired network.
[0025] Server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Illustratively, server 140 includes a processor 144 and a memory 142. Memory 142 includes a display module 1421, a control module 1422, and a receiving module 1423. Server 140 is configured to provide background services for the application program of the method. Optionally, server 140 performs primary computing tasks, and terminal 120 performs secondary computing tasks; alternatively, server 140 performs secondary computing tasks, and terminal 120 performs primary computing tasks; alternatively, server 140 and terminal 120 utilize a distributed computing architecture for collaborative computing.
[0026] Optionally, the device type of the terminal includes: at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer and a desktop computer.
[0027] Those skilled in the art will appreciate that the number of the above-mentioned terminals may be more or less. For example, the above-mentioned terminal may be only one, or the above-mentioned terminals may be dozens or hundreds, or a larger number. The embodiments of the present application do not limit the number of terminals and device types.
[0028] The present application provides a method for measuring the thickness of a blood vessel wall. Figure 2 As shown, the method includes: S101: Acquire a set of intimal edge points and a set of adventitial edge points of a target blood vessel.
[0029] In the embodiment of the present application, the intimal edge point set includes the coordinates of each intimal edge point of the target blood vessel, and the adventitial edge point set includes the coordinates of each adventitial edge point of the target blood vessel.
[0030] In an embodiment of the present application, the intima of a blood vessel is the boundary between the intima and the vascular cavity, and the intima is in direct contact with the blood. The adventitia of a blood vessel is the boundary between the adventitia and the media. The thickness of the vascular wall can be determined by calculating the distance between the intima and the adventitia of the target blood vessel. Therefore, in the process of calculating the vascular wall thickness of the target blood vessel, the intima edge point set and the adventitia edge point set are first obtained.
[0031] In an embodiment of the present application, the target blood vessel refers to a blood vessel whose wall thickness is to be detected. By obtaining a medical image of the target blood vessel and segmenting the medical image, the intima region and the adventitia region of the target blood vessel can be determined. By performing contour extraction on the intima region and the adventitia region, the coordinates of each intima edge point and each adventitia edge point of the target blood vessel can be determined, and finally an intima edge point set and an adventitia edge point set are obtained.
[0032] In the embodiment of the present application, the medical image may be a transverse view of the target blood vessel or a longitudinal view of the target blood vessel.
[0033] S102: Determine at least one first matching point pair according to the intimal edge point set and the adventitial edge point set.
[0034] In an embodiment of the present application, each first matching point pair includes a first inner membrane edge point in the inner membrane edge point set and a first outer membrane edge point in the outer membrane edge point set that are the closest points to each other. That is, each first matching point pair is composed of a first inner membrane edge point and a first outer membrane edge point, and the distance between the first inner membrane edge point and the first outer membrane edge point is smaller than the distance between the first inner membrane edge point and any other outer membrane edge point in the outer membrane edge point set, and is also smaller than the distance between the first outer membrane edge point and any other inner membrane edge point in the inner membrane edge point set.
[0035] In an embodiment of the present application, the distance between any inner membrane edge point and the outer membrane edge point can be calculated based on the coordinates of each inner membrane edge point in the inner membrane edge point set and the coordinates of each outer membrane edge point in the outer membrane edge point set. Based on the distance between each inner membrane edge point and the outer membrane edge point, the first inner membrane edge point and the first outer membrane edge point that are closest to each other are determined, thereby obtaining at least one first matching point pair.
[0036] In an example, the inner membrane edge point An in the inner membrane edge point set is closest to the outer membrane edge point Bm in the outer membrane edge set, and the outer membrane edge point Bm is closest to the outer membrane edge point An in the inner membrane edge point set, then (An, Bm) is the first matching point pair.
[0037] S103: Determine at least one second matching point pair based on all two adjacent first matching point pairs, the intima edge point set, and the adventitia edge point set.
[0038] In an embodiment of the present application, each second matching point pair includes a second inner membrane edge point and a second outer membrane edge point. The second inner membrane edge point and the second outer membrane edge point are located in the first area formed by the two adjacent first matching point pairs. The coordinates of the four vertices of the first area are the coordinates of the two adjacent first matching point pairs, that is, the second inner membrane edge point and the second outer membrane edge point in the second matching point pair corresponding to the two adjacent first matching point pairs are determined from the inner membrane edge point and the outer membrane edge point between the two adjacent first matching point pairs. In an embodiment of the present application, the coordinates of two adjacent first matching point pairs are (X1, Y1), (X2, Y2), (X3, Y3) and (X4, Y4), respectively. Then, a first region with vertex coordinates of (X1, Y1), (X2, Y2), (X3, Y3) and (X4, Y4) can be obtained, and the inner membrane edge points and outer membrane edge points existing in the first region are determined, that is, the inner membrane edge points and outer membrane edge points in the inner membrane edge point set and the outer membrane edge point set whose coordinates fall within the first region are the second inner membrane edge points and the second outer membrane edge points between the two adjacent first matching point pairs.
[0039] S104: Obtain the vessel wall thickness at multiple locations in the target vessel.
[0040] In the embodiment of the present application, each position refers to an intima edge point and an adventitia edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness at the position is the distance between the corresponding intima edge point and adventitia edge point.
[0041] In the embodiment of the present application, since the distance between the intima and adventitia of a blood vessel can be used as the vascular wall thickness, after determining the first matching point pair and the second matching point pair, the adventitia edge point and the intima edge point in the first matching point pair or the second matching point pair are used as a position on the target blood vessel, and the distance between the corresponding adventitia edge point and the intima edge point is used as the vascular wall thickness at that position, thereby comprehensively obtaining the distribution of the vascular wall thickness at various positions of the target blood vessel.
[0042] In an embodiment of the present application, different positions of the target blood vessel are represented by the positions of the first matching point pair or the second matching point pair. The blood vessel wall thickness at the position of the first matching point pair is determined by calculating the Euclidean distance between the first endothelial edge point and the first adventitial edge point in the first matching point pair. The blood vessel wall thickness at the position of the second matching point pair is determined by calculating the Euclidean distance between the second endothelial edge point and the second adventitial edge point in the second matching point pair. After calculating the blood vessel wall thickness at the positions of all first matching point pairs and second matching point pairs, the blood vessel wall thickness distribution of the target blood vessel can be obtained.
[0043] In the above scheme, at least one first matching point pair is determined by obtaining an intima edge point set including the coordinates of each intima edge point of the target blood vessel and an adventitia edge point set including the coordinates of each adventitia edge point of each target blood vessel. Each first matching point pair includes a first intima edge point in the intima edge point set and a first adventitia edge point in the adventitia edge point set that are the closest points to each other. At least one second matching point pair is determined based on all two adjacent first matching point pairs. The second matching point pair includes a second intima edge point and a second adventitia edge point. The second intima edge point and the second adventitia edge point are located in a first region formed by the two adjacent first matching point pairs. The coordinates of the four vertices of the first region are the coordinates of the two adjacent first matching point pairs. The vascular wall thickness is obtained at multiple locations in the target blood vessel. Each location is formed by an intima edge point and an adventitia edge point in one of the first matching point pairs or one of the second matching point pairs. The vascular wall thickness at each location is the distance between the corresponding intima edge point and adventitia edge point. By calculating and determining the closest intimal edge point and adventitial edge point to each other, the first matching point pair is determined, and the local parallel position of the target blood vessel is determined. Then, based on the positions of the two adjacent first matching point pairs, the second adventitial edge point and the second intimal edge point that can establish a matching relationship between the adjacent matching point pairs are determined. Thus, the vascular wall thickness of the target blood vessel at various positions can be obtained based on the first matching point pair and the second matching point pair, so that the measurement of the vascular wall thickness can be applied to both transverse and longitudinal sections of the blood vessel, adapting to different vascular morphologies and improving the measurement accuracy. Based on the above embodiments, as an optional embodiment, the method for determining the second matching point pair is as follows: Figure 3 The specific contents are as follows: S201, for every two adjacent first matching point pairs, determining a first region corresponding to the adjacent first matching point pairs; S202, if it is determined that the intima edge point and the adventitia edge point exist in the first region, one of the first matching point pairs is used as a first matching point pair, and the other matching point pair is used as a second matching point pair; S203, determining a first line segment based on the coordinates of the first intimal edge point and the first adventitial edge point of the first matching point pair, determining a second line segment based on the coordinates of the first intimal edge point and the first adventitial edge point of the second matching point pair, and determining an angle between the first line segment and the second line segment; S204-1, if the angle between the first line segment and the second line segment is not greater than the angle threshold, determining a center line based on the first line segment and the second line segment, and determining at least one second matching point pair based on the projection lengths of each second intimal edge point and each second adventitial edge point on the center line; S204-2, if the angle between the first line segment and the second line segment is greater than the angle threshold, extend the first line segment and the second line segment, determine the intersection of the extended first line segment and the extended second line segment, and determine at least one second matching point pair based on the angle between the line segment formed by each second inner membrane edge point and each second outer membrane edge point and the intersection point and the extended first line segment.
[0044] In the embodiment of the present application, the center line is a line obtained by connecting the center points of the first line segment and the second line segment.
[0045] In S201 of the embodiment of the present application, for each pair of adjacent first matching points, the coordinates of the first region corresponding to the adjacent first matching point pairs are determined based on the coordinates of the inner membrane edge points and the outer membrane edge points in the two adjacent first matching point pairs, so that it can be determined based on the coordinates of the first region and the inner membrane edge point set and the outer membrane edge point set whether there are any edge points with coordinates falling within the first region in addition to the two adjacent first matching point pairs.
[0046] In S202 of the embodiment of the present application, if it is determined that there are inner membrane edge points and outer membrane edge points in the first area, that is, it is determined that in addition to the two adjacent first matching point pairs in the inner membrane edge point set and the outer membrane edge point set, there are edge points with coordinates falling within the first area, indicating that there are edge points between the two adjacent first matching point pairs that can establish a matching relationship. Therefore, a pair of first matching point pairs is randomly selected from the two first matching point pairs as the first matching point pair, and then another pair of matching point pairs is selected as the second matching point pair.
[0047] In S203 of the embodiment of the present application, the coordinates of the first inner membrane edge point and the coordinates of the first outer membrane edge point of the matching point pair No. 1 are determined, the first inner membrane edge point and the first outer membrane edge point of the matching point pair No. 1 are connected, and the coordinates of the first line segment whose two end points are the coordinates of the first outer membrane edge point of the matching point pair No. 1 and the coordinates of the first inner membrane edge point of the matching point pair No. 1 are obtained respectively, the coordinates of the first inner membrane edge point and the coordinates of the first outer membrane edge point of the matching point pair No. 2 are determined, the first inner membrane edge point and the first outer membrane edge point of the matching point pair No. 2 are connected, and the coordinates of the second line segment whose two end points are the coordinates of the first outer membrane edge point of the matching point pair No. 2 and the coordinates of the first inner membrane edge point of the matching point pair No. 2 are obtained respectively, and after determining the first line segment and the second line segment, the angle between the first line segment and the second line segment is determined according to the vectors of the first line segment and the second line segment.
[0048] In an embodiment of the present application, when determining the first line segment and the second line segment, the vectors of the first line segment and the second line segment are first determined, and the directions of the vectors of the first line segment and the second line segment must be consistent, that is, the first line segment and the second line segment both start with the corresponding first inner membrane edge point and end with the corresponding first outer membrane edge point, or both start with the corresponding first outer membrane edge point and end with the corresponding inner membrane edge point, and the angle between the first line segment and the second line segment is determined based on the vector of the first line segment and the vector of the second line segment.
[0049] In S204-1 of the embodiment of the present application, for each two adjacent first matching point pairs, if the angle between the corresponding first line segment and the second line segment is not greater than the angle threshold, it means that the two adjacent matching point pairs are in a position where the inner and outer membranes of the blood vessel are locally parallel, that is, the first line segment and the second line segment are approximately parallel, the curvature of the blood vessel contour changes little, and the blood vessel is approximately perpendicular to the first line segment and the second line segment. Therefore, the center points of the first line segment and the second line segment are determined, and the center points of the first line segment and the second line segment are connected to obtain a center line. The center line is approximately perpendicular to the first line segment and the second line segment. Therefore, the point at which each edge point jointly constitutes the second matching point pair can be determined by the projection length of the second inner membrane edge point and the second outer membrane edge point on the center line. For each second inner membrane edge point and each second outer membrane edge point corresponding to the current two first matching point pairs, the projection length of each second inner membrane edge point and each second outer membrane edge point on the center line is calculated, and the second matching point pair is determined based on the projection length of each second inner membrane edge point and the projection length of each second outer membrane edge point.
[0050] In S204-2 of the embodiment of the present application, for two adjacent first matching point pairs, if the angle between the corresponding first line segment and the second line segment is greater than the angle threshold, it means that the curvature of the blood vessel contour between the positions of the first line segment and the second line segment changes greatly, and the blood vessel is not perpendicular to the first line segment and the second line segment. Therefore, the first line segment and the second line segment are extended, and the intersection of the extended first line segment and the second line segment is determined. Each second endocardial edge point and each second adventitial edge point corresponding to the two currently adjacent first matching point pairs are connected to the intersection point, and the angle degree between the line segment formed by each second endocardial edge point and each second adventitial edge point and the intersection point and the extended first line segment is determined. Based on the above angle degrees, the second matching point pair is determined.
[0051] In the above scheme, after determining the first matching point pair, in order to measure the vascular wall thickness at various positions of the blood vessel, it is first confirmed whether there is an intima edge point and an adventitia edge point between the two adjacent first matching point pairs through the first area corresponding to each of the two adjacent first matching point pairs. For the two adjacent matching point pairs between which there is still an intima edge point and an adventitia edge point, the projection lengths of each second intima edge point and each second adventitia edge point are calculated between the two adjacent matching point pairs to determine that the second intima edge point and the second adventitia edge point with the closest projection length constitute a second matching point pair, thereby determining the vascular wall thickness that best represents the current position, so that the vascular wall thickness at various positions in the blood vessel can be comprehensively displayed, and in the process of determining the second matching point pair, by calculating The angle between the first line segment and the second line segment is calculated, and the angle is compared with the angle threshold to determine the change in the curvature of the blood vessel contour of the blood vessel at the position of the two adjacent first matching point pairs. The corresponding second matching point pair determination method is selected according to the change in the curvature of the blood vessel contour, which ensures that the present application is applicable to the calculation of the blood vessel wall thickness of blood vessels with different contour curvatures, can cover more measurement positions, improve measurement accuracy, and also ensure the accuracy of the determination of the second matching point pair, thereby improving the accuracy of the calculation of the blood vessel wall thickness at the location. In addition, the curvature change of the target blood vessel is analyzed through the angle between the two adjacent first matching point pairs, so as to adaptively select different second matching point pair search methods to determine the distribution of blood vessel wall and plaque thickness, which has the advantages of fast response speed and high accuracy.
[0052] In the embodiment of the present application, during the process of determining the second matching point pair of two adjacent first matching point pairs, multiple adjacent two first matching point pairs can be searched for the second matching point pair in parallel, which greatly improves the measurement efficiency.
[0053] Based on the above embodiments, as an optional embodiment, the method for determining the second matching point pair according to the projection length is as follows: Figure 4 The specific contents include: S301, determining a center line vector based on the coordinates of the center point of the first line segment and the coordinates of the center point of the second line segment; S302, for each second intimal edge point, determining a projection length of the second intimal edge point on the center line according to the coordinates of the intimal edge point and the vector of the center line; S303, for each second adventitial edge point, determine the projection length of the second adventitial edge point on the center line according to the coordinates of the adventitial edge point and the vector of the center line; S304-1, if the number of second intimal edge points in the first region is not greater than the number of second adventitial edge points, then for each second intimal edge point, select from among the second adventitial edge points the second adventitial edge point with the smallest difference in projection length from the second intimal edge point to form a second matching point pair; S304-2, if the number of second outer membrane edge points in the first region is not greater than the number of second inner membrane edge points, then for each second outer membrane edge point, the second inner membrane edge point with the smallest difference in projection length from the second outer membrane edge point is selected from the second inner membrane edge points to form a second matching point pair.
[0054] In S301 of an embodiment of the present application, the center point coordinates of the first line segment are determined based on the first inner membrane edge point coordinates and the first outer membrane edge point coordinates corresponding to the first line segment, the center point coordinates corresponding to the second line segment are determined based on the first inner membrane edge point coordinates and the first outer membrane edge point coordinates corresponding to the second line segment, and the vector of the center line is determined based on the center point coordinates of the first line segment and the center point coordinates of the second line segment.
[0055] In S302 of an embodiment of the present application, for each second endocardial edge point, the projection length of the second endocardial edge point on the center line is calculated based on the coordinates of the second endocardial edge point and the vector of the center line. For example, the center line takes the center point of the first line segment as the starting point A, the center point of the second line segment as the end point B, and the second endocardial edge point is P. The vector AP is determined based on the coordinates of A and P, and the vector AB and the length of the vector AB are determined based on the coordinates of A and B. The ratio of the dot product of vector AB and vector AP to the length of vector AB is used as the projection length of the second endocardial edge point P on the center line.
[0056] In S303 of an embodiment of the present application, for each second outer membrane edge point, the projection length of the second outer membrane edge point on the center line is calculated based on the coordinates of the second outer membrane edge point and the vector of the center line. For example, the center line takes the center point of the first line segment as the starting point A, the center point of the second line segment as the end point B, and the second outer membrane edge point is Q. The vector AQ is determined based on the coordinates of A and Q, and the vector AB and the length of the vector AB are determined based on the coordinates of A and B. The ratio of the dot product of vector AB and vector AQ to the length of vector AB is used as the projection length of the second outer membrane edge point Q on the center line.
[0057] In S304-1 of the embodiment of the present application, the number of second inner membrane edge points and second outer membrane edge points in the first area are compared. Since the second matching point pair is composed of the second inner membrane edge point and the second outer membrane edge point, the number of second matching point pairs that can be formed depends on the number of the smallest type of edge points. If the number of second inner membrane edge points is not greater than the number of second outer membrane edge points, it means that the number of second matching point pairs is consistent with the number of second inner membrane edge points. Therefore, starting from the second inner membrane edge point, each second outer membrane edge point is compared one by one, and the difference between the projection length of each second outer membrane edge point is calculated, and the second outer membrane edge point with the smallest difference is selected to jointly form a second matching point pair.
[0058] In S304-2 of the embodiment of the present application, if the number of second outer membrane edge points in the first area is not greater than the number of second inner membrane edge points, it means that the number of second matching point pairs is consistent with the number of second outer membrane edge points. Therefore, starting from the second outer membrane edge point, each second inner membrane edge point is compared one by one, and the difference between the projection lengths of each second inner membrane edge point is calculated, and the second inner membrane edge point with the smallest difference is selected to jointly constitute a second matching point pair.
[0059] refer to Figure 5As shown, it exemplarily shows a partial schematic diagram of a target blood vessel in which the angle between the first line segment and the second line segment is not greater than a preset angle, wherein A, G and B are intimal edge points, C, H and D are adventitial edge points, A and C together constitute the first matching point pair, B and D together constitute the second matching point pair, the first matching point pair and the second matching point pair are two adjacent first matching point pairs, G is the second intimal edge point between the first matching point pair and the second matching point pair, and H is the second adventitial edge point between the first matching point pair and the second matching point pair. , AC is the first line segment, E is the midpoint of the first line segment, BD is the second line segment, F is the midpoint of the second line segment, EF is the center line, x is the projection length of the second endocardial edge point G on the center line EF, y is the projection length of the second adventitia edge point H on the center line EF. Between the first matching point pair and the second matching point pair, for the second endocardial edge point G, since the difference between its projection length x and the projection length y of the second adventitia edge point H is the smallest, the second endocardial edge point G and the second adventitia edge point H together constitute the second matching point pair.
[0060] In the above scheme, since the angle between the first line segment and the second line segment is not greater than the angle threshold, the change in the curvature of the current blood vessel contour is small, and the blood vessel can be considered to be approximately perpendicular to the first line segment and the second line segment. Therefore, by calculating the projection length of each second intima edge point and second adventitia edge point on the centerline, the second intima edge point and the second adventitia edge point closest to each other in the direction of the blood vessel centerline can be effectively determined to form a second matching point pair, thereby improving the accuracy of blood vessel wall thickness measurement while also comprehensively displaying the blood vessel wall thickness at various locations in the blood vessel. In addition, in the process of determining the second matching point pair, by determining the number of second intima edge points and second adventitia edge points, a small number of edge points are selected to start determining one by one, thereby reducing the time required to determine the second matching point pair.
[0061] Based on the above embodiments, as an optional embodiment, the method for determining the second matching point pair according to the angle is as follows: Figure 6 The specific contents include: S401, determining the coordinates of an intersection point according to a first line segment and a second line segment; S402, for each second intimal edge point, connect the second intimal edge point with the intersection point to obtain a third line segment, and determine the angle between the extended first line segment and the third line segment; S403, for each second adventitial edge point, connect the second adventitial edge point with the intersection point to obtain a fourth line segment, and determine the angle between the extended first line segment and the fourth line segment; S404-1, if the number of second intimal edge points in the first region is not greater than the number of second adventitial edge points, then for each second intimal edge point, select from among the second adventitial edge points the second adventitial edge point with the smallest angle difference to form a second matching point pair; S404-2, if the number of second outer membrane edge points in the first region is not greater than the number of second inner membrane edge points, then for each second outer membrane edge point, the second inner membrane edge point with the smallest difference in angle with the second outer membrane edge point is selected from the second inner membrane edge points to form a second matching point pair.
[0062] In S401 of the embodiment of the present application, the first line segment and the second line segment are extended to obtain an intersection point where the first line segment and the second line segment intersect. The coordinates of the intersection point can be determined based on the coordinates of the two endpoints of the first line segment and the coordinates of the two endpoints of the second line segment.
[0063] In S402 of the embodiment of the present application, for each second endocardial edge point, the second endocardial edge point is connected to the intersection point to obtain a third line segment, and an angle is formed between the third line segment and the first line segment. The angle between the first line segment and the third line segment is determined based on the coordinates of the second endocardial edge point, the coordinates of the intersection point, and the coordinates of the first endocardial edge point corresponding to the first line segment.
[0064] In S403 of the embodiment of the present application, for each second outer membrane edge point, the second outer membrane edge point is connected to the intersection point to obtain a fourth line segment, and an angle is formed between the fourth line segment and the first line segment. According to the coordinates of the second outer membrane edge point, the coordinates of the intersection point and the coordinates of the first inner membrane edge point corresponding to the first line segment, the angle between the first line segment and the fourth line segment is determined.
[0065] In S404-1 of the embodiment of the present application, the number of second inner membrane edge points and second outer membrane edge points is compared. Since the second matching point pair is composed of the second inner membrane edge point and the second outer membrane edge point, the number of second matching point pairs that can be formed depends on the number of the smallest type of edge points. If the number of second inner membrane edge points is not greater than the number of second outer membrane edge points, it means that the number of second matching point pairs is consistent with the number of second inner membrane edge points. Therefore, starting from the second inner membrane edge point, each second outer membrane edge point is compared one by one, the difference between the angles with each second outer membrane edge point is calculated, and the second outer membrane edge point with the smallest difference is selected to form the second matching point pair.
[0066] In S404-2 of the embodiment of the present application, if the number of second outer membrane edge points is not greater than the number of second inner membrane edge points, it means that the number of second matching point pairs is consistent with the number of second outer membrane edge points. Therefore, starting from the second outer membrane edge point, each second inner membrane edge point is compared one by one, and the difference between the angles with each second inner membrane edge point is calculated, and the second inner membrane edge point with the smallest difference is selected to jointly constitute the second matching point pair.
[0067] refer to Figure 7 As shown, it exemplarily shows a local schematic diagram of a target blood vessel in which the angle between the first line segment and the second line segment is greater than the preset angle, wherein G, M and J are intima edge points, H, N and K are adventitia edge points, G and H together constitute the first matching point pair, J and K together constitute the second matching point pair, the first matching point pair and the second matching point pair are two adjacent first matching point pairs, M is the second intima edge point between the first matching point pair and the second matching point pair, N is the second adventitia edge point between the first matching point pair and the second matching point pair, GH is the first line segment, and JK is the second line segment. Segment, L is the intersection of the extended first and second line segments, ML is the third line segment, NL is the fourth line segment, the angle between the first and third line segments is m, the angle between the first and fourth line segments is n, and between the first and second matching point pairs, for the second endocardial edge point M, since the difference between the angle m between its corresponding third line segment and the first line segment and the angle n between the second adventitia edge point N and the fourth line segment is the smallest, the second endocardial edge point M and the second adventitia edge point N together constitute the second matching point pair.
[0068] In the above scheme, since the angle between the first line segment and the second line segment is greater than the angle threshold, it indicates that the curvature of the current blood vessel contour has changed significantly, and it can be considered that the blood vessel is not perpendicular to the first line segment and the second line segment. Therefore, by calculating the angle between the line segment corresponding to each second intima edge point and the second adventitia edge point and the first line segment, the second intima edge point and the second adventitia edge point closest to each other in the approximate arc direction of the blood vessel can be effectively determined to form a second matching point pair, thereby improving the accuracy of blood vessel wall thickness measurement while also comprehensively displaying the blood vessel wall thickness at various locations in the blood vessel. In addition, in the process of determining the second matching point pair, by determining the number of second intima edge points and second adventitia edge points, edge points with a small number are selected to start determining one by one, thereby reducing the time required for determining the second matching point pair.
[0069] Based on the above embodiments, as an optional embodiment, after obtaining the vascular wall thicknesses at multiple locations in the target blood vessel, for the vascular wall thickness at each location, if the vascular wall thickness is greater than a first thickness threshold and less than a second thickness threshold, the location is regarded as the location of intima-media thickening of the target blood vessel; for the vascular wall thickness at each location, if the vascular wall thickness is greater than the second thickness threshold, the location is regarded as the location of plaque formation in the target blood vessel.
[0070] In an embodiment of the present application, after determining the vascular wall thickness at each position in the target blood vessel, it can be determined whether there is intima-media thickening or plaque at each position based on the vascular wall thickness. Therefore, the vascular wall thickness at each position is compared with a first thickness threshold and a second thickness threshold one by one. When it is determined that the vascular wall thickness is greater than the first thickness threshold and less than the second thickness threshold, it is considered that there is intima-media thickening at the current position of the target blood vessel. If the vascular wall thickness is greater than the second thickness threshold, it is considered that there is plaque at the current position of the target blood vessel, and the current position is used as the location where the plaque is formed in the target blood vessel.
[0071] In one example, the first thickness threshold is 1.0 mm, and the second thickness threshold is 1.5 mm. For the vascular wall thickness at each location, if the vascular wall thickness at the current location is not greater than 1.0 mm, the vascular wall thickness is considered normal; if the vascular wall thickness at the current location is greater than 1.0 mm and less than 1.5 mm, it is considered that there is intima-media thickening at the current location; and if the vascular wall thickness at the current location is greater than 1.5 mm, it is considered that there is a plaque at the current location.
[0072] In the above scheme, a first thickness threshold and a second thickness threshold are set according to the actual situation of the vascular wall thickness when intima-media thickening and plaques appear in the blood vessels, and the vascular wall thickness at each location is compared with the first thickness threshold and the second thickness threshold, so that the locations where intima-media thickening and plaques exist in the target blood vessels can be accurately detected, thereby effectively indicating the current health risks of the target blood vessels and the specific locations where the risks exist.
[0073] Based on the above embodiments, as an optional embodiment, the method for determining the first matching point pair is as follows: Figure 8 The specific contents are as follows: S501, for each intimal edge point in the intimal edge point set, determine the Euclidean distance between the intimal edge point and any adventitial edge point in the adventitial edge point set based on the coordinates of the intimal edge point, and select the adventitial edge point with the smallest Euclidean distance to the intimal edge point as the target adventitial edge point; S502, if it is determined that the Euclidean distance between the target outer membrane edge point and the inner membrane edge point is less than the Euclidean distance between the target outer membrane edge point and other inner membrane edge points in the inner membrane edge point set, the inner membrane edge point is used as the first inner membrane edge point, and the target outer membrane edge point is used as the first outer membrane edge point to determine the first matching point pair.
[0074] In S501 of the embodiment of the present application, for each endocardial edge point in the endocardial edge point set, calculations are performed one by one with each adventitial edge point in the adventitial edge point set, and the Euclidean distance between the endocardial edge point and the adventitial edge point is calculated. After calculating the Euclidean distance between the current endocardial edge point and all adventitial edge points, the adventitial edge point with the smallest Euclidean distance to the endocardial edge point is selected as the target adventitial edge point.
[0075] In S502 of the embodiment of the present application, the current target outer membrane edge point and the other inner membrane edge points in the inner membrane edge point set are calculated one by one, and the Euclidean distance between the target outer membrane edge point and the inner membrane edge point is calculated. If the Euclidean distance between the target outer membrane edge point and the inner membrane edge point is less than the Euclidean distance between the target outer membrane edge point and other inner membrane edge points in the inner membrane edge point set, the current inner membrane edge point is used as the first inner membrane edge point, and the target outer membrane edge point is used as the first outer membrane edge point, and together they constitute a first matching point pair.
[0076] In the above scheme, by calculating the Euclidean distance between each endothelial edge point and each adventitia edge point, the first endothelial edge point and the first adventitia edge point that are closest to each other are determined to form a first matching point pair, thereby accurately reflecting the thickness of the blood vessel wall at the location of the first matching point pair, thereby improving the accuracy of blood vessel wall thickness measurement.
[0077] Based on the above embodiments, as an optional embodiment, a binary mask image of the target blood vessel is obtained; when the binary mask image is a binary mask image of a longitudinal blood vessel, the maximum and minimum values of the longitudinal coordinates of the pixels corresponding to the first value are extracted sequentially from left to right, the coordinates of the pixel corresponding to the minimum value are used as the coordinates of the intima edge point, and the coordinates of the pixel corresponding to the maximum value are used as the coordinates of the adventitia edge point; when the binary mask image is a binary mask image of a transverse blood vessel, the binary mask image of the target blood vessel includes a binary mask image of the intima and a binary mask image of the adventitia, the binary mask images of the intima and the adventitia are preprocessed respectively, contour extraction is performed on the preprocessed binary mask image of the intima, and the coordinates of the pixels on the intima contour are used as the coordinates of the intima edge point. Contour extraction is performed on the preprocessed binary mask image of the adventitia, and the coordinates of the pixels on the adventitia contour are used as the coordinates of the adventitia edge point; and based on each intima edge point and each adventitia edge point, an intima edge point set and an adventitia edge point set of the target blood vessel are determined.
[0078] In an embodiment of the present application, a medical image of a target blood vessel is acquired and segmented to obtain a binary mask image of the target blood vessel. When the binary mask image is a binary mask image of a longitudinal blood vessel, the first value of the binary mask image of the longitudinal blood vessel is used to characterize the intima and adventitia regions. Starting from the leftmost side of the binary mask image, the maximum and minimum values of the longitudinal coordinates of the pixel points corresponding to the first value are extracted in sequence to the right. The coordinates of the pixel point corresponding to the minimum value are used as the coordinates of the intima edge point, and the coordinates of the pixel point corresponding to the maximum value are used as the coordinates of the adventitia edge point. For example, the coordinates of the pixel point of the first value extracted for the first time are (1,0), (1,1), (1,2) and (1,3), where the coordinates of the pixel point with the minimum longitudinal coordinate are (1,0), then (1,0) is used as the coordinates of the intima edge point, and the coordinates of the pixel point with the maximum longitudinal coordinate are (1,3), then (1,3) is used as the coordinates of the adventitia edge point.
[0079] In one example, for a binary mask image of a longitudinal blood vessel, the coordinates of the maximum and minimum values of pixels with a grayscale value of 255 are extracted from left to right, where the coordinates of the pixel corresponding to the minimum value correspond to the coordinates of the edge point of the inner membrane, and the coordinates of the pixel corresponding to the maximum value correspond to the coordinates of the edge point of the outer membrane.
[0080] In an embodiment of the present application, the endothelium and the adventitia in the preprocessed binary mask image are both simply connected areas, the first value of the mask in the binary mask image of the endothelium is used to characterize the endothelium area of the target blood vessel, the first value of the binary mask image of the adventitia is used to characterize the adventitia area of the target blood vessel, and the second value of the mask in the binary mask images of the endothelium and the adventitia is used to characterize other areas of the target blood vessel.
[0081] In an embodiment of the present application, after obtaining the binary mask image of the transverse blood vessel, the binary mask image needs to be preprocessed, such as using one or more algorithms such as morphological analysis or connected component analysis to preprocess the binary mask images of the endothelium and adventitia of the target blood vessel to ensure that the segmentation results of the endothelium and adventitia of the target blood vessel are single connected areas, thereby obtaining the preprocessed binary mask image of the endothelium and the binary mask image of the adventitia.
[0082] In an embodiment of the present application, the endocardium region representing the target blood vessel is determined based on the first value and the second value in the binary mask image of the endocardium, and the adventitia region representing the target blood vessel is determined based on the first value and the second value in the binary mask image of the adventitia. By performing contour extraction on the endocardium region and the adventitia region respectively, the preprocessed binary mask image of the endocardium and the binary mask image of the adventitia are traversed respectively, and the position of each pixel point on the contour of the endocardium and the adventitia of the target blood vessel is determined using a contour extraction algorithm to obtain each endocardium edge point and each adventitia edge point, thereby determining an initial endocardium edge point set and an initial adventitia edge point set.
[0083] Based on the above embodiments, as an optional embodiment, the method for determining the intimal edge point set and the adventitial edge point set is as follows: Figure 9 The specific contents are as follows: S601, determining an intimal outlier point in an intimal edge point set according to the pixel coordinate values of each intimal edge point, and determining an adventitial outlier point in an adventitial edge point set according to the pixel coordinate values of each adventitial edge point; S602, deleting outlier points from the intimal edge point set and the adventitia edge point set, and interpolating new intimal edge points at positions corresponding to the intimal outlier points in the intimal edge point set, and interpolating new adventitia edge points at positions corresponding to the adventitia outlier points in the adventitia edge point set, to obtain the intimal edge point set and the adventitia edge point set of the target blood vessel; In S601 of the embodiment of the present application, the pixel coordinate values of the outliers are usually very different from those of the surrounding edge points. Therefore, the pixel coordinate values of each inner membrane edge point and the pixel coordinate values of each outer membrane edge point are determined, and then one or more algorithms such as sliding mean or sliding median and local outlier factor are used to determine the outliers in the inner membrane edge point set and the outliers in the outer membrane edge point set.
[0084] In S602 of the example of the present application, the corresponding outlier points in the endocardial edge point set and the adventitia edge point set are deleted, and then new endocardial edge points are interpolated at the positions corresponding to each endocardial outlier point in the endocardial edge point set, and new adventitia edge points are interpolated at the positions corresponding to each outlier point in the adventitia edge point set, thereby obtaining an endocardial edge point set and an adventitia edge point set that can be used to obtain the first matching point pair. For example, bilinear interpolation is used to supplement the edge points at the vacant positions, and the coordinates of the supplemented edge points are correspondingly added to the endocardial edge point set and the adventitia edge point set, thereby obtaining an endocardial edge point set and an adventitia edge point set that can be used to determine the first matching point pair.
[0085] In an embodiment of the present application, the coordinates of the new endocardial edge point are obtained based on the coordinates of the endocardial edge points in the endocardial edge point set excluding the endocardial outlier points, and the coordinates of the new adventitia edge point are obtained based on the coordinates of the adventitia edge points in the adventitia edge point set excluding the adventitia outlier points.
[0086] In the embodiment of the present application, for the intimal edge point set or the adventitial edge point set, a new interpolated edge point may be determined by using the coordinate values of two edge points adjacent to the outlier.
[0087] In the embodiments of this application, In the above scheme, by determining the outliers in the intima edge point set and the adventitia edge point set, deleting the corresponding outliers, and interpolating new edge points, the accuracy of subsequent matching point pair determination can be ensured, thereby improving the measurement accuracy of vascular wall thickness.
[0088] refer to Figure 10 As shown, it exemplarily shows a schematic diagram of a method for measuring the thickness of a blood vessel wall and determining matching point pairs based on a transverse blood vessel medical image. The specific contents are as follows: like Figure 10 As shown, points A, E and C are inner membrane edge points, points B, F and D are outer membrane edge points, the first inner membrane edge point A and the first outer membrane edge point B together constitute a first matching point pair (A, B), the first inner membrane edge point C and the first outer membrane edge point D together constitute a first matching point pair (C, D), and at least one second matching point pair corresponding to the adjacent first matching point pairs (A, B) and (C, D) includes a second matching point pair (E, F) composed of the second inner membrane point E and the second outer membrane point F.
[0089] It should be noted that when measuring the vascular wall thickness of the target blood vessel based on the longitudinal vascular medical image, the method used is completely consistent with the vascular wall thickness measurement method provided in the embodiment of the present application, that is, the vascular wall thickness measurement method provided in the present application can use longitudinal vascular medical images or transverse vascular medical images.
[0090] In the embodiment of the present application, after determining the vascular wall thickness at each location of the target blood vessel, data such as the average value, minimum value, and maximum value of the intima-media of the entire target blood vessel can be obtained for vascular health detection.
[0091] The vascular wall thickness measurement method provided in an embodiment of the present application calculates symmetrical nearest neighbor points as first matching point pairs and marks the locally parallel locations of the blood vessels. Then, the angle between two adjacent sets of first matching point pairs is used to analyze changes in the curvature of the blood vessels, thereby selecting corresponding second matching points. Based on the Euclidean distances between the corresponding intimal edge points and adventitial edge points within the first and second matching point pairs, the distribution of vascular wall thickness at various locations of the target vessel is determined, thereby determining the locations of intima-media thickening and plaque formation in the target vessel. The method has the advantages of fast response speed, comprehensive vascular wall thickness calculation, and high accuracy. Furthermore, the method can be applied to vascular wall thickness measurement in both transverse and longitudinal views, adapting to different vascular morphologies. Computational efficiency is improved by searching for matching points in the intima and adventitia of the vessel. A visual representation of the matching point pairs is provided, and the locations of intima-media thickening and plaque formation in the vessel are marked based on the vascular wall thickness, thereby providing clinicians with more accurate diagnostic information and facilitating disease monitoring and prevention.
[0092] The present application provides a device for measuring the thickness of a blood vessel wall. Figure 11 As shown, the device 110 for measuring the thickness of a blood vessel wall may include: an acquisition module 1101 , a first determination module 1102 , a second determination module 1103 and a processing module 1104 .
[0093] Specifically, the acquisition module 1101 is configured to acquire an intimal edge point set and an adventitial edge point set of a target blood vessel; the intimal edge point set includes the coordinates of each intimal edge point of the target blood vessel, and the adventitial edge point set includes the coordinates of each adventitial edge point of the target blood vessel; A first determining module 1102 is configured to determine at least one first matching point pair based on the intimal edge point set and the adventitia edge point set; each first matching point pair includes a first intimal edge point in the intimal edge point set and a first adventitia edge point in the adventitia edge point set that are closest to each other; A second determining module 1103 is configured to determine at least one second matching point pair based on all two adjacent first matching point pairs, the intimal edge point set, and the adventitial edge point set; each second matching point pair includes a second intimal edge point and a second adventitial edge point, the second intimal edge point and the second adventitial edge point being located within a first region formed by the two adjacent first matching point pairs, and the coordinates of the four vertices of the first region are respectively the coordinates of the two adjacent first matching point pairs; Processing module 1104 is used to obtain the vascular wall thickness at multiple locations in the target blood vessel, where each location refers to an intima edge point and an adventitia edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness at the location is the distance between the corresponding intima edge point and the adventitia edge point.
[0094] The device for measuring the thickness of a blood vessel wall provided in an embodiment of the present application determines at least one first matching point pair by acquiring an intimal edge point set including the coordinates of each intimal edge point of a target blood vessel and an adventitial edge point set including the coordinates of each adventitial edge point of each target blood vessel. Each first matching point pair includes a first intimal edge point in the intimal edge point set and a first adventitial edge point in the adventitial edge point set that are closest to each other. At least one second matching point pair is determined based on all two adjacent first matching point pairs, the second matching point pair including a second intimal edge point and a second adventitial edge point, the second intimal edge point and the second adventitial edge point being located within a first region defined by the two adjacent first matching point pairs, the coordinates of the four vertices of the first region being the coordinates of the two adjacent first matching point pairs. The vascular wall thickness at multiple locations in the target vessel is obtained, each location being defined by an intimal edge point and an adventitial edge point from one of the first matching point pairs or one of the second matching point pairs, the vascular wall thickness at each location being the distance between the corresponding intimal edge point and adventitial edge point. The first matching point pair is determined by calculating and determining the closest intimal edge point and adventitial edge point to each other, thereby determining the locally parallel position of the target vessel. Then, based on the positions of the two adjacent first matching point pairs, the second adventitial edge point and the second intimal edge point that can establish a matching relationship between the adjacent matching point pairs are determined. Thus, the vascular wall thickness at each location in the target vessel can be obtained based on the first matching point pair and the second matching point pair, thereby achieving vascular wall thickness measurement applicable to both transverse and longitudinal sections of the vessel, adapting to different vascular morphologies, and improving measurement accuracy.
[0095] The device of the embodiment of the present application can execute the method provided by the embodiment of the present application, and its implementation principle is similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, and will not be repeated here.
[0096] Furthermore, in one possible implementation, For every two adjacent first matching point pairs, determining a first area corresponding to the adjacent first matching point pairs; If it is determined that there are intima edge points and adventitia edge points in the first area, one of the first matching point pairs is used as the first matching point pair, and the other matching point pair is used as the second matching point pair; a first line segment is determined based on the coordinates of the first intima edge point and the first adventitia edge point of the first matching point pair, a second line segment is determined based on the coordinates of the first intima edge point and the first adventitia edge point of the second matching point pair, and an angle between the first line segment and the second line segment is determined; If the angle between the first line segment and the second line segment is not greater than the angle threshold, determining a center line based on the first line segment and the second line segment, and determining at least one second matching point pair based on the projection lengths of each second intima edge point and each second adventitia edge point on the center line; the center line is a line obtained by connecting the center points of the first line segment and the second line segment; If the angle between the first line segment and the second line segment is greater than the angle threshold, the first line segment and the second line segment are extended to determine the intersection of the extended first line segment and the extended second line segment, and at least one second matching point pair is determined based on the angle between the line segment formed by each second inner membrane edge point and each second outer membrane edge point and the intersection point and the extended first line segment.
[0097] In another possible implementation, a vector of the center line is determined based on the coordinates of the center point of the first line segment and the coordinates of the center point of the second line segment; For each second intimal edge point, determining the projection length of the second intimal edge point on the center line according to the coordinates of the intimal edge point and the vector of the center line; For each second adventitial edge point, determining the projection length of the second adventitial edge point on the center line according to the coordinates of the adventitial edge point and the vector of the center line; If the number of the second intima edge points in the first region is not greater than the number of the second adventitia edge points, then for each second intima edge point, the second adventitia edge point having the smallest difference in projection length with the second intima edge point is selected from the second adventitia edge points to form a second matching point pair; If the number of second outer membrane edge points in the first region is not greater than the number of second inner membrane edge points, then for each second outer membrane edge point, the second inner membrane edge point with the smallest difference in projection length from the second outer membrane edge point is selected from the second inner membrane edge points to form a second matching point pair.
[0098] In yet another possible implementation, the coordinates of the intersection point are determined according to the first line segment and the second line segment; For each second intimal edge point, connect the second intimal edge point with the intersection point to obtain a third line segment, and determine the angle between the extended first line segment and the third line segment; For each second adventitial edge point, connect the second adventitial edge point with the intersection point to obtain a fourth line segment, and determine the magnitude of the angle between the extended first line segment and the fourth line segment; If the number of the second intimal edge points in the first region is not greater than the number of the second adventitial edge points, then for each second intimal edge point, the second adventitial edge point having the smallest angle difference with the second intimal edge point is selected from the second adventitial edge points to form a second matching point pair; If the number of second outer membrane edge points in the first region is not greater than the number of second inner membrane edge points, then for each second outer membrane edge point, the second inner membrane edge point with the smallest angle difference with the second outer membrane edge point is selected from the second inner membrane edge points to form a second matching point pair.
[0099] In another possible implementation, after obtaining the vessel wall thicknesses at multiple locations in the target vessel, for each location, if the vessel wall thickness is greater than a first thickness threshold and less than a second thickness threshold, the location is determined as a location of intima-media thickening of the target vessel. For the blood vessel wall thickness at each location, if the blood vessel wall thickness is greater than a second thickness threshold, the location is regarded as a location where plaque is formed in the target blood vessel.
[0100] In another possible implementation, for each intimal edge point in the intimal edge point set, a Euclidean distance between the intimal edge point and any adventitial edge point in the adventitial edge point set is determined based on the coordinates of the intimal edge point, and the adventitial edge point with the smallest Euclidean distance to the intimal edge point is selected as the target adventitial edge point. If it is determined that the Euclidean distance between the target outer membrane edge point and the inner membrane edge point is less than the Euclidean distance between the target outer membrane edge point and other inner membrane edge points in the inner membrane edge point set, the inner membrane edge point is taken as the first inner membrane edge point, and the target outer membrane edge point is taken as the first outer membrane edge point to determine the first matching point pair.
[0101] In another possible implementation, Obtaining a binary mask image of the target blood vessel; When the binary mask image is a binary mask image of a longitudinal blood vessel, the maximum and minimum values of the longitudinal coordinates of the pixel points corresponding to the first value are extracted from left to right, the coordinates of the pixel point corresponding to the minimum value are used as the coordinates of the intima edge point, and the coordinates of the pixel point corresponding to the maximum value are used as the coordinates of the adventitia edge point; When the binary mask image is a binary mask image of a transverse blood vessel, the binary mask image of the target blood vessel includes a binary mask image of the endothelium and a binary mask image of the adventitia, the binary mask images of the endothelium and the adventitia are preprocessed respectively, contour extraction is performed on the preprocessed binary mask image of the endothelium, and coordinates of pixels on the endothelium contour are used as coordinates of the endothelium edge point; contour extraction is performed on the preprocessed binary mask image of the adventitia, and coordinates of pixels on the adventitia contour are used as coordinates of the adventitia edge point; Determining an intima edge point set and an adventitia edge point set of a target blood vessel according to each intima edge point and each adventitia edge point; The tunica intima and the adventitia in the preprocessed binary mask image are both simply connected regions, the first value of the mask in the binary mask image of the tunica intima is used to characterize the tunica intima region of the target vessel, the first value of the binary mask image of the adventitia is used to characterize the adventitia region of the target vessel, and the second value of the mask in the binary mask images of the tunica intima and adventitia is used to characterize other regions of the target vessel. In another possible implementation, Determine the intimal outlier points in the intimal edge point set according to the pixel coordinate values of each intimal edge point, and determine the adventitia outlier points in the adventitia edge point set according to the pixel coordinate values of each adventitia edge point; Deleting each outlier point from the intima edge point set and the adventitia edge point set, and interpolating a new intima edge point at a position corresponding to each outlier point in the intima edge point set, and interpolating a new adventitia edge point at a position corresponding to each outlier point in the adventitia edge point set, to obtain the intima edge point set and the adventitia edge point set of the target blood vessel; The coordinates of the new intima edge point are obtained based on the coordinates of the intima edge points in the intima edge point set excluding the intima outlier points, and the coordinates of the new adventitia edge point are obtained based on the coordinates of the adventitia edge points in the adventitia edge point set excluding the adventitia outlier points.
[0102] In an embodiment of the present application, an electronic device (computer device / equipment / system) is provided, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the method for measuring the thickness of a blood vessel wall. Compared with the related art, the method can achieve the following: determining at least one first matching point pair by obtaining an intimal edge point set including the coordinates of each intimal edge point of a target blood vessel and an adventitia edge point set including the coordinates of each adventitia edge point of each target blood vessel, each first matching point pair including a first intimal edge point in the intimal edge point set and a first adventitia edge point in the adventitia edge point set that are closest to each other. Edge points: Based on all two adjacent first matching point pairs, at least one second matching point pair is determined. The second matching point pair includes a second intimal edge point and a second adventitial edge point. The second intimal edge point and the second adventitial edge point are located within a first region defined by the two adjacent first matching point pairs, and the coordinates of the four vertices of the first region are the coordinates of the two adjacent first matching point pairs. The vessel wall thickness at multiple locations in the target vessel is obtained. Each location is defined by an intimal edge point and an adventitial edge point from one of the first matching point pairs or one of the second matching point pairs. The vessel wall thickness at each location is the distance between the corresponding intimal edge point and adventitial edge point. The first matching point pair is determined by calculating and determining the closest intimal edge point and adventitial edge point to each other, thereby determining the locally parallel position of the target vessel. Then, based on the positions of the two adjacent first matching point pairs, second adventitial edge points and second intimal edge points that can establish a matching relationship between the adjacent matching point pairs are determined. Thus, the vessel wall thickness at each location in the target vessel can be obtained based on the first matching point pair and the second matching point pair. This allows the vessel wall thickness to be measured for both transverse and longitudinal sections of the vessel, adapting to different vessel morphologies and improving measurement accuracy.
[0103] In an alternative embodiment, an electronic device is provided, such as Figure 12 As shown, Figure 12The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0104] Processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0105] Bus 4002 may include a path for transmitting information between the above components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0106] The memory 4003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0107] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0108] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 12 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0109] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, the present invention can achieve the following: determining at least one first matching point pair by acquiring an intima edge point set including the coordinates of each intima edge point of a target blood vessel and an adventitia edge point set including the coordinates of each adventitia edge point of each target blood vessel, wherein each first matching point pair includes a first intima edge point in the intima edge point set and a first adventitia edge point in the adventitia edge point set that are the closest points to each other; determining at least one second matching point pair based on all two adjacent first matching point pairs, wherein the second matching point pair includes a second intima edge point and a second adventitia edge point, wherein the second intima edge point and the second adventitia edge point are located in a first area formed by the two adjacent first matching point pairs, wherein the coordinates of the four vertices of the first area are respectively the coordinates of the two adjacent first matching point pairs; and obtaining the vascular wall thickness at multiple locations in the target blood vessel, wherein each location is formed by an intima edge point and an adventitia edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness at each location is the distance between the corresponding intima edge point and adventitia edge point. The first matching point pair is determined by calculating the closest intima edge point and adventitia edge point to each other, and the local parallel position of the target blood vessel is determined. Then, based on the positions of the two adjacent first matching point pairs, the second adventitia edge point and the second intima edge point that can establish a matching relationship between the adjacent matching point pairs are determined. Therefore, the vascular wall thickness of the target blood vessel at various positions can be obtained based on the first matching point pair and the second matching point pair, realizing that the measurement of vascular wall thickness can be applied to both transverse and longitudinal sections of blood vessels, adapting to different vascular morphologies, and improving measurement accuracy.
[0110] It should be noted that the computer-readable medium mentioned in the present disclosure may be a computer-readable signal medium or a computer-readable medium, or any combination thereof. Computer-readable storage media may include, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wire, optical cable, RF (radio frequency), or any suitable combination thereof.
[0111] The present application also provides a computer program product, including a computer program, which, when executed by a processor, can implement the steps and corresponding contents of the aforementioned method embodiment. Compared with the prior art, the present application also provides: determining at least one first matching point pair by acquiring an intimal edge point set including the coordinates of each intimal edge point of a target blood vessel and an adventitial edge point set including the coordinates of each adventitial edge point of each target blood vessel, wherein each first matching point pair includes a first intimal edge point in the intimal edge point set and a first adventitial edge point in the adventitial edge point set that are closest to each other; determining at least one second matching point pair based on all two adjacent first matching point pairs, wherein the second matching point pair includes a second intimal edge point and a second adventitial edge point, wherein the second intimal edge point and the second adventitial edge point are located in a first region formed by the two adjacent first matching point pairs, wherein the coordinates of the four vertices of the first region are the coordinates of the two adjacent first matching point pairs; and obtaining the vascular wall thickness at multiple locations in the target blood vessel, wherein each location is formed by an intimal edge point and an adventitial edge point in a first matching point pair or a second matching point pair, wherein the vascular wall thickness at each location is the distance between the corresponding intimal edge point and adventitial edge point. The first matching point pair is determined by calculating the closest intima edge point and adventitia edge point to each other, and the local parallel position of the target blood vessel is determined. Then, based on the positions of the two adjacent first matching point pairs, the second adventitia edge point and the second intima edge point that can establish a matching relationship between the adjacent matching point pairs are determined. Therefore, the vascular wall thickness of the target blood vessel at various positions can be obtained based on the first matching point pair and the second matching point pair, realizing that the measurement of vascular wall thickness can be applied to both transverse and longitudinal sections of blood vessels, adapting to different vascular morphologies, and improving measurement accuracy.
[0112] In the specification and claims of this application and the accompanying drawings, the terms "first," "second," "third," "fourth," "1," "2," and so on (if any) are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the present application described herein can be practiced in an order other than that shown or described.
[0113] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the order of implementation of these steps is not limited to the order indicated by the arrows. Unless otherwise clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart can include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times respectively. Under different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0114] The above are only optional implementation methods for some implementation scenarios of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of this application, the use of other similar implementation methods based on the technical ideas of this application also falls within the protection scope of the embodiments of this application.
Claims
1. A method for measuring blood vessel wall thickness, characterized in that: include: Acquire an intimal edge point set and an adventitial edge point set of a target blood vessel; the intimal edge point set includes the coordinates of each intimal edge point of the target blood vessel, and the adventitial edge point set includes the coordinates of each adventitial edge point of the target blood vessel; Determining at least one first matching point pair based on the intimal edge point set and the adventitial edge point set; each first matching point pair includes a first intimal edge point in the intimal edge point set and a first adventitial edge point in the adventitial edge point set that are closest points to each other; At least one second matching point pair is determined based on all two adjacent first matching point pairs, the intimal edge point set and the adventitial edge point set; each second matching point pair includes a second intimal edge point and a second adventitial edge point, the second intimal edge point and the second adventitial edge point are located in a first area formed by the two adjacent first matching point pairs, and the coordinates of the four vertices of the first area are respectively the coordinates of the two adjacent first matching point pairs; the vascular wall thickness of multiple positions in the target blood vessel is obtained, wherein each position refers to an intimal edge point and an adventitial edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness of the position is the distance between the corresponding intimal edge point and the adventitial edge point.
2. The method according to claim 1, characterized in that The determining of at least one second matching point pair based on all two adjacent first matching point pairs and based on the intima edge point set and the adventitia edge point set includes: For every two adjacent first matching point pairs, determining a first area corresponding to the adjacent first matching point pairs; If it is determined that there are endocardial edge points and adventitia edge points in the first area, one of the first matching point pairs is used as the first matching point pair, and the other matching point pair is used as the second matching point pair; a first line segment is determined based on the coordinates of the first endocardial edge point and the first adventitia edge point of the first matching point pair, a second line segment is determined based on the coordinates of the first endocardial edge point and the first adventitia edge point of the second matching point pair, and an angle between the first line segment and the second line segment is determined; If the angle between the first line segment and the second line segment is not greater than the angle threshold, determining a center line based on the first line segment and the second line segment, and determining at least one second matching point pair based on the projection lengths of each second intima edge point and each second adventitia edge point on the center line; the center line is a line obtained by connecting the center points of the first line segment and the second line segment; If the angle between the first line segment and the second line segment is greater than the angle threshold, the first line segment and the second line segment are extended to determine the intersection of the extended first line segment and the extended second line segment, and at least one second matching point pair is determined based on the angle between the line segments formed by each second inner membrane edge point and each second outer membrane edge point and the intersection and the extended first line segment.
3. The method according to claim 2, characterized in that Determining at least one second matching point pair according to the projection lengths of each second intima edge point and each second adventitia edge point on the center line includes: Determining a vector of the center line according to the coordinates of the center point of the first line segment and the coordinates of the center point of the second line segment; For each second intimal edge point, determining a projection length of the second intimal edge point on the center line according to the coordinates of the intimal edge point and the vector of the center line; For each second epicardial edge point, determining a projection length of the second epicardial edge point on the center line according to the coordinates of the epicardial edge point and the vector of the center line; If the number of second intimal edge points in the first region is not greater than the number of second adventitial edge points, for each second intimal edge point, select from among the second adventitial edge points a second adventitial edge point having the smallest difference in projection length with the second intimal edge point to form a second matching point pair; If the number of second outer membrane edge points in the first area is not greater than the number of second inner membrane edge points, for each second outer membrane edge point, the second inner membrane edge point with the smallest difference in projection length from the second outer membrane edge point is selected from the second inner membrane edge points to form the second matching point pair.
4. The method according to claim 2, characterized in that Determining at least one second matching point pair according to the angle between a line segment formed by each second intima edge point and each second adventitia edge point and the intersection point and the extended first line segment includes: determining the coordinates of the intersection point according to the first line segment and the second line segment; For each second intimal edge point, connect the second intimal edge point with the intersection point to obtain a third line segment, and determine the magnitude of the angle between the extended first line segment and the third line segment; For each second adventitial edge point, connect the second adventitial edge point with the intersection point to obtain a fourth line segment, and determine the magnitude of the angle between the extended first line segment and the fourth line segment; If the number of second intimal edge points in the first region is not greater than the number of second adventitial edge points, for each second intimal edge point, select from among the second adventitial edge points the second adventitial edge point with the smallest angle difference to form a second matching point pair; If the number of second outer membrane edge points in the first area is not greater than the number of second inner membrane edge points, for each second outer membrane edge point, the second inner membrane edge point with the smallest angle difference with the second outer membrane edge point is selected from the second inner membrane edge points to form the second matching point pair.
5. The method according to claim 1, wherein After obtaining the vascular wall thickness at multiple locations in the target blood vessel, the method further includes: For the vascular wall thickness at each location, if the vascular wall thickness is greater than a first thickness threshold and less than a second thickness threshold, the location is regarded as the location of intima-media thickening of the target blood vessel; For the blood vessel wall thickness at each location, if the blood vessel wall thickness is greater than a second thickness threshold, the location is regarded as a location where plaque is formed in the target blood vessel.
6. The method according to claim 1, characterized in that The determining of at least one first matching point pair according to the intimal edge point set and the adventitial edge point set includes: For each intimal edge point in the intimal edge point set, determining the Euclidean distance between the intimal edge point and any adventitial edge point in the adventitial edge point set according to the coordinates of the intimal edge point, and taking the adventitial edge point with the smallest Euclidean distance to the intimal edge point as the target adventitial edge point; If it is determined that the Euclidean distance between the target outer membrane edge point and the inner membrane edge point is less than the Euclidean distance between the target outer membrane edge point and other inner membrane edge points in the inner membrane edge point set, the inner membrane edge point is taken as the first inner membrane edge point, and the target outer membrane edge point is taken as the first outer membrane edge point to determine the first matching point pair.
7. The method according to claim 1, characterized in that The step of obtaining the intima edge point set and the adventitia edge point set of the target blood vessel includes: Acquiring a binary mask image of the target blood vessel; When the binary mask image is a binary mask image of a longitudinal blood vessel, extracting the maximum and minimum values of the longitudinal coordinates of the pixel points corresponding to the first value from left to right, using the coordinates of the pixel point corresponding to the minimum value as the coordinates of the intima edge point, and using the coordinates of the pixel point corresponding to the maximum value as the coordinates of the adventitia edge point; When the binary mask image is a binary mask image of a transverse blood vessel, the binary mask image of the target blood vessel includes a binary mask image of the endothelium and a binary mask image of the adventitia, the binary mask images of the endothelium and the adventitia are preprocessed respectively, contour extraction is performed on the preprocessed binary mask image of the endothelium, and the coordinates of the pixel points on the endothelium contour are used as the coordinates of the endothelium edge point; contour extraction is performed on the preprocessed binary mask image of the adventitia, and the coordinates of the pixel points on the adventitia contour are used as the coordinates of the adventitia edge point; Determining the intimal edge point set and the adventitial edge point set of the target blood vessel according to each intimal edge point and each adventitial edge point; In which, the endothelium and adventitia in the preprocessed binary mask image are both simply connected areas, the first value of the mask in the binary mask image of the endothelium is used to characterize the endothelium area of the target blood vessel, the first value of the binary mask image of the adventitia is used to characterize the adventitia area of the target blood vessel, and the second value of the mask in the binary mask images of the endothelium and adventitia is used to characterize other areas of the target blood vessel.
8. The method according to claim 7, characterized in that The step of determining the intimal edge point set and the adventitial edge point set of the target blood vessel according to each intimal edge point and each adventitial edge point comprises: Determine an intimal outlier point in the intimal edge point set according to the pixel coordinate values of each intimal edge point, and determine an adventitial outlier point in the adventitial edge point set according to the pixel coordinate values of each adventitial edge point; Deleting respective outlier points from the intimal edge point set and the adventitial edge point set, and interpolating new intimal edge points at positions corresponding to respective intimal outlier points in the intimal edge point set, and interpolating new adventitial edge points at positions corresponding to respective adventitial outlier points in the adventitial edge point set, to obtain the intimal edge point set and the adventitial edge point set of the target blood vessel; The coordinates of the new endocardial edge point are obtained based on the coordinates of the endocardial edge points in the endocardial edge point set except the endocardial outlier point, and the coordinates of the new adventitia edge point are obtained based on the coordinates of the adventitia edge points in the adventitia edge point set except the adventitia outlier point.
9. A device for measuring blood vessel wall thickness, characterized in that: include: an acquisition module, configured to acquire an intimal edge point set and an adventitial edge point set of a target blood vessel; the intimal edge point set includes the coordinates of each intimal edge point of the target blood vessel, and the adventitial edge point set includes the coordinates of each adventitial edge point of the target blood vessel; a first determining module, configured to determine at least one first matching point pair based on the intimal edge point set and the adventitial edge point set; each first matching point pair comprising a first intimal edge point in the intimal edge point set and a first adventitial edge point in the adventitial edge point set that are closest points to each other; A second determination module is used to determine at least one second matching point pair based on all two adjacent first matching point pairs, the intimal edge point set and the adventitial edge point set; each second matching point pair includes a second intimal edge point and a second adventitial edge point, the second intimal edge point and the second adventitial edge point are located in a first area formed by two adjacent first matching point pairs, and the coordinates of the four vertices of the first area are respectively the coordinates of the two adjacent first matching point pairs; a processing module is used to obtain the vascular wall thickness at multiple positions in the target blood vessel, wherein each position refers to an intimal edge point and an adventitial edge point in a first matching point pair or a second matching point pair, and the vascular wall thickness at the position is the distance between the corresponding intimal edge point and the adventitial edge point.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory, wherein: The processor executes the computer program to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.