Ophthalmology-assisted imaging method and system

It identifies blood vessel edges through edge detection and eigenvalue analysis, clusters blood vessel areas of different sizes, and uses adaptive Frangi filtering to solve the problem of redundant calculations of Frangi filtering and improve the diagnostic efficiency and quality of ophthalmic images.

CN118505518BActive Publication Date: 2024-09-17GUANGZHOU YINGHUIXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410948188.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-17
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

When enhancing ophthalmic images, Frangi filtering causes computational redundancy and low efficiency due to the fixed size range, and cannot effectively handle vascular structures of different sizes and distributions.

Method used

Through edge detection and comprehensive analysis of local linear eigenvalues ​​and gradient eigenvalues, blood vessel edge pixels are identified, clustered based on blood vessel diameter and spacing, and adaptive Frangi filtering is used to reduce unnecessary calculations and improve processing efficiency.

Benefits of technology

It significantly improves the diagnostic quality and efficiency of ophthalmic images, reduces the amount of calculations, enhances image details and structural clarity, avoids redundant calculations, and increases processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505518B
    Figure CN118505518B
Patent Text Reader

Abstract

The present invention relates to the field of image processing, and in particular to an ophthalmic auxiliary imaging method and system. The method uses optical coherence tomography technology to collect ophthalmic images, extracts linear eigenvalues ​​of a local range of edge pixels to be analyzed, and extracts gradient eigenvalues ​​of edge pixels to be analyzed, calculates the possibility that the edge pixels to be analyzed are blood vessel edge pixels based on the two eigenvalues, screens out blood vessel edge regions according to the size of the possibility, performs clustering based on the blood vessel diameters corresponding to the blood vessel edge pixels and the spacings between the blood vessel edge pixels, obtains multiple clusters, takes the minimum circumscribed rectangle of all blood vessel edge pixels in each cluster as a region to be filtered, takes the blood vessel diameter range of the region to be filtered as a scale factor of the region to be filtered, performs adaptive Frangi filtering based on the scale factor, obtains an enhanced ophthalmic image, and improves filtering efficiency and the quality of the ophthalmic image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to an ophthalmology-assisted imaging method and system. Background Art

[0002] In recent years, medical imaging technology has experienced significant progress, especially in the field of ophthalmology. OCT (optical coherence tomography) has become an important auxiliary tool for ophthalmologists. As a non-invasive imaging method, OCT uses the principle of light wave reflection to capture high-resolution images of eye tissues, which is extremely valuable for diagnosing macular degeneration, retinal detachment, glaucoma and other eye diseases.

[0003] In order to further improve the diagnosis and monitoring capabilities of ophthalmic diseases, it is particularly important to optimize image quality. Among them, the Frangi filter algorithm, as a linear structure enhancement tool based on the Hessian matrix, is good at highlighting linear features in images and is very suitable for displaying subtle vascular structures in ophthalmic images. For example, the patent application document with publication number CN115331208A discloses a facial fatigue analysis method based on photometric stereoscopic vision three-dimensional reconstruction, including: collecting multiple two-dimensional facial images of the person under test; synthesizing the two-dimensional facial images of the person under test into a three-dimensional fine feature image of the face of the person under test; determining the position of the eyes in the two-dimensional facial image of the person under test; extracting the two-dimensional coordinates of the spots in the color facial image, and using the two-dimensional coordinates to find the corresponding three-dimensional fine feature matrix of the face; removing the dark and bright areas of the grayscale image of the eye, and then using Frangi filtering to obtain a red eye bloodshot image.

[0004] However, when the above scheme utilizes Frangi filtering to enhance ophthalmic images, a fixed and same size range is used for global filtering to enhance the image. However, the linear structures of different ophthalmic images have different sizes, and even in the same image, the size range of the linear structure is relatively large. If the same size range is used to filter the entire image, it will undoubtedly generate a lot of redundant calculations. For example, in an image area with a large or small linear structure, the response value must be iteratively calculated within a fixed scale factor range. Obviously, there are a lot of unnecessary calculations, resulting in redundant calculations and low efficiency. Summary of the invention

[0005] In order to solve the problem that the fixed size range leads to computational redundancy and low filtering efficiency when using Frangi filtering to enhance ophthalmic images, the present invention proposes an ophthalmic auxiliary imaging method, which specifically adopts the following scheme:

[0006] In one aspect, the present invention provides an ophthalmological assisted imaging method, comprising:

[0007] Acquire an ophthalmic image using optical coherence tomography technology, perform edge detection on the ophthalmic image, obtain edge pixel points in the ophthalmic image, and use each edge pixel point as an edge pixel point to be analyzed;

