A method, device and storage medium for constructing a retinal blood vessel vectorization model
By constructing a vectorized model of retinal blood vessels and using quadratic interpolation spline curves to reconstruct retinal blood vessels, the problem of image blur after magnification is solved, achieving the effect of accurately obtaining blood vessel information and reducing storage space.
Patent Information
- Application Number
- CN202111367864.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-18
AI Technical Summary
It is difficult to accurately detect the local information of blood vessels after enlarging the retinal image with the existing technology, and the image becomes blurred, which affects the accuracy of examination of vascular diseases.
Using the construction method of retinal blood vessel vector model, by obtaining retinal image information, segmenting the blood vessel image, filtering out pixels with curvature greater than a predetermined value, constructing a vector model diagram, and using quadratic interpolation spline curves to reconstruct the outer contour of the blood vessel , no distortion will occur after amplification.
It achieves accurate acquisition of retinal blood vessel information after amplification, reduces graphics storage space, can simultaneously amplify original image information, adjust parameter equations to correct blood vessel type value points, and ensure the accuracy of vector model diagrams.
Smart Images

Figure CN113963006B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of retinal blood vessel vectorization, and relates to a method, device and storage medium for constructing a retinal blood vessel vectorization model. Background Art
[0002] The retina is the inner layer of the eyeball wall, which is divided into the blind part and the visual part of the retina. The blind part includes the iris part of the retina and the ciliary part of the retina, each attached to the inside of the iris and ciliary body, and is a component of the iris and ciliary body. Histologically, the retina is divided into 10 layers, from the outside to the inside: pigment epithelium, cone and rod cell layer, external limiting membrane, external granular layer, external plexiform layer, inner granular layer, inner plexiform layer, ganglion cell layer, nerve fiber layer, and inner limiting membrane. Some vascular disease lesions will be reflected in the shape, diameter and other characteristics of the blood vessels. For this reason, it is necessary to check the retinal blood vessels. To check the retinal blood vessels, usually the image information of the retina is first obtained, and then the retinal image is enlarged for inspection; however, the enlarged retinal image will become blurred, making it difficult to accurately detect the local information of the blood vessels. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a method, device and storage medium for constructing a retinal vascular vector model that will not be distorted after being magnified.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] A method for constructing a retinal blood vessel vectorization model comprises the following steps:
[0006] S1, obtaining retinal image information;
[0007] S2, segmenting a retinal blood vessel image from the retinal image information;
[0008] S3, taking the pixel points on the outer contour curve of the retinal blood vessels as the initial type value points;
[0009] S4, selecting the initial type value points whose curvature is greater than a predetermined value from the initial type value points as the blood vessel type value points;
[0010] S5, storing the position information of the vascular type value points to construct a vector model diagram of the retinal blood vessels;
[0011] S6. Using a quadratic interpolation spline curve construction method, the outer contour of the retinal blood vessels is generated according to the vector model image, and the retinal blood vessels are reconstructed.
[0012] Furthermore, in the step S2, a retinal blood vessel segmentation method based on multiple Gabor scales is used to segment the retinal blood vessels from the retinal image information; specifically:
[0013] First, vascular preprocessing is performed. The green channel image with the strongest contrast is extracted from the acquired color retinal image information as the initial input image data, and the Gaussian denoising method is used to filter and eliminate some noise. Then, image enhancement is performed. The contrast of the local image is adjusted using windows of multiple scales to enhance the local vascular information, and the blood vessels are segmented based on the Gabor vascular segmentation technology. Finally, the above images enhanced and segmented at different scales are fused to construct a vascular segmentation image.
[0014] Furthermore, in the step S4, the method for selecting the initial type value points at the turning points of the blood vessel segments as the blood vessel type value points is:
[0015] Preset the first curvature threshold θ c , connect each initial type value point with the initial type value points on both sides to form a curve, calculate the curvature of the curve as the curvature value of the middle initial type value point, and select the points with a curvature value greater than the first curvature threshold θ c The initial type value point is used as the vascular type value point.
[0016] Furthermore, in the step S5, the method of constructing the vector model diagram of the blood vessel according to the blood vessel type value points is:
[0017] S51, dividing the outer contour curve of a blood vessel in the retinal blood vessel image into a plurality of curve segments, and assigning a number to each curve segment;
[0018] S52, assigning serial numbers to the vascular type value points on the curve segment from one end to the other end along the direction of the curve segment;
[0019] S53, repeating step S52, sequentially assigning serial numbers to the blood vessel type value points on each curve segment of the blood vessel;
[0020] S54, storing the number of vascular type value points, the number of curve segments and the position information of all vascular type value points of the blood vessel, and generating a vector model subgraph; the position information includes the coordinates of the vascular type value point, the number of the curve segment where the vascular type value point is located, and the sequence number of the vascular type value point on the curve segment;
[0021] S55, repeating steps S51 to S54 to generate a vector model sub-image for each blood vessel in the retinal blood vessel image;
[0022] S56. Obtain a vector model graph according to the vector model sub-graph.
[0023] Furthermore, in the step S4, a second curvature threshold is also preset, and the blood vessel type value points whose curvature values are greater than or equal to the second curvature threshold are screened out as the endpoint type value points;
[0024] In the step S51, each end point value point is used as a dividing point to divide the outer contour of each blood vessel into a plurality of curve segments.
[0025] Furthermore, in the step S6, a method for constructing a quadratic interpolation spline curve is used to generate the outer contour of the retinal blood vessels according to the vector model image: using the position information of the blood vessel type value points stored in the vector model image, first extract the position information of the blood vessel type value points on the same curve segment from each vector model sub-image, and recalculate the coordinates of each blood vessel type value point according to the magnification or reduction multiple of the vector model image, and then use the method for constructing a quadratic interpolation spline curve to draw spline curves connecting the blood vessel type value points with adjacent serial numbers on the curve segment in sequence, generate the outer contour of each blood vessel, and reconstruct the retinal blood vessels.
[0026] Furthermore, the method of drawing a spline curve connecting the vascular type value points with adjacent serial numbers on the curve segment by constructing a quadratic interpolation spline curve is:
[0027] The method of connecting the first vascular type value point and the second vascular type value point of the curve segment is as follows: adding an auxiliary point, and setting the coordinates of the auxiliary point to be the same as the coordinates of the first vascular type value point of the curve segment, and calculating the equation of the quadratic parabola according to the coordinates of the auxiliary point, the coordinates of the first vascular type value point of the curve segment, the coordinates of the second vascular type value point of the curve segment, and the coordinates of the third vascular type value point of the curve segment; and drawing the quadratic parabola curve segment connecting the first vascular type value point and the second vascular type value point according to the quadratic parabola curve equation;
[0028] For the second vascular type value point to the penultimate vascular type value point of the curve segment, the connection method between two adjacent vascular type value points is: calculate the equation of the quadratic parabola curve according to the coordinates of the four adjacent vascular type value points on the curve segment in turn; and draw the quadratic parabola curve segment connecting the two middle vascular type value points among the four adjacent vascular type value points according to the quadratic parabola curve equation.
[0029] The method for connecting the second to last vascular type value point and the last vascular type value point of a curve segment is: add an auxiliary point, and set the coordinates of the auxiliary point to be the same as the coordinates of the last vascular type value point of the curve segment, calculate the equation of the quadratic parabola curve according to the coordinates of the third to last vascular type value point of the curve segment, the coordinates of the second to last vascular type value point of the curve segment, the coordinates of the last vascular type value point of the curve segment and the coordinates of the auxiliary point; and draw the quadratic parabola curve segment connecting the second to last vascular type value point and the last vascular type value point according to the quadratic parabola curve equation.
[0030] Furthermore, after executing step S6, the following steps are also executed:
[0031] S71, enlarging and comparing the vascular vector model image and the retinal image information to check whether any vascular type value point has shifted, and if so, executing step S72;
[0032] S72, fine-tune the position of the offset blood vessel type value point to make corrections, and return to execute step S6.
[0033] A device for constructing a retinal blood vessel vectorization model, comprising:
[0034] An input module, used for acquiring retinal image information;
[0035] A blood vessel extraction module, used to segment retinal blood vessels from retinal image information using a retinal blood vessel segmentation method based on multiple Gabor scales;
[0036] An initial type value point acquisition module is used to acquire pixel points on the outer contour curve of the retinal blood vessels as initial type value points;
[0037] Blood type value point screening module, used to preset the first curvature threshold θ c , and sequentially connect each initial type value point with the initial type value points adjacent to both sides thereof to form a curve, calculate the curvature of the curve as the curvature value of the middle initial type value point, and select the initial type value points whose curvature value is greater than the first curvature threshold θc as the vascular type value points;
[0038] A vector model diagram generating module, used for constructing a vector model diagram of a blood vessel according to the blood vessel type value points; and
[0039] The blood vessel reconstruction module is used to generate the outer contour of each blood vessel according to the vector model diagram by adopting the construction method of the quadratic interpolation spline curve to construct the retinal blood vessels.
[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for constructing a retinal blood vessel vectorization model.
[0041] In the present invention, the vector model diagram of the blood vessels is constructed by using the information stored in the blood vessel type value points, and the parametric equation of the quadratic interpolation spline curve is used to describe the retinal blood vessels. After magnification, no distortion will occur, which is convenient for accurately obtaining the retinal blood vessel information and the local information of the micro-blood vessels, and reduces the graphic storage space. In addition, the original image information can be synchronously magnified, and the local blood vessel graphics can be corrected by moving the blood vessel type value points to adjust the parametric equation, so that the vector model diagram accurately fits the original image. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0043] Figure 1 The present invention is a flowchart of a preferred embodiment of a method for constructing a retinal vascular vector model.
[0044] Figure 2 Flowchart for segmenting blood vessels from retinal image information using a multi-Gabor scale-based retinal vessel segmentation method.
[0045] Figure 3 a is the grayscale image of the region of interest of the blood vessel.
[0046] Figure 3 b is the image after contrast adjustment based on a scale of 4.
[0047] Figure 3 c is the image after contrast adjustment based on a scale of 8.
[0048] Figure 4 A schematic diagram showing the calculation of the equation of a quadratic parabola based on the coordinates of four adjacent vascular type value points.
[0049] Figure 5 A schematic diagram of a curve segment is drawn for the construction method of a quadratic interpolation spline curve.
[0050] Figure 6 A structural block diagram of a preferred embodiment of the device for constructing a retinal vascular vector model of the present invention. DETAILED DESCRIPTION
[0051] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0052] like Figure 1 As shown, a preferred embodiment of a method for constructing a retinal vascular vector model of the present invention includes the following steps:
[0053] S1. Obtain color retinal image information.
[0054] S2. Extracting a retinal vascular image from the retinal image information. Preferably, a retinal vascular segmentation method based on multiple Gabor scales is used to segment the retinal vascular image from the retinal image information; the method is:
[0055] First, blood vessel preprocessing is performed. The green channel image with the strongest contrast is extracted from the acquired color retinal image information as the initial input image data, and the Gaussian denoising method is used to filter and eliminate some noise; then image enhancement is performed, and the contrast of the local image is adjusted using windows of multiple scales to enhance the local blood vessel information, and the blood vessels are segmented based on the Gabor blood vessel segmentation technology; finally, the above images enhanced and segmented at different scales are fused to construct a blood vessel segmentation image. Figure 2 As shown, the following steps may be specifically included:
[0056] S201. Extracting a green channel image with the strongest contrast from the acquired color retinal image information as initial input image data.
[0057] S202, obtaining image information of a region of interest of a blood vessel; that is, extracting information of the image region covering the blood vessel and removing image information irrelevant to the edge.
[0058] S203: Filter the image information of the region of interest of the blood vessel using the Gaussian denoising method to eliminate some noise.
[0059] S204 , initialize the scale len (for example, the initialized value of the scale len may be set to 2), and initialize the blood vessel image Img to be empty.
[0060] S205 . Adjust the image information of the region of interest of the blood vessel based on the contrast of the scale len.
[0061] S206: Perform Gabor transformation on the adjusted image information.
[0062] S207 , segmenting blood vessels from the image information after Gabor transformation to obtain a blood vessel image Imgt.
[0063] S208 , merging the image Img and the image Imgt and assigning them to the image Img.
[0064] S209, increase the scale len (the scale len is generally increased by 2 each time).
[0065] S210, determining whether the scale len is greater than a preset threshold (for example, the threshold may be set to 10), if it is greater than the preset threshold, executing step S211, otherwise, returning to execute step S205.
[0066] S211. Output the blood vessel image Img.
[0067] like Figure 3 As shown in the figure, through the above steps, the contrast of local information of the image is adjusted by using different window scales to enhance the vascular information. Figure 3a is the grayscale image of the region of interest of the blood vessel, Figure 3 b is the image after contrast adjustment based on a scale of 4 (i.e., a window of 4×4), Figure 3 c is an image after contrast adjustment based on a scale of 8 (ie, a window of 8×8).
[0068] S3. Using the pixel points on the outer contour curve of the retinal blood vessels as initial type value points, thereby extracting the outer contour information of the retinal blood vessels through the initial type value points.
[0069] S4. Filter out the initial type value points whose curvature is greater than a predetermined value from the initial type value points as vascular type value points; preferably, the vascular type value points are filtered out using the following method.
[0070] A first curvature threshold θc is preset, and each initial type value point is sequentially connected with the initial type value points adjacent to both sides thereof through a parabola to form a curve, and the curvature of the curve is calculated as the curvature value of the initial type value point in the middle. If the curvature value of the initial type value point in the middle is greater than the first curvature threshold θc, the initial type value point is screened as a vascular type value point; otherwise, the initial type value point is deleted. Since the outer contour information of the retinal blood vessels includes many initial type value points, if each initial type value point is stored, the amount of information to be stored is too large, and the pixel points are limited by the resolution, and are distorted after being magnified. The coordinates of the pixel points cannot accurately describe the outer contour shape of the blood vessel. Therefore, by setting the first curvature threshold θc, this embodiment can remove points that have little influence on the direction of the curve and retain only key points, thereby greatly reducing the amount of stored information and facilitating blood vessel reconstruction.
[0071] To facilitate the segmentation of the outer contour of the blood vessel into multiple curves, a second curvature threshold θd can be preset at this time, and the second curvature threshold θd is greater than the first curvature threshold θc; and the blood vessel type value points with a curvature greater than or equal to the second curvature threshold θd are screened out as endpoint type value points, and the blood vessel type value points with a curvature greater than the first curvature threshold θc and less than the second curvature threshold θd are used as control type value points.
[0072] S5, storing the position information of the vascular type value points to construct a vector model diagram of the retinal blood vessels; specifically, the following sub-steps may be included:
[0073] S51, dividing the outer contour of a blood vessel in the retinal blood vessel image into a plurality of curve segments, and assigning a number to each curve segment; preferably, each end point type value point is used as a dividing point to divide the outer contour of the blood vessel into a plurality of curve segments.
[0074] S52, sequentially assigning serial numbers to the vascular type value points on the curve segment from one end to the other end along the direction of the curve segment. By assigning serial numbers to the vascular type value points on the same curve segment, it is possible to know the front and back relationship of the vascular type value points in the curve through the serial numbers of the vascular type value points without having to save the information of the entire curve.
[0075] S53, repeating step S52, sequentially assigning serial numbers to the vascular type value points on each curve segment of the blood vessel, thereby obtaining the curve number and position of each vascular type value point on the outer contour curve of the blood vessel, and connecting the vascular type value points with the same curve number according to the order of the serial numbers during blood vessel reconstruction, thereby ensuring the accuracy of the connection.
[0076] S54, store the number of vascular type value points, the number of curve segments and the position information of all vascular type value points of the blood vessel, and generate a vector model subgraph (the endpoint type value point will have two curve segment numbers, and each curve segment number is assigned a sequence number). In order to distinguish different blood vessels after vascular reconstruction, the vector model subgraph may also include the color and width of the curve; the position information includes the coordinates of the vascular type value point, the number of the curve segment where the vascular type value point is located, and the sequence number of the vascular type value point on the curve segment. For example, the vector model subgraph for the jth blood vessel is described as g j (points, count, color, thickness), where points is the location information of each vascular type value point in the vector model sub-map, count is the number of vascular type value points in the vector model sub-map, color is the color of the curve, and thickness is the width of the curve.
[0077] S55, repeating steps S51 to S54 to generate a vector model subgraph for each blood vessel in the retinal blood vessel image. For example, if the retinal blood vessel image includes n blood vessels, the first blood vessel generates a vector model subgraph g1, the second blood vessel generates a vector model subgraph g2, ..., the jth blood vessel generates a vector model subgraph g j , ... the nth angiogenesis vector model subgraph g n , thus generating n vector model subgraphs.
[0078] S56. Obtain a vector model graph according to each vector model subgraph; the vector model graph is represented as G(g1, g2, ..., g n ), that is, the vector model graph is composed of all vector model subgraphs.
[0079] S6. Using a quadratic interpolation spline curve construction method, the outer contour of the retinal blood vessels is generated according to the vector model diagram to reconstruct the retinal blood vessels. Specifically:
[0080] Using the position information of the vascular type value points stored in the vector model image, the position information of the vascular type value points on the same curve segment is first extracted from each vector model sub-image, and the coordinates of each vascular type value point are recalculated according to the magnification or reduction multiple of the vector model image. Then, the quadratic interpolation spline curve construction method is used to draw the spline curves connecting the vascular type value points with adjacent serial numbers on the curve segment in sequence, generate the outer contour of each blood vessel, and reconstruct the image of the entire retinal blood vessels.
[0081] Among them, the method of drawing a spline curve connecting the vascular type value points with adjacent serial numbers on the curve segment by constructing a quadratic interpolation spline curve is:
[0082] m represents the number of vascular type value points on the curve segment; P i Represents the i-th vascular type value point on the curve segment.
[0083] like Figure 4 As shown, for the second blood vessel type value point P2 to the (m-1)th blood vessel type value point P m-1 , the connection method between two adjacent vascular type value points is: starting from the second vascular type value point P2, the equation of the quadratic parabola is calculated according to the coordinates of the four adjacent vascular type value points. For example, for the vascular type value point P i+1 (1≤i≤m-3), according to the four adjacent vascular type value points P i , P i+1 , P i+2 and P i+3 The coordinates of the quadratic parabola are used to calculate the equation P i+1 (t); The calculation formula of the equation of the quadratic parabola is as follows:
[0084] P i+1 (t) = (-2t 3 +4t 2 -t)P' i +(12t 3 -410t 2 +1)P' i+1 +(-12t 3 +8t 2 +t)P' i+2 +(4t 3 -2t 2 )P' i+3
[0085] Among them, P' i Indicates the vascular type value point P i Coordinates of P' i+1 Indicates the vascular type value point P i+1 Coordinates of P' i+2 Indicates the vascular type value point P i+2Coordinates of P' i+3 Indicates the vascular type value point P i+3 coordinates; t is the parameter, 0<t<0.5.
[0086] According to the quadratic parabola equation P i+1 (t) Automatically generate vascular type value point P i+1 and P i+2 The connection points between them are drawn to connect the vascular type value points P i+1 and P i+2 A quadratic parabola segment.
[0087] like Figure 5 As shown, the method of connecting the first vascular type value point P1 and the second vascular type value point P2 of the curve segment is: add an auxiliary point P0, and set the coordinates of the auxiliary point P0 to be the same as those of the vascular type value point P1, and calculate the equation P1(t) of the quadratic parabola according to the coordinates of P0, P1, P2, and P3; and draw the quadratic parabola segment connecting the vascular type value points P1 and P2 according to the quadratic parabola equation P1(t).
[0088] Please continue to refer to Figure 6 , connect the (m-1)th vascular type value point P of the curve segment m-1 and the mth vascular type value point P m The method is: add an auxiliary point P m+1 , and set the auxiliary point P m+1 The coordinates of the vascular type value point P m Same, according to P m-2 , P m-1 , P m , P m+1 The coordinates of the quadratic parabola are used to calculate the equation P m-1 (t); and according to the quadratic parabola equation P m-1 (t) Draw the connecting vascular type value point P m-1 and P m A quadratic parabola segment.
[0089] In order to check whether there is any deviation in the blood vessel vector model image, so as to facilitate correction of the deviation, after executing step S6, the following steps may be performed:
[0090] S71. Enlarge the vascular vector model diagram and the retinal image information for comparison to check whether any vascular type value point has shifted. If any vascular type value point has shifted, execute step S72; correct the position of the shifted vascular type value point.
[0091] S72, fine-tune the position of the offset vascular type value point and return to execute step S6; reconstruct the vascular vector model diagram according to the corrected coordinates of the vascular type value point; because a vascular type value point will only affect the two curve segments connected to it and the curve segments adjacent to the above two curve segments; therefore, only the four related curve segments need to be reconstructed.
[0092] In this embodiment, the vector model diagram of the blood vessels is constructed by using the information saved by the blood vessel type value points, and the blood vessels are described by calculating the parameter equation according to the blood vessel type value points, and the parameter equation of the quadratic interpolation spline curve is used to automatically generate the connection points between the type value points to describe the retinal blood vessels, so that the distorted part of the image information is calculated by the parameter equation, and the image will not be distorted after being enlarged, which is convenient for accurately obtaining the retinal blood vessel information and the local information of the tiny blood vessels, and at the same time, the image storage space is reduced. In addition, the vector model diagram can be synchronously enlarged with the original image information, and the parameter equation can be adjusted by moving the blood vessel type value points to dynamically fine-tune the curve of the blood vessel, so as to ensure that the blood vessel figure described by the vector model diagram is highly consistent with the blood vessels in the image, so as to facilitate the acquisition of accurate parameters of the blood vessels.
[0093] like Figure 6 As shown, a preferred embodiment of the device for constructing a retinal vascular vectorization model of the present invention includes an input module, a vascular extraction module, an initial type value point acquisition module, a blood type value point screening module and a vascular reconstruction module.
[0094] The input module is used to obtain retinal image information.
[0095] The blood vessel extraction module is used to segment retinal blood vessels from retinal image information using a retinal blood vessel segmentation method based on multiple Gabor scales.
[0096] The initial type value point acquisition module is used to acquire pixel points on the outer contour curve of the retinal blood vessels as initial type value points.
[0097] Blood type value point screening module, used to preset the first curvature threshold θ c , and connect each initial type value point with the initial type value points adjacent to it on both sides to form a curve, calculate the curvature of the curve as the curvature value of the middle initial type value point, and screen out the initial type value points whose curvature values are greater than the first curvature threshold θc as vascular type value points.
[0098] The vector model diagram generation module is used to construct a vector model diagram of the blood vessel according to the blood vessel type value points.
[0099] The blood vessel reconstruction module is used to generate the outer contour of the blood vessel according to the vector model diagram by adopting the construction method of the quadratic interpolation spline curve to construct the retinal blood vessels.
[0100] In this embodiment, the information saved by the vascular type value points is used to construct a vector model diagram of the blood vessels, and the parametric equation of the quadratic interpolation spline curve is used to reconstruct the retinal blood vessels. The graphics will not be distorted after being enlarged, which facilitates the accurate acquisition of retinal blood vessel information and local information of tiny blood vessels, and reduces the graphics storage space.
[0101] In a preferred embodiment of the computer-readable storage medium of the present invention, a computer program is stored on the computer-readable storage medium, and the computer program implements a retinal blood vessel vectorization method when executed by a processor.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A method for constructing a retinal vascular vector model, characterized in that: The following steps are involved: S1, obtaining retinal image information; S2, segmenting a retinal blood vessel image from the retinal image information; S3, taking the pixel points on the outer contour curve of the retinal blood vessels as the initial type value points; S4, selecting the initial type value points whose curvature is greater than a predetermined value from the initial type value points as the blood vessel type value points; S5, storing the position information of the vascular type value points to construct a vector model diagram of the retinal blood vessels; S6, using a quadratic interpolation spline curve construction method to generate the outer contour of the retinal blood vessels according to the vector model image, and reconstruct the retinal blood vessels; In the step S2, a retinal blood vessel segmentation method based on multiple Gabor scales is used to segment retinal blood vessels from retinal image information; specifically, the method comprises: First, blood vessel preprocessing is performed. The green channel image with the strongest contrast is extracted from the acquired color retinal image information as the initial input image data, and the Gaussian denoising method is used to filter and eliminate some noise. Then, image enhancement is performed. The contrast of the local image is adjusted using windows of multiple scales to enhance the local blood vessel information, and the blood vessels are segmented based on the Gabor blood vessel segmentation technology. Finally, the above images enhanced and segmented at different scales are fused to construct a blood vessel segmentation image. In the step S4, the method for selecting the initial type value points at the turning points of the blood vessel segments as the blood vessel type value points is: Preset the first curvature threshold θ c , connect each initial shape value point with the initial shape value points on both sides to form a curve, calculate the curvature of the curve as the curvature value of the middle initial shape value point, and select the points with curvature values greater than the first curvature threshold θ c The initial type value point is used as the vascular type value point; In the step S5, the method of constructing the vector model diagram of the blood vessel according to the blood vessel type value points is: S51, dividing the outer contour curve of a blood vessel in the retinal blood vessel image into a plurality of curve segments, and assigning a number to each curve segment; S52, assigning serial numbers to the vascular type value points on the curve segment from one end to the other end along the direction of the curve segment; S53, repeating step S52, sequentially assigning serial numbers to the blood vessel type value points on each curve segment of the blood vessel; S54, storing the number of vascular type value points, the number of curve segments and the position information of all vascular type value points of the blood vessel, and generating a vector model subgraph; the position information includes the coordinates of the vascular type value point, the number of the curve segment where the vascular type value point is located, and the sequence number of the vascular type value point on the curve segment; S55, repeating steps S51 to S54 to generate a vector model sub-image for each blood vessel in the retinal blood vessel image; S56, obtaining a vector model graph according to the vector model sub-graph; In the step S6, the method for constructing a quadratic interpolation spline curve to generate the outer contour of the retinal blood vessels according to the vector model graph is as follows: using the position information of the blood vessel type value points stored in the vector model graph, first extracting the position information of the blood vessel type value points on the same curve segment from each vector model sub-graph, and recalculating the coordinates of each blood vessel type value point according to the magnification or reduction multiple of the vector model graph, and then using the quadratic interpolation spline curve construction method to sequentially draw spline curves connecting the blood vessel type value points with adjacent serial numbers on the curve segment, generate the outer contour of each blood vessel, and reconstruct the retinal blood vessels; After executing step S6, the following steps are also performed: S71, enlarging and comparing the vascular vector model image and the retinal image information to check whether any vascular type value point has shifted, and if so, executing step S72; S72, fine-tune the position of the offset blood vessel type value point to make corrections, and return to execute step S6.
2. The method for constructing a retinal vascular vector model according to claim 1, characterized in that: In the step S4, a second curvature threshold is also preset, and the blood vessel type value points whose curvature values are greater than or equal to the second curvature threshold are screened out as the endpoint type value points; In the step S51, each end point value point is used as a dividing point to divide the outer contour of each blood vessel into a plurality of curve segments.
3. The method for constructing a retinal vascular vector model according to claim 2, characterized in that: The method of drawing a spline curve connecting the vascular type value points with adjacent serial numbers on the curve segment by constructing a quadratic interpolation spline curve is: The method of connecting the first vascular type value point and the second vascular type value point of the curve segment is as follows: adding an auxiliary point, and setting the coordinates of the auxiliary point to be the same as the coordinates of the first vascular type value point of the curve segment, and calculating the equation of the quadratic parabola according to the coordinates of the auxiliary point, the coordinates of the first vascular type value point of the curve segment, the coordinates of the second vascular type value point of the curve segment, and the coordinates of the third vascular type value point of the curve segment; and drawing the quadratic parabola curve segment connecting the first vascular type value point and the second vascular type value point according to the quadratic parabola curve equation; For the second vascular type value point to the second to last vascular type value point of the curve segment, the method for connecting two adjacent vascular type value points is: calculating the equation of the quadratic parabola curve according to the coordinates of the four adjacent vascular type value points on the curve segment in turn; and drawing the quadratic parabola curve segment connecting the middle two vascular type value points among the four adjacent vascular type value points according to the quadratic parabola curve equation; The method for connecting the second to last vascular type value point and the last vascular type value point of a curve segment is: add an auxiliary point, and set the coordinates of the auxiliary point to be the same as the coordinates of the last vascular type value point of the curve segment, calculate the equation of the quadratic parabola curve according to the coordinates of the third to last vascular type value point of the curve segment, the coordinates of the second to last vascular type value point of the curve segment, the coordinates of the last vascular type value point of the curve segment and the coordinates of the auxiliary point; and draw the quadratic parabola curve segment connecting the second to last vascular type value point and the last vascular type value point according to the quadratic parabola curve equation.
4. 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 3 is implemented.
Citation Information
Patent Citations
Level set retinal vessel image segmentation method with shape prior being fused
CN106097378A
Method for hydrophilizing organic polymer, hydrophilic organic polymer obtained by the hydrophilizing method, and molding article comprizing the hydrophilic organic polymer and use thereof
JP2003292798A
Method and apparatus for evaluating blood vessel in fundus color image, and computer device and medium
WO2021208739A1
