Open Access
5 December 2023 Improved spatial speckle contrast model for tissue blood flow imaging: effects of spatial correlation among neighboring camera pixels
Author Affiliations +
Abstract

Significance

Speckle contrast analysis is the basis of laser speckle imaging (LSI), a simple, inexpensive, noninvasive technique used in various fields of medicine and engineering. A common application of LSI is the measurement of tissue blood flow. Accurate measurement of speckle contrast is essential to correctly measure blood flow. Variables, such as speckle grain size and camera pixel size, affect the speckle pattern and thus the speckle contrast.

Aim

We studied the effects of spatial correlation among adjacent camera pixels on the resulting speckle contrast values.

Approach

We derived a model that accounts for the potential correlation of intensity values in the common experimental situation where the speckle grain size is larger than the camera pixel size. In vitro phantom experiments were performed to test the model.

Results

Our spatial correlation model predicts that speckle contrast first increases, then decreases as the speckle grain size increases relative to the pixel size. This decreasing trend opposes what is observed with a standard speckle contrast model that does not consider spatial correlation. Experimental data are in good agreement with the predictions of our spatial correlation model.

Conclusions

We present a spatial correlation model that provides a more accurate measurement of speckle contrast, which should lead to improved accuracy in tissue blood flow measurements. The associated correlation factors only need to be calculated once, and open-source software is provided to assist with the calculation.

1.

Introduction

A speckle pattern is created when coherent light is reflected from a rough surface or transmitted through a scattering media. This pattern is made up of regions with high and low intensity and depends on the distribution of scatterers. Static scatterers create a static speckle pattern, while dynamic scatterers create a dynamic speckle pattern. Speckle patterns appear in images collected with many detection systems, including radar,1,2 microscopy,35 astronomy,68 and ultrasound.9,10 Biological samples produce speckle patterns with different dynamics in different regions, such as those associated with blood vessels. Regions rich in blood vessels, like skin, are of particular interest to monitor skin lesions, such as wounds, ulcers, and tumors. It has also been used to assess the efficacy of various treatments, such as topical creams and laser therapy. Additionally, speckle pattern imaging can be used to study the effects of aging and diseases, such as diabetes, on skin microcirculation. When recorded by a camera with finite exposure time, dynamic speckle patterns are blurred, and this local blurring is related to the movement of scatterers, such as blood flow, and can be measured as speckle contrast (K).

Speckle contrast analysis is the basis of laser speckle contrast imaging (LSCI), a low-cost, noninvasive technique used in different areas of medicine, such as dentistry,11,12 ophthalmology,13,14 dermatology,15,16 neurobiology,17,18 and neuroscience.19,20 Common uses of LSCI are to measure blood flow21,22 and perform intraoperative assessment of tissue perfusion.23

For LSCI, the propagation of coherent light through scattering media produces a speckle pattern captured with a digital camera. If the medium contains moving scatterers, the speckle pattern fluctuates proportionally to the scatterers’ speed. If the exposure time is longer than the correlation time of the backscattered light, the speckle visibility will be reduced. In 1981, Fercher and Briers first measured blood flow speed using LSCI24 and derived the following expression for the contrast K:

Eq. (1)

K=σI=(τc2T{1e2Tτc})1/2,
where T is the camera exposure time, τc is the correlation time of the backscattered light from the sample, σ is the standard deviation and I the average intensity.

Since this seminal paper, the LSCI technique has evolved and therefore the contrast calculation too. For example, Lemieux and Durian25 added a correction factor β (which depends on the ratio of the pixel and speckle grain size) to the Siegert relation that links the intensity dynamics associated with scatterer motion with the electric field dynamics,26 resulting in g2(τ)=1+β|g1(τ)|2, where g1(τ) is the electric field autocorrelation function and g2(τ) is the intensity autocorrelation function. Bandyopadhyay et al.27 corrected an over simplification on the derivation of Eq. (1), applying a double integral of τ=t1t2, obtaining

Eq. (2)

K2=βe2x1+2x2x2,
where x=T/τc. This expression still considers only the light scattered from dynamic scatterers and dimensionless pixels. Several groups19,25,27,28 have since demonstrated the necessity of considering speckle not only from dynamic scatterers but also stationary scatterers. Static scatterers affect the Siegert relation25 and thus the contrast, resulting in a revised form of g2:

Eq. (3)

g2(τ)=1+Aβ|g1(τ)|2+Bβ|g1(τ)|,
where A=If2(If+Is)2, B=2IfIs(If+Is)2, and Is and If represent the contributions from the static and dynamical scattered light, respectively:

Eq. (4)

K=β1/2[ρ2e2x1+2x2x2+4ρ(1ρ)ex1+xx2+(1ρ)2]1/2+Cn,
where ρ=If(If+Is) is the fraction of the fluctuating component of light that interacts with dynamic scatterers, and Cn is an offset term that considers the noise contribution to the measurement.

Bandyopadhyay et al.27 proposed a technique to measure β experimentally. Accounting for the finite size of the camera pixels29 led to an analytical expression for β, assuming Gaussian illumination:

Eq. (5)

β1/2(M)=1/Merf(πM)(1/(πM))(1eπM),
where M is the ratio between the pixel area and the speckle area (i.e., the speckle grain size). β1/2(M) effectively corresponds to the spatial contrast with a sliding window of one pixel size. Equation (5) describes the effect of pixel and speckle sizes on the theoretical calculation of speckle contrast. However, it does not consider the likely correlation among neighboring pixels.

With the derivation of the equations above, the correlation between neighboring pixels is neglected, and hence are valid only for small speckle area compared to the pixel area (M1). When the speckle area is larger than the pixel area (M<1), these models do not fit experimental data well. Here we present a mathematical model that considers correlations between neighboring pixels to improve the agreement between theoretical and experimental contrast measurements for any size of speckle and pixel areas (M>0).

2.

