ORIGINAL RESEARCH article

Front. Physiol., 07 April 2022

Sec. Computational Physiology and Medicine

Volume 13 - 2022 | https://doi.org/10.3389/fphys.2022.848002

Measurement of Blood Velocity With Laser Scanning Microscopy: Modeling and Comparison of Line-Scan Image-Processing Algorithms

  • 1. Institut de la Vision, INSERM U968, Paris, France

  • 2. Institut de la Vision, CNRS UMR 7210, Paris, France

  • 3. Institut de la Vision, Sorbonne Université, Paris, France

Abstract

Laser scanning microscopy is widely used to measure blood hemodynamics with line-scans in physiological and pathological vessels. With scans of broken lines, i.e., lines made of several segments with different orientations, it also allows simultaneous monitoring of vessel diameter dynamics or the activity of specific cells. Analysis of red blood cell (RBC) velocity from line-scans requires specific image-processing algorithms, as angle measurements, Line-Scanning Particle Image Velocimetry (LSPIV) or Fourier transformation of line-scan images. The conditions under which these image-processing algorithms give accurate measurements have not been fully characterized although the accuracy of measurements vary according to specific experimental parameters: the vessel type, the RBC velocity, the scanning parameters, and the image signal to noise ratio. Here, we developed mathematical models for the three previously mentioned line-scan image-processing algorithms. Our models predict the experimental conditions in which RBC velocity measurements are accurate. We illustrate the case of different vessel types and give the parameter space available for each of them. Last, we developed a software generating artificial line-scan images and used it to validate our models.

Introduction

Blood flow dynamics is a major functional reporter of the pathophysiology of most organs. In the brain, functional hyperemia, a local increase of blood flow triggered by neuronal activation, is used as a proxy to map brain activation (Iadecola, 2017). At the cellular resolution, blood velocity measurements are commonly performed with laser scanning microscopy, either with one-photon excitation and confocal detection for superficial vessels (Dirnagl et al., 1992; Villringer et al., 1994; Zhong et al., 2008), or with multi-photon excitation for deeper vessels in tissue (Kleinfeld et al., 1998; Chaigneau et al., 2003; Shih et al., 2012; Kong et al., 2016; Kisler et al., 2018). Accurate measurement of RBC velocity with laser scanning microscopy is therefore essential for quantitative comparison of data acquired in different animals, different experimental conditions or using other techniques. RBC velocity is usually assessed with line-scans, i.e., repetitive scanning along a longitudinal portion of the central axis of a vessel. As blood velocity is mostly laminar (Rovainen et al., 1993; Logean and Riva, 2003; Zhong et al., 2011; Kornfield and Newman, 2015), RBCs usually come one after the other on the vessel axis. Consequently, line-scans produce space-time (XT) images in which each RBC leaves an oblique shadow. RBC velocity is calculated from these shadows using two types of algorithms: first, image-processing algorithms, which provide an apparent velocity of RBC (VRBC app); second an algorithm that takes into account the scanning velocity, and its direction relative to RBC flow, to calculate the real RBC velocity from VRBC app (Chaigneau et al., 2019).

Here we focus at the first analysis step based on image-processing algorithms. The appearance of line-scan images and their processing depend on the types of vessels studied and RBC velocity. Initial studies, which were performed in capillaries where RBC velocity ranges from nearly zero to about 1 or 2 mm/s, used angle measurement either after binarization (Dirnagl et al., 1992; Villringer et al., 1994; Chaigneau et al., 2003; Zhong et al., 2008) or by application of shearing deformation on line-scan images (Kleinfeld et al., 1998). RBC velocity measurements were then extended to larger vessels, i.e., arterioles and venules, where velocity is higher and its quantification becomes a technical challenge in terms of image acquisition and analysis (Hutchinson et al., 2006; Kang et al., 2006; Shih et al., 2009; Drew et al., 2010; Rungta et al., 2018). For this reason, a variety of image processing algorithms have been developed: line fitting (Zhang et al., 2005), Radon Transform (Drew et al., 2010; Chhatbar and Kara, 2013; Joseph et al., 2019), Line-scan Particle Image Velocity (LSPIV) (Kim et al., 2012), and Fourier Transform (Autio et al., 2011; Rungta et al., 2018). All these image-processing algorithms have been successfully used, but in specific experimental conditions. Nevertheless, as vessels are tortuous and with various lengths in a focal plane, the experimental conditions rarely match the scanning conditions for which each individual image-analysis algorithm was developed. Consequently, experimenters cannot easily choose the best algorithm and the right acquisition parameters to get accurate blood velocity measurements.

Here, we developed mathematical models of the “Angle” (Dirnagl et al., 1992; Kleinfeld et al., 1998; Drew et al., 2010; Chhatbar and Kara, 2013), the LSPIV (Kim et al., 2012) and the “Fourier transform” (Autio et al., 2011; Rungta et al., 2018) algorithms to determine the conditions under which blood velocity can be measured with a chosen level of error, while simultaneously monitoring calcium signals in the neuropil. We also provide a software generating artificial line-scan images that can be used to test and validate the models for any experimental condition.

Materials and Methods

Definition of Variables

We considered a line-scan image where the scanned segment was made of a segment within a vessel of NPxLineVessel pixels and a segment out of the vessel of NPxLineOutVessel pixels (Figure 1A). This last segment can be used to collect calcium signals from the vessel wall (endothelial cells, mural cells, astrocytes) from nearby neurons, or to simultaneously measure the dynamics of the vessel diameter.

FIGURE 1

We defined the following parameters to perform our analysis: γFlyback is the fraction of time for the scanners to come back from the end of the line to the beginning of the next one over the time for the scanners to scan the broken line γVessel is the fraction of line within the vessel:

During acquisition, experimenters also control the pixel size (Px) and the pixel clock (Fp) which is the acquisition frequency of pixels. Their product gives the scanning velocity (Vscan). Using these parameters, the time from the beginning of one line to the beginning of the next one (TLine) can be calculated:

This can be reformulated:

Pre-processing of Line-Scan Images

Before analysis of RBCs velocity with the considered algorithms, line-scan images undergo two steps of preprocessing. The first one is a cropping step. Indeed, because of inertia of the scanning system, the instantaneous scanning velocity (Vscaninst) does not always match the target scanning velocity, i.e., the product of the pixel size by the pixel clock. The scanning system stops at the beginning of each segment of the broken line, and then accelerates until it reaches its target velocity, and then decreases close to the end of the segment until it stops at the end. To prevent scanning velocity changes from biasing RBCs velocity measurements, images are cropped to remove the regions where the scanning velocity is not the target one (i.e., not constant). The extent of this regions can be estimated from the rotor inertia and Torque: for small angles, Vscan can be estimated by the product of the focal length of the objective (f) by the angular velocity of the scanning system (ω):

The angular velocity can be calculated from the fundamental principle of dynamics, knowing the scanners inertia (J) and the rotor Torque (τ):

Therefore, acceleration of the scanners can be estimated by:

Therefore, the number of pixels that needs to be cropped at each edge of each section (Ncrop) is the ratio of the target velocity by the acceleration of the scanners normalized by the pixel clock:

Ncrop is a linear function of J/τ, which ranges from 10–8 s2 to 10–6 s2 for standard systems. Therefore, the lower the ratio J/τ is, the lower is the number of pixels that need to be cropped. Ncrop increases with the pixel size and the pixel clock. Ncrop is inversely proportional to the focal length of the objective which ranges from 2 to 15 mm for high NA water immersion objectives used in multiphoton microscopy. As the higher the magnification is, the lower the focal length of the objective, the higher Ncrop is. Experimental pixel sizes range from 0.1 to 1 μm. and acquisition frequencies range from 50 kHz to 1 MHz. In many conditions, Ncrop equals zero (Supplementary Figures 1A,B). This is the case if J/τ ≤ 8 10–8 s2 and Fp ≤ 200 kHz. Therefore, in these conditions, the scanners velocity is always the target one except at the points at the end of the segment. For higher pixel clocks, Ncrop can reach tens of pixels and the variations in scanning velocity need to be considered.

The fraction of NLineVessel where the scanning velocity is constant is thus:

The second pre-processing step is a filtering step that consists in application of filters (often median filters, that does not alter shapes) to reduce noise.

Mathematical Modeling

Numerical simulations were performed with Microsoft Excel. γFlyback was set to 0.5 and J/τ = 3.7 10–8 s2 (galvanometer system Cambridge Technology 8315). The diameter of RBCs (DRBC), which varies depending on RBC orientation and vessel (Chaigneau et al., 2003), was set to 6 μm.

Artificial Line-Scan Images

We developed a software with NI LabVIEW 2020 to generate artificial line-scan images as described in Supplementary Figures 2A,B and Supplementary Information. This software can be downloaded from GitHub: https://github.com/EmmanuelleChaigneau/Create_simulated_RBC_xtfast_Image. Using it, we generated 1.2 s long artificial line-scans of constant velocity (VRBCappimage) as in Supplementary Figure 2C. The distribution RBCs was set to be randomly varying using a flat distribution. The tube Hematocrit (Ht) was set to 35% which is the average of published values: for the cortex 22, 47, and 37% (Santisakultarm et al., 2012; Lyons et al., 2016; Li et al., 2019), and 35% for the olfactory bulb (Lyons et al., 2016). White noise was added to all images so that the amplitude of noise was 1.5 times larger than the difference of amplitude between “black” pixels of RBCs and “white” pixels of plasma.

To test for our models when the RBCs flow is laminar, the number of pixels on the distance axis was set to 50 or 100, Fp was set to 200 kHz or 1 MHz, γFlyback was set to 0.5, VRBCappimage ranged from 0 to 20 mm/s and Vscan ranged from 0 to 200 mm/s.

In arteries and venules which are large enough so that RBCs could change their radial position, the flow of RBCs is not always laminar and the trajectory of some RBCs move in or out of the imaged line. This effect can be visualized when the scanned line is very long, as in Figures 1, 2 from Drew et al. (2010). To address these conditions, we created artificial line-scans in which a fraction of RBCs get “defocused,” i.e., move in or out of the scanned line. We set VRBCappimage to a realistic value for a small artery or venule: 5.33 mm/s. We set the scanning parameters so that RBCs velocity would be calculated with an error below 10% with each of the three considered algorithms based on our models: NPxLineVessel = 120, Px = 0.8 μm and Fp = 400 kHz. We applied increasing levels of RBCs defocusing for 0–100% RBCs.

Analysis of Line-Scan Images

Each image was first pre-processed using median filters to reduce noise without altering the shape of RBCs shadows. Then pre-processed images were split into 0.1 s long sections and each section was processed by each image-analysis algorithm giving VRBCappAngle, VRBCappLSPIV, and VRBCappTF. For the angle algorithm we used the method from Kleinfeld et al. (1998), for the LSPIV algorithm the method from Kim et al. (2012) and for the “Fourier transform” the method from Rungta et al. (2018). The first and the last sections were discarded to avoid edge effects. The relative error was calculated as (VRBCappAlgorithm–VRBCappImage)/VRBCappImage for each 0.1 s long section. Then the maximum relative error over the ten computed points that was defined as: .

Results

Mathematical Models for Image Analysis Algorithms

Strategy Followed