[0008] Extracting the linear eigenvalue of the local range of the edge pixel point to be analyzed and the gradient eigenvalue of the edge pixel point to be analyzed, and calculating the possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point according to the linear eigenvalue and the gradient eigenvalue, wherein the possibility is positively correlated with the linear eigenvalue and negatively correlated with the gradient eigenvalue;

[0009] Filtering blood vessel edge pixel points in the ophthalmic image according to the size of the possibility, clustering based on the blood vessel diameters corresponding to the blood vessel edge pixel points and the spacing between the blood vessel edge pixel points to obtain a plurality of clusters, each cluster including a plurality of blood vessel edge pixel points;

[0010] The minimum circumscribed rectangle of all blood vessel edge pixels in each cluster is taken as a region to be filtered, the blood vessel diameter range of the region to be filtered is taken as the scale factor of the region to be filtered, and adaptive Frangi filtering is performed based on the scale factor to obtain an enhanced ophthalmic image.

[0011] The above scheme aims to improve the diagnostic quality and efficiency of ophthalmic images through a series of precise image processing steps. Specifically, through the comprehensive analysis of edge detection technology and local linear eigenvalues ​​and gradient eigenvalues, the blood vessel edge pixels can be identified more accurately. The linear eigenvalues ​​help to distinguish the linear structure of the blood vessel, while the gradient eigenvalues ​​help to eliminate the interference of non-vascular structures. The combination of the two improves the accuracy of blood vessel edge recognition and helps to accurately define the blood vessel contour. After determining the blood vessel contour, through clustering analysis based on blood vessel edge pixels, this method can effectively reduce unnecessary calculations. Clustering edge pixels according to blood vessel diameter and spacing can not only reveal the distribution pattern of blood vessels, but also process blood vessel areas of different sizes and distributions in a targeted manner, avoiding redundant calculations caused by unified processing of the entire image, significantly improving processing speed and efficiency, using the minimum circumscribed rectangle of each cluster as the area to be filtered, and using the blood vessel diameter range contained in it as the scale factor for adaptive filtering. This strategy ensures that the filtering process can be optimized for different blood vessel sizes, retains the details of the blood vessel structure, and enhances image details and structural clarity. In short, this technical scheme not only reduces The amount of computational effort when the filtering algorithm processes ophthalmic images improves processing efficiency and also improves the quality of ophthalmic images.

[0012] Preferably, the possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point is calculated based on the linear eigenvalue and the gradient eigenvalue, and the calculation formula is: ,in, is the ophthalmic image The possibility that the edge pixel to be analyzed is a blood vessel edge pixel, For the said The linear eigenvalue of the local range of the edge pixels to be analyzed, For the said The gradient eigenvalues ​​of the edge pixels to be analyzed, is a natural exponential function.

[0013] The above scheme achieves high accuracy in identifying blood vessel edge pixels by comprehensively evaluating the linear characteristics and gradient characteristics of edge pixels. Specifically, the positive contribution of linear eigenvalues ​​and the negative impact of gradient eigenvalues ​​are combined through the natural exponential function to form a dynamic balance, which effectively highlights the continuity and smoothness of the vascular structure, while suppressing the interference of non-vascular structures, thereby improving the accuracy and reliability of recognition.

[0014] Preferably, extracting the linear characteristic value of the local range of the edge pixel point to be analyzed includes:

[0015] Taking each edge pixel point in the local range as the center, each edge pixel point divides the local range into a left range and a right range;

[0016] Respectively taking the ratio of the length of the minimum circumscribed rectangle of the left range to the length of the left range, and the ratio of the length of the minimum circumscribed rectangle of the right range to the length of the right range as the left linear eigenvalue and the right linear eigenvalue of the edge pixel point;

[0017] The average of the left linear eigenvalue and the right linear eigenvalue is used as the linear eigenvalue of the edge pixel point, and the maximum linear eigenvalue of all edge pixels in the local range is used as the linear eigenvalue of the local range of the edge pixel point to be analyzed.

[0018] The above scheme significantly enhances the accuracy of blood vessel edge recognition by carefully analyzing the linear structure of the local range of edge pixels. By calculating the ratio of the minimum enclosing rectangle to the length in the local range, it not only quantifies the linear continuity of the edge pixels, but also comprehensively considers the characteristics of the directions on both sides, making the evaluation more comprehensive.

[0019] Preferably, filtering out blood vessel edge pixel points in the ophthalmic image according to the size of the possibility includes:

[0020] Based on the possibility that all edge pixels to be analyzed are vascular edge pixels, the inter-class variance maximization calculation is performed, and all edge pixels to be analyzed are divided into two categories. The edge pixels in the category with a larger possibility mean are taken as vascular edge pixels, and the edge pixels in the other category are eliminated.