Theory

2.1.

Spatial Correlation Model

Several computational algorithms30,31 exist to calculate the speckle contrast from a single raw speckle image or set of images. Application of spatial statistics24,32 to a single image is probably the most common approach. This analysis typically implements a sliding square window to calculate the local speckle contrast as the standard deviation of pixel intensities divided by the mean intensity. However, the process of the sliding window is not taken into in the current theoretical model (any of the above mentioned models), which can lead to an inaccurate contrast calculation, and therefore to an inaccurate blood flow calculation. Indeed, it is necessary to consider not only the contribution of the physical size of the camera’s pixel (autocorrelation) but also the effect of the size of the sliding window to improve the accuracy of β and therefore of the contrast.

Skipetrov et al.33 employed a sliding window of 3×3 pixels. In this work, we expand on their analysis to extend it to a sliding window of any size to measure an accurate blood flow speed. We show that the mathematical model considering the statistical analysis of the sliding window agrees well with experimental data.

We assume a speckle pattern I(r) recorded by a digital camera, where r=xi^+yj^ is the position vector on the CCD image. Here we consider a sliding window of N×N pixels, with N being an odd number. We define the speckle spot size as comprising a subregion of (2p+1)×(2p+1) pixels in size, where pZ+ and 2p+1N. Within this subregion, the pixels are assumed to be spatially correlated. Figure 1(a) shows a schematic representation of the sliding window (pink rectangles) and one possible example of a correlation subregion (blue triangles).

Fig. 1

(a) Schematic representation of the sliding window of (N×N) pixels (pink) and the correlation subregion of (2p+1)2 (blue). In this example, the sliding window of size N=11, and correlation subregion of size 2p+1=7 is shown. (b) Schematic representation of the correlation region of (2p+1)2 pixels, with a close-up view of the first quadrant, and a chess board showing the movement of a knight. Some pixels are labeled with their coordinates, and they are colored according to their type (see text for details).

JBO_28_12_125002_f001.png

Figure 1(b) shows the corresponding coordinates (η,ξ) for each pixel of the sliding window, where η,ξ{0,±1,±2,±N12} and a correlation subregion containing different types of correlations: central, lateral, diagonal, and knight. It is important to mention that all pixels within the subregion are correlated and all of them are considered on calculations. However, due to symmetry, many of the correlations are repeated several times. For example, since the lateral pixels (0,η), (η,0), (0,η), and (η,0) are all at the same distance from the central pixel of the sliding window, they are equally correlated with the central pixel, and therefore, this correlation value is repeated four times.

Considering a pixel with area a2, the analytic expression for the speckle contrast calculated over an arbitrary sliding window size of N×N pixels, and hence an arbitrary correlation subregion of (2p+1)×(2p+1) pixels may be written as (details can be found in Appendix):

Eq. (6)

Ks2(N,p)=1μ0,01N(N1)(4η=1p(Nη)N1μη,0+4η=1p(Nη)21μη,η+8ξ=1p1η=ξ+1p(Nη)(Nξ)1μη,ξ),
where each summation inside the parentheses stands for a diagonal, lateral, or knight-type correlation, respectively. As described in Appendix, Eq. (6) is valid for p2, i.e., a 5×5 subregion. For p=1, there is no knight correlation, and thus the double summation does not exist. For p=0, there is no lateral, diagonal, or knight-type correlation, and thus the terms in parentheses equal zero. Here we consider only p2. 1/μη,ξ is the correlation factor of the pixel with coordinates (η,ξ) and with the central pixel (0,0) of the sliding window, given by

Eq. (7)

1μη,ξ=1a4a(2ξ1)/2a(2ξ+1)/2a(2η1)/2a(2η+1)/2a/2a/2a/2a/2g12(xx,yy)dxdydxdy,
where g1 is a first-order correlation function. At this point, we have not considered the correlation function (g12(rr)); this will be the topic of the next section. The factor β in Eq. (4) corresponds to the spatial contrast Ks2(N,p) (i.e., β=Ks2(N,p)) for any window size, while Eq. (5), Ks2(N,p) takes into account not only the finite dimension of the pixel but its possible spatial correlation.

Table 1 shows expressions for the spatial contrast using Eq. (6) for the first four different dimensions of the sliding window.

Table 1

Expressions for Eq. (6) for sliding window sizes of 1×1 (i.e., autocorrelation), 3×3, 5×5, and 7×7  pixels.

Ks2(12,0)1μ0,0
Ks2(32,1)1μ0,0+(131μ1,0)+(291μ1,1)
Ks2(52,2)1μ0,0+(2151μ1,01101μ2,0)+(8751μ1,13501μ2,2)+(4251μ2,1)
Ks2(72,3)1μ0,0+(1141μ1,05841μ2,01211μ3,0)+(3491μ1,1255881μ2,241471μ3,3)+(5491μ2,14491μ3,1101471μ3,2)

As it seen in Table 1, the contribution of each lateral, diagonal, and knight correlation decreases with increasing subregion size.

2.2.

Gaussian Velocity Distribution Function

For a Gaussian-shaped laser beam, the spatial correlation function also is Gaussian in shape.

2.2.1.

Analytical solutions

The Gaussian correlation function g12(rr)=exp[π2(xx)2+(yy)2Ac]33,34 may be written using a change of variables w=xx, w¯=(x+x)/2, u=yy, and u¯=(y+y)/2:

Eq. (8)

g1(w,u)=exp[π2(w2+u2)Ac],
where Ac is the correlation area (i.e., speckle size). For a speckle area with radius b:

Eq. (9)

g12(w,u)=(exp[π2(w2+u2)πb2])2=exp[(w2+u2)/b2].

Substituting Eq. (9) into Eq. (7), we obtain

Eq. (10)