For each considered image-processing algorithms, we analyzed the conditions to get the relative error on the apparent velocity of RBC below an error level (P%), and the range of apparent velocities of RBC that can be reached in these conditions. We considered RBC speeds from 0.1 mm/s which can be measured in capillaries to 20 mm/s which is reached in larger arteries. We assumed that line-scan images had been pre-processed (see Methods section “Pre-Processing of Line-Scan Images”). We investigated the impact of every parameter that can be experimentally controlled: the number of pixels within the vessel (NPxLineVessel), the fraction of pixels within the vessel (γVessel), the fraction of time for the scanners to come back from the end of the line to the beginning of the next one over the time for the scanners to scan the broken line (γFlyback), the pixel size (Px) and the pixel clock (Fp). The pixel size and the pixel clock are often merged into a single parameter: Vscan which is their product. Scanning velocities usually range between 20 and 100 mm/s even if they can go down to 5 mm/s and up to 200 mm/s (Kleinfeld et al., 1998; Chaigneau et al., 2003; Schaffer et al., 2006; Autio et al., 2011; Kim et al., 2012; Chhatbar and Kara, 2013; Kornfield and Newman, 2015; Dunn et al., 2018; Kisler et al., 2018).

In this manuscript we used only positive values for all velocities. When the relative directions of scanning and RBC flow needed to be considered, an extra variable was used for the sign.

1st Algorithm: “Angle”

We first investigated the image-processing algorithms where the apparent velocity is calculated from the angle (α) between the shadows left by RBCs and the distance axis (Figure 1B) (Dirnagl et al., 1992; Kleinfeld et al., 1998; Drew et al., 2010; Chhatbar and Kara, 2013). This angle is measured either directly (Dirnagl et al., 1992) or by application of shear stress to the line-scan image until the shadows left by RBCs appear to be horizontal (Kleinfeld et al., 1998). The apparent velocity is the inverse of tangent of α scaled by the units on the horizontal and the vertical axes of the line-scan image, respectively, Px and TLine:

Tan α can be calculated from the number of pixels on the adjacent and opposite sides of the α angle:

where NScan/RBC + 1 is the number of scanned lines on which the RBC appears on the cropped line-scan image (Figure 1B). Using equations (1) and (3):

NScan/RBC takes integer values due to line-scan image pixelation, so VRBCappAngle can only take discrete values (Figures 1C–E). VRBCappAngle increases with Px, Fp and γVessel (Figures 1C–E). Therefore, these parameters may need to be increased to reach the largest apparent velocities of RBCs.

The error on VRBCappAngle (ΔVRBCappAngle) is set by the acquired line-scan image pixelation and corresponds to an error of one line in estimating NScan/RBC:

The relative error on the apparent RBC velocity is thus:

This can be reformulated:

With the “angle” algorithm, the relative error on RBC apparent velocity increases with VRBC appAngle (Figure 1F). Thus, setting a maximum error level on the relative error on RBC apparent velocity will set an upper limit on the apparent velocity of RBCs. In addition, the relative error on the apparent velocity of RBCs decreases when Px, Fp or γVessel increase (Figures 1F,G). Consequently, the larger Px, Fp or γVessel are, the lower the error is. So having part of the broken line out of the vessel will reduce the accuracy of measurements.

From Equation (5), to get the relative error on RBC apparent velocity below P%, we need:

NScanRBC ≥ 1 + 100/P.

Therefore, the maximal measurable apparent velocity allowing the relative error on RBC apparent velocity below P% is:

VRBCappAnglemaxP% has thus the same dependence to scanning parameters as VRBCappAngle (Figures 1C–E dashed lines next to (*)).

2nd Algorithm: LSPIV

We then investigated the LSPIV image analysis method from Kim et al. (2012). With LSPIV, two rows from the spatio-temporal image, which correspond to two recordings of fluorescence over the broken line starting at two time-points, are selected and cross-correlated to determine the displacement of RBCs from one recording to the other (Figure 2A). The apparent velocity of RBCs is then calculated as the ratio of this displacement by the time separating the two rows. The two rows can be successive or more distant, hence a new parameter NTline, which correspond to the number of lines separating them. NTline = 1 corresponds to successive lines. The cross-correlation is performed in the Fourier space.

FIGURE 2

Defining Δxmov as the displacement of RBCs from one line to the successive one. The values that Δxmov can take depend on the choice of NTline. Indeed, the cross-correlation step gives the product NTline. Δxmov which needs to be a multiple of the pixel size. Calling Nmov this number of pixels:

Therefore:

If NTline = 1, Δxmov needs to be a multiple of the pixel size, but if NTline > 1, Δxmov takes values which are fractions of the pixel size. The apparent velocity is calculated as:

Therefore:

Here, the pixel size and the pixel clock can be merged in a single parameter: the scanning velocity. Therefore, they have the same influence on RBCs velocity measurements. Nmov and NTline take only integer values due to line-scan image pixelation, so VRBC appLSPIV can only take discrete values (Figure 2B). Increasing NTline allow reaching lower values of the apparent velocity. The error on VRBCappLSPIV is set by image pixelization within a row and can therefore be calculated by replacing Nmov by 1 in equation (8):

Hence:

With LSPIV, the relative error on the apparent velocity of RBCs decreases when the apparent velocity of RBCs increases (Figure 2C). Thus, setting a maximum error level will set a lower limit on VRBCappLSPIV. Furthermore ΔVRBCappLSPIV/VRBCappLSPIV increases linearly with Vscan (Figures 2C,D). Consequently, Vscan needs to be reduced to measure accurately the lower values of VRBCappLSPIV. The relative error on the apparent velocity of RBCs increases with γVessel too (Figure 2D). Therefore, using a line comprising a segment out of the vessel increases the accuracy of LSPIV measurements. In addition, the relative error on the apparent velocity of RBCs is inversely proportional to NTline and NPxLineVessel (Figure 2E). Therefore, choosing lines composed of many pixels and increasing NTline during analysis increases the possibility to measure accurately lower values of VRBCappLSPIV.

To get ΔVRBCappLSPIV/VRBCappLSPIVp%, we need:

Thus, the minimum apparent RBC velocity that can be measured is:

It corresponds to Nmov = 100/P in equation (8). It varies with Vscan, i.e., to the pixel size and acquisition frequency, with γVessel, with NTline and NPxLineVessel as the relative error does (Figures 2F–H). Consequently, the lower the velocities of interest, the smaller pixel size, acquisition frequency and γVessel are needed, and choosing lines composed of many pixels and increasing NTline during analysis is necessary.

Velocity measurements can be accurate only if the cross-correlation is accurate. We estimated that a minimum of 2 shadows is needed for a successful cross-correlation. Accounting for the plasma around them at the chosen hematocrit (Ht) level (Figure 2A), the length of broken line that can be used for cross correlation needs to be larger than2 DRBCapp/Ht, where DRBCapp is the size of the shadow left by a RBC and is given by Chaigneau et al. (2019):

DRBC is the real size of a RBC, with unsigned values for Vscan and VRBCapp, and ε = 1 if scanning and RBC flow are oriented in the same direction or ε = −1 if scanning and RBC flow are opposite.

Therefore:

Using equation (3):

Distributing and rearranging, this gives a condition on the number of pixels within the vessel:

The largest apparent RBC velocity that can be measured with the LSPIV algorithm () is set by possibility to follow RBC shadows during cross-correlation. It is the ratio of the maximum distance 2 RBCs can move within a line, by the time between the cross-correlated lines:

This can be reformulated (see Supplementary Information 1.1):

The largest apparent RBC velocity that can be measured with the LSPIV algorithm increases with the pixel size (Figures 2F,I), but it has a bell-shaped dependency to the acquisition frequency, first increasing, then reaching a maximum before decreasing (Figures 2G,J). Therefore, in the range of experimental values for the pixel size and the acquisition frequency, the inertia term has only an impact when varying the acquisition frequency. Reducing γVessel reduces (Figures 2F,G) and thus could impact the possibility to measure the largest velocities. is also larger when scanning is opposite to RBC flow (Figures 2I–K), increasing the range of parameters giving accurate measurements. Therefore, it is beneficial to scan opposite to the RBC flow. The maximum apparent RBC velocity that can be measured increases with NPxLineVessel (Figures 2H,K) but decreases when NTline increases. Therefore, choosing lines composed of many pixels and decreasing NTline during analysis is necessary to reach the highest values of .

The same logic gives another constrain on the minimum NPxLineVessel to reach VRBCappLSPIV. Indeed, the length of the line within the vessel that can be used to compute velocities needs to be large enough to fit the shadow of two RBCs and their movement over NTline lines at VRBCappLSPIV (Figure 2A):

This can be reformulated (see details in Supplementary Information 1.2):

And

3rd Algorithm: Fourier Transform of Image

We last modeled the conditions to use the Fourier Transform image analysis method (Autio et al., 2011; Rungta et al., 2018). This method uses the 2D Fourier Transform of the line-scan image to calculate the apparent velocity of RBCs. The 2D Fourier Transform of the line-scan image can be described by a series of distributions. At each time frequency (fTi) can be associated a distribution of spatial frequencies fx(fTi). The 2D Fourier Transform of the line-scan image is the sum of these distributions: (Figure 3A). The apparent velocity is calculated in two steps: First for each time frequency fTi, the expected value fx0(fTi) of the spatial frequencies fx(fTi) is calculated. Then the relation between fx0(fTi) and fTi is fit by a first order polynomial whose first order coefficient is VRBCappFT.

FIGURE 3

Accurate calculation of spatial frequencies requires that the length of broken line used to calculate the spatial frequencies is large enough to fit two RBC shadows and the plasma in between them at the chosen hematocrit level (Figure 2A). This expression was already calculated (Equation (12)) for the LSPIV algorithm:

The major source of error on VRBCappFT is due to estimation of fx0(fTi). ΔVRBCappFT can thus be estimated by a displacement by σx, the standard deviation of fx0(fTi), at the limiting spatial frequency which is Nyquist frequency 1/(2Px) (Figure 3A). The corresponding temporal frequency is:

Therefore:

σx can be calculated from the distribution of fx(fTi) whose probability density function is (Rungta et al., 2018):

Where sinc stands for the sinus cardinal function, which is the ratio of the sinus function by the identity function.

This gives (details in Supplementary Information 1.3):

The error on the apparent velocity ΔVRBCappFT can now be expressed as a function of VRBCappFT:

And

From this expression, the relative apparent velocity depends on NPxLineVessel, Px, Fp and the ratio of the scanner inertia over the rotor Torque. The relative apparent velocity decreases when NPxLineVesseI increases (Figures 3B,C). Therefore, the higher NPxLineVessel is the more accurate VRBCappFT is. The impact of the pixel size on the relative apparent velocity is limited (Figure 3B) but reducing the acquisition frequency allows to use lower values of NPxLineVesseI (Figure 3C).

To get the relative error on the apparent RBC velocity below P%, we need:

The minimum velocity is set by pixelation of the modulus of the Fourier Transformed spatiotemporal image (Figure 3A). It is the ratio of the pixel size of the temporal frequency axis by the maximal spatial frequency:

This can be reformulated:

Again Fp and Px can be merged into a single parameter: the scanning velocity. The minimum velocity is proportional to Vscan and γVessel and inversely proportional to NPxLineVesseI. Therefore, measurement of low RBC velocities requires using either low scanning velocities, or many pixels per line, or a line comprising a portion out of the vessel (Figures 3D,E).

Parameter Space Ensuring Accurately Velocity Measurement Over a Given Range

Using these models, it is now possible to determine the image-analysis method and the experimental parameters which ensure that the error on apparent velocities measured is within the range of accepted values.

1st Algorithm: Angle

For the “angle” method, conditions on NPxLineVessel, Px and Fp, are induced by the maximal measurable apparent velocity allowing an apparent speed error below P% (Equation (7)). To measure VRBCapp ≤ VRBCapp max P%, we need (details in Supplementary Information 1.4):