[0021] The above scheme classifies edge pixels by maximizing the between-class variance method, automatically distinguishing between high-probability real blood vessel edge pixels and low-probability non-vascular structure pixels, reducing misidentification and improving the accuracy of analysis. It also eliminates non-vascular pixels, focuses on potential blood vessel areas, and optimizes subsequent processing procedures.

[0022] Preferably, the method for setting the local range of the edge pixel points to be analyzed is:

[0023] The edge pixel point to be analyzed, and the extending directions on both sides of the edge pixel point to be analyzed are respectively edge pixel points, collectively serving as the local range of the edge pixel points to be analyzed, is the default value.

[0024] Preferably, the method for extracting the gradient eigenvalue of the edge pixel to be analyzed is:

[0025] If the edge pixel point with the largest linear eigenvalue in the local range is the edge pixel point to be analyzed, the edge pixel point to be analyzed is used as a breaking point, the bisector of the angle between the edge pixel point to be analyzed and the extension directions on both sides thereof is obtained, and the sine value of the angle between the gradient direction of the edge pixel point to be analyzed and the bisector is used as the gradient eigenvalue of the edge pixel point to be analyzed;

[0026] Otherwise, the edge pixel point to be analyzed is a non-inflection point, and the extension directions on both sides of the edge pixel point to be analyzed form a straight line. The cosine value of the angle between the gradient direction of the edge pixel point to be analyzed and the straight line is used as the gradient eigenvalue of the edge pixel point to be analyzed.

[0027] The above scheme achieves accurate extraction of gradient eigenvalues ​​by finely distinguishing the roles (inflection points or non-inflection points) of edge pixels to be analyzed, thereby enhancing the ability to recognize details of vascular structures. Specifically, for inflection points, sine values ​​are used for measurement, which effectively reflects the characteristics of vascular branches or turns and improves the recognition accuracy of complex structures. For non-inflection points, cosine values ​​are used for evaluation, which ensures the continuity and directionality of vascular edges on straight line segments. This strategy not only improves the pertinence of feature extraction, but also lays a solid foundation for subsequent precise division of vascular areas and image enhancement processing.

[0028] Preferably, the method for obtaining the blood vessel diameter corresponding to the blood vessel edge pixel point is:

[0029] Select any blood vessel edge pixel point, calculate the specified distance between the blood vessel edge pixel point and any other blood vessel edge pixel point, and use the shortest specified distance as the blood vessel diameter corresponding to the blood vessel edge pixel point;

[0030] The calculation formula of the specified distance is:

[0031]

[0032] In the formula, is the specified distance, is the angle between the direction of the line connecting the blood vessel edge pixel point and any other blood vessel edge pixel point and the gradient direction of the blood vessel edge pixel point, To measure the magnification factor, the angle range is from 0 to 90 degrees. is the Euclidean distance between the blood vessel edge pixel point and any other blood vessel edge pixel point.

[0033] Preferably, the method for determining the extension directions of both sides of the edge pixel point to be analyzed is:

[0034] Taking the edge pixel point to be analyzed as the center, using breadth-first traversal to identify all edges directly connected to the edge pixel point to be analyzed;

[0035] If there is more than one directly connected edge, select the two edges with the largest angle with the center, and use the directions of these two edges as the extension directions on both sides of the edge pixel point to be analyzed; if there is only one directly connected edge, the direction of this edge is used as the extension direction on both sides of the edge pixel point to be analyzed.

[0036] The above scheme uses a breadth-first traversal strategy to efficiently and accurately determine the extension direction of edge pixels, thereby enhancing the grasp of the directionality of the vascular structure.

[0037] Preferably, clustering is performed based on the blood vessel diameter corresponding to the blood vessel edge pixel points and the distance between the blood vessel edge pixel points, and in the clustering process:

[0038] The clustering adopts DBSCAN clustering algorithm;

[0039] The cluster radius of the cluster setting ,in, is the Euclidean distance between any two blood vessel edge pixels, is the difference between the blood vessel diameters corresponding to the two blood vessel edge pixels.

[0040] The above scheme significantly improves the accuracy and adaptability of clustering by integrating the features of vascular diameter and pixel spacing and adopting the DBSCAN clustering algorithm. The dynamic setting of the clustering radius R takes into account the difference in vascular diameter and the actual distance between pixels, and obtains edge pixels with similar positions and vascular diameters, ensuring the effective distinction of vascular clusters of different sizes.

[0041] On the other hand, the present invention further provides an ophthalmic auxiliary imaging system, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to implement the steps of the auxiliary imaging method.