1μη,ξ=14π2M2×(eπM(η1)22eπMη2+eπM(η+1)2+πM((η1)erf[πM(η1)]2ηerf[πMη]+(η+1)erf[πM(η+1)]))×(eπM(ξ1)22eπMξ2+eπM(ξ+1)2+πM((ξ1)erf[πM(ξ1)]2ξerf(πMξ)+(ξ+1)erf[πM(ξ+1)])),
where M=a2/πb2 is the ratio of the pixel area and the speckle area. Equation (10) provides an expression for speckle contrast that is similar to that described in section 4.6 of Ref. 35.

Equations (6) and (10) are programmed and available in MATLAB and Mathematica (see Code and Data Availability).

One particular case is when p=0 (i.e., autocorrelation), corresponding to a spatial correlation subregion of only a single pixel. For this case, we obtain the well-established analytic expression for spatial speckle contrast:29

Eq. (11)

Ks2(N,p=0)=1μ0,0=1π2M2(1+eπM+πMerf[πM])2.

Equation (11) is identical to the correction factor β [see Eq. (5)] proposed in Refs. 19 and 25.

Table 2 shows the first 1/μη,ξ factors needed to calculate the speckle contrast for 1×1, 3×3, 5×5, and 7×7 sliding windows.

Table 2

Correlation factors calculated using Eq. (10) needed to calculate the speckle contrast of a 7×7 sliding window.

Central
1μ0,01M2π2(1+eMπ+Mπerf(Mπ))2
Lateral
1μ1,012M2π2(1+eMπ+Mπerf(Mπ))(1+e4Mπ2eMπ2Mπ(erf(Mπ)erf(2Mπ)))
1μ2,012M2π2(1+eMπ+Mπerf(Mπ))(e9Mπ2e4Mπ+eMπ+Mπ(erf(Mπ)4erf(2Mπ)+3erf(3Mπ)))
1μ3,012M2π2(1+eMπ+Mπerf(Mπ))(e16Mπ2e9Mπ+e4Mπ+2Mπ(erf(2Mπ)3erf(3Mπ)+2erf(4Mπ)))
Diagonal
1μ1,114M2π2(1+e4Mπ2eMπ2Mπ(erf(Mπ)erf(2Mπ)))2
1μ2,214M2π2(e9Mπ2e4Mπ+eMπ+Mπ(erf(Mπ)4erf(2Mπ)+3erf(3Mπ)))2
1μ3,314M2π2(e16Mπ2e9Mπ+e4Mπ+2Mπ(erf(2Mπ)3erf(3Mπ)+2erf(4Mπ)))2
Knight
1μ2,114M2π2(1+e4Mπ2eMπ2Mπ(erf(Mπ)erf(2Mπ)))(e9Mπ2e4Mπ+eMπ+Mπ(erf(Mπ)4erf(2Mπ)+3erf(3Mπ)))
1μ3,114M2π2(1+e4Mπ2eMπ2Mπ(erf(Mπ)erf(2Mπ)))(e16Mπ2e9Mπ+e4Mπ+2Mπ(erf(2Mπ)3erf(3Mπ)+2erf(4Mπ)))
1μ3,214M2π2(e9Mπ2e4Mπ+eMπ+Mπ(erf(Mπ)4erf(2Mπ)+3erf(3Mπ)))(e16Mπ2e9Mπ+e4Mπ+2Mπ(erf(2Mπ)3erf(3Mπ)+2erf(4Mπ)))

2.2.2.

Numerical solution

We integrated Eq. (7) numerically using Mathematica 11 and compared the resultant solution to the analytical solution in Eq. (10). A good agreement between the analytic and numerical solution is observed (Fig. 2).

Fig. 2

Comparison between the analytical expression (solid lines) using Eq. (10) and a numerical solution (symbols) of Eq. (7) using Mathematica 11.

JBO_28_12_125002_f002.png

The parameters 1/μ0,0, 1/μ1,0, and 1/μ1,1 are sufficient to calculate the contrast K for a spatial correlation subregion of 3×3  pixels.36 For a subregion of 5×5  pixels, we also should include the terms 1/μ2,0, 1/μ2,1, and 1/μ2,2.37 Now it is possible to calculate the speckle contrast using Eq. (10) for any arbitrary odd size of sliding window (N) and subregion (2p+1).

Figure 3 shows the plots of the analytical (solid lines) and numerical (symbols) contrast for a correlation subregion of 1×1 (i.e., no spatial correlation), 3×3, and 5×5 pixels using Eq. (6). When the speckle size is larger than the pixel size (i.e., M<1), each speckle grain spans multiple pixels, resulting in spatial correlation among adjacent pixels within the sliding window. Due to this correlation, the standard deviation σ of intensity values within the sliding window decreases for M<1, resulting in an associated decrease in K. When the speckle size is smaller than the pixel size (i.e., M>1), each pixel contains intensity contributions from multiple speckle grains, leading to a lack of spatial correlation among adjacent pixels within the sliding window. In addition, the integration of multiple grains per pixel leads to a reduction in intensity variance in the speckle pattern.

Fig. 3

Solid lines show the contrast calculated using Eq. (6) for a correlation subregion of 1×1 (no spatial correlation), 3×3, and 5×5  pixels, in blue, pink, and black, respectively. The circle, triangle, and square marks show the numerical solution using Mathematica 11 for spatial correlation submatrices of 1×1, 3×3, and 5×5  pixels. Good agreement is observed between the numerical and analytical expressions.

JBO_28_12_125002_f003.png

In Fig. 3, it is show that for each size of sliding window, there is a different maximum contrast, hence, in order to maximize the contrast range, it is possible to choose the sliding window size for a given pixel and speckle area and vice versa, it is possible to choose the ratio M for a given sliding window size.

3.

Experimental Validation of Proposed Model

