Method, device, equipment and storage medium for calculating flow velocity based on OCT angiography
By using a combination of point scanning and multiple sampling time intervals in OCT angiography technology, the blood flow rate in the blood vessel is calculated, which solves the problem of poor results in the existing technology under specific circumstances, and achieves a comprehensive blood flow rate in the blood vessel , accurate measurement.
Patent Information
- Application Number
- CN202411095155.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-12
AI Technical Summary
When calculating the blood flow rate in the blood vessels, the existing OCT angiography technology only has good results in specific situations and cannot fully meet the actual requirements. The bidirectional Doppler OCT system is costly and difficult to control, so it is impossible to achieve full-field measurement.
The sampling data is obtained by point scanning, frame sampling is performed according to multiple preset sampling time intervals, decorrelation maps are calculated and Enface maps are generated, and the color flow velocity map is obtained through the maximum saturation folding algorithm and smoothing processing, and the binarized mask map is fused. To obtain the final flow velocity diagram, the flow velocity is collectively predicted using multiple sampling time intervals.
It greatly improves the predictable flow rate range, can more accurately measure data at faster flow rates, meet the needs of different scenarios, and achieves a comprehensive measurement of blood flow rate in the blood vessels.
Smart Images

Figure CN118628484B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a method, device, equipment and storage medium for calculating flow velocity based on OCT angiography, and belongs to the field of medical imaging technology. Background Art
[0002] The main technologies for measuring blood flow velocity in blood vessels include Doppler technology and speckle variation technology.
[0003] Among them, Doppler technology, such as Doppler OCT (Optical Coherence Tomography), depends on the Doppler angle between the incident light and the sample, and the Doppler angle is unknown. Therefore, bidirectional Doppler OCT (incident light in two directions) is required to avoid the influence of angle on flow velocity. However, the bidirectional Doppler OCT system is expensive, difficult to control, and cannot achieve full field of view.
[0004] The decorrelation value is calculated using the signal intensity difference caused by the flow of red blood cells, and then the flow velocity can also be calculated using the decorrelation value. Experiments have shown that the flow velocity calculated using the decorrelation value is not affected by the angle. On this basis, articles such as VISTA proposed using different time intervals to calculate the flow velocity, but if the time interval is short, the decorrelation values of most blood vessels will not be saturated, and can only be used to predict faster flow velocity values, and blood vessels with too low flow velocity values will be insensitive; if the time interval is long, only the decorrelation values of small blood vessels will not be saturated, and can be used to predict slower flow velocity values. In other words, the different time intervals used in the flow velocity algorithms of articles such as VISTA can only have better effects in specific situations and cannot fully meet actual requirements. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for calculating flow velocity based on OCT angiography to solve the problem that the existing methods can only have good effects in specific situations and cannot fully meet actual requirements.
[0006] In a first aspect, an embodiment of the present application provides a method for calculating flow velocity based on OCT angiography, comprising:
[0007] Acquiring sampling data, wherein the sampling data is obtained by scanning the sample a preset number of times in a point scanning manner;
[0008] Frame sampling is performed on the sampled data according to a plurality of different preset sampling time intervals to obtain a plurality of sampled data corresponding to each preset sampling time interval;
[0009] Based on the sampling data corresponding to each preset sampling time interval, respectively calculate the decorrelation graph corresponding to each preset sampling time interval, and generate an Enface graph from all the sampling data;
[0010] Binarizing and activating each of the decorrelation maps to obtain a corresponding binary activation map;
[0011] Obtaining the corresponding relationship between the binary activation map and the flow velocity corresponding to each preset sampling time interval obtained by performing data fitting through experiments;
[0012] Based on the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity, a maximum saturation folding algorithm is used to convert all the binary activation maps into a flow velocity map, and the flow velocity map is smoothed;
[0013] Binarizing the Enface image to generate a binary mask image, and converting the smoothed velocity image into a color velocity image;
[0014] The binary mask image is fused with the color velocity image to obtain a final velocity image.
[0015] Based on the above method, optionally, the step of calculating the decorrelation graph corresponding to each preset sampling time interval based on the sampled data corresponding to each preset sampling time interval includes:
[0016] The decorrelation value is calculated using the following formula:
[0017]
[0018] In the formula, Indicates the fault location The decorrelation value at Indicates the total number of sampling times corresponding to each preset sampling time interval, Indicates the fault location The value of the sampled data at the nth sampling, represents the number of spectra, Indicates A frequency.
[0019] Based on the above method, optionally, performing binarization activation on each of the decorrelation maps to obtain a corresponding binarized activation map includes:
[0020] The following binarization formula is used to perform binarization activation on each of the decorrelation maps to obtain the corresponding binarization activation map:
[0021]
[0022] in, Indicates the fault location The decorrelation value at Represents the set binarization threshold, Indicates the activation result, the activated point is 1 and the inactivated point is 0.
[0023] Based on the above method, optionally, based on the correspondence between the binary activation map corresponding to each preset sampling time interval and the flow velocity, a maximum saturation folding algorithm is used to convert all the binary activation maps into a flow velocity map, including:
[0024] Initialize the MSF matrix: Use two layers of loops to traverse the height and width of the MSF and initialize all elements to -1;
[0025] Update the MSF matrix along the time axis: For time t counting down from the maximum time T to 0, do the following: If , then update the value of the current element based on the corresponding relationship between the binary activation map and the flow rate; if , then jump out of the current loop, that is, stop further time iteration;
[0026] in, Represents the matrix points along the time axis, Indicates the time interval, Indicates time.
[0027] Based on the above method, optionally, it also includes:
[0028] Extracting a skeleton image based on the binary mask image;
[0029] Calculate a top-view diameter map based on the skeleton map, and then calculate a top-view area map based on the top-view diameter map;
[0030] The volume flow diagram is obtained by performing a dot multiplication of the top-view area diagram and the final flow velocity diagram.
[0031] Based on the above method, optionally, calculating the top-view diameter map based on the skeleton map, and then calculating the top-view area map based on the top-view diameter map, includes:
[0032] The diameter is calculated based on the following calculation formula:
[0033]
[0034] In the formula, Represents the diameter, the unit is pixel, represents the binary mask image, Skeleton diagram, n represents the width and height of the window;
[0035] Will Convert to Length mm, then based on the following formula:
[0036]
[0037] Will Convert to top-down area map , the unit of the top-down area map is ;
[0038] The step of performing a dot multiplication of the top-view area graph and the final flow velocity graph to obtain a volume flow graph includes:
[0039] The volume flow graph is obtained by multiplying the top-view area graph and the final flow velocity graph according to the following formula:
[0040] Volumetric_Flow_Rate = Flow_Rate * area_map
[0041] Where Volumetric_Flow_Rate represents the volume flow rate graph, and Flow_Rate represents the final flow rate graph
[0042] In a second aspect, an embodiment of the present application further provides a device for calculating flow velocity based on OCT angiography, comprising:
[0043] A first acquisition module is used to acquire sampling data, wherein the sampling data is obtained by scanning the sample a preset number of times in a point scanning manner;
[0044] A sampling module, used for sampling the sampled data according to a plurality of different preset sampling time intervals, and obtaining a plurality of sampled data corresponding to each preset sampling time interval;
[0045] A first processing module, used for respectively calculating a decorrelation graph corresponding to each preset sampling time interval based on the sampling data corresponding to each preset sampling time interval, and generating an Enface graph from all the sampling data;
[0046] A binary activation module, used to perform binary activation on each of the decorrelation maps to obtain a corresponding binary activation map;
[0047] The second acquisition module is used to obtain the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity obtained by performing data fitting through experiments;
[0048] The second processing module is used to obtain the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity, convert all the binary activation maps into a flow velocity map using a maximum saturation folding algorithm, and smooth the flow velocity map;
[0049] A third processing module is used to perform binarization processing on the Enface image to generate a binary mask image, and to convert the smoothed velocity image into a color velocity image;
[0050] A fusion module is used to fuse the binary mask image with the color velocity image to obtain a final velocity image.
[0051] In a third aspect, an embodiment of the present application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor calls and executes the computer program, the method for calculating flow velocity based on OCT angiography as described in any one of the first aspects is implemented.
[0052] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when called and executed by a processor, implements the method for calculating flow velocity based on OCT angiography as described in any one of the first aspects.
[0053] The above technical solution provided by this application has at least the following beneficial effects:
[0054] The present application provides a method, device, equipment and storage medium for calculating flow velocity based on OCT angiography. After acquiring the sampled data, the sampled data is frame-sampled according to a plurality of different preset sampling time intervals to obtain a plurality of sampled data corresponding to each preset sampling time interval, and then a multi-step processing is performed based on the sampled data to obtain an Enface image and a color flow velocity image. Finally, the Enface image and the color flow velocity image are fused to obtain the final flow velocity image. With such a setting, multiple sampling time intervals are used to jointly predict the flow velocity, thereby greatly improving the predictable flow velocity range. In addition, a point scanning method is used to scan the sample to obtain the sampled data, and the point scanning method can measure data at a faster flow velocity. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. In addition, these drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments.
[0056] Figure 1 A schematic flow chart of a method for calculating flow velocity based on OCT angiography provided in one embodiment of the present application;
[0057] Figure 2 A binary activation map corresponding to activation of a decorrelation map provided by an embodiment of the present application;
[0058] Figure 3 A corresponding relationship diagram between a binary activation map and a flow rate provided in one embodiment of the present application;
[0059] Figure 4 A schematic diagram of an ideal decorrelation activation provided for one embodiment of the present application;
[0060] Figure 5 A schematic diagram of Gaussian distribution of decorrelation values provided for one embodiment of the present application;
[0061] Figure 6 A schematic diagram of a smoothing process provided by an embodiment of the present application;
[0062] Figure 7 A rendering of the implementation process of step S106 provided in one embodiment of the present application;
[0063] Figure 8 A rendering of the implementation process of steps S107 and S108 provided for one embodiment of the present application;
[0064] Fig. 9 A schematic diagram of different flow rate ranges that can be observed by changing the color range of a custom JET Colormap provided in one embodiment of the present application;
[0065] Fig.10 A schematic diagram of the principle of calculating a volume flow diagram through a flow velocity diagram and a binary mask diagram provided in one embodiment of the present application;
[0066] Fig.11 A schematic diagram of the structure of a device for calculating flow velocity based on OCT angiography provided in one embodiment of the present application;
[0067] Fig.12 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0069] As described in the background technology section, the different time intervals used by the existing vascular flow velocity algorithms when calculating decorrelation values can only have good effects in specific situations and cannot fully meet actual requirements.
[0070] In order to solve the above problems, the present application provides a flow velocity calculation scheme based on OCT angiography, in which multiple sampling time intervals are used to calculate the decorrelation value and jointly predict the flow velocity, thereby greatly improving the predictable flow velocity range and fully meeting the actual requirements. In addition, the sample is scanned by point scanning to obtain the sampling data, and the data at a faster flow velocity can be measured. The following is a non-limiting description of the specific implementation scheme through several examples or embodiments.
[0071] First, some embodiments of the present application provide a method for calculating flow velocity based on OCT angiography. The method can be implemented by a software program running in an electronic device, that is, the method can be executed by an electronic device. Based on the method, the blood flow velocity in the blood vessel can be measured.
[0072] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for calculating flow velocity based on OCT angiography provided in an embodiment of the present application. Figure 1 As shown, the method for calculating flow velocity based on OCT angiography in this embodiment includes the following steps:
[0073] Step S101: acquiring sampling data, wherein the sampling data is obtained by scanning a sample a preset number of times in a point scanning manner.
[0074] Specifically, the acquisition method is a point scanning method (Repeated Aline scanning protocol), which means applying a specific structured light beam point by point on the sample and then collecting the reflected light to obtain sampling data. Using the point scanning method to scan the sample to obtain sampling data can measure data at a faster flow rate and better meet the needs of different scenarios.
[0075] Furthermore, the SSOCT (Swept Source Optical Coherence Tomography) device can be used to sample the sample to obtain sampling data. The SSOCT device is a medical imaging device that uses optical principles to obtain high-resolution images of human tissues. It uses the principle of light interference to scan and analyze reflected light signals to generate images of tissue structures, providing doctors with visual information to help diagnose and treat diseases.
[0076] Furthermore, in some embodiments, a sample scan may be performed based on a SSOCT device with a light source frequency of 200 kHz to acquire the required sampling data.
[0077] In some embodiments, each position point is scanned 200 times, each time interval is 5us (microseconds), and then data is saved every 5 scans. Therefore, the saved data is 40 times for each position point, each time interval is 25us. This will be used as an example for explanation in the subsequent embodiments.
[0078] In addition, in this embodiment, the sample used is C57 mouse brain, and this is also used as an example for explanation in subsequent embodiments.
[0079] Step S102: Frame sampling is performed on the sampled data according to a plurality of different preset sampling time intervals to obtain a plurality of sampled data corresponding to each preset sampling time interval.
[0080] Specifically, sampling the sampled data according to the preset sampling time interval refers to arranging the sampled data in the previous step in the order of sampling time, and then selecting corresponding data from the arranged sampled data according to a specific time interval. For ease of explanation, the preset sampling time interval is recorded as deltaT, and different preset sampling time intervals can be recorded as deltaT_1, deltaT_2, deltaT_3...deltaT_n. The number of samplings corresponding to each preset sampling time interval can be selected according to actual needs, for example, it can be 5. For example, the sampling points of deltaT_1 can be (1,2), (2,3), (3,4), (4,5), (5,6), then the time interval of 1-2, 2-3... is 25us (microseconds), that is, deltaT_1=25us; for example, the sampling points of deltaT_5 are (1,35), (2,36), (3,37), (4,38), (5,39), then the time interval of 1-35, 2-36... is 25*34=850us, that is, deltaT_5=850us.
[0081] Step S103: calculating the decorrelation graph corresponding to each preset sampling time interval based on the sampling data corresponding to each preset sampling time interval, and generating an Enface graph from all the sampling data.
[0082] Specifically, the SSADA (Split Spectrum Amplitude Decorrelation Angiography) algorithm can be used to calculate the decorrelation map corresponding to each deltaT. The calculation formula for the decorrelation value is:
[0083]
[0084] In the formula, Indicates the fault location The decorrelation value at Indicates the total number of sampling times corresponding to each preset sampling time interval, for example , Indicates the fault location The value of the sampled data at the nth sampling, Indicates the number of spectra, e.g. , Indicates A spectrum.
[0085] By calculating the decorrelation value of each fault position, the corresponding decorrelation map can be obtained.
[0086] In addition, since the data output by SSADA is 3D volume data, it is necessary to convert the 3D volume data into a 2D Enface image through the Enface generation algorithm. The Enface generation algorithm splices and reorganizes the 3D volume data through a series of mathematical operations to generate a 2D image. Each pixel in this image represents the maximum or average optical signal intensity at a specific depth, thereby showing the specific characteristics or structure of the tissue on a 2D plane.
[0087] Furthermore, in some embodiments, the specific implementation method of generating an Enface graph from all sampled data may include:
[0088] Based on the OMAG algorithm, combined with the eigendecomposition algorithm and the sampling data corresponding to all preset sampling time intervals, the OMAG Enface graph is calculated and generated.
[0089] Specifically, in conventional Decorrelation technology, blood vessels are identified by detecting mutations in signal intensity, that is, signal intensity is used to calculate OCTA (Optical coherence tomography angiography). The OMAG (Optimal Multiple Alignment with Gaps) algorithm uses both signal intensity and complex changes to participate in the calculation, so the calculation result has a higher contrast and the blood vessels are clearer. Therefore, this embodiment adopts the OMAG algorithm, combined with the Eigen-Decomposition (ED) algorithm and the sampling data corresponding to all preset sampling time intervals to calculate the OCTA Enface map. For example, 5 frames of deltaT_N (1, 10, 20, 30, 40) data can be used for calculation. Among them, the above specific calculation process is a prior art, so it will not be described in detail.
[0090] Step S104: Binarization and activation are performed on each decorrelation map to obtain a corresponding binary activation map.
[0091] Specifically, binary activation refers to replacing the value of each position in the decorrelation map with 0 or 1 according to the conditions.
[0092] In some embodiments, the following binarization formula is used to perform binarization activation on each decorrelation map to obtain a corresponding binarized activation map:
[0093]
[0094] in, Indicates the fault location The decorrelation value at The value range is 0~1. Represents the set binarization threshold, Indicates the activation result, the activated point is 1 and the inactivated point is 0. The specific value of is chosen to be 0.23 (corresponding to a 90% background-free decorrelation value distribution).
[0095] The above formula indicates that if the decorrelation value is greater than the set binarization threshold , then set its value to 1, i.e. activated, otherwise set its value to 0, i.e. inactivated.
[0096] Reference Figure 2 , Figure 2 The activation results of the decorrelation map corresponding to five different preset sampling time intervals deltaT, ie, the binary activation map, are shown. Figure 2 In the figure, deltaT_1~deltaT_5 are 25 us, 200 us, 400 us, 600 us and 850 us respectively.
[0097] Step S105: Obtaining the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity obtained by performing data fitting through experiments.
[0098] Specifically, in practice, when other parameters remain unchanged, sampling at different flow rates will obtain different sampling data, and then when processed according to the method of the above steps, different binary activation maps will be obtained. In order to determine the correspondence between different binary activation maps and different flow rates, experiments are conducted and data fitting is performed based on the experimental results to obtain the above correspondence. Furthermore, in vitro experiments can be used. The advantage of in vitro experiments is that the flow rate can be controlled, and parameters such as accuracy and MSE (mean square error) can also be calculated to evaluate and optimize the experimental process.
[0099] Among them, the in vitro experiment was selected as an experiment of perfusing pig blood in the capillaries (of the brain of C57 mice). By observing at which deltaT the current flow rate is activated, the activated data is calibrated as "Scattered Points". Then the experiment is performed again using different flow rates. The above experiments are repeated continuously. Finally, the cubic spline function is used to connect the Scattered Points of these experiments to obtain the corresponding relationship between the binary activation map and the flow rate at different deltaT. The experiment found that the corresponding relationship between the binary activation map and the flow rate (regression models) is a nonlinear relationship, and its schematic diagram is shown below. Figure 3 shown. Figure 3 In the figure, the horizontal axis is the preset sampling time interval deltaT, the vertical axis is the velocity (velocity), and the fitting curve is the curve fitted by the cubic spline interpolation algorithm.
[0100] Step S106: Based on the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity, a maximum saturation folding algorithm is used to convert all the binary activation maps into a flow velocity map, and the flow velocity map is smoothed.
[0101] Specifically, since the aforementioned steps use sampling data corresponding to multiple preset sampling time intervals to obtain multiple binary activation maps, the maximum saturation folding (MSF) algorithm is used in this step to process the multiple binary activation maps to obtain a flow velocity map of the features of all binary activation maps.
[0102] The MSF algorithm extracts the minimum saturated deltaT (shortest time interval) as the parameter t in the MSF algorithm for calculation. Because at the same flow rate, the longer the time interval, the greater the probability that the decorrelation graph will be activated (saturated), so choosing the t with the shortest time interval to be activated can lock the flow rate upper limit. Therefore, when the parameter in the MSF algorithm is When T is a discrete value, MSF(t) will be greater than or equal to the actual flow rate, that is, Over-estimate (i.e., the predicted value is greater than the actual value) will occur.
[0103] Figure 4 shows an idealized decorrelation activation diagram, according to Figure 4 It can be seen that if the flow rate is 55 mm / s, it will be activated by deltaT-2.
[0104] In some embodiments, in step S106, based on the correspondence between the binary activation map corresponding to each preset sampling time interval and the flow velocity, the MSF algorithm is used to convert all the binary activation maps into a flow velocity map. The formula code of the specific implementation method is expressed as:
[0105] for i [0, 1, ..., MSF_height]:
[0106] for j [0, 1, ..., MSF_width]:
[0107] MSF (i, j) = -1
[0108] for t [T, T-1, ..., 0]:
[0109] if <= t:
[0110] MSF (i, j) = cubic_spline (t)
[0111] else:
[0112] break
[0113] The meaning of the above code is as follows:
[0114] 1. Initialize the MSF matrix:
[0115] Use two layers of loops to traverse the height (MSF_height) and width (MSF_width) of MSF, and initialize all elements of the MSF matrix to -1 (i.e. MSF (i, j) = -1);
[0116] 2. Update the MSF matrix along the time axis:
[0117] For a time parameter t counting down from the maximum time T to 0, do the following: If , then based on the correspondence between the binary activation map and the flow rate (cubic_spline(t)), the value MSF (i, j) of the current element is updated (that is, the flow rate value MSF(t) calculated by the MSF algorithm); if , then jump out of the current loop, that is, stop further time iteration;
[0118] In the formula, Represents the matrix points along the time axis, Indicates the time interval, Indicates time.
[0119] In the above code, the judgment condition <= t is to confirm that deltaT(t+1)...deltaT(T) are all activated under deltaT(t). If this condition is not met, the corresponding element is noise. cubic_spline(t) is the fitting curve described in step S105, which is used to convert deltaT into flow rate.
[0120] Afterwards, in order to make the velocity map more accurate, the velocity map is smoothed. Specifically, the smoothing process can be achieved by using an algorithm such as a bilateral filter algorithm.
[0121] In some embodiments, the specific implementation method of smoothing the flow velocity graph may include:
[0122] According to the Gaussian distribution of the decorrelation value of the decorrelation graph corresponding to each preset sampling time interval, a plurality of points are collected from local positions with similar flow velocities in the flow velocity graph for smoothing processing, so as to achieve smoothing processing of the flow velocity graph.
[0123] Specifically, as mentioned above, when the number of T is a discrete value, MSF(t) will be over-estimated and MSF is a discrete value, and its number depends on the number of T. In practice, the change of the decorrelation value is determined by the number (speed) of red blood cell movements, and the number of red blood cells is a discrete value, and the movement is a random event, so the distribution of the decorrelation value is a Gaussian distribution, such as Figure 5 shown. Figure 5 The distribution of decorrelation graphs of different deltaTs when the actual flow rate is 6.1 mm / s. The distribution of each decorrelation graph is a Gaussian distribution, and the larger the deltaT, the larger the mean of the Gaussian distribution.
[0124] In addition, there are a lot of overlaps in the Gaussian distributions between different deltaTs. Therefore, collecting multiple points at local locations (with similar flow velocities) for smoothing can restore the flow velocity MSF(t) predicted by discrete T deltaTs to a continuous flow velocity value smoothed_MSF, that is, to obtain a smoothed flow velocity map. The principle is as follows: Figure 6 As shown. Figure 6 It can be seen that if the flow rate is 55 mm / s, it will be activated by deltaT-2 and deltaT-3.
[0125] The above processing method can be called a decorrelation probability density model. Based on this model, effective fusion of images at multiple sampling time intervals is achieved.
[0126] Figure 7 The effect diagram of the implementation process of step S106 is shown.
[0127] Step S107: binarizing the Enface image to generate a binary mask image, and converting the smoothed velocity image into a color velocity image.
[0128] Specifically, the Enface image can be processed by the Frangi Vessel Enhancement algorithm and the Adaptive Threshold algorithm to generate a binary mask image (BinaryMask). This process is an existing technology and will not be described in detail.
[0129] At the same time, the color mapping algorithm can be used to convert the smoothed velocity map (Smoothed_MSF) into a colored velocity map (colored_MSF), which is convenient for users to observe.
[0130] In some embodiments, in step S107, the specific implementation process of converting the smoothed flow rate map into a color flow rate map may include: using a custom JET colormap algorithm to convert the smoothed flow rate map into a color flow rate map; wherein the color of the minimum value of the custom JET colormap algorithm is black, so that the background of the converted color flow rate map is black.
[0131] The JET colormap algorithm includes a gradient from cool tones (blue) through neutral tones (green) to warm tones (red), providing rich color levels and contrast for visual presentation. Through user customization, the color range can be adjusted to obtain different display effects. In addition, by customizing the color of the minimum value to black, the background of the converted color velocity map can be black, which is more convenient for observation.
[0132] In addition, by changing the color range of the custom JET Colormap, you can observe different flow rate ranges. Fig. 9 shown. Fig. 9 In the three flow velocity graphs, the flow velocity ranges of 0-10mm / s, 0-14mm / s and 0-20mm / s can be observed respectively.
[0133] Step S108: Fusing the binary mask image with the color velocity image to obtain a final velocity image.
[0134] Specifically, after fusing the binary mask image with the color velocity image, a final velocity image can be obtained for reference by users such as doctors.
[0135] Figure 8The effect diagram of the implementation process of steps S107 and S108 is shown. Figure 8 It can be seen that the background of the final fused flow rate map (Flow Rate) is cleaner and clearer than the color flow rate map (Color_MSF).
[0136] Based on the above scheme, after obtaining the sampling data, the sampling data is frame-sampled according to a variety of different preset sampling time intervals to obtain multiple sampling data corresponding to each preset sampling time interval, and then multi-step processing is performed based on the sampling data to obtain the Enface image and the color flow velocity map. Finally, the Enface image and the color flow velocity map are fused to obtain the final flow velocity map. In this way, multiple sampling time intervals are used to jointly predict the flow velocity, thereby greatly improving the predictable flow velocity range. In addition, the sample is scanned by a point scanning method to obtain the sampling data, and the point scanning method can measure data at a faster flow rate.
[0137] In addition, in some embodiments, the above method may further include:
[0138] A skeleton image is extracted based on the binary mask image; a top-view diameter image is calculated based on the skeleton image, and a top-view area image is calculated based on the top-view diameter image; and a volume flow image is obtained by multiplying the top-view area image with the final flow velocity image.
[0139] Specifically, the perfusion volume map can be calculated from the flow velocity map and the diameter of the blood vessel. Fig.10 As shown, firstly, the skeleton image is extracted based on the binary mask image, and then the top-view diameter image (of the blood vessel) can be calculated based on the skeleton image. The calculation formula is:
[0140]
[0141] Where n represents the width and height of the window, The unit is pixel.
[0142] After that, you need to Convert to Length The conversion method may be to predetermine a conversion ratio of pixels to length and then implement it based on the conversion ratio.
[0143] Then based on the following formula:
[0144]
[0145] Will Converted to a top-down area map (area_map), the unit is .
[0146] Finally, according to the following formula, the top view area map (area_map) is multiplied by the above final flow rate map (Flow Rate) to obtain the volumetric flow rate map (Volumetric_Flow_Rate), the unit is .
[0147] Volumetric_Flow_Rate = Flow_Rate * area_map
[0148] Through the above method, a perfusion volume map, that is, a blood vessel flow map, can be obtained, which provides more references for doctors and others in addition to the flow velocity map.
[0149] In addition, the present application also provides a device for calculating flow velocity based on OCT angiography, referring to Fig.11 , devices for calculating flow velocity based on OCT angiography include:
[0150] A first acquisition module 21 is used to acquire sampling data, wherein the sampling data is obtained by scanning the sample a preset number of times in a point scanning manner;
[0151] The sampling module 22 is used to perform frame sampling on the sampled data according to a plurality of different preset sampling time intervals to obtain a plurality of sampled data corresponding to each preset sampling time interval;
[0152] A first processing module 23 is used to calculate the decorrelation graph corresponding to each preset sampling time interval based on the sampling data corresponding to each preset sampling time interval, and generate an Enface graph from all the sampling data;
[0153] A binary activation module 24, used to perform binary activation on each of the decorrelation maps to obtain a corresponding binary activation map;
[0154] The second acquisition module 25 is used to obtain the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity obtained by performing data fitting through experiments;
[0155] The second processing module 26 is used to obtain the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity, convert all the binary activation maps into a flow velocity map using the maximum saturation folding algorithm, and smooth the flow velocity map using the bilateral filtering algorithm;
[0156] The third processing module 27 is used to process the Enface image to generate a binary mask image, and to convert the smoothed velocity image into a color velocity image;
[0157] The fusion module 28 is used to fuse the binary mask image with the color velocity image to obtain a final velocity image.
[0158] Among them, regarding the specific implementation methods of each module of the above-mentioned device for calculating flow velocity based on OCT angiography, reference can be made to the corresponding contents in the aforementioned method embodiment, and no further details will be given here.
[0159] In addition, an embodiment of the present application provides an electronic device, such as Fig.12 As shown, the electronic device includes a memory 31 and a processor 32; wherein the memory 31 stores a computer program, and when the processor 32 calls and executes the computer program, the method for calculating flow velocity based on OCT angiography in any of the above embodiments is implemented.
[0160] The electronic device may be a computer or the like.
[0161] In addition, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is called and executed by a processor, the computer program implements the method for calculating flow velocity based on OCT angiography as described in any of the aforementioned embodiments.
[0162] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0163] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0164] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0165] A person of ordinary skill in the art may understand that all or part of the steps of the method for implementing the above-mentioned embodiment may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0166] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0167] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0168] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for calculating flow velocity based on OCT angiography, characterized in that: include: Acquiring sampling data, wherein the sampling data is obtained by scanning the sample a preset number of times in a point scanning manner; Frame sampling is performed on the sampled data according to a plurality of different preset sampling time intervals to obtain a plurality of sampled data corresponding to each preset sampling time interval; Based on the sampling data corresponding to each preset sampling time interval, respectively calculate the decorrelation graph corresponding to each preset sampling time interval, and generate an Enface graph from all the sampling data; Binarizing and activating each of the decorrelation maps to obtain a corresponding binary activation map; Obtaining the corresponding relationship between the binary activation map and the flow velocity corresponding to each preset sampling time interval obtained by performing data fitting through experiments; Based on the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity, the maximum saturation folding algorithm MSF is used to convert all the binary activation maps into a flow velocity map, and the flow velocity map is smoothed; Binarizing the Enface image to generate a binary mask image, and converting the smoothed velocity image into a color velocity image; The binary mask image is fused with the color velocity image to obtain a final velocity image.
2. The method according to claim 1, characterized in that The step of calculating the decorrelation graph corresponding to each preset sampling time interval based on the sampled data corresponding to each preset sampling time interval comprises: The decorrelation value is calculated using the following formula: In the formula, Indicates the fault location The decorrelation value at Indicates the total number of sampling times corresponding to each preset sampling time interval, Indicates the fault location The value of the sampled data at the nth sampling, represents the number of spectra, Indicates A spectrum.
3. The method according to claim 1, characterized in that: The step of performing binary activation on each of the decorrelation maps to obtain a corresponding binary activation map comprises: The following binarization formula is used to perform binarization activation on each of the decorrelation maps to obtain the corresponding binarization activation map: in, Indicates the fault location The decorrelation value at Represents the set binarization threshold, Indicates the activation result, the activated point is 1 and the inactivated point is 0.
4. The method according to claim 1, characterized in that: Based on the correspondence between the binary activation map corresponding to each preset sampling time interval and the flow velocity, a maximum saturation folding algorithm is used to convert all the binary activation maps into a flow velocity map, including: Initialize the MSF matrix: Use two layers of loops to traverse the height and width of the MSF and initialize all elements to -1; Update the MSF matrix along the time axis: For time t counting down from the maximum time T to 0, do the following: If , then update the value of the current element based on the corresponding relationship between the binary activation map and the flow rate; if , then jump out of the current loop, that is, stop further time iteration; in, Represents the matrix points along the time axis, Indicates the time interval, Indicates time.
5. The method according to claim 1, characterized in that Also includes: Extracting a skeleton image based on the binary mask image; Calculate a top-view diameter map based on the skeleton map, and then calculate a top-view area map based on the top-view diameter map; The volume flow diagram is obtained by performing a dot multiplication of the top-view area diagram and the final flow velocity diagram.
6. The method according to claim 5, characterized in that The step of calculating the top-view diameter map based on the skeleton map, and then calculating the top-view area map based on the top-view diameter map, includes: The diameter is calculated based on the following calculation formula: In the formula, Represents the diameter, the unit is pixel, represents the binary mask image, represents the skeleton graph, n represents the width and height of the window; Will Convert to Length mm, then based on the following formula: Will Convert to top-down area map , the unit of the top-down area map is ; The step of performing a dot multiplication of the top-view area graph and the final flow velocity graph to obtain a volume flow graph includes: The volume flow graph is obtained by multiplying the top-view area graph and the final flow velocity graph according to the following formula: Volumetric_Flow_Rate = Flow_Rate * area_map Where Volumetric_Flow_Rate represents the volumetric flow rate graph, and Flow_Rate represents the final flow rate graph.
7. A device for calculating flow velocity based on OCT angiography, characterized in that: include: A first acquisition module is used to acquire sampling data, wherein the sampling data is obtained by scanning the sample a preset number of times in a point scanning manner; The sampling module is used to perform frame sampling on the sampled data according to a plurality of different preset sampling time intervals to obtain a plurality of sampled data corresponding to each preset sampling time interval; A first processing module, configured to calculate a decorrelation graph corresponding to each preset sampling time interval based on the sampling data corresponding to each preset sampling time interval, and to generate an Enface graph from all the sampling data; A binary activation module, used to perform binary activation on each of the decorrelation maps to obtain a corresponding binary activation map; The second acquisition module is used to obtain the corresponding relationship between the binary activation map corresponding to each preset sampling time interval and the flow velocity obtained by performing data fitting through experiments; The second processing module is used to obtain the corresponding relationship between the binary activation map and the flow velocity corresponding to each preset sampling time interval, convert all the binary activation maps into a flow velocity map by using the maximum saturation folding algorithm MSF, and smooth the flow velocity map; A third processing module is used to perform binarization processing on the Enface image to generate a binary mask image, and to convert the smoothed velocity image into a color velocity image; The fusion module is used to fuse the binary mask image with the color velocity image to obtain a final velocity image.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the processor calls and executes the computer program, the method for calculating flow velocity based on OCT angiography as claimed in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is called and executed by a processor, the method for calculating flow velocity based on OCT angiography according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Systems and methods for performing gabor optical coherence tomographic angiography
CN112136182A
Methods and apparatus for retina blood vessel assessment with oct angiography
US20160183786A1
Oct angiography calculation with optimized signal processing
US20160307314A1
Improved frequency-domain interferometric based imaging systems and methods
US20170105618A1
