Method and device for adaptively controlling scanning distance
By adaptively controlling the scanning distance and adjusting the scanning position in optical coherence tomography technology, the error problem in capillary blood flow velocity measurement is solved, and the measurement accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202410470749.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-04-18
AI Technical Summary
In optical coherence tomography technology, it is difficult for the prior art to accurately measure capillary blood flow velocity at a fixed frame rate, resulting in large errors in the calculation results.
By adaptively controlling the scanning distance, adjust the distance between the two scans to obtain the scanning position with the highest mutual correlation coefficient, and improve the calculation accuracy of capillary blood flow velocity.
It effectively eliminates calculation errors, improves the measurement accuracy and efficiency of capillary blood flow velocity, and realizes non-invasive blood flow velocity measurement.
Smart Images

Figure CN118105041B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical coherence tomography, in particular to the technical field of capillary detection, and more particularly to a method for adaptively controlling a scanning distance, a device for adaptively controlling a scanning distance, a method for measuring capillary blood flow velocity, a device for measuring capillary blood flow velocity, a computer device, a computer-readable storage medium and a computer program product. Background Art
[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.
[0003] Capillaries are the place where new and old substances are exchanged, also known as microcirculation. They have a unique function and can excrete carbon dioxide and metabolic waste brought in by venous blood. For example, the capillaries in the lungs can expel carbon dioxide during human breathing movements, and can also inhale oxygen during breathing, and then input this fresh oxygen into the arteries, turning it into bright red arterial blood, which flows throughout the body to supply tissue needs. Therefore, measuring the blood flow velocity in capillaries is of great clinical significance.
[0004] The inventors have found that when measuring capillary blood flow velocity based on OCT (Optical Coherence Tomography) scan images, two fixed scanning distances are generally used, and the cross-correlation coefficient obtained by two scans at two fixed scanning positions is used to infer the flow time and thus calculate the capillary blood flow velocity. However, due to the performance limitations of current OCT scanning equipment, it is difficult to increase the scanning speed. Therefore, the optimal cross-correlation signal value cannot be perfectly scanned at the current frame rate. For example, when the optimal cross-correlation coefficient actually appears before or after the second scan (for example, at the N-0.5 to N+0.4 frames), the second scan defaults to the Nth frame, which will cause a large error in the calculation result. Summary of the invention
[0005] In order to address the deficiencies of the prior art, the present invention provides a method and device for adaptively controlling the scanning distance. By changing the distance between two scans, the second scan image obtained by adaptive feedback comparison is exactly the scanning position with the highest correlation coefficient, which can effectively eliminate errors and improve the accuracy of capillary blood flow velocity calculation.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a method for adaptively controlling a scanning distance.
[0008] A method for adaptively controlling a scanning distance includes the following steps:
[0009] Scan multiple positions of capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcation capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of capillary blood flow at each position;
[0010] For any two positions of the non-bifurcated capillaries, the mutual correlation coefficient of the coded images corresponding to the two positions is calculated, the distance between the two positions is increased or decreased, and the mutual correlation coefficient of the coded images is calculated, and the distance between the two positions corresponding to the maximum mutual correlation coefficient is taken as the optimal scanning position interval.
[0011] As a further limitation of the first aspect of the present invention, the determination of the same non-bifurcation capillary comprises:
[0012] Scanning is performed at any two positions in the capillary region on the OCTA image, each position corresponds to a plurality of initial cross-sectional images at different times, and the cross-sectional images at each position are fused, and each position corresponds to a fused cross-sectional image;
[0013] A capillary signal on one fused cross-sectional image is selected and cross-correlated with all capillary signals on another fused cross-sectional image. Two capillaries whose cross-correlation coefficient is greater than or equal to the coefficient threshold are the same capillary without bifurcation.
[0014] As a further limitation of the first aspect of the present invention, before determining the same non-bifurcation capillary, identifying the capillary includes:
[0015] The brightness on the fused cross-sectional image is contrasted. When the brightness is greater than the brightness threshold, it is a blood vessel, and when the diameter is less than the diameter threshold, it is a capillary. Alternatively, for each point in the fused cross-sectional image, time is used as the horizontal axis and the brightness signal of multiple repeated scans is used as the vertical axis. The brightness signals at different times are compared. The area with a wavy brightness signal and a suitable size greater than the threshold is a capillary signal.
[0016] As a further limitation of the first aspect of the present invention, increasing or decreasing the distance between the two positions includes:
[0017] The scanning position during the first scanning is fixed as the first position, and the distance from the first position during the second scanning is increased or decreased.
[0018] In a second aspect, the present invention provides a device for adaptively controlling scanning distance.
[0019] A device for adaptively controlling a scanning distance includes the following processes:
[0020] The coded image acquisition unit is configured to: scan multiple positions of the capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcation capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of the capillary blood flow at each position;
[0021] The optimal interval acquisition unit is configured to: for any two positions of the non-bifurcation capillaries, calculate the mutual correlation coefficient of the coded images corresponding to the two positions, increase or decrease the distance between the two positions, and calculate the mutual correlation coefficient of the coded images, and use the distance between the two positions corresponding to the maximum mutual correlation coefficient as the optimal scanning position interval.
[0022] In a third aspect, the present invention provides a method for measuring capillary blood flow velocity.
[0023] A method for measuring capillary blood flow velocity, comprising the following steps:
[0024] Acquire OCTA images of two scanning positions corresponding to the optimal scanning distance, each position corresponding to a plurality of scanning images at different times, wherein the optimal distance is generated by the method described in the first aspect of the present invention;
[0025] Extract the images of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain coded images of the light and dark changes of capillary blood flow at each position;
[0026] The length of the capillaries between the two positions is obtained, and the cross-correlation analysis of the coded images of the two positions is performed to obtain an offset position that meets the set similarity. The lag time is calculated according to the offset position, and the blood flow velocity of this section of capillaries is obtained according to the length of the capillaries between the two positions and the lag time.
[0027] In a fourth aspect, the present invention provides a capillary blood flow velocity measuring device, characterized in that it comprises:
[0028] A scanning image acquisition unit is configured to: acquire OCTA images of two scanning positions corresponding to an optimal scanning distance, each position corresponding to a plurality of scanning images at different times, wherein the optimal distance is generated by the method described in the first aspect of the present invention;
[0029] The coded image generation unit is configured to: extract the image of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain coded images of the light and dark changes of capillary blood flow at each position respectively;
[0030] The blood flow velocity measurement unit is configured to: obtain the length of the capillaries between two positions, perform cross-correlation analysis on the coded images of the two positions to obtain an offset position that meets a set similarity, calculate a lag time based on the offset position, and obtain the blood flow velocity of this section of capillaries based on the length of the capillaries between the two positions and the lag time.
[0031] In a fifth aspect, the present invention provides a computer device, comprising: a processor and a computer readable storage medium;
[0032] a processor adapted to execute a computer program;
[0033] A computer-readable storage medium having a computer program stored therein, wherein when the computer program is executed by the processor, the method for adaptively controlling the scanning speed as described in the first aspect of the present invention is implemented; or the method for adaptively controlling the scanning distance as described in the third aspect of the present invention is implemented.
[0034] In a sixth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the method for adaptively controlling the scanning distance as described in the first aspect of the present invention; or implementing the capillary blood flow velocity measurement method as described in the third aspect of the present invention.
[0035] In the seventh aspect, the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the scanning speed adaptive control method as described in the first aspect of the present invention; or implements the scanning distance adaptive control method as described in the third aspect of the present invention.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] 1. The present invention innovatively proposes a method for adaptively controlling the scanning distance. The position of the light beams during scanning is fine-tuned by a galvanometer within the current fixed frame rate, thereby changing the distance between the two scans. The second scan image obtained by adaptive feedback comparison is exactly the scanning position with the highest correlation coefficient, which can effectively eliminate errors and improve the accuracy of capillary blood flow velocity calculation.
[0038] 2. The present invention adopts the optimal scanning distance interval to form the best coded image of the light and dark changes of the single flow of red blood cells in the capillaries, obtains the lag time based on correlation analysis and light and dark changes, and calculates the blood flow velocity in combination with the distance between the scanning positions, thereby realizing non-invasive blood flow velocity measurement and improving the accuracy and efficiency of capillary blood flow measurement.
[0039] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0041] Figure 1 A schematic flow chart of a scanning speed adaptive control method provided in Embodiment 1 of the present invention;
[0042] Figure 2 This is a schematic diagram of an initial cross section provided in Example 1 of the present invention;
[0043] Figure 3 A schematic diagram of the principle of a scanning speed adaptive control device provided in Example 2 of the present invention;
[0044] Figure 4 A schematic diagram of a flow chart of a method for measuring capillary blood flow velocity provided in Example 3 of the present invention;
[0045] Figure 5 A schematic diagram of a coded image provided in Embodiment 3 of the present invention;
[0046] Figure 6 A schematic diagram of the relationship between the lag time and the mutual correlation coefficient provided in Example 3 of the present invention;
[0047] Figure 7 A schematic diagram of the principle of a capillary blood flow velocity measurement device provided in Example 4 of the present invention;
[0048] Figure 8 This is a schematic diagram of an electronic device provided in Example 5 of the present invention. DETAILED DESCRIPTION
[0049] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0050] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0051] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0052] Embodiment 1:
[0053] In the implementation, a scanning speed adaptive control method is proposed. The following is a brief introduction to the technical terms and related concepts involved in this identification scheme, including:
[0054] OCTA (Optical Coherence Tomography Angiography) is a new type of non-invasive fundus imaging technology that can identify retinal choroidal blood flow movement information with high resolution and image the retinal choroidal microvascular circulation in living tissue. It has unique advantages in the management and follow-up of normal retinal choroidal vascular changes and the detection of treatment effects.
[0055] The technical principle of OCTA is mainly based on one concept, that is, in a stationary eyeball, the only moving structure in the fundus is the blood cells flowing in the blood vessels. By repeatedly scanning the same cross-section and using special calculation methods (such as decorrelation of signal amplitude), a contrast between static and active structures is generated, thereby obtaining blood flow signals, and based on this, three-dimensional reconstruction of the vascular structure is performed.
[0056] The correlation coefficient is a statistical indicator first designed by statistician Karl Pearson. It is a measure of the linear correlation between variables. It is usually represented by the letter R. Due to the different research objects, there are many ways to define the correlation coefficient. The most commonly used one is the Pearson correlation coefficient. The absolute value of the R value is between 0 and 1. Generally speaking, the closer the absolute value of the R value is to 1, the stronger the correlation between the two quantities X and Y. Conversely, the closer the absolute value of the R value is to 0, the weaker the correlation between the two quantities X and Y.
[0057] Specifically, the scanning speed adaptive control method includes the following process:
[0058] S1.1: Scan multiple positions of capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcation capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of capillary blood flow at each position;
[0059] S1.2: For any two positions of the non-bifurcated capillaries, calculate the mutual correlation coefficient of the coded images corresponding to the two positions, increase or decrease the distance between the two positions, and calculate the mutual correlation coefficient of the coded images, and take the distance between the two positions corresponding to the maximum mutual correlation coefficient as the optimal scanning position interval.
[0060] In this implementation, in step S1.1, the determination of the same non-bifurcation capillary specifically includes:
[0061] Scan any two positions of the capillary region on the OCTA image (i.e., it can be roughly seen from the OCTA image that it may be a capillary), and each position corresponds to multiple initial cross-sectional images at different times, such as Figure 2 As shown, the cross-sectional images at each position are fused, and each position corresponds to a fused cross-sectional image;
[0062] A capillary signal on one fused cross-sectional image is selected and cross-correlated with all capillary signals on another fused cross-sectional image. Two capillaries whose cross-correlation coefficient is greater than or equal to the coefficient threshold are the same capillary without bifurcation.
[0063] The cross-section diagrams at each location are fused, including:
[0064] For any position, 10 consecutive OCTA images at different times at this position are automatically selected for pixel averaging to reduce random noise and improve image quality. The pixel averaging here refers to adding the ten pixel values of the same pixel point and taking the average value to obtain a fused image. It can be understood that there can be more OCTA images here, and the main purpose is to obtain more accurate capillary signals on the cross section.
[0065] The capillary recognition principle of this implementation method is: based on the characteristics of red blood cells circulating in a single queue in capillaries, bright or dark characteristics will appear when other tissues and red blood cells are scanned. The single flow of red blood cells in capillaries will show a phenomenon of light and dark changes. By fusing multiple OCTA images at different times, it is inevitable that the brightness signals corresponding to all the capillaries can be found. If only one image is used, the brightness signal may be missed, which will lead to the inability to identify the corresponding capillaries.
[0066] It can be understood that in some other implementations, the fusion processing here can also be performed by directly adding the pixel values of the same pixel point, so that the area with brightness signals can always be found, and all blood vessel signals can be found in this way; or, further, the pixel values of the same pixel point can be directly added to obtain all brightness signals, and then the brightness of all darker signals (i.e., tissue signals below a certain brightness threshold) is averaged, and the brightness signal greater than a certain brightness threshold is subtracted from the brightness average signal, and then the result is multiplied by a certain multiple to enhance the difference signal to obtain the final blood vessel signal. The above method is only for illustration, and other fusion methods can also be used to obtain the brightness signals corresponding to all blood vessels.
[0067] It is understandable that in some other implementations, the same non-bifurcation capillary can also be determined by directly using a pre-trained image recognition algorithm to directly perform image recognition and extract an OCTA image of a section of non-bifurcation capillary, which will not be elaborated here.
[0068] In this implementation, before determining the same non-bifurcation capillary, a capillary signal recognition process is also included, specifically including:
[0069] The brightness on the fused cross-section image is contrasted. Blood vessels are those with brightness greater than the brightness threshold, and blood vessels are those with diameters less than the diameter threshold.
[0070] In this implementation, the brightness threshold may be determined in the following ways:
[0071] (1) According to the empirical value setting, the general brightness value corresponding to the blood vessel can be obtained based on a large number of measurement results, and this general brightness value is used as the brightness threshold; (2) The maximum brightness and the minimum brightness on this fused cross-sectional image are obtained, and the average of the two is taken, and the average is taken as the brightness threshold; (3) All brightness signal values on this fused cross-sectional image are obtained, all brightness signal values are sorted, the lowest 10% brightness values are removed, and the average of the remaining brightness values is taken as the brightness threshold.
[0072] It is understandable that the brightness threshold may also be set in other ways, as long as it can effectively distinguish the brightness signal corresponding to the tissue (generally darker) from the brightness signal corresponding to the blood vessel (generally brighter), which will not be specifically illustrated here.
[0073] In this implementation, the diameter threshold may be determined in the following ways:
[0074] (1) According to the empirical value setting, the first diameter range corresponding to the large blood vessels and the second diameter range corresponding to the capillaries can be obtained based on a large number of measurement results. According to the minimum value of the first diameter range and the maximum value of the second diameter range, a value between the minimum value and the maximum value is determined as the diameter threshold; (2) The maximum blood vessel diameter value and the minimum blood vessel diameter value on this fused cross-sectional image are obtained, and the average of the two is taken as the blood vessel diameter threshold; (3) All blood vessel diameter values on this fused cross-sectional image are obtained, all blood vessel diameter values are sorted, the lowest 10% blood vessel diameter values are removed, and the average of the remaining blood vessel diameter values is taken as the diameter threshold.
[0075] It is understandable that the diameter threshold may also be set in other ways, such as large blood vessels and capillaries, which will not be specifically illustrated here.
[0076] Optionally, in some other implementations, the capillary signal recognition process may also be performed in the following manner:
[0077] For each point in the fused cross-sectional image, time is used as the horizontal axis, and the brightness signal of multiple repeated scans (for example, 10) is used as the vertical axis. The brightness signals at different times are compared. The area with a suitable size where the brightness signal is wavy and the fluctuation degree is greater than the threshold is the capillary signal, while the brightness of other tissues is in a relatively low and stable state, and the brightness of large blood vessels is in a relatively high and stable state.
[0078] In this implementation, the threshold of the mutual correlation coefficient is generally set according to an empirical value. For example, the coefficient threshold can be set to 0.2, that is, the mutual correlation coefficient greater than 0.2 is regarded as a capillary without bifurcation. Alternatively, the coefficient threshold can be set to 0.5 or other values, which will not be further described here.
[0079] In this implementation, in step S1.2, the distance between the two positions is increased or decreased, specifically, including: fixing the scanning position during the first scan as the first position, and increasing or decreasing the distance to the first position during the second scan; the increase or decrease here may require continuous adjustment and calculation to obtain the final distance, and may first increase and then decrease, or may first decrease and then increase, which will not be illustrated in detail.
[0080] Embodiment 2:
[0081] like Figure 3 As shown, the present invention provides a device for adaptively controlling scanning distance, comprising the following process:
[0082] The coded image acquisition unit is configured to: scan multiple positions of the capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcation capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of the capillary blood flow at each position; the specific method of this unit is the same as the process of step S1.1 in Example 1, and will not be repeated here;
[0083] The optimal interval acquisition unit is configured to: for any two positions of the non-bifurcated capillaries, calculate the mutual correlation coefficient of the coded images corresponding to the two positions, increase or decrease the distance between the two positions, and calculate the mutual correlation coefficient of the coded images, and take the distance between the two positions corresponding to the maximum mutual correlation coefficient as the optimal scanning position interval; the specific method of this unit is the same as the process of step S1.2 in Example 1, and will not be repeated here.
[0084] It is understandable that the above-mentioned units can be separately or all combined into one or several other units to constitute, or some of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the image processing device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0085] According to another embodiment of the present application, the system described in this embodiment can be constructed, and the control processing method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0086] Embodiment 3:
[0087] In this implementation, a method for measuring capillary blood flow velocity is provided, such as Figure 3 As shown, the following process is included:
[0088] S3.1: Acquire OCTA images at two positions at an optimal OCT scanning distance (the optimal OCT scanning distance is generated using the method described in Example 1), and each position corresponds to multiple scanning images at different times;
[0089] S3.2: extracting images of the same non-bifurcation capillary on multiple scanned images at each position and arranging them according to time, and obtaining coded images of light and dark changes of capillary blood flow at each position;
[0090] S3.3: Obtain the length of the capillaries between the two positions, perform cross-correlation analysis on the coded images of the two positions, obtain an offset position that satisfies a set similarity, calculate the lag time based on the offset position, and obtain the blood flow velocity of this section of capillaries based on the length of the capillaries between the two positions and the lag time.
[0091] In this implementation, in step S3.1, the specific acquisition of the scanned image includes:
[0092] Acquire OCTA images, designate a first position A1 and a second position A2 (i.e., two positions corresponding to the optimal distance) for the selected capillaries, and perform alternating scanning;
[0093] It can be understood that the scanning of the first position A1 and the second position A2 does not necessarily have to be alternating scanning, but can also be intermittent scanning. When performing scanning work at multiple positions, the scanning process can be configured according to needs. By using alternating scanning, intermittent scanning or other scanning methods, corresponding multiple scanning images can be obtained for subsequent analysis.
[0094] In this implementation, in step S3.2, the specific method of generating the coded image includes:
[0095] Extract multiple scan images (i.e., first scan images) at different times of the first position A1, arrange the multiple first scan images according to time, and mark the capillary positions; extract multiple scan images (i.e., second scan images) at different times of the second position A2, arrange the multiple second scan images according to time, and mark the capillary positions;
[0096] The capillary region at the same position marked by the first position A1 is extracted and arranged according to time to obtain a coded image of the light and dark changes of the capillary blood flow at the first position A1, that is, a first coded image; the capillary region at the same position marked by the second position A2 is extracted and arranged according to time to obtain a coded image of the light and dark changes of the capillary blood flow at the second position A2, that is, a second coded image, as shown in FIG. Figure 4 shown.
[0097] In this implementation, in step S3.3, the calculation of blood flow velocity includes:
[0098] Extract the first scan image corresponding to the first position A1 and the second scan image corresponding to the second position A2 respectively, and mark the capillary region; place the first scan image corresponding to the first position A1 and the second scan image corresponding to the second position A2 up and down, overlap and display the relative positions of the corresponding capillaries, record the pixel coordinates of the position of the capillary region at the first position A1, and record the pixel coordinates of the position of the capillary region at the second position A2; use the difference of the pixel coordinates to obtain the depth distance L2 between the position of the capillary region corresponding to the first position A1 and the position of the capillary region corresponding to the second position A2, that is, the distance L2 in the depth direction;
[0099] The difference between the intersection of the front scanning position and the capillary and the intersection of the rear scanning position and the capillary is selected as L3. According to the horizontal distance L1 and the depth distance L2 between the first position A1 and the second position A2, the approximate length S of the capillary is calculated. The calculation formula is: The first position A1 and the second position A2 are initially set, so their horizontal distance L1 is known data.
[0100] In this implementation, the distribution of the capillary segment between the first position A1 and the second position A2 is close to an inclined straight line, which can be calculated using the Pythagorean theorem. In other implementations, the capillary segment between the first position A1 and the second position A2 is in the form of a curve, etc. In this case, it is necessary to combine the OCTA image for calculation, for example, according to the distance S represented by each pixel in the OCTA image octa and the number of pixels N occupied by the length of the curved capillaries, using the formula S = S octa *N to perform calculations.
[0101] Take the coded image of the light and dark changes of the capillaries at the first position A1, take the coded image of the light and dark changes of the capillaries at the second position A2, and align the coded image of the light and dark changes of the capillaries corresponding to the first position A1 with the coded image of the light and dark changes corresponding to the second position A2;
[0102] Because the blood flow velocity of capillaries is within a certain range, a fast scanning frequency is used to perform a long-term scan to obtain multiple coded images of the light and dark changes of red blood cells and plasma flowing through. A correlation analysis is performed on the coded images of the light and dark changes of capillaries to obtain the offset position with the highest correlation of light and dark changes, which is recorded as the lag time T, as shown in Figure 5 As shown; in other optional embodiments, the first coded image and the second coded image can also be shifted in image stacking, and their light and dark changes can be used for analysis. The capillary blood flow velocity codes at different positions are stacked and aligned according to the scanning time, and the post-scanning position is translated left and right. After each translation, the images at different positions are subtracted once, and the positions that are all bright or all dark are offset to obtain the number of remaining light and dark codes. The translation position with the least number of remaining light and dark codes is found, and the lag time is calculated according to the number of translations and the speed of each scan. The capillary blood flow velocity is calculated according to the capillary length S and the lag time T. The calculation formula is: V=S / T.
[0103] The direction of capillary blood flow velocity is determined based on the obtained correlation lag time. The specific determination conditions are as follows:
[0104] If the lag time T>0, the capillary blood flow direction is from the first position A1 to the second position A2; if the lag time T<0, the capillary blood flow direction is from the second position A2 to the first position A1.
[0105] If the other two scanning positions are taken, when judging the blood flow direction, if the lag time is a positive value, the blood flow direction in the capillary is from the front scanning position to the rear scanning position; if the lag time is a negative value, the blood flow direction in the capillary is from the rear scanning position to the front scanning position.
[0106] Embodiment 4:
[0107] In this implementation, a capillary blood flow velocity measuring device is provided, such as Figure 6 As shown, including:
[0108] The scanning image acquisition unit is configured to: acquire an OCTA image at an optimal scanning distance (the optimal scanning distance is generated by the method described in Example 1), scan multiple positions of the capillaries on the OCTA image, and each position corresponds to multiple scanning images at different times; the specific working method of this unit is the same as the process of step S3.1 provided in Example 3, and will not be repeated here;
[0109] The coded image generating unit is configured to: extract the image of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain coded images of the light and dark changes of capillary blood flow at each position; the specific working method of this unit is the same as the process of step S3.2 provided in Example 3, and will not be repeated here;
[0110] The blood flow velocity measurement unit is configured to: obtain the length of the capillaries between two positions, perform cross-correlation analysis on the encoded images of the two positions to obtain an offset position that satisfies a set similarity, calculate the lag time according to the offset position, and obtain the blood flow velocity of this section of capillaries according to the length of the capillaries between the two positions and the lag time; the specific working method of this unit is the same as the process of step S3.3 provided in Example 3, and will not be repeated here.
[0111] It is understandable that the above-mentioned units can be separately or all combined into one or several other units to constitute, or some of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the image processing device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0112] According to another embodiment of the present application, the system described in this embodiment can be constructed, and the control processing method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0113] Embodiment 5:
[0114] like Figure 7 As shown, Embodiment 5 of the present invention provides an electronic device, which includes a processor 1001, a communication interface 1002, and a computer-readable storage medium 1003. The processor 1001, the communication interface 1002, and the computer-readable storage medium 1003 may be connected via a bus or other means.
[0115] Among them, the communication interface 1002 is used to receive and send data, the computer-readable storage medium 1003 can be stored in the memory of the electronic device, the computer-readable storage medium 1003 is used to store a computer program, the computer program includes program instructions, and the processor 1001 is used to execute the program instructions stored in the computer-readable storage medium 1003.
[0116] The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the following process:
[0117] Scan multiple positions of the capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcated capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of the capillary blood flow at each position; the specific method of this unit is the same as the process of step S1.1 in Example 1, and will not be repeated here;
[0118] For any two positions of the non-bifurcated capillaries, the mutual correlation coefficient of the coded images corresponding to the two positions is calculated, the distance between the two positions is increased or decreased, and the mutual correlation coefficient of the coded images is calculated, and the distance between the two positions corresponding to the maximum mutual correlation coefficient is taken as the optimal scanning position interval; the specific method of this unit is the same as the process of step S1.2 in Example 1, and will not be repeated here.
[0119] Embodiment 6:
[0120] Embodiment 6 of the present invention provides an electronic device, such as Figure 8 As shown, the electronic device includes a processor 1001, a communication interface 1002, and a computer-readable storage medium 1003. The processor 1001, the communication interface 1002, and the computer-readable storage medium 1003 may be connected via a bus or other means.
[0121] Among them, the communication interface 1002 is used to receive and send data, the computer-readable storage medium 1003 can be stored in the memory of the electronic device, the computer-readable storage medium 1003 is used to store a computer program, the computer program includes program instructions, and the processor 1001 is used to execute the program instructions stored in the computer-readable storage medium 1003.
[0122] The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the following process:
[0123] Obtain an OCTA image at an optimal scanning distance (the optimal scanning distance is generated using the method described in Example 1), scan multiple positions of the capillaries on the OCTA image, and each position corresponds to multiple scanned images at different times; the specific working method of this unit is the same as the process of step S3.1 provided in Example 3, and will not be repeated here;
[0124] Extract the image of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain the coded image of the light and dark change of the capillary blood flow at each position; the specific working method of this unit is the same as the process of step S3.2 provided in Example 3, and will not be repeated here;
[0125] The length of the capillaries between the two positions is obtained, and cross-correlation analysis is performed on the coded images of the two positions to obtain an offset position that satisfies a set similarity, and the lag time is calculated according to the offset position. The blood flow velocity of this section of capillaries is obtained according to the length of the capillaries between the two positions and the lag time. The specific working method of this unit is the same as the process of step S3.3 provided in Example 3, and will not be repeated here.
[0126] Embodiment 7:
[0127] This embodiment provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device.
[0128] In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor.
[0129] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following steps:
[0130] Scan multiple positions of the capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcated capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of the capillary blood flow at each position; the specific method of this unit is the same as the process of step S1.1 in Example 1, and will not be repeated here;
[0131] For any two positions of the non-bifurcated capillaries, the mutual correlation coefficient of the coded images corresponding to the two positions is calculated, the distance between the two positions is increased or decreased, and the mutual correlation coefficient of the coded images is calculated, and the distance between the two positions corresponding to the maximum mutual correlation coefficient is taken as the optimal scanning position interval; the specific method of this unit is the same as the process of step S1.2 in Example 1, and will not be repeated here.
[0132] Embodiment 8:
[0133] This embodiment provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device.
[0134] In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor.
[0135] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following steps:
[0136] Obtain an OCTA image at an optimal scanning distance (the optimal scanning distance is generated using the method described in Example 1), scan multiple positions of the capillaries on the OCTA image, and each position corresponds to multiple scanned images at different times; the specific working method of this unit is the same as the process of step S3.1 provided in Example 3, and will not be repeated here;
[0137] Extract the image of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain the coded image of the light and dark change of the capillary blood flow at each position; the specific working method of this unit is the same as the process of step S3.2 provided in Example 3, and will not be repeated here;
[0138] The length of the capillaries between the two positions is obtained, and cross-correlation analysis is performed on the coded images of the two positions to obtain an offset position that satisfies a set similarity, and the lag time is calculated according to the offset position. The blood flow velocity of this section of capillaries is obtained according to the length of the capillaries between the two positions and the lag time. The specific working method of this unit is the same as the process of step S3.3 provided in Example 3, and will not be repeated here.
[0139] Embodiment 9:
[0140] This embodiment provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the following steps:
[0141] Scan multiple positions of the capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcated capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of the capillary blood flow at each position; the specific method of this unit is the same as the process of step S1.1 in Example 1, and will not be repeated here;
[0142] For any two positions of the non-bifurcated capillaries, the mutual correlation coefficient of the coded images corresponding to the two positions is calculated, the distance between the two positions is increased or decreased, and the mutual correlation coefficient of the coded images is calculated, and the distance between the two positions corresponding to the maximum mutual correlation coefficient is taken as the optimal scanning position interval; the specific method of this unit is the same as the process of step S1.2 in Example 1, and will not be repeated here.
[0143] Embodiment 10:
[0144] This embodiment provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the following steps:
[0145] Obtain an OCTA image at an optimal scanning distance (the optimal scanning distance is generated using the method described in Example 1), scan multiple positions of the capillaries on the OCTA image, and each position corresponds to multiple scanned images at different times; the specific working method of this unit is the same as the process of step S3.1 provided in Example 3, and will not be repeated here;
[0146] Extract the image of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain the coded image of the light and dark change of the capillary blood flow at each position; the specific working method of this unit is the same as the process of step S3.2 provided in Example 3, and will not be repeated here;
[0147] The length of the capillaries between the two positions is obtained, and cross-correlation analysis is performed on the coded images of the two positions to obtain an offset position that satisfies a set similarity, and the lag time is calculated according to the offset position. The blood flow velocity of this section of capillaries is obtained according to the length of the capillaries between the two positions and the lag time. The specific working method of this unit is the same as the process of step S3.3 provided in Example 3, and will not be repeated here.
[0148] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0149] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium or transmitted by a computer-readable storage medium. The computer instruction can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (for example, coaxial cable, optical fiber, digital line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that contains one or more available media integration. Available media can be magnetic media (for example, floppy disk, hard disk, tape), optical media (for example, DVD), or semiconductor media (for example, solid-state drive (Solid State Disk, SSD)) and the like.
[0150] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0151] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adaptively controlling scanning distance, characterized in that: The process includes: Scan multiple positions of capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcation capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of capillary blood flow at each position; For any two positions of the non-bifurcated capillaries, the mutual correlation coefficient of the coded images corresponding to the two positions is calculated, the distance between the two positions is increased or decreased, and the mutual correlation coefficient of the coded images is calculated, and the distance between the two positions corresponding to the maximum mutual correlation coefficient is taken as the optimal scanning position interval.
2. The method for adaptively controlling scanning distance according to claim 1, characterized in that: Identification of identical non-bifurcated capillaries, including: Scanning is performed at any two positions in the capillary region on the OCTA image, each position corresponds to a plurality of initial cross-sectional images at different times, and the cross-sectional images at each position are fused, and each position corresponds to a fused cross-sectional image; A capillary signal on one fused cross-sectional image is selected and cross-correlated with all capillary signals on another fused cross-sectional image. Two capillaries whose cross-correlation coefficient is greater than or equal to the coefficient threshold are the same capillary without bifurcation.
3. The method for adaptively controlling scanning distance according to claim 2, characterized in that: Before determining the same non-bifurcated capillaries, the capillaries are identified, including: The brightness on the fused cross-sectional image is contrasted. When the brightness is greater than the brightness threshold, it is a blood vessel, and when the diameter is less than the diameter threshold, it is a capillary. Alternatively, for each point in the fused cross-sectional image, time is used as the horizontal axis and the brightness signal of multiple repeated scans is used as the vertical axis. The brightness signals at different times are compared. The area with a wavy brightness signal and a suitable size greater than the threshold is a capillary signal.
4. The method for adaptively controlling scanning distance according to any one of claims 1 to 3, characterized in that: Increase or decrease the distance between these two locations, including: The scanning position during the first scanning is fixed as the first position, and the distance from the first position during the second scanning is increased or decreased.
5. A device for adaptively controlling scanning distance, characterized in that: The process includes: The coded image acquisition unit is configured to: scan multiple positions of the capillaries on the OCTA image, each position corresponds to multiple scanned images at different times, extract the image of the same non-bifurcation capillary on the multiple scanned images at each position and arrange them according to time, and obtain a coded image of the light and dark changes of the capillary blood flow at each position; The optimal interval acquisition unit is configured to: for any two positions of the non-bifurcation capillaries, calculate the mutual correlation coefficient of the coded images corresponding to the two positions, increase or decrease the distance between the two positions, and calculate the mutual correlation coefficient of the coded images, and use the distance between the two positions corresponding to the maximum mutual correlation coefficient as the optimal scanning position interval.
6. A method for measuring capillary blood flow velocity, characterized in that: The process includes: Acquire OCTA images of two scanning positions corresponding to the optimal scanning distance, each position corresponding to a plurality of scanning images at different times, wherein the optimal distance is generated by the method described in any one of claims 1 to 4; Extract the images of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain coded images of the light and dark changes of capillary blood flow at each position; The length of the capillaries between the two positions is obtained, and the cross-correlation analysis of the coded images of the two positions is performed to obtain an offset position that meets the set similarity. The lag time is calculated according to the offset position, and the blood flow velocity of this section of capillaries is obtained according to the length of the capillaries between the two positions and the lag time.
7. A capillary blood flow velocity measuring device, characterized in that: include: A scanning image acquisition unit, configured to: acquire OCTA images of two scanning positions corresponding to an optimal scanning distance, each position corresponding to a plurality of scanning images at different times, wherein the optimal distance is generated by the method described in any one of claims 1 to 4; The coded image generation unit is configured to: extract the image of the same non-bifurcation capillary on multiple scanned images at each position and arrange them according to time, and obtain coded images of the light and dark changes of capillary blood flow at each position respectively; The blood flow velocity measurement unit is configured to: obtain the length of the capillaries between two positions, perform cross-correlation analysis on the coded images of the two positions to obtain an offset position that meets a set similarity, calculate a lag time based on the offset position, and obtain the blood flow velocity of this section of capillaries based on the length of the capillaries between the two positions and the lag time.
8. A computer device, characterized in that: include: a processor and a computer readable storage medium; a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the scanning speed adaptive control method according to any one of claims 1 to 4 is implemented; or the capillary blood flow velocity measurement method according to claim 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and executing the method for adaptively controlling the scanning distance as described in any one of claims 1 to 4; or implementing the method for measuring capillary blood flow velocity as described in claim 6.
10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the method for adaptively controlling the scanning distance by scanning speed as described in any one of claims 1 to 4; or implements the method for measuring capillary blood flow velocity as described in claim 6.