[0042] The present invention has the following effects:

[0043] The present invention uses sophisticated edge detection and feature analysis to accurately identify vascular structures and sets different filter scale ranges for different areas in ophthalmic images. The filtering algorithm adaptively filters the ophthalmic image based on different filtering scale ranges, reducing The amount of calculation when the filtering algorithm processes ophthalmic images improves the efficiency of filtering processing and also improves the quality of ophthalmic images. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0045] Figure 1 It is a schematic flow chart of the method of the present invention;

[0046] Figure 2 is a schematic diagram of ophthalmic images collected by the present invention;

[0047] Figure 3 is a schematic diagram of edge detection of an ophthalmic image according to the present invention;

[0048] Figure 4 It is a schematic diagram of the local range of edge pixels to be analyzed in the present invention;

[0049] Figure 5 It is a schematic diagram of the angle between the gradient direction of the edge pixel point (inflection point) to be analyzed and the angle bisector of the extending directions on both sides of the present invention;

[0050] Figure 6 It is a schematic diagram of the angle between the gradient direction of the edge pixel point (non-inflection point) to be analyzed and the straight line on which it is located;

[0051] Figure 7is the final blood vessel edge image of the present invention;

[0052] Figure 8 It is a schematic diagram of the angle between the connection direction of edge pixel points and the gradient direction of edge pixel points of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0054] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0055] Reference Figure 1 , an ophthalmological auxiliary imaging method, comprising steps S1-S4, specifically as follows:

[0056] S1: Collect ophthalmic images and determine edge pixels to be analyzed.

[0057] In this step, the ophthalmic images are first collected by optical coherence tomography technology. In ophthalmic image analysis, Figure 2 As shown in , the vascular structure often appears in the form of edges, so the Canny edge detection algorithm is used to identify it, as shown in Figure 3 As shown in , a preliminary edge detection result is obtained. However, considering that optical coherence tomography technology is difficult to avoid the interference of scattering noise and speckle noise when capturing ophthalmic images, the preliminary edge detection result map may be mixed with pseudo edges of non-vascular structures. Therefore, the edge pixels in the preliminary edge detection result map are carefully analyzed to screen out the edge pixels that truly belong to the real blood vessels. Therefore, in this step, each edge pixel in the preliminary edge detection result map is used as an edge pixel to be analyzed for subsequent analysis.

[0058] S2: Calculate the possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point.

[0059] like Figure 2 , Figure 3As shown in , because the edge of a blood vessel often has linear characteristics, it appears as a straight line or a broken line in a local range, and a curve also appears as a straight line in a very small local range, while the blood vessel appears as a broken line at the intersection of the blood vessels. Therefore, the local range of each edge pixel to be analyzed can be analyzed, and by judging whether the edge pixel in the local range appears as a linear feature of a straight line or a broken line, the linear feature of the local range can be used to preliminarily judge the possibility that the edge pixel to be analyzed is a blood vessel edge pixel. Secondly, since the gradient direction of the blood vessel edge pixel is often perpendicular to the straight line where it is located, the gradient feature of the edge pixel to be analyzed is further analyzed. The gradient feature can reflect the credibility of the possibility that the edge pixel to be analyzed is a blood vessel edge pixel. Finally, the linear feature and gradient feature of the edge pixel to be analyzed are combined to accurately judge whether the edge pixel to be analyzed is a blood vessel edge pixel.

[0060] In view of the above, this step extracts the linear eigenvalue of the local range of the edge pixel point to be analyzed, and the gradient eigenvalue of the edge pixel point to be analyzed, and calculates the possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point based on the linear eigenvalue and the gradient eigenvalue, and the possibility is positively correlated with the linear eigenvalue and negatively correlated with the gradient eigenvalue.

[0061] The linear feature value of the local range of the edge pixel to be analyzed is extracted to evaluate whether the area around the edge pixel is approximately a straight line. The more straight line features are present, the more likely it is a blood vessel edge. Specifically, the following operations are performed:

[0062] (1) Setting the local range of the edge pixel to be analyzed: taking the edge pixel to be analyzed and taking the edge pixel along the two sides of the edge pixel to be analyzed. edge pixel points, collectively serving as the local range of the edge pixel points to be analyzed, is the preset value. , that is, 5 pixels are taken from the edge pixel point to be analyzed and in the extension direction on both sides thereof, plus the edge pixel point to be analyzed itself, a total of 11 pixels are taken as the local range of the edge pixel point to be analyzed.

[0063] like Figure 4 As shown in , o is the edge pixel point to be analyzed, and 5 edge pixels are taken in the extension directions on both sides thereof, and a total of 11 edge pixels constitute the local range of o.

[0064] The method for determining the extension directions of the edge pixel points to be analyzed is as follows: taking the edge pixel point to be analyzed as the center, using breadth-first traversal to identify all edges directly connected to the edge pixel point to be analyzed; if there is more than one directly connected edge, selecting the two edges with the largest angle formed with the center, and using the directions of these two edges as the extension directions of the edge pixel points to be analyzed; if there is only one directly connected edge, the direction of this edge is used as the extension direction of the edge pixel points to be analyzed.

[0065] (2) Calculate the linear eigenvalue of the local range:

[0066] Divide the two sides of each edge pixel point in the local range: analyze each edge pixel point in the local range, with each edge pixel point in the local range as the center, and each edge pixel point divides the local range into a left range and a right range; in addition, for the two outermost pixel points in the left range and the two outermost edge pixel points in the right range, since the number is too small and they must form a straight line, these four edge pixel points can be excluded when calculating the linear eigenvalue of the local range and not considered, because it is meaningless to analyze them.

[0067] like Figure 4 As shown in , within the local range of the edge pixel point o to be analyzed, there is an edge pixel point b1. Taking b1 as an example, the left range of b1 is 9 pixels (including itself), and the right range of b1 is 3 pixels (including itself).

[0068] The ratio of the length of the minimum circumscribed rectangle of the left range to the length of the left range, and the ratio of the length of the minimum circumscribed rectangle of the right range to the length of the right range are respectively used as the left linear eigenvalue and the right linear eigenvalue of the edge pixel point.

[0069] like Figure 4 In the figure, the two parallel dashed lines on the left represent The length of the minimum enclosing rectangle of the left range and the two parallel dashed lines on the right represent The length of the minimum circumscribed rectangle of the right range, then the left linear eigenvalue of b1 is , the linear eigenvalue on the right is .

[0070] Here, no matter the left range or the right range, as long as the ratio of the length of the minimum circumscribed rectangle to the range is larger, it means that the pixel arrangement on this side is closer to a straight line shape, which helps to accurately distinguish the real structure of the blood vessel edge from the background noise or nonlinear structure. Using this ratio as a measurement standard, the straight line characteristics of the local pixel arrangement can be effectively quantified, providing an accurate and intuitive analysis method for subsequent blood vessel edge recognition.

[0071] The average of the left linear eigenvalue and the right linear eigenvalue is used as the linear eigenvalue of the edge pixel point, and the maximum linear eigenvalue of all edge pixels in the local range is used as the linear eigenvalue of the local range of the edge pixel point to be analyzed.

[0072] like Figure 4 In the example, the linear eigenvalue of b1 is , according to the linear eigenvalue method of b1, calculate the linear eigenvalues ​​of all edge pixels (including itself) within the local range of the edge pixel o to be analyzed, and select the maximum value as the linear eigenvalue of the local range of o.

[0073] This method can more comprehensively reflect the linear characteristics of the local structure and improve the accuracy of edge recognition by comprehensively analyzing the features on both sides of each edge pixel rather than a single direction. The linear feature values ​​of all edge pixels in the local range are compared and the maximum value is selected as the linear feature value of the local range. This strategy can effectively capture the most obvious vascular edge clues in the local range even when the vascular structure is complex and varied.

[0074] Wherein, determining the gradient characteristic value of the edge pixel point to be analyzed includes:

[0075] If the edge pixel point with the largest linear eigenvalue in the local range is the edge pixel point to be analyzed, the edge pixel point to be analyzed is used as a turning point.

[0076] Obtain the bisector of the angle between the edge pixel point to be analyzed and the extension directions on both sides thereof, and use the sine value of the angle between the gradient direction of the edge pixel point to be analyzed and the bisector as the gradient characteristic value of the edge pixel point to be analyzed. In the range of 0 to 90 degrees, the smaller the angle, the smaller the sine value, and the more parallel the gradient direction of the edge pixel point to be analyzed is to the angle bisector, the more likely the edge pixel point to be analyzed is a blood vessel edge pixel point.

[0077] At the inflection point, the gradient direction extends along the blood vessels on both sides of the inflection point. The angle bisector at the inflection point can theoretically reflect the middle direction of the blood vessels on both sides of the inflection point, that is, it can represent the comprehensive gradient direction of the pixel at the inflection point. The size of the sine value directly reflects the degree of deviation between the gradient direction and the angle bisector. When the sine value is small, it indicates that the gradient direction is highly consistent with the angle bisector, which logically indicates that the edge pixel to be analyzed is more consistent with the characteristics of the blood vessel edge.