And

Together, Equations (21) and (22) allow to calculate the parameter space for the “angle” algorithm.

2nd Algorithm: LSPIV

For the LSPIV method, the parameter space is given by several equations: the minimum number of pixels necessary to use the LSPIV method is set by Equations (12) and (14) calculated before. Other constraints on NPxLineVessel come from Equation (11), which gives the minimal measurable apparent velocity allowing an error below P%. To measure VRBCappLSPIV ≥ VRBCappLSPIVmin P%, we need:

Together, Equations (12), (14), and (23) allow to calculate the parameter space for the LSPIV algorithm.

3rd Algorithm: Fourier Transform of Image

For the Fourier transform method, the parameter space is also given by several equations. Accurate calculation of spatial frequencies requires that the length of broken line used to calculate the spatial frequencies is large enough to fit two RBC shadows and the plasma surrounding them at the chosen hematocrit level which gives Equation (15). Another condition comes from the necessity to keep the relative error on the apparent RBC velocity below P%, which is given by equation (19). In addition to that, a condition on NPxLineVessel comes from the minimum velocity from Equation (20). To ensure that VRBCappFT ≥ VRBCappFTmin, it is necessary that:

Together, Equations (15), (19), and (24) allow to calculate the parameter space for the Fourier Transform algorithm.

Parameter Space of Typical Vessels

The scanning parameter space can be drawn using Equations (12), (14), (15), (21), (22), (23) and (24) (Methods section “Mathematical Modeling” and Figure 4). We considered 3 types of vessels: A pial arteriole with a large velocity (8 mm/s ≤ VRBC app ≤ 12 mm/s), a venule or a precapillary arteriole with 2 mm/s ≤ VRBC app ≤ 4 mm/s and a capillary with small velocity (0.1 mm/s ≤ VRBC app ≤ 2 mm/s). The parameter space was investigated for anterograde and retrograde scanning, for various pixel clocks. For every type of vessel, using retrograde scanning was beneficial as it enlarged the parameter space for both the LSPIV and the FT algorithms (Figures 4A,B vs. Figures 4D,E).

FIGURE 4

For the pial arteriole (Figures 4A,D,G), the “Angle” algorithm can only be used with the largest pixel clock and large pixel sizes, which correspond to large scanning velocities. The LSPIV algorithm and the Fourier Transform algorithm can both be used over broad parameter spaces which overlap nearly completely for the lowest pixel clocks.

The parameter space of the venule or precapillary arteriole (Figures 4B,E,H) shows that the three image-processing algorithms can be used but over different regions of the parameter space. The “Angle” algorithm can be used for the large scanning velocities. The LSPIV algorithm can be used over a broad parameter space and the Fourier Transform algorithm can be used over a parameter space even larger, which includes the parameter space of the LSPIV algorithm.

The parameter space of the capillary (Figures 4C,F,I) shows that the “Angle” algorithm can be used over a large region of the parameter space for every pixel clock. It is the most adapted image-processing algorithm for capillaries. The LSPIV algorithm and the Fourier Transform algorithms can be used too for the lowest pixel clock but only over the same small region, with small pixel sizes, which correspond to small and very large number of pixels within the line.

For each type of vessel, there is a region of the parameter space where none of the studied image-processing algorithms can be used.

Tests of the Three Image-Processing Algorithms With Artificial Line-Scans