Laser light from a coherent source (Verdi, Coherent Inc., λ=532  nm) was expanded and collimated. Then the light passed through a diffuser to achieve a homogeneous illumination of a flow phantom, which consisted of a microfluidic slide (thinXXS Microtechnology AG) with channel diameter of 300  μm. Intralipid (1%) was delivered with a syringe-based infusion pump into the channels at flow speeds from 4 to 20  mm/s in step of 2  mm/s. Raw speckle were recorded with a CCD camera (Retiga 2000R) (7.4  μm×7.4  μm pixel area). The camera was equipped with a macrolens with a variable aperture (Fig. 4) (see Ref. 38 for a detailed explanation of the experimental setup).

Fig. 4

Experimental setup used to test the spatial speckle correlation model. An expanded and collimated 532 nm laser illuminated the skin phantom. A Retiga CCD camera equipped with a variable-aperture macroacquired speckle images. A linear polarizer was placed in front of the lens to mitigate specular reflectance contributions to the images.

JBO_28_12_125002_f004.png

We modified the speckle size by changing the f# of the lens attached to the CCD camera:

Eq. (12)

speckle size=2.44(Mag+1)λf#,
where Mag is the magnification of the lens. The spatial speckle contrast was calculated from the experimental data using a sliding window of N=32,72, and 152.

Figure 5 shows the mathematical prediction of speckle contrast using Eq. (6) and the experimental data. The curves generated with Eq. (7) overlap when M1 but diverge when M<1. Considering no correlation between neighboring pixels, the speckle contrast K0 calculated by the model approaches 1 when M approaches zero (black continuous line) which is a contradiction, as the standard deviation should approach zero in that scenario and therefore the speckle contrast approaches zero, as observed experimentally. The speckle contrast must be <1 when M is <1. When correlation subregions (i.e., 3×3 and 5×5) are considered, speckle contrast reduces for lower values of M as expected.

Fig. 5

Solid lines show the contrast KS(32,1), KS(72,3), and KS(152,) calculated using Eqs. (6) and (10) for spatial correlation submatrix of 3×3, 7×7, and 15×15  pixels in pink, blue, and red, respectively. Dots show the experimental data for 3×3, 7×7, and 15×15  pixels, in pink, blue, and red, respectively.

JBO_28_12_125002_f005.png

The relationship between the pixel and the speckle grain size has an important effect on the speckle contrast.39 Figure 5 shows spatial contrast calculated using a standard spatial contrast algorithm (Ks(1,0)), which does not consider the potential spatial correlation of adjacent pixels, and calculations with our analytic model considering a sliding window of 3×3, 7×7, and 15×15  pixels. For different window sizes, the curves have a different maximum contrast at different values of M. Therefore, with our model, knowledge of M is sufficient to choose the appropriate sliding window and correlation subregion sizes to achieve the maximum speckle contrast.

We note that the experimental data in Fig. 5 agrees with calculations using our analytic model for all interrogated values of M. For M1 (the speckle grain size is larger than the pixel), choosing a submatrix at least as large as the speckle size to minimize loss of potential correlation between pixels is recommended.

Given a particular experimental setup and a sliding window size, M, N, and p are defined. Therefore, the correction factor β=Ks(N,p) [Eq. (6)] should be utilized to determine the perfusion index (PI=1/τc) from the contrast (K) obtained with the sliding window, and given by Eq. (2) or Eq. (4). Considering Tτc, the PI is given by:34 PI=β/TK2.

In Fig. 5, we use these window sizes merely as an example. However, the size of the sliding window is at the user’s discretion based on the characteristics of the speckle image they are analyzing. It should be noted that the larger the sliding window size is, the greater the loss of spatial resolution is.

Figure 6 illustrates the impact of the correction factor β=Ks(N,p) on the PI image (for Tτc), for two sliding window sizes (first row: 3×3 and second row: 7×7  pixels) and a fixed value of M=0.0338. The first column, (a) and (d), shows the PI without considering the correlation between pixels [Eq. (5)], resulting in β=Ks(1,0)=0.9827. The second column, (b) and (e), shows the corrected PI [Eq. (6)] by considering all the potential correlations within the sliding window. In this case, the correction factors are Ks(32,1)=0.7073 and Ks(72,3)=0.8198, respectively. The third column, (c) and (f), is the difference between the first two columns. As shown, when N=32, the error in PI calculation is nearly 30% and when N=72, the error is 20% with M=0.0338. The PI images shown in Fig. 6 represent the average PI over 30 frames.

Fig. 6

Accounting for the spatial correlation among pixels is required to calculate an accurate PI. (a)–(c) The PI=β/TK2 calculated using a sliding window of 3×3. (d)–(f) A sliding window of 7×7 pixel, with M=0.0338. (a), (d) The PI without considering the correlation between pixels, i.e., β=Ks(1,0)=0.9827. (b), (e) The corrected PI, β=Ks(32,1)=0.7073 and β=Ks(72,3)=0.8198, respectively. (c), (f) The difference between the first two columns.

JBO_28_12_125002_f006.png

From Fig. 6, we can observe that the difference between the first two columns is only the scalar multiplication by the correction factor, thus preventing the overestimation of the PI.

4.

Conclusions

We present a more accurate estimation of the constant β and therefore of the contrast speckle contrast value by considering the effects of spatial correlation among the neighboring pixels. For a wide range of ratios of speckle grain size to pixel size, our model estimates the theoretical value of contrast more accurately than the standard model that does not consider the potential spatial correlation among adjacent pixels.35 For the special case of Gaussian illumination, we present an analytical solution for the spatial speckle contrast of any spatial correlation submatrix size. The resultant impact of our new model is a more accurate estimation of speckle contrast, which in turn should lead to improved estimations of tissue blood flow.

5.

Appendix

The integrated intensity Iη,ξ over the physical area a2 of the pixel (η,ξ) is given by

Eq. (13)

Iη,ξ=1a2pixelη,ξI(r)d2r,

The mean intensity over the sliding window is

Eq. (14)

i=1Nη,ξIη,ξ,
and the corresponding unbiased variance is