[0078] like Figure 5 As shown in is the edge pixel to be analyzed, , They are The extension direction on both sides of Direction The gradient direction, dashed line for , , The angle bisector of the angle formed, for The angle between the gradient direction and the angle bisector, The gradient eigenvalue is .

[0079] Otherwise, the edge pixel point to be analyzed is a non-inflection point, and the extension directions on both sides of the edge pixel point to be analyzed form a straight line. The cosine value of the angle between the gradient direction of the edge pixel point to be analyzed and the straight line is used as the gradient eigenvalue of the edge pixel point to be analyzed. In the range of 0 to 90 degrees, if the angle is larger, the cosine value is smaller, indicating that the gradient direction of the edge pixel point to be analyzed is more perpendicular to the direction of the straight line, and the edge pixel point to be analyzed is more likely to be a blood vessel edge pixel point.

[0080] like Figure 6 As shown in is the edge pixel to be analyzed, , They are The extension direction on both sides of Direction The gradient direction of for The angle between the gradient direction and the straight line on which it lies is The gradient eigenvalue is .

[0081] The calculation formula for the possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point is:

[0082]

[0083] In the formula, is the ophthalmic image The possibility that the edge pixel to be analyzed is a blood vessel edge pixel, For the said The linear eigenvalue of the local range of the edge pixels to be analyzed, For the said The gradient eigenvalues ​​of the edge pixels to be analyzed, is a natural exponential function, in which It can reflect the preliminary possibility that the edge pixel to be analyzed is the edge pixel of the blood vessel. It is equivalent to the credibility of the preliminary possibility. The smaller the gradient eigenvalue is, the higher the credibility of the preliminary possibility is, and the greater the possibility that the edge pixel to be analyzed is a blood vessel edge pixel is.

[0084] S3: Filter out blood vessel edge pixels based on the possibility, and cluster the blood vessel edge pixels.

[0085] Specifically, blood vessel edge pixel points in the ophthalmic image are screened out according to the size of the possibility, and clustering is performed based on the blood vessel diameters corresponding to the blood vessel edge pixel points and the spacing between the blood vessel edge pixel points to obtain multiple clusters, each cluster including a number of blood vessel edge pixel points.

[0086] Wherein, screening out blood vessel edge pixel points in the ophthalmic image according to the size of the possibility includes:

[0087] Based on the possibility that all edge pixels to be analyzed are vascular edge pixels, the inter-class variance maximization calculation is performed, and all edge pixels to be analyzed are divided into two categories. The edge pixels of the category with a larger possibility mean are used as vascular edge pixels, and the area corresponding to the vascular edge pixels is the vascular edge area. The edge pixels of the other category are eliminated to obtain the final vascular edge map, as shown in FIG. Figure 7 as shown in .

[0088] The clustering is performed based on the blood vessel diameter corresponding to the blood vessel edge pixel points and the distance between the blood vessel edge pixel points, including:

[0089] The blood vessel diameter corresponding to the blood vessel edge pixel point is obtained, specifically, any blood vessel edge pixel point is selected, a specified distance between the blood vessel edge pixel point and any other blood vessel edge pixel point is calculated, and the nearest specified distance is used as the blood vessel diameter corresponding to the blood vessel edge pixel point, such as Figure 7 As shown in , a blood vessel often contains two blood vessel edges, such as and ,exist Select an edge pixel ,calculate The specified distance from other edge pixels, The edge pixel point with the closest specified distance is often located at Therefore, the nearest specified distance can represent The corresponding blood vessel diameter.

[0090] The calculation formula of the specified distance is:

[0091]

[0092] In the formula, is the specified distance, is the angle between the direction of the line connecting the blood vessel edge pixel point and any other blood vessel edge pixel point and the gradient direction of the blood vessel edge pixel point, To measure the amplification factor and prevent the sine value from being too small, which will cause the angle to have too little effect on the specified distance, the angle range is 0 to 90 degrees. is the Euclidean distance between the blood vessel edge pixel point and any other blood vessel edge pixel point.

[0093] like Figure 8 As shown in the figure, the blood vessel edge pixels For example, is another blood vessel edge pixel, for The gradient direction of for and The connection direction, is the angle between the connecting line direction and the gradient direction.

[0094] The purpose of clustering is to group points with relatively consistent blood vessel diameters and close distances into one category, and finally divide the pixel points in the blood vessel edge map into multiple clusters, and in each cluster, the blood vessel diameters corresponding to the pixel points are relatively consistent and the distances between the pixel points are close.

[0095] Clustering Clustering algorithm and set clustering radius ,in, 1 is the Euclidean distance between any two blood vessel edge pixels, is the difference between the blood vessel diameters corresponding to the two blood vessel edge pixels.

[0096] Cluster radius The setting not only takes into account the spatial distance, but also incorporates the characteristics of the vascular structure itself (diameter difference). This design aims to more accurately capture the natural morphological changes of blood vessels and avoid erroneously merging different blood vessels or segments with different diameters due to a simple distance threshold, thereby improving the accuracy of the clustering results.

[0097] S4: Determine the area to be filtered according to the clustering result, perform adaptive Frangi filtering according to the blood vessel diameter range of the area to be filtered, and obtain an enhanced ophthalmic image.

[0098] This step is to use the minimum bounding rectangle of all blood vessel edge pixels in each cluster as a region to be filtered. In this process, different bounding rectangles may overlap with each other. In order to solve the problem of attribution of overlapping areas, a merging strategy is provided: if the bounding rectangle With bounding rectangle Overlapping area , first calculate , as well as The average value of the blood vessel diameters corresponding to the blood vessel edge pixels contained in . Then, the average blood vessel diameter of C11 is compared with and The mean diameter of the blood vessels is Assign to the bounding rectangle that is closer to the mean vessel diameter. For example, if The mean vascular diameter and The mean diameter of the blood vessels is closer to Due to , accordingly, The range of will be adjusted and will no longer include the original overlapping parts. Through this series of clustering operations and the reasonable division of the overlapping parts of the circumscribed rectangles, the entire image is clearly divided into multiple independent areas to be filtered. The blood vessel diameter in each area to be filtered has a high homogeneity, which lays a solid foundation for subsequent targeted analysis and processing.

[0099] The blood vessel diameter range of the area to be filtered is used as the scale factor of the area to be filtered, and the ophthalmic image is adaptively filtered based on the scale factor of the area to be filtered using a Frangi filtering algorithm to finally obtain an enhanced ophthalmic image.

[0100] Specifically, when applying the Frangi filter algorithm to process ophthalmic images, the key lies in the selection of the scale factor, which should be close to the actual diameter of the blood vessel in order to effectively highlight the vascular structure and suppress the signal of non-vascular tissue, thereby enhancing the signal-to-noise ratio of the image. To this end, this method innovatively introduces a strategy of dividing the regions according to the blood vessel diameter to ensure that the blood vessel diameter in each processing region is relatively uniform, which not only narrows the range of scale factors that need to be considered, but also significantly reduces the computational complexity of the algorithm. In the specific implementation, the blood vessel diameter range of each area to be filtered is first determined through careful analysis, and the maximum and minimum values ​​of the blood vessel diameter in the area are selected as a range interval, and the range interval is used as the scale factor range customized for the area to be filtered. Such an adaptive scale factor setting enables the Frangi filter process to more accurately match the blood vessel characteristics of each region and effectively improve the filtering effect.

[0101] After determining the scale factor range of each area to be filtered, Frangi filter enhancement processing is performed on each area to be filtered of the ophthalmic image one by one. This refined processing method significantly optimizes the quality of the optical coherence tomography image, making the vascular structure appear clearer and more prominent, providing clinicians with richer visual information and more accurate diagnostic basis, greatly improving the accuracy and efficiency of diagnosis.

[0102] The present invention also provides an ophthalmological auxiliary imaging system, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the imaging method.

[0103] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

[0104] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

Claims

1. An ophthalmological assisted imaging method, characterized in that: include: Acquire an ophthalmic image using optical coherence tomography technology, perform edge detection on the ophthalmic image, obtain edge pixel points in the ophthalmic image, and use each edge pixel point as an edge pixel point to be analyzed; Extracting the linear eigenvalue of the local range of the edge pixel point to be analyzed and the gradient eigenvalue of the edge pixel point to be analyzed, and calculating the possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point according to the linear eigenvalue and the gradient eigenvalue, wherein the possibility is positively correlated with the linear eigenvalue and negatively correlated with the gradient eigenvalue; Filtering blood vessel edge pixel points in the ophthalmic image according to the size of the possibility, clustering based on the blood vessel diameters corresponding to the blood vessel edge pixel points and the spacing between the blood vessel edge pixel points to obtain a plurality of clusters, each cluster including a plurality of blood vessel edge pixel points; The minimum circumscribed rectangle of all blood vessel edge pixels in each cluster is taken as a region to be filtered, the blood vessel diameter range of the region to be filtered is taken as the scale factor of the region to be filtered, and adaptive Frangi filtering is performed based on the scale factor to obtain an enhanced ophthalmic image.

2. An ophthalmological auxiliary imaging method according to claim 1, characterized in that: The possibility that the edge pixel point to be analyzed is a blood vessel edge pixel point is calculated based on the linear eigenvalue and the gradient eigenvalue, and the calculation formula is: ; in, is the ophthalmic image The possibility that the edge pixel to be analyzed is a blood vessel edge pixel, For the said The linear eigenvalue of the local range of the edge pixels to be analyzed, For the said The gradient eigenvalues ​​of the edge pixels to be analyzed, is a natural exponential function.

3. An ophthalmological auxiliary imaging method according to claim 2, characterized in that: Extracting the linear characteristic value of the local range of the edge pixel point to be analyzed includes: Taking each edge pixel point in the local range as the center, each edge pixel point divides the local range into a left range and a right range; Respectively taking the ratio of the length of the minimum circumscribed rectangle of the left range to the length of the left range, and the ratio of the length of the minimum circumscribed rectangle of the right range to the length of the right range as the left linear eigenvalue and the right linear eigenvalue of the edge pixel point; The average of the left linear eigenvalue and the right linear eigenvalue is used as the linear eigenvalue of the edge pixel point, and the maximum linear eigenvalue of all edge pixels in the local range is used as the linear eigenvalue of the local range of the edge pixel point to be analyzed.

4. The ophthalmological auxiliary imaging method according to claim 2, characterized in that: Screening out blood vessel edge pixel points in the ophthalmic image according to the size of the possibility includes: Based on the possibility that all edge pixels to be analyzed are vascular edge pixels, the inter-class variance maximization calculation is performed, and all edge pixels to be analyzed are divided into two categories. The edge pixels in the category with a larger possibility mean are taken as vascular edge pixels, and the edge pixels in the other category are eliminated.

5. The ophthalmological auxiliary imaging method according to claim 3, characterized in that: The method for setting the local range of the edge pixel points to be analyzed is: The edge pixel point to be analyzed, and the two extending directions along the edge pixel point to be analyzed are respectively edge pixel points, collectively serving as the local range of the edge pixel points to be analyzed, is the default value.

6. The ophthalmological auxiliary imaging method according to claim 3, characterized in that: The method for extracting the gradient eigenvalue of the edge pixel to be analyzed is: If the edge pixel point with the largest linear eigenvalue in the local range is the edge pixel point to be analyzed, the edge pixel point to be analyzed is used as a breaking point, the bisector of the angle between the edge pixel point to be analyzed and the extension directions on both sides thereof is obtained, and the sine value of the angle between the gradient direction of the edge pixel point to be analyzed and the bisector is used as the gradient eigenvalue of the edge pixel point to be analyzed; Otherwise, the edge pixel point to be analyzed is a non-inflection point, and the extension directions on both sides of the edge pixel point to be analyzed form a straight line. The cosine value of the angle between the gradient direction of the edge pixel point to be analyzed and the straight line is used as the gradient eigenvalue of the edge pixel point to be analyzed.

7. An ophthalmological auxiliary imaging method according to claim 4, characterized in that: The method for obtaining the blood vessel diameter corresponding to the blood vessel edge pixel point is: Select any blood vessel edge pixel point, calculate the specified distance between the blood vessel edge pixel point and any other blood vessel edge pixel point, and use the shortest specified distance as the blood vessel diameter corresponding to the blood vessel edge pixel point; The calculation formula of the specified distance is: , where is the specified distance, is the angle between the direction of the line connecting the blood vessel edge pixel point and any other blood vessel edge pixel point and the gradient direction of the edge pixel point, To measure the magnification factor, the angle range is 0 to 90 degrees. is the Euclidean distance between the blood vessel edge pixel point and any other blood vessel edge pixel point.

8. The ophthalmological auxiliary imaging method according to claim 5, characterized in that: The method for determining the extension directions of both sides of the edge pixel point to be analyzed is: Taking the edge pixel point to be analyzed as the center, using breadth-first traversal to identify all edges directly connected to the edge pixel point to be analyzed; If there is more than one directly connected edge, select the two edges with the largest angle with the center, and use the directions of these two edges as the extension directions on both sides of the edge pixel point to be analyzed; if there is only one directly connected edge, the direction of this edge is used as the extension direction on both sides of the edge pixel point to be analyzed.

9. The ophthalmological auxiliary imaging method according to claim 7, characterized in that: Clustering is performed based on the blood vessel diameter corresponding to the blood vessel edge pixel points and the distance between the blood vessel edge pixel points. In the clustering process: The clustering adopts DBSCAN clustering algorithm; The cluster radius of the cluster setting ,in, is the Euclidean distance between any two blood vessel edge pixels, is the difference between the blood vessel diameters corresponding to the two blood vessel edge pixels.

10. An ophthalmological auxiliary imaging system, characterized in that: The auxiliary imaging system comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to implement the steps of the auxiliary imaging method according to any one of claims 1 to 9.