We last controlled the validity of our models using artificial line-scans of known constant velocity. We processed images using the three studied algorithms and compared computed velocities to the image velocity. We had to use artificial line-scans as the velocity of real line-scan images would be unknown, making comparison with computed velocities impossible. For this purpose, we developed a software generating artificial line-scan images (described in Supplementary Information) and used it to get images of constant velocity ( in various scanning conditions as described in section “Materials and Methods.” Artificial line-scans were analyzed with each image-processing algorithm, as described in “Materials and Methods,” giving the relative error of each algorithm for each artificial line-scan.

The relative error was compared to the predictions of our models for a 10% error level. For each algorithm, for every combination of scanning parameters satisfying the conditions defined by our models, the relative error of the corresponding algorithm was within the chosen level of accuracy (Figure 5).

FIGURE 5

Finally, we examined the accuracy of RBCs velocity measurements in situations where the flow of RBCs is not perfectly laminar, and the trajectory of some RBCs get “defocused”: i.e., move in or out of the imaged line (see the example in Figures 1, 2). We created artificial line-scans with increasing levels of RBCs defocusing (see Methods section “Artificial Line-Scan Images”) and set the scanning parameters so that, in the in absence of RBCs defocusing, VRBCapp would be calculated with an error below 10% with each of the three considered algorithms based on our models. We applied the three studied algorithms on these images and compared computed velocities to the image velocity (Supplementary Figures 3B–D). RBCs defocusing did not impact a lot the error on RBC velocity measurements. With the “angle” algorithm, it increased only when all RBCs defocused. With the LSPIV algorithm and the Fourier transform algorithms, it increased slightly. In every case, the error remained below 10%. Therefore, RBCs defocusing has little impact on our model predictions to get accurate velocity measurements.

Discussion

Importance of Accurate Velocity Measurements

Laser scanning imaging is a technique of choice to investigate blood flow dynamics in wild type animals (Kleinfeld et al., 1998; Chaigneau et al., 2003; Shih et al., 2012; Schmid et al., 2019) and in several models of disease, as diverse as Alzheimer’s disease (Kisler et al., 2017), HIV (Silva et al., 2014), cancer (Brown et al., 2001; Kamoun et al., 2010; Santisakultarm et al., 2014), traumatic brain injury (Bragin et al., 2017), ischemia (Shih et al., 2009; Ishikawa et al., 2016; McConnell et al., 2016; Liu et al., 2018), or inflammation (Honkura et al., 2018). RBC velocity measurements are not limited to the brain (Santisakultarm et al., 2014; Silva et al., 2014; Ishikawa et al., 2016; McConnell et al., 2016; Bragin et al., 2017; Liu et al., 2018) becoming common for the kidney (Kang et al., 2006; Dunn et al., 2018), the retina (Kornfield and Newman, 2015), the skin (Brown et al., 2001), the hindlimb (Lasch et al., 2018), the mammary fat pad (Kamoun et al., 2010), or the ear (Honkura et al., 2018) in various conditions. This stresses that, to compare velocity data acquired in various experimental conditions, within and in between laboratories, both at resting state and in response to any physiological stimulus, accurate measurements are paramount, particularly if velocity differences amount to as little as a few percent.

Our Models

Our models are nearly exclusively based on experimental parameters. For the LSPIV model, we imposed that two RBCs are scanned per line to get a successful cross-correlation, mostly because when a single RBC shadow appears on one line and two shadows appear on the next line, the cross-correlation has significant chances to be incorrect. This assumption proved true when running the LSPIV algorithm with artificial line-scans. On a wider scale, analysis of artificial line-scans has shown that in the scanning conditions defined by each of our models, the accuracy of the computed velocities always matched the defined criteria, showing that our models are sufficient to get accurate measurements.

Parameter Space and Image-Analysis Algorithms

Our models show that each image-processing algorithm has a specific dependence on each scanning parameter and this specificity needs to be taken into account to perform accurate measurements. RBC velocity is a determining criterion. Among the algorithms we modeled, the “Angle” algorithm (Dirnagl et al., 1992; Kleinfeld et al., 1998) is the most suitable to measure velocity in capillaries whereas the LSPIV (Kim et al., 2012) and Fourier Transform (Rungta et al., 2018) algorithms are the most suitable for large artery measurements. In intermediate range of velocities, each algorithm is suitable over a specific parameter space that needs to be calculated. The parameter space often comprises a region where no algorithm is suitable. Note that retrograde scanning is always advisable as it enlarges the parameter space, particularly in the large range of RBC velocities.

Conclusion

Overall, the combination of our new software providing artificial line-scan images and the mathematical models for the “Angle” algorithm, the LSPIV and the Fourier Transform image-processing algorithms allow vascular biologists to choose the right algorithm and the experimental parameters that will give RBC velocity values with a chosen level of accuracy. This will enable unbiased and accurate comparisons of blood hemodynamic parameters in control and pathological animal models.

Publisher’s Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Statements

Data availability statement

The datasets presented in this study can be found in an online repository: https://github.com/EmmanuelleChaigneau/Create_simulated_RBC_xtfast_Image.

Author contributions

EC designed the project, developed the mathematical models, developed the software, analyzed the data, and wrote the manuscript. SC designed the project, wrote the manuscript, and supervised the project. Both authors contributed to the article and approved the submitted version.

Funding

Financial support was provided by the Institut National de la Santé et de la Recherche Médicale (INSERM), the Fondation pour la Recherche Médicale (EQU201903007811), the Fondation Leducq Transatlantic Networks of Excellence program (16CVD05, Understanding the role of the perivascular space in cerebral small vessel disease), and by French state funds managed by the ANR within the Investissements d’Avenir program [IHU FOReSIGHT (ANR-18-IAHU-0001), RHU TRT_cSVD (ANR-16-RHUS-0004)].

Acknowledgments

We thank Christophe Pouzat for his advice with mathematical modeling of the FT algorithm.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fphys.2022.848002/full#supplementary-material

Abbreviations

  • β

    Fraction of NLineVessel where the scanning velocity is constant

  • DRBC

    size of an RBC

  • DRBCapp

    size of the shadow left by an RBC over the line-scan image along the distance axis

  • Δ xmov

    displacement of a RBC from one line to the successive one

  • ε

    variable used to characterize the relative orientation of RBC flow and scanning. ε equals 1 if scanning and RBC flow are oriented in the same direction and ε equals − 1 if scanning and RBC flow are opposite

  • f

    focal length of the objective

  • Fp

    acquisition frequency of pixels

  • Ht

    Hematocrit

  • γFlyback

    fraction of forward scanning time needed for the scanner to scan back go back from the end of the line to the beginning of the next one

  • γVessel

    fraction of line within the vessel

  • J

    scanner inertia

  • Nmov

    number of pixels by which RBCs move from one row of the line-scan image to the next one

  • NPxLineVessel

    number of pixels per line within the vessel

  • NScan/RBC

    number of scanned lines on which the RBC appears minus one

  • NTline

    number of lines separating the two lines cross-correlated with the LSPIV algorithm

  • Px

    pixel size

  • RBC

    Red Blood Cell

  • Tau

    rotor Torque

  • TLine

    scanning time from the beginning of one line to the beginning of the next one

  • Vscan

    scanning velocity.

References

  • 1

    AutioJ.KawaguchiH.SaitoS.AokiI.ObataT.MasamotoK.et al (2011). Spatial frequency-based analysis of mean red blood cell speed in single microvessels: investigation of microvascular perfusion in rat cerebral cortex.PLoS One6:e24056. 10.1371/journal.pone.0024056

  • 2

    BraginD. E.KamenevaM. V.BraginaO. A.ThomsonS.StatomG. L.LaraD. A.et al (2017). Rheological effects of drag-reducing polymers improve cerebral blood flow and oxygenation after traumatic brain injury in rats.J. Cereb. Blood Flow Metab.37762775. 10.1177/0271678X16684153

  • 3

    BrownE. B.CampbellR. B.TsuzukiY.XuL.CarmelietP.FukumuraD.et al (2001). In vivo measurement of gene expression, angiogenesis and physiological function in tumors using multiphoton laser scanning microscopy.Nat. Med.7864868. 10.1038/89997

  • 4

    ChaigneauE.OheimM.AudinatE.CharpakS. (2003). Two-photon imaging of capillary blood flow in olfactory bulb glomeruli.Proc. Natl. Acad. Sci. U.S.A.1001308113086. 10.1073/pnas.2133652100

  • 5

    ChaigneauE.RocheM.CharpakS. (2019). Unbiased Analysis Method for Measurement of Red Blood Cell Size and Velocity With Laser Scanning Microscopy.Front. Neurosci.13:644. 10.3389/fnins.2019.00644

  • 6

    ChhatbarP. Y.KaraP. (2013). Improved blood velocity measurements with a hybrid image filtering and iterative Radon transform algorithm.Front. Neurosci.7:106. 10.3389/fnins.2013.00106

  • 7

    DirnaglU.VillringerA.EinhauplK. M. (1992). In-vivo confocal scanning laser microscopy of the cerebral microcirculation.J. Microsc.165147157. 10.1111/j.1365-2818.1992.tb04312.x

  • 8

    DrewP. J.BlinderP.CauwenberghsG.ShihA. Y.KleinfeldD. (2010). Rapid determination of particle velocity from space-time images using the Radon transform.J. Comput. Neurosci.29511. 10.1007/s10827-009-0159-1

  • 9

    DunnK. W.SuttonT. A.SandovalR. M. (2018). Live-Animal Imaging of Renal Function by Multiphoton Microscopy.Curr. Protoc. Cytom.83121911121925.

  • 10

    HonkuraN.RichardsM.LavinaB.Sainz-JaspeadoM.BetsholtzC.Claesson-WelshL. (2018). Intravital imaging-based analysis tools for vessel identification and assessment of concurrent dynamic vascular events.Nat. Commun.9:2746.

  • 11

    HutchinsonE. B.StefanovicB.KoretskyA. P.SilvaA. C. (2006). Spatial flow-volume dissociation of the cerebral microcirculatory response to mild hypercapnia.Neuroimage32520530. 10.1016/j.neuroimage.2006.03.033

  • 12

    IadecolaC. (2017). The Neurovascular Unit Coming of Age: A Journey through Neurovascular Coupling in Health and Disease.Neuron961742. 10.1016/j.neuron.2017.07.030

  • 13

    IshikawaM.KajimuraM.MorikawaT.TsukadaK.TsujiT.KusakaG.et al (2016). Cortical microcirculatory disturbance in the super acute phase of subarachnoid hemorrhage - In vivo analysis using two-photon laser scanning microscopy.J. Neurol. Sci.368326333. 10.1016/j.jns.2016.06.067

  • 14

    JosephA.Guevara-TorresA.SchallekJ. (2019). Imaging single-cell blood flow in the smallest to largest vessels in the living retina.Elife8:e45077. 10.7554/eLife.45077

  • 15

    KamounW. S.ChaeS. S.LacorreD. A.TyrrellJ. A.MitreM.GillissenM. A.et al (2010). Simultaneous measurement of RBC velocity, flux, hematocrit and shear rate in vascular networks.Nat. Methods7655660. 10.1038/nmeth.1475

  • 16

    KangJ. J.TomaI.SiposA.MccullochF.Peti-PeterdiJ. (2006). Quantitative imaging of basic functions in renal (patho)physiology.Am. J. Physiol. Renal. Physiol.291F495F502. 10.1152/ajprenal.00521.2005

  • 17

    KimT. N.GoodwillP. W.ChenY.ConollyS. M.SchafferC. B.LiepmannD.et al (2012). Line-scanning particle image velocimetry: an optical approach for quantifying a wide range of blood flow speeds in live animals.PLoS One7:e38590. 10.1371/journal.pone.0038590

  • 18

    KislerK.LazicD.SweeneyM. D.PlunkettS.El KhatibM.VinogradovS. A.et al (2018). In vivo imaging and analysis of cerebrovascular hemodynamic responses and tissue oxygenation in the mouse brain.Nat. Protoc.1313771402. 10.1038/nprot.2018.034

  • 19

    KislerK.NelsonA. R.RegeS. V.RamanathanA.WangY.AhujaA.et al (2017). Pericyte degeneration leads to neurovascular uncoupling and limits oxygen supply to brain.Nat. Neurosci.20406416. 10.1038/nn.4489

  • 20

    KleinfeldD.MitraP. P.HelmchenF.DenkW. (1998). Fluctuations and stimulus-induced changes in blood flow observed in individual capillaries in layers 2 through 4 of rat neocortex.Proc. Natl. Acad. Sci. U.S.A.951574115746. 10.1073/pnas.95.26.15741

  • 21

    KongL.TangJ.CuiM. (2016). Multicolor multiphoton in vivo imaging flow cytometry.Opt. Express2461266135. 10.1364/OE.24.006126

  • 22

    KornfieldT. E.NewmanE. A. (2015). Measurement of Retinal Blood Flow Using Fluorescently Labeled Red Blood Cells.eNeuro2ENEURO.000515. 10.1523/ENEURO.0005-15.2015

  • 23

    LaschM.NekollaK.KlemmA. H.BuchheimJ. I.PohlU.DietzelS.et al (2018). Estimating hemodynamic shear stress in murine peripheral collateral arteries by two-photon line scanning.Mol. Cell Biochem.4534151. 10.1007/s11010-018-3430-9

  • 24

    LiB.EsipovaT. V.SencanI.KilicK.FuB.DesjardinsM.et al (2019). More homogeneous capillary flow and oxygenation in deeper cortical layers correlate with increased oxygen extraction.Elife8:e42299. 10.7554/eLife.42299

  • 25

    LiuS.WeiC.KangN.HeQ.LiangJ.WangH.et al (2018). Chinese medicine Tongxinluo capsule alleviates cerebral microcirculatory disturbances in ischemic stroke by modulating vascular endothelial function and inhibiting leukocyte-endothelial cell interactions in mice: A two-photon laser scanning microscopy study.Microcirculation25:e12437. 10.1111/micc.12437

  • 26

    LogeanE. S. L.RivaC. E. (2003). Velocity profile of red blood cells in human retinal vessels using confocal scanning laser Doppler velocimetry.Laser Phys.134551.

  • 27

    LyonsD. G.ParpaleixA.RocheM.CharpakS. (2016). Mapping oxygen concentration in the awake mouse brain.Elife5:e12024. 10.7554/eLife.12024

  • 28

    McConnellE. D.WeiH. S.ReitzK. M.KangH.TakanoT.VatesG. E.et al (2016). Cerebral microcirculatory failure after subarachnoid hemorrhage is reversed by hyaluronidase.J. Cereb. Blood Flow Metab.3615371552. 10.1177/0271678X15608389

  • 29

    RovainenC. M.WoolseyT. A.BlocherN. C.WangD. B.RobinsonO. F. (1993). Blood flow in single surface arterioles and venules on the mouse somatosensory cortex measured with videomicroscopy, fluorescent dextrans, nonoccluding fluorescent beads, and computer-assisted image analysis.J. Cereb. Blood Flow Metab.13359371. 10.1038/jcbfm.1993.49

  • 30

    RungtaR. L.ChaigneauE.OsmanskiB. F.CharpakS. (2018). Vascular Compartmentalization of Functional Hyperemia from the Synapse to the Pia.Neuron99362375.e4.

  • 31

    SantisakultarmT. P.CorneliusN. R.NishimuraN.SchaferA. I.SilverR. T.DoerschukP. C.et al (2012). In vivo two-photon excited fluorescence microscopy reveals cardiac- and respiration-dependent pulsatile blood flow in cortical blood vessels in mice.Am. J. Physiol. Heart Circ. Physiol.302H1367H1377. 10.1152/ajpheart.00417.2011

  • 32

    SantisakultarmT. P.PaduanoC. Q.StokolT.SouthardT. L.NishimuraN.SkodaR. C.et al (2014). Stalled cerebral capillary blood flow in mouse models of essential thrombocythemia and polycythemia vera revealed by in vivo two-photon imaging.J. Thromb Haemost1221202130. 10.1111/jth.12738

  • 33

    SchafferC. B.FriedmanB.NishimuraN.SchroederL. F.TsaiP. S.EbnerF. F.et al (2006). Two-photon imaging of cortical surface microvessels reveals a robust redistribution in blood flow after vascular occlusion.PLoS Biol.4:e22. 10.1371/journal.pbio.0040022

  • 34

    SchmidF.BarrettM. J. P.ObristD.WeberB.JennyP. (2019). Red blood cells stabilize flow in brain microvascular networks.PLoS Comput. Biol.15:e1007231. 10.1371/journal.pcbi.1007231

  • 35

    ShihA. Y.DriscollJ. D.DrewP. J.NishimuraN.SchafferC. B.KleinfeldD. (2012). Two-photon microscopy as a tool to study blood flow and neurovascular coupling in the rodent brain.J. Cereb. Blood Flow Metab.3212771309. 10.1038/jcbfm.2011.196

  • 36

    ShihA. Y.FriedmanB.DrewP. J.TsaiP. S.LydenP. D.KleinfeldD. (2009). Active dilation of penetrating arterioles restores red blood cell flux to penumbral neocortex after focal stroke.J. Cereb. Blood Flow Metab.29738751. 10.1038/jcbfm.2008.166

  • 37

    SilvaJ. N.PolesskayaO.WeiH. S.RasheedI. Y.ChamberlainJ. M.NishimuraC.et al (2014). Chronic central nervous system expression of HIV-1 Tat leads to accelerated rarefaction of neocortical capillaries and loss of red blood cell velocity heterogeneity.Microcirculation21664676. 10.1111/micc.12145

  • 38

    VillringerA.ThemA.LindauerU.EinhauplK.DirnaglU. (1994). Capillary perfusion of the rat brain cortex. An in vivo confocal microscopy study.Circ. Res.755562. 10.1161/01.res.75.1.55

  • 39

    ZhangS.BoydJ.DelaneyK.MurphyT. H. (2005). Rapid reversible changes in dendritic spine structure in vivo gated by the degree of ischemia.J. Neurosci.2553335338. 10.1523/JNEUROSCI.1085-05.2005

  • 40

    ZhongZ.PetrigB. L.QiX.BurnsS. A. (2008). In vivo measurement of erythrocyte velocity and retinal blood flow using adaptive optics scanning laser ophthalmoscopy.Opt. Express161274612756. 10.1364/oe.16.012746

  • 41

    ZhongZ.SongH.ChuiT. Y.PetrigB. L.BurnsS. A. (2011). Noninvasive measurements and analysis of blood velocity profiles in human retinal vessels.Invest Ophthalmol. Vis. Sci.5241514157. 10.1167/iovs.10-6940

Summary

Keywords

laser scanning microscopy, blood velocity, image processing, line-scan, modeling, multi-photon, blood hemodynamics, vessels

Citation

Chaigneau E and Charpak S (2022) Measurement of Blood Velocity With Laser Scanning Microscopy: Modeling and Comparison of Line-Scan Image-Processing Algorithms. Front. Physiol. 13:848002. doi: 10.3389/fphys.2022.848002

Received

03 January 2022

Accepted

22 February 2022

Published

07 April 2022

Volume

13 - 2022

Edited by

Bingmei M. Fu, City College of New York (CUNY), United States

Reviewed by

Timothy W. Secomb, University of Arizona, United States; Philip O’Herron, Augusta University, United States

Updates

Copyright

*Correspondence: Emmanuelle Chaigneau, Serge Charpak,

This article was submitted to Computational Physiology and Medicine, a section of the journal Frontiers in Physiology

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics