Method and device for determining transvenous diameter
By obtaining the transvein venous skeleton image in the ultrasound image computer-assisted diagnosis and treatment system and calculating the intersection point between the target normal and the transvein contour, the accuracy of transvein diameter measurement is solved, and efficient transvein diameter measurement is achieved.
Patent Information
- Application Number
- CN202411066601.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-13
AI Technical Summary
In ultrasound image computer-assisted diagnosis and treatment systems, it is difficult for the prior art to accurately determine the diameter of the venous tube, which affects the treatment effect.
By obtaining the image of the venous skeleton, the target normal corresponding to the node in the venous skeleton is determined, and the tube diameter is calculated based on the intersection of the target normal and the vein profile, and the final vein diameter is determined using the Euro-type distance.
Improves the measurement efficiency and accuracy of the penetration venous diameter, providing an efficient method to accurately measure the penetration venous diameter based on the penetration venous image.
Smart Images

Figure CN119131110A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical technology, and in particular to a method and device for determining the diameter of a perforating vein. Background Art
[0002] In the ultrasound image computer-assisted diagnosis and treatment system, artificial intelligence technology, computer vision, image processing and other technologies are often used to analyze and diagnose the ultrasound images collected by doctors and give diagnostic reports to reduce the heavy repetitive work of grassroots doctors and improve the accuracy of diagnosis.
[0003] In clinical practice, ultrasound doctors scan the patient's perforating veins in real time to diagnose them. Therefore, how to accurately determine the diameter of the perforating vein based on the perforating vein image so as to effectively treat the patient is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] The invention provides a method and a device for determining the diameter of a perforating vein, which are used for accurately determining the diameter of a perforating vein.
[0005] The present invention provides a method for determining the diameter of a perforating vein, comprising the following steps.
[0006] Acquire a perforating vein skeleton image; Determine, according to the perforating vein skeleton image, a target normal corresponding to each node in the perforating vein skeleton; the target normal is perpendicular to a tangent of the node in the perforating vein skeleton; For each node in the perforating vein skeleton, determining a first intersection point and a second intersection point of the target normal line and the perforating vein contour; The diameter of the perforating vein is determined according to the first intersection point and the second intersection point.
[0007] According to a method for determining the diameter of a perforating vein provided by the present invention, determining a target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image includes: Determining the tangent slope corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; Determine the normal slope corresponding to each node on the perforating vein skeleton according to the tangent slope corresponding to each node; According to the normal slopes corresponding to the nodes on the perforating vein skeleton and the coordinates of the nodes on the perforating vein skeleton image, the target normals corresponding to the nodes in the perforating vein skeleton are determined.
[0008] According to a method for determining the diameter of a perforating vein provided by the present invention, determining the tangent slope corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image includes: For any node, the tangent slope corresponding to the node in the perforating vein skeleton is determined according to the coordinates of a first node and a second node adjacent to the node on the perforating vein skeleton image.
[0009] According to a method for determining the diameter of a perforating vein provided by the present invention, for each node in the perforating vein skeleton, determining a first intersection point and a second intersection point of the target normal line and the perforating vein contour comprises: For each node in the perforating vein skeleton, determine a target line segment according to the intersection of the target normal and the circumscribed rectangle of the perforating vein; The distances between each pixel point on the target line segment and each pixel point on the perforating vein contour are traversed to determine a first intersection point and a second intersection point between the target normal line and the perforating vein contour.
[0010] According to a method for determining the diameter of a perforating vein provided by the present invention, determining the diameter of the perforating vein according to the first intersection point and the second intersection point includes: For each target normal line, determining a Euclidean distance between the first intersection point and the second intersection point; The largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines is used as the perforating vein diameter.
[0011] According to a method for determining the diameter of a perforating vein provided by the present invention, the step of obtaining a skeleton image of the perforating vein comprises: Acquire a binary image of the perforating vein; Acquire a region of interest (ROI) transvenous binary image based on the transvenous binary image; Performing morphological corrosion processing on the ROI perforating vein binary image to obtain the perforating vein contour; The perforating vein skeleton image is acquired according to the perforating vein contour.
[0012] The present invention also provides a method for determining the diameter of a perforating vein, comprising the following modules: An acquisition module, used for acquiring a perforating vein skeleton image; A first determination module is used to determine a target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; the target normal is perpendicular to a tangent of the node in the perforating vein skeleton; A second determination module is used to determine, for each node in the perforating vein skeleton, a first intersection point and a second intersection point of the target normal line and the perforating vein contour; The third determination module is used to determine the diameter of the perforating vein according to the first intersection point and the second intersection point.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-described methods for determining the diameter of a perforating vein is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for determining the diameter of a perforating vein as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for determining the diameter of a perforating vein as described above is implemented.
[0016] The method and device for determining the diameter of the perforating vein provided by the present invention, after acquiring the perforating vein skeleton image, determine the target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image, and further finally determine the diameter of the perforating vein according to the distance between the target normal and the two intersection points of the perforating vein contour, thereby efficiently and accurately measuring the diameter of the perforating vein based on the perforating vein image, effectively improving the measurement efficiency and accuracy of the diameter of the perforating vein. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a schematic flow chart of the method for determining the diameter of a transvenous tube provided by the present invention.
[0019] Figure 2 Schematic diagram of the perforating vein skeleton provided by the present invention.
[0020] Figure 3 It is a schematic diagram of target normals corresponding to various nodes in the perineal skeleton provided by the present invention.
[0021] Figure 4 It is a schematic diagram of the process of determining the tangent slope and the normal slope corresponding to each node in the perforating vein skeleton provided by the present invention.
[0022] Figure 5 It is a schematic diagram of the diameter of the vein provided by the present invention.
[0023] Figure 6 It is a schematic diagram of a binary image of a perforating vein provided by the present invention.
[0024] Figure 7 It is a schematic diagram of a binary image of a region of interest ROI transvenous vein provided by the present invention.
[0025] Figure 8 It is a schematic diagram of a transvenous corrosion image provided by the present invention.
[0026] Fig. 9 It is a structural schematic diagram of the device for determining the diameter of a transvenous tube provided by the present invention.
[0027] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] Combine the following Figure 1-Figure 10 The present invention describes a method and device for determining the diameter of a perforating vein.
[0030] Figure 1 FIG. 1 is a flow chart of a method for determining the diameter of a transvenous tube provided by the present invention. Figure 1 As shown, the method includes the following: Step 101: Acquire a perforating vein skeleton image.
[0031] Specifically, in order to accurately determine the diameter of the perforating vein, in the embodiment of the present application, a perforating vein skeleton image is first obtained. Optionally, a skeleton extraction can be performed on the perforating vein image to obtain a perforating vein skeleton image. For example, the perforating vein skeleton image is as follows: Figure 2 shown.
[0032] Step 102: Determine a target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; the target normal is perpendicular to the tangent of the node in the perforating vein skeleton.
[0033] Specifically, after acquiring the perineum skeleton image, the target normal corresponding to each node in the perineum skeleton is determined in the embodiment of the present application; wherein the target normal is perpendicular to the tangent of the node in the perineum skeleton. Optionally, the perineum skeleton can be discretely sampled to obtain each node in the skeleton. Exemplarily, the target normal corresponding to each node in the perineum skeleton is as follows: Figure 3 shown.
[0034] Step 103: for each node in the perforating vein skeleton, determine a first intersection point and a second intersection point between the target normal line and the perforating vein contour.
[0035] Specifically, after determining the target normal corresponding to each node in the perforating vein skeleton, the first intersection point and the second intersection point of the target normal and the perforating vein contour are further determined in the embodiment of the present application. Figure 3 As shown, each node in the perforating vein skeleton has a corresponding target normal line, and each target normal line has two intersection points with the perforating vein contour.
[0036] Step 104: Determine the diameter of the perforating vein according to the first intersection point and the second intersection point.
[0037] Specifically, after determining the first intersection point and the second intersection point of the target normal and the perforating vein contour for each node in the perforating vein skeleton, in the embodiment of the present application, the distance between the first intersection point and the second intersection point can be used as the perforating vein diameter.
[0038] The method of the above embodiment, after acquiring the perforating vein skeleton image, determines the target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image, and further determines the perforating vein diameter according to the distance between the target normal and the two intersection points of the perforating vein contour, thereby efficiently and accurately measuring the perforating vein diameter based on the perforating vein image, effectively improving the measurement efficiency and accuracy of the perforating vein diameter.
[0039] In one implementation, determining target normals corresponding to nodes in the transvenous skeleton according to the transvenous skeleton image includes: According to the perforating vein skeleton image, determining the tangent slope corresponding to each node in the perforating vein skeleton; According to the tangent slopes corresponding to each node, the normal slopes corresponding to each node on the perforating vein skeleton are determined; According to the normal slopes corresponding to the nodes on the perforating vein skeleton and the coordinates of the nodes on the perforating vein skeleton image, the target normals corresponding to the nodes in the perforating vein skeleton are determined.
[0040] Specifically, in the embodiment of the present application, the tangent slopes corresponding to the nodes in the perforating vein skeleton are first determined according to the perforating vein skeleton image; for example, Figure 4 As shown, the tangent slope k1 of each node on the skeleton curve is calculated by the coordinates of the two adjacent nodes before and after it. For example, the tangent slope of point B is calculated by the coordinates of points A and C and the slope formula. The tangent slope of point C is calculated by the coordinates of points B and D and the slope formula. By analogy, the tangent slopes corresponding to each node in the perforating vein skeleton can be quickly and accurately determined.
[0041] Optionally, after determining the tangent slope corresponding to each node in the perforating vein skeleton, the normal slope k2 of each node on the skeleton curve can be quickly calculated based on the relationship between the tangent slope and the normal slope, that is, it is only necessary to multiply the tangent slope k1 by a coefficient of -1.
[0042] Optionally, after determining the normal slope corresponding to each node on the perforating vein skeleton, the target normal corresponding to each node in the perforating vein skeleton is determined according to the normal slope corresponding to each node on the perforating vein skeleton and the coordinates of each node; that is, when the normal slope k2 of each node on the skeleton is determined, the straight line equation L of each normal line can be obtained according to the point-slope straight line equation formula, and the target normal corresponding to each node in the perforating vein skeleton is obtained.
[0043] The method of the above embodiment first determines the tangent slope corresponding to each node in the perforating vein skeleton, and then determines the normal slope corresponding to each node on the perforating vein skeleton according to the tangent slope corresponding to each node. Finally, according to the normal slope corresponding to each node on the perforating vein skeleton and the coordinates of each node, the target normal corresponding to each node in the perforating vein skeleton can be quickly and accurately determined, and then according to the intersection of the target normal and the perforating vein contour, the perforating vein diameter can finally be quickly and accurately determined, thereby improving the measurement efficiency and accuracy of the perforating vein diameter.
[0044] In one embodiment, determining the tangent slope corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image includes: For any node, the tangent slope corresponding to the node in the perforating vein skeleton is determined according to the coordinates of the first node and the second node adjacent to the node on the perforating vein skeleton image.
[0045] Specifically, in the embodiment of the present application, for any node, the tangent slope corresponding to the node in the perforating vein skeleton can be quickly and accurately determined according to the coordinates of the first node and the second node adjacent to the node on the perforating vein skeleton image. Figure 4 As shown, the tangent slope k1 of each node on the skeleton curve is calculated by the coordinates of the two adjacent nodes before and after it. For example, the tangent slope of point B is calculated by the coordinates of points A and C and the slope formula. The tangent slope of point C is calculated by the coordinates of points B and D and the slope formula. By analogy, the tangent slopes corresponding to each node in the perforating vein skeleton can be quickly and accurately determined, thereby effectively improving the measurement efficiency of the perforating vein diameter.
[0046] The method of the above embodiment can quickly and accurately determine the tangent slope corresponding to the node in the perforating vein skeleton for any node according to the coordinates of the first node and the second node adjacent to the node on the perforating vein skeleton image, thereby effectively improving the measurement efficiency of the perforating vein diameter.
[0047] In one embodiment, for each node in the perforating vein skeleton, determining a first intersection point and a second intersection point between a target normal line and a perforating vein contour comprises: For each node in the perforating vein skeleton, the target line segment is determined according to the intersection of the target normal and the circumscribed rectangle of the perforating vein; The distances between each pixel point on the target line segment and each pixel point on the perforating vein contour are traversed to determine the first intersection point and the second intersection point of the target normal line and the perforating vein contour.
[0048] Specifically, the perforating vein contour is not a regular and standard mathematical curve, so it is impossible to accurately describe the perforating vein contour using a mathematical expression, and it is also impossible to determine the intersection of the target normal line and the perforating vein contour and the diameter of the perforating vein based on the mathematical curve corresponding to the perforating vein contour. Figure 4 As shown, in the embodiment of the present application, a circumscribed rectangle of the perforating vein is innovatively constructed, and the target line segment GH is determined according to the intersection of the target normal and the circumscribed rectangle of the perforating vein; then, the distance between each pixel point on the target line segment GH and each pixel point on the perforating vein contour is traversed to determine the first intersection point and the second intersection point of the target normal and the perforating vein contour.
[0049] For example, Figure 4 The yellow straight line shown is the normal line of each node on the skeleton. Solve the intersection of the normal line equation and the lines where the four sides of the minimum circumscribed rectangle of the perforating vein contour are located, and you can get two intersection points G and H. Traverse the coordinates of each pixel point on the straight line GH, calculate the distance from each current pixel point to each point on the perforating vein contour, and then determine whether each pixel point is on the perforating vein contour.
[0050] The method of the above embodiment determines the target line segment for each node in the perforating vein skeleton according to the intersection of the target normal and the circumscribed rectangle of the perforating vein; traverses the distance between each pixel point on the target line segment and each pixel point on the perforating vein contour to determine the first intersection point and the second intersection point of the target normal and the perforating vein contour, thereby effectively solving the problem that the perforating vein contour is not a regular and standard mathematical curve and therefore cannot be accurately described by a mathematical expression, and determines the bottleneck and defect of the intersection point of the target normal and the perforating vein contour and the perforating vein diameter based on the mathematical curve corresponding to the perforating vein contour, thereby effectively improving the measurement efficiency and accuracy of the perforating vein diameter.
[0051] In one embodiment, determining the diameter of the perforating vein according to the first intersection point and the second intersection point includes: For each target normal, determine the Euclidean distance between the first intersection point and the second intersection point; The largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines is used as the diameter of the perforating vein.
[0052] Specifically, in the embodiment of the present application, each node in the perforating vein skeleton has a corresponding target normal line, so that for each target normal line, the two intersection points with the perforating vein contour and the Euclidean distance between the two intersection points can be determined, and the largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines is used as the perforating vein diameter. For example, Figure 4 As shown in , the multiple Euclidean distances corresponding to the multiple target normals can be sorted in descending order to obtain the coordinates of the intersection of the normal corresponding to the maximum distance and the perforating vein contour and the distance value, which is the desired result. The diameter of the perforating vein corresponding to the final result is as follows Figure 5 shown.
[0053] The method of the above embodiment determines, for each target normal line, the two intersection points with the perforating vein contour and the Euclidean distance between the two intersection points, and uses the largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines as the perforating vein diameter, thereby achieving rapid and accurate measurement of the perforating vein diameter, and effectively improving the measurement efficiency and accuracy of the perforating vein diameter.
[0054] In one embodiment, obtaining a perforating vein skeleton image includes: Acquire a binary image of the perforating vein; According to the perforating vein binary image, a perforating vein binary image of a region of interest ROI is obtained; Perform morphological corrosion processing on the binary image of the ROI perforating vein to obtain the contour of the perforating vein; According to the perforating vein contour, a perforating vein skeleton image is obtained.
[0055] Specifically, in order to obtain a perforating vein skeleton image, the embodiment of the present application first obtains a perforating vein binary image. Figure 6 As shown, the AI segmentation model performs image segmentation on the transvenous ultrasound image to obtain a transvenous binary image with the foreground being the transvenous region (pixel gray value is 255) and the background being black (pixel gray value is 0).
[0056] Optionally, after obtaining the perforating vein binary image, in the embodiment of the present application, the following is obtained based on the perforating vein binary image: Figure 7 The region of interest ROI perforating vein binary image shown in the figure can then determine the perforating vein skeleton and perforating vein diameter based on the ROI perforating vein binary image, thereby effectively improving efficiency.
[0057] Alternatively, if Figure 8 As shown, the ROI perforating vein binary image is further subjected to morphological corrosion operation to obtain the perforating vein contour. Further, the perforating vein corrosion image is subjected to skeleton extraction to obtain the perforating vein skeleton. Optionally, the specific process of skeleton extraction is implemented by referring to the paper "A Fast Parallel Algorithm for Thinning Digital Patterns" TY ZHANG and CY SUEN, and will not be repeated in the embodiments of this application.
[0058] The method of the above embodiment first obtains a transvenous binary image, and then obtains a transvenous binary image of the region of interest ROI based on the transvenous binary image; and performs morphological corrosion operation and skeleton extraction on the ROI transvenous binary image, so that the transvenous skeleton image can be obtained efficiently and accurately.
[0059] Exemplarily, the present application also provides a method for determining the diameter of a perforating vein, and the specific process is as follows: (1) Calculate the skeleton of the binary image of the perineum.
[0060] For example, based on the transvenous binary image, a ROI transvenous binary image can be further obtained, so that subsequent calculations will be calculated in the ROI, which can effectively improve the algorithm running speed.
[0061] Optionally, a morphological corrosion operation is performed on the ROI perforating vein binary image, and then a skeleton is extracted to obtain a perforating vein skeleton.
[0062] (2) Extract the node coordinates on the skeleton.
[0063] By traversing each pixel of the vein skeleton, the node coordinates at certain intervals can be obtained.
[0064] (3) Traverse each node on the skeleton, calculate the normal of each node on the skeleton, and determine the normal equation.
[0065] With the upper left corner of the ROI image as the origin, the horizontal rightward as the X-axis, and the vertical downward as the Y-axis, a Cartesian rectangular coordinate system, namely the image coordinate system, is constructed to determine the minimum circumscribed rectangle of the perforating vein outline.
[0066] In the image coordinate system, the coordinates of each pixel point on the contour of the vein and the coordinates of each node on the skeleton are known. Among them, the tangent slope k1 of each node on the skeleton curve is calculated by the coordinates of the two adjacent nodes before and after it. For example, the tangent slope of point B is calculated by the coordinates of points A and C and the slope formula. The tangent slope of point C is calculated by the coordinates of points B and D and the slope formula, and so on. Further, to calculate the normal slope k2 of each node on the skeleton curve, it is only necessary to multiply k1 by the coefficient -1.
[0067] At this time, the normal slope k2 of each node on the skeleton is determined, and the straight line equation L of each normal line can be obtained according to the point-slope straight line equation.
[0068] (4) Calculate the intersection point of each normal line with the perforating vein contour and calculate the Euclidean distance between the two intersection points.
[0069] By solving the intersection of the normal equation and the lines where the four sides of the minimum circumscribed rectangle of the perforating vein contour are located, the two intersection points G and H can be obtained. The coordinates of each pixel point on the line GH are traversed, and the intersection points M, N of the current pixel point and the perforating vein contour and the Euclidean distance between the two intersection points are calculated. The largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines is taken as the perforating vein diameter.
[0070] The method of the above embodiment outlines the perforating vein image in the currently scanned ultrasound image based on the AI segmentation model, and takes the perforating vein binary image as input, and calculates the size of the diameter of the perforating vein through a series of image processing algorithms, that is, the coordinates of the two end points of the straight line where the diameter is measured and the Euclidean distance between the two end points, thereby efficiently and accurately measuring the diameter of the perforating vein based on the perforating vein image, effectively improving the measurement efficiency and accuracy of the perforating vein diameter.
[0071] The following is a description of the apparatus for determining the diameter of a transvenous vein provided by the present invention. The apparatus for determining the diameter of a transvenous vein described below and the method for determining the diameter of a transvenous vein described above can be referred to in correspondence with each other. Fig. 9 As shown, including: An acquisition module 910 is used to acquire a perforating vein skeleton image; The first determination module 920 is used to determine the target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; the target normal is perpendicular to the tangent of the node in the perforating vein skeleton; A second determination module 930 is used to determine, for each node in the perforating vein skeleton, a first intersection point and a second intersection point between the target normal and the perforating vein contour; The third determination module 940 is used to determine the diameter of the perforating vein according to the first intersection point and the second intersection point.
[0072] Optionally, the first determining module 920 is specifically configured to: According to the perforating vein skeleton image, determining the tangent slope corresponding to each node in the perforating vein skeleton; According to the tangent slopes corresponding to each node, the normal slopes corresponding to each node on the perforating vein skeleton are determined; According to the normal slopes corresponding to the nodes on the perforating vein skeleton and the coordinates of the nodes on the perforating vein skeleton image, the target normals corresponding to the nodes in the perforating vein skeleton are determined.
[0073] Optionally, the first determining module 920 is specifically configured to: For any node, the tangent slope corresponding to the node in the perforating vein skeleton is determined according to the coordinates of the first node and the second node adjacent to the node on the perforating vein skeleton image.
[0074] Optionally, the second determining module 930 is specifically configured to: For each node in the perforating vein skeleton, the target line segment is determined according to the intersection of the target normal and the circumscribed rectangle of the perforating vein; The distances between each pixel point on the target line segment and each pixel point on the perforating vein contour are traversed to determine the first intersection point and the second intersection point of the target normal line and the perforating vein contour.
[0075] Optionally, the third determining module 940 is specifically configured to: For each target normal, determine the Euclidean distance between the first intersection point and the second intersection point; The largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines is used as the diameter of the perforating vein.
[0076] Optionally, the acquisition module 910 is specifically used for: Acquire a binary image of the perforating vein; According to the perforating vein binary image, a perforating vein binary image of a region of interest ROI is obtained; Perform morphological corrosion processing on the binary image of the ROI perforating vein to obtain the contour of the perforating vein; According to the perforating vein contour, a perforating vein skeleton image is obtained.
[0077] Fig.10An example of a physical structure diagram of an electronic device is provided, and the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute a method for determining the diameter of a perforating vein, and the method includes: acquiring a perforating vein skeleton image; determining a target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; the target normal is perpendicular to the tangent of the node in the perforating vein skeleton; for each node in the perforating vein skeleton, determining a first intersection point and a second intersection point of the target normal and the perforating vein contour; and determining the diameter of the perforating vein according to the first intersection point and the second intersection point.
[0078] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0079] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for determining the diameter of the perforating vein provided by the above-mentioned methods, and the method includes: obtaining a perforating vein skeleton image; determining a target normal corresponding to each node in the perforating vein skeleton based on the perforating vein skeleton image; the target normal is perpendicular to the tangent of the node in the perforating vein skeleton; for each node in the perforating vein skeleton, determining a first intersection point and a second intersection point of the target normal and the perforating vein contour; and determining the diameter of the perforating vein based on the first intersection point and the second intersection point.
[0080] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for determining the diameter of the perforating vein provided by the above-mentioned methods, the method comprising: acquiring a perforating vein skeleton image; determining, based on the perforating vein skeleton image, a target normal corresponding to each node in the perforating vein skeleton; the target normal is perpendicular to the tangent of the node in the perforating vein skeleton; for each node in the perforating vein skeleton, determining a first intersection point and a second intersection point of the target normal line and the perforating vein contour; and determining the diameter of the perforating vein based on the first intersection point and the second intersection point.
[0081] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining the diameter of a perforating vein, characterized in that: include: Acquire a perforating vein skeleton image; Determine, according to the perforating vein skeleton image, a target normal corresponding to each node in the perforating vein skeleton; the target normal is perpendicular to a tangent of the node in the perforating vein skeleton; For each node in the perforating vein skeleton, determining a first intersection point and a second intersection point of the target normal line and the perforating vein contour; The diameter of the perforating vein is determined according to the first intersection point and the second intersection point.
2. The method for determining the diameter of a perforating vein according to claim 1, characterized in that: Determining the target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image includes: Determining the tangent slope corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; Determine the normal slope corresponding to each node on the perforating vein skeleton according to the tangent slope corresponding to each node; According to the normal slopes corresponding to the nodes on the perforating vein skeleton and the coordinates of the nodes on the perforating vein skeleton image, the target normals corresponding to the nodes in the perforating vein skeleton are determined.
3. The method for determining the diameter of a perforating vein according to claim 2, characterized in that: Determining the tangent slope corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image includes: For any node, the tangent slope corresponding to the node in the perforating vein skeleton is determined according to the coordinates of a first node and a second node adjacent to the node on the perforating vein skeleton image.
4. The method for determining the diameter of a perforating vein according to any one of claims 1 to 3, characterized in that: The step of determining, for each node in the perforating vein skeleton, a first intersection point and a second intersection point between the target normal line and the perforating vein contour comprises: For each node in the perforating vein skeleton, determine a target line segment according to the intersection of the target normal and the circumscribed rectangle of the perforating vein; The distances between each pixel point on the target line segment and each pixel point on the perforating vein contour are traversed to determine a first intersection point and a second intersection point between the target normal line and the perforating vein contour.
5. The method for determining the diameter of a perforating vein according to claim 4, characterized in that: Determining the diameter of the perforating vein according to the first intersection point and the second intersection point includes: For each target normal line, determining a Euclidean distance between the first intersection point and the second intersection point; The largest Euclidean distance among the multiple Euclidean distances corresponding to the multiple target normal lines is used as the perforating vein diameter.
6. The method for determining the diameter of a perforating vein according to any one of claims 1 to 3, characterized in that: The step of acquiring a perforating vein skeleton image comprises: Acquire a binary image of the perforating vein; Acquire a region of interest (ROI) transvenous binary image based on the transvenous binary image; Performing morphological corrosion processing on the ROI perforating vein binary image to obtain the perforating vein contour; The perforating vein skeleton image is acquired according to the perforating vein contour.
7. A device for determining the diameter of a transvenous vein, characterized in that: include: An acquisition module, used for acquiring a perforating vein skeleton image; A first determination module is used to determine a target normal corresponding to each node in the perforating vein skeleton according to the perforating vein skeleton image; the target normal is perpendicular to a tangent of the node in the perforating vein skeleton; A second determination module is used to determine, for each node in the perforating vein skeleton, a first intersection point and a second intersection point of the target normal line and the perforating vein contour; The third determination module is used to determine the diameter of the perforating vein according to the first intersection point and the second intersection point.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for determining the diameter of the perforating vein according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining the diameter of a perforating vein according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for determining the diameter of a perforating vein according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Intravascular stent parameter determination method, electronic equipment and storage medium
CN116091587A
Automatic measurement method for carotid intima-media thickness
CN117297666A
Eye fundus image diagnosis supporting apparatus
JP2007097740A