Eq. (15)

c=1N1η,ξ(Iη,ξi)2.

The expected value of the variance is

Eq. (16)

c=1N1(i2N+η,ξIη,ξ2).
where denotes the ensemble average.

Given two pixels within the sliding window with coordinates (η,ξ) and (η,ξ), respectively, the parameter 1/μηη,ξξ depends on the spatial correlation between the given pixels and M the ratio between the pixel and speckle spot size. Due to it is not important, the actual pixel coordinates (η,ξ) and (η,ξ) but the distance between them η=ηη and ξ=ξξ. Therefore, the correlation factor 1/μη,ξ of the pixels (0,0) and (η,ξ) it is identical to 1/μηη,ξξ. The correlation factor is given by the following expression:

Eq. (17)

1μη,ξ=1a4pixel0,0pixelη,ξ(g2(rr)1)d2rd2r=1a4pixel0,0pixelη,ξg12(rr)d2rd2r,
using Eqs. (13) and (17), we can rewrite I0,0Iη,ξ as

Eq. (18)

I0,0Iη,ξ=I2(1+1μη,ξ).

Computing i2 from Eq. (14), where denotes the ensemble average, and the summation spans all pixels within the sliding window of N×N pixels. Using the following notation:

Eq. (19)

i2=1N2η=NNξ=NNη=NNξ=NNI0,0,Iη,ξ.

It is possible to separate the summation into two sets of pixels (1) CW, where (η,ξ)(2p+1)×(2p+1) and (2) OW, where (η,ξ)(2p+1)×(2p+1).

For set CW, we focus on particular cases. When η=ξ=0, we call this a central correlation (see Fig. 3). When η=ξ0, we call this a diagonal correlation. When ηξ=0 or ξη=0, we call this a lateral correlation. Finally, when (η,ξ)(2p+1)×(2p+1) and are not central, diagonal, or lateral correlations, we call these knight correlations due to the resemblance of the shape to the knight’s movement in chess. The other correlation, when the index (η,ξ)OW, is referred to as outsiders. Then Eq. (19) may rewritten as the sum of each type of correlations, i.e.:

Eq. (20)

i2=1N2((η,ξ)centralI0,0Iη,ξ+(η,ξ)diagonalI0,0Iη,ξ+(η,ξ)lateralI0,0Iη,ξ+(η,ξ)knightI0,0Iη,ξ+(η,ξ)outsidersI0,0Iη,ξ).

For p=0, only the central correlation exists; hence, only the first summation in Eq. (20) is nonzero. Due to the symmetry in the correlation, some factors 1/μη,ξ are equivalent. For example, 1/μη,ξ is equivalent to 1/μξ,η, as well as any paired combination of (±η,±ξ). Approximately only the half of the pixels in one quadrant of the correlation subwindow are not equivalent to each other, without loss of generality, the fist quadrant is considered to classified/study these correlations, as it may see in Fig. 1(b). In this work, it has been classified the four different types of correlations: central, lateral, diagonal and knight.

For this reason, it is unnecessary to compute the correlation of all pixels. Instead, it is sufficient to compute the correlation of the pixels that are not equivalent and to weight their contributions appropriately.

Identifying the existence of N central correlations, one for each pixel in the correlation subregion, is straightforward. The other types of correlation are not so straightforward, but it can be demonstrated that for the diagonal correlation type, η=ξ1, there are 4(Nη)2 equivalent correlations. For lateral type, η>ξ=0, there are 4N(Nη) equivalent correlations. For the knight type, 1ξη2, there are 8(Nη)(Nξ) equivalent correlations and let B(p) the number of outsider correlations.

For p=0, the correlation subwindow is only 1×1  pixel, i.e., only the autocorrelation is considered (central correlations), and Eq. (20) reduces to i2=1N2NI0,0I0,0. For p=1, the correlation sub-window is 3×3  pixels, with only one central, one diagonal, and one lateral correlation. Therefore, Eq. (20) reduces to i2=1N2(NI0,0I0,0+4(N1)2I0,0I1,1+4N(N1)I0,0I1,0), which is the exact case analyzed by Skipetrov et al.33 The 1×1 pixels correlations subwindow (p=0) only has central correlation type, 3×3 is the first subwindow (p=1) with lateral and diagonal correlations type, and the 5×5 pixels correlation subwindow (p=2) is the first one that has one knight-type correlation, Eq. (20) reduce to

Eq. (21)

i2=1N2(NI0,0I0,0+4((N1)2I0,0I1,1+(N2)2I0,0I2,2)+4N((N1)I0,0I1,0+(N2)I0,0I2,0)+8(N2)(N1)I0,0I2,1).

Coyotl-Ocelotl analyzed this case.37

Henceforth p2, the first subregion with all types of correlation (diagonal, lateral, and knight) to avoid potential problems with missing terms in the summation. Then Eq. (20) is rewritten to

Eq. (22)

i2=1N2(NI0,0I0,0+η=ξ=1p4(Nη)2I0,0Iη,η+η=1p4N(Nη)I0,0Iη,0+ξ=1p1η=ξ+1p8(Nη)(Nξ)I0,0Iη,ξ+B(p)I0,0Iη,ξ).

Another possible correlation is what we call outsider correlations, which expand beyond the total number of central, diagonal, lateral, and knight correlations within the correlation subregion (2p+1)×(2p+1):

Eq. (23)

B(p)=N2(N+η=ξ=1p4(Nη)2+η=1p4N(Nη)+ξ=1p1η=ξ+1p8(Nη)(Nξ)).

Solving the summations, we obtain

Eq. (24)

B(p)=N2(N+(2p34Np+4Np+2p24Np2+4p33)+(2Np+4Np2Np2)+(2p3+4Np4Npp2+4Np2+2p334Np3+p4)).

Simplifying Eq. (24), we obtain

Eq. (25)

B(p)=N2(p(1+p)N(1+2p))2.

Here we assume that the outsider correlations are negligible by assuming that spatial correlations beyond the correlation subregion size are zero. For those pixels, I0,0,Iη,ξ=I0,0Iη,ξ=I2, and using Eq. (18), we obtain

Eq. (26)

i2=1N2(NI2(1+1μ0,0)+η=1p4(Nη)2I2(1+1μη,η)+η=1p4N(Nη)I2(1+1μη,0)+ξ=1p1η=ξ+1p8(Nη)(Nξ)I2(1+1μη,ξ)+B(p)I2),
factorizing I2 and regrouping

Eq. (27)

i2=I2N2((N1μ0,0+η=1p4(Nη)21μη,η+η=1p4N(Nη)1μη,0+ξ=1p1η=ξ+1p8(Nη)(Nξ)1μη,ξ)+(N+η=1p4(Nη)2+η=1p4N(Nη)+ξ=1p1η=ξ+1p8(Nη)(Nξ))+B(p)).

Using Eq. (23), some summation terms are eliminated with B(p), and Eq. (27) becomes

Eq. (28)

i2=I2N2((N1μ0,0+η=1p4(Nη)21μη,η+η=1p4N(Nη)1μη,0+ξ=1p1η=ξ+1p8(Nη)(Nξ)1μη,ξ)+N2).

Similarly, to compute c [Eq. (16)], the term Iη,ξ2=Iη,ξIη,ξ is equivalent to Iη,ξIη,ξ=I0,0I0,0. Using Eq. (18), Eq. (16) is rewritten as

Eq. (29)

c=1N1(i2N+η,ξI2(1+1μ0,0)),
solving the summation:

Eq. (30)

c=1N1(i2N+I2(1+1μ0,0)N),
substituting Eq. (28) and factorizing I2:

Eq. (31)

c=I2N1(1N2((N1μ0,0+η=1p4(Nη)21μη,η+η=1p4N(Nη)1μη,0+ξ=1p1η=ξ+1p8(Nη)(Nξ)1μη,ξ)+N2)N+(1+1μ0,0)N).

After simplification:

Eq. (32)

c=I2N(N1)(N(N1)1μ0,0η=1p4(Nη)21μη,ηη=1p4N(Nη)1μη,0ξ=1p1η=ξ+1p8(Nη)(Nξ)1μη,ξ).

Finally, dividing c by I2 results in the calculation of the spatial contrast:

Eq. (33)

Ks2(N,p)=1μ0,01N(N1)(4η=1p(Nη)N1μη,0+4η=1p(Nη)21μη,η+8ξ=1p1η=ξ+1p(Nη)(Nξ)1μη,ξ).

Equation (33) is an analytic expression for speckle contrast that assumes both an arbitrary sliding window size and an arbitrary correlation subregion of pixels (p2). At this time, we do not consider any heterogeneity in illumination intensity (g12(rr)); this should be the subject of future work.

Equation (33) is expressed in terms of the factors 1/μη,ξ. Those factors are given by Eq. (17), which may be simplified using the following changes of variables w=xx, w¯=(x+x)/2, u=yy, and u¯=(y+y)/2 equivalent to the triangular weight reported in the literature after Bandyopadhyay et al.27 Equation (17) can thus be rewritten as

Eq. (34)

1μη,ξ=1a4a(1+ξ)aξ(a(ξ+1){a(1+η)aηg12(w,u)(a(η+1)+w)dwaηa(1η)g12(w,u)(a(η1)+w)dw}duaξa(1ξ)(a(ξ1)+u){a(1+η)aηg12(w,u)(a(η+1)+w)dwaηa(1η)g12(w,u)(a(η1)+w)dw}du.

To this point, we have not made any assumptions about the shape of the correlation function g12(w,u). We now assume a Gaussian correlation shape:

Eq. (35)

g12(w,u)=(exp[π2(w2+u2)πb2])2=exp[(w2+u2)/b2],
where Ac is the correlation area and has been approximated to a circle of radius b.

Substituting Eq. (35) into Eq. (34), we arrive at the following expression for the factors 1/μη,ξ, which is Eq. (10) in the main text:

Eq. (36)

1μη,ξ=14π2M2×(eπM(η1)22eπMη2+eπM(η+1)2+πM((η1)erf[πM(η1)]2ηerf[πMη]+(η+1)erf[πM(η+1)]))×(eπM(ξ1)22eπMξ2+eπM(ξ+1)2+πM((ξ1)erf[πM(1)]2ξerf(πMξ)+(ξ+1)erf[πM(ξ+1)])).

Disclosures

No conflicts of interest, financial or otherwise, are declared by the authors.

Code and Data Availability

Implementation of Eqs. (6) and (10) as functions in MATLAB and Mathematica are available at the GitHub repository: SpatialSpeckle, https://github.com/SpeckleContrast/SpatialSpeckle

Acknowledgments

This work was partially funded by the National Science Foundation (NSF) Partnerships in International Research and Education (PIRE), through NSF-PIRE CONAHCYT (Grant No. 1545852). J.C. Juarez-Ramirez expresses gratitude to CONAHCYT for the scholarship (Grant No. 629327).

References

1. 

J. Chen et al., “Two-dimensional phase unwrapping based on U2-Net in complex noise environment,” Opt. Express, 31 (18), 29792 –29812 https://doi.org/10.1364/OE.500139 OPEXFF 1094-4087 (2023). Google Scholar

2. 

M. Ihmeida and M. Shahzad, “Enhanced change detection performance based on deep despeckling of synthetic aperture radar images,” IEEE Access, 11 95734 –95746 https://doi.org/10.1109/ACCESS.2023.3307208 (2023). Google Scholar

3. 

K. Zhuo et al., “Quantitative phase contrast microscopy with optimized partially coherent illumination,” Photonics, 10 391 https://doi.org/10.3390/photonics10040391 (2023). Google Scholar

4. 

J. Zhao et al., “Speckle and shadow artifacts reduction in scattering-based light sheet microscopy,” in Biophotonics Congr.: Opt. in the Life Sci. 2023 (OMA, NTM, BODA, OMP, BRAIN), (2023). Google Scholar

5. 

S. Morawiec et al., “Dynamic full-field optical coherence microscopy of early mammalian oocytes,” Proc. SPIE, PC12363 PC123630P https://doi.org/10.1117/12.2649882 PSISDG 0277-786X (2023). Google Scholar

6. 

W. Thompson et al., “Deep orbital search for additional planets in the HR 8799 system,” Astron. J., 165 (1), 29 https://doi.org/10.3847/1538-3881/aca1af ANJOAA 0004-6256 (2023). Google Scholar

7. 

A. Tokovinin, “Exploring thousands of nearby hierarchical systems with Gaia and speckle interferometry,” Astron. J., 165 (4), 180 https://doi.org/10.3847/1538-3881/acc464 ANJOAA 0004-6256 (2023). Google Scholar

8. 

J. Kammerer et al., “Simulating reflected light coronagraphy of Earth-like exoplanets with a large IR/O/UV space telescope: impact and calibration of smooth exozodiacal dust,” Astron. J., 164 (6), 235 https://doi.org/10.3847/1538-3881/ac97eb (2022). Google Scholar

9. 

Y. Zhou and Y. Fang, “Diagnosis of breast cancer lesion using ultrasound images, elastography, and Ki-67 protein cell proliferation index: ultrasound images, elastography, and Ki-67 protein in breast cancer,” Cell. Mol. Biol., 69 (4), 16 –23 https://doi.org/10.14715/cmb/2023.69.4.3 CMBID4 0145-5680 (2023). Google Scholar

10. 

D. C. Park and D. W. Park, “Ultrasound speckle decorrelation-based blood flow measurements,” Ultrasound Med. Biol., 49 (7), 1491 –1498 https://doi.org/10.1016/j.ultrasmedbio.2023.03.003 (2023). Google Scholar

11. 

T. Sato et al., “Application of the laser speckle-correlation method for determining the shrinkage vector of a light-cured resin,” Dental Mater. J., 23 (3), 284 –290 https://doi.org/10.4012/dmj.23.284 (2004). Google Scholar

12. 

C. Stoianovici, P. Wilder-Smith and B. Choi, “Assessment of pulpal vitality using laser speckle imaging,” Laser Surg. Med., 43 (8), 833 –837 https://doi.org/10.1002/lsm.21090 (2011). Google Scholar

13. 

D. D. Patel and D. M. Lipinski, “Validating a low-cost laser speckle contrast imaging system as a quantitative tool for assessing retinal vascular function,” Sci. Rep., 10 7177 https://doi.org/10.1038/s41598-020-64204-z (2020). Google Scholar

14. 

A. I. Srienc, Z. L. Kurth-Nelson and E. A. Newman, “Imaging retinal blood flow with laser speckle flowmetry,” Front. Neuroenergetics, 2 128-1 –128-10 https://doi.org/10.3389/fnene.2010.00128 (2010). Google Scholar

15. 

B. Choi, N. M. Kang and J. S. Nelson, “Laser speckle imaging for monitoring blood flow dynamics in the in vivo rodent dorsal skin fold model,” Microvasc. Res., 68 143 –146 https://doi.org/10.1016/j.mvr.2004.04.003 MIVRA6 0026-2862 (2004). Google Scholar

16. 

J. Cracowski et al., “Skin microdialysis coupled with laser speckle contrast imaging to assess microvascular reactivity,” Microvasc. Res., 82 (3), 333 –338 https://doi.org/10.1016/j.mvr.2011.09.009 MIVRA6 0026-2862 (2011). Google Scholar

17. 

A. K. Dunn, “Laser speckle contrast imaging of cerebral blood flow,” Ann. Biomed. Eng., 40 367 –377 https://doi.org/10.1007/s10439-011-0469-0 ABMECF 0090-6964 (2012). Google Scholar

18. 

G. A. Armitage et al., “Laser speckle contrast imaging of collateral blood flow during acute ischemic stroke,” J. Cereb. Blood Flow Metab., 30 1432 –1436 https://doi.org/10.1038/jcbfm.2010.73 (2010). Google Scholar

19. 

D. A. Boas and A. K. Dunn, “Laser speckle contrast imaging in biomedical optics,” J. Biomed. Opt., 15 (1), 011109 https://doi.org/10.1117/1.3285504 JBOPFO 1083-3668 (2010). Google Scholar

20. 

J. Senarathna et al., “Laser speckle contrast imaging: theory, instrumentation and applications,” IEEE Rev. Biomed. Eng., 6 99 –110 https://doi.org/10.1109/RBME.2013.2243140 (2013). Google Scholar

21. 

J. D. Briers and S. Webster, “Laser speckle contrast analysis (LASCA): a nonscanning, full-field technique for monitoring capillary blood flow,” J. Biomed. Opt., 1 (2), 174 –179 https://doi.org/10.1117/12.231359 JBOPFO 1083-3668 (1996). Google Scholar

22. 

J. D. Briers, “Laser speckle contrast imaging for measuring blood flow,” Opt. Appl., 37 (1–2), 139 –152 (2007). Google Scholar

23. 

E. A. Mannoh et al., “Intraoperative assessment of parathyroid viability using laser speckle contrast imaging,” Sci. Rep., 7 1 –11 https://doi.org/10.1038/s41598-017-14941-5 (2017). Google Scholar

24. 

A. F. Fercher and J. D. Briers, “Flow visualization by means of single-exposure speckle photography,” Opt. Commun., 37 (5), 326 –330 https://doi.org/10.1016/0030-4018(81)90428-4 OPCOB8 0030-4018 (1981). Google Scholar

25. 

P.-A. Lemieux and D. J. Durian, “Investigating non-Gaussian scattering processes by using nth-order intensity correlation functions,” J. Opt. Soc. Am. A, 16 (7), 1651 –1664 https://doi.org/10.1364/JOSAA.16.001651 JOAOD6 0740-3232 (1999). Google Scholar

26. 

D. Briers et al., “Laser speckle contrast imaging: theoretical and practical limitations,” J. Biomed. Opt., 18 (6), 066018 https://doi.org/10.1117/1.JBO.18.6.066018 JBOPFO 1083-3668 (2013). Google Scholar

27. 

R. Bandyopadhyay et al., “Speckle-visibility spectroscopy: a tool to study time-varying dynamics,” Rev. Sci. Instrum., 76 (9), 093110 https://doi.org/10.1063/1.2037987 RSINAK 0034-6748 (2005). Google Scholar

28. 

A. B. Parthasarathy et al., “Robust flow measurement with multi-exposure speckle imaging,” Opt. Express, 16 (3), 1975 –1989 https://doi.org/10.1364/OE.16.001975 OPEXFF 1094-4087 (2008). Google Scholar

29. 

J. C. Ramírez San Juan et al., “Simple correction factor for laser speckle imaging of flow dynamics,” Opt. Lett., 39 (3), 678 –681 https://doi.org/10.1364/OL.39.000678 OPLEDP 0146-9592 (2014). Google Scholar

30. 

J. C. Ramirez San Juan et al., “Spatial versus temporal laser speckle contrast analyses in the presence of static optical scatterers,” J. Biomed. Opt., 19 (10), 106009 https://doi.org/10.1117/1.JBO.19.10.106009 JBOPFO 1083-3668 (2014). Google Scholar

31. 

M. Draijer et al., “Review of laser speckle contrast techniques for visualizing tissue perfusion,” Lasers Med. Sci., 24 639 –651 https://doi.org/10.1007/s10103-008-0626-3 LMSCEZ 1435-604X (2009). Google Scholar

32. 

J. W. Goodman, Statistical Optics, Wiley-Interscience( (2000). Google Scholar

33. 

S. E. Skipetrov et al., “Noise in laser speckle correlation and imaging techniques,” Opt. Express, 18 (14), 14519 –14534 https://doi.org/10.1364/OE.18.014519 OPEXFF 1094-4087 (2010). Google Scholar

34. 

J. C. Ramírez San Juan et al., “Impact of velocity distribution assumption on simplified laser speckle imaging equation,” Opt. Express, 16 (5), 3197 –3203 https://doi.org/10.1364/oe.16.003197 OPEXFF 1094-4087 (2008). Google Scholar

35. 

J. W. Goodman, Speckle Phenomena in Optics: Theory and Applications, Robert & Company( (2007). Google Scholar

36. 

J. C. Juárez Ramírez et al., “Speckle contrast calculation and pixel correlation,” in Proc. 1st Int. Conf. Opt., Photonics and Lasers (OPAL’ 2018), (2018). Google Scholar

37. 

B. Coyotl-Ocelotl et al., “Speckle contrast calculation based on pixels correlation: spatial analysis,” Proc. SPIE, 10749 1074903 https://doi.org/10.1117/12.2321271 PSISDG 0277-786X (2018). Google Scholar

38. 

J. C. Ramirez-San-Juan et al., “Effects of speckle/pixel size ratio on temporal and spatial speckle-contrast analysis of dynamic scattering systems: implication for measurements of blood-flow dynamics,” Biomed. Opt. Express, 4 (10), 1883 https://doi.org/10.1364/BOE.4.001883 BOEICL 2156-7085 (2013). Google Scholar

39. 

S. J. Kirkpatrick, D. D. Duncan and E. M. Wells-Gray, “Detrimental effects of speckle-pixel size matching in laser speckle contrast imaging,” Opt. Lett., 33 (24), 2886 –2888 https://doi.org/10.1364/OL.33.002886 OPLEDP 0146-9592 (2008). Google Scholar

Biography

Beatriz Coyotl-Ocelotl studied physics at the Universidad de las Américas Puebla. She got her master’s degree and PhD in optics from the Instituto Nacional de Astrofisica, Optica y Electronica (INAOE), Puebla, Mexico. Currently, she is collaborating with the biophotonics group for the Optics Department of INAOE. Her field of interest is biophotonics, mainly related to highly scattering media and laser speckle contrast Imaging.

Ruben Ramos-Garcia serves as a researcher in the Optics Department at INAOE. He is a professor in optics, a member of the Mexican National System of Researchers (SNI) Level 3/3, and leads the BioPhotonics Group at INAOE. His research expertise encompasses optical tweezers, optical cavitation, and biophotonics in general. He has authored more of 200 works, including articles and proceedings presented at peer-reviewed conferences.

Biographies of the other authors are not available.

CC BY: © The Authors. Published by SPIE under a Creative Commons Attribution 4.0 International License. Distribution or reproduction of this work in whole or in part requires full attribution of the original publication, including its DOI.
Julio Cesar Juarez-Ramirez, Beatriz Coyotl-Ocelotl, Bernard Choi, Ruben Ramos-Garcia, Teresita Spezzia-Mazzocco, and Julio C. Ramirez-San-Juan "Improved spatial speckle contrast model for tissue blood flow imaging: effects of spatial correlation among neighboring camera pixels," Journal of Biomedical Optics 28(12), 125002 (5 December 2023). https://doi.org/10.1117/1.JBO.28.12.125002
Received: 5 May 2023; Accepted: 31 October 2023; Published: 5 December 2023
Lens.org Logo
CITATIONS
Cited by 1 scholarly publication.
Advertisement
Advertisement
KEYWORDS
Speckle

Windows

Blood circulation

Tissues

Cameras

Speckle pattern

Data modeling

Back to Top