This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\sidecaptionvposfiguret

11institutetext: Rune Barnkob 22institutetext: Heinz-Nixdorf-Chair of Biomedical Electronics
Department of Electrical and Computer Engineering
Center for Translational Cancer Research (TranslaTUM)
Technical University of Munich
81675 Munich, Germany
22email: rune.barnkob@tum.de
33institutetext: Massimiliano Rossi 44institutetext: Department of Physics
Technical University of Denmark
DTU Physics Building 309
DK-2800 Kongens Lyngby, Denmark
44email: rossi@fysik.dtu.dk

General Defocusing Particle Tracking:
Fundamentals and uncertainty assessment

Rune Barnkob    Massimiliano Rossi
(Received: date / Accepted: date)
Abstract

General Defocusing Particle Tracking (GDPT) is a single-camera, three-dimensional particle tracking method that determines the particle depth positions from the defocusing patterns of the corresponding particle images. GDPT relies on a reference set of experimental particle images which is used to predict the depth position of measured particle images of similar shape. While several implementations of the method are possible, its accuracy is ultimately limited by some intrinsic properties of the acquired data, such as the signal-to-noise ratio, the particle concentration, as well as the characteristics of the defocusing patterns. GDPT has been applied in different fields by different research groups, however, a deeper description and analysis of the method fundamentals has hitherto not been available. In this work, we first identity the fundamental elements that characterize a GDPT measurement. Afterwards, we present a standardized framework based on synthetic images to assess the performance of GDPT implementations in terms of measurement uncertainty and relative number of measured particles. Finally, we provide guidelines to assess the uncertainty of experimental GDPT measurements, where true values are not accessible and additional image aberrations can lead to bias errors. The data were processed using DefocusTracker, an open-source GDPT software. The datasets were created using the synthetic image generator MicroSIG and have been shared in a freely-accessible repository.

Keywords:
general defocusing particle tracking particle tracking velocimetry defocusing microscopy

1 Introduction

Measurement methods based on the imaging of tracer particles in a flow are standard tools in experimental fluid mechanics. Probably the most representative method is the the Particle Image Velocimetry (PIV), introduced in the mid-1980s, which in its basic configuration allows to measure a two-dimensional, two-component (2D2C) flow field by looking at the displacement of tracer particles illuminated by a thin laser sheet adrian1984scattering ; willert1991digital . In the following years, also thanks to the improvement of digital cameras, computers, and image analysis software, a great variety of new techniques derived by PIV has come out, allowing time-resolved, 3D3C measurements, at large or microscopic scale. A good overview can be found in the reference textbook by Raffel et al. raffel2018particle . When the displacements of individual particles are measured, rather than the average particle displacement in interrogation windows, the method is more properly referred to as Particle Tracking Velocimetry (PTV).

Methods derived from PIV or PTV are lately becoming more and more important, not only in experimental fluid mechanics, but also in other disciplines such as medicine, biology, or bio-engineering, in which the experimental characterization of complex fluidic systems, like blood vessels or biochemical microfluidic platforms, is crucial. In this domain, a major role is played by single-camera, 3D PTV methods, which are needed in environments where the flow is three-dimensional and only one optical access, typically through a microscope objective, is available taute2015high ; rossi2017kinematics ; barnkob2018acoustically ; rossi2019interfacial ; liu2019investigation . In the past years, the development of single-camera, 3D particle tracking methods has become a research field on its own cierpka2012particle . The major challenge here is to obtain the depth information from two-dimensional images of particles. Several principles have been proposed to solve this problem, such as holography memmolo2015recent , light-field cameras fahringer2015volumetric ; shi2019volumetric , or image defocusing willert1992three ; pereira2000defocusing ; wu2005three ; zhang2008three ; van2012non ; cierpka2010simple ; rossi2014optimization ; barnkob2015general . Defocusing is a particularly attractive approach, since it does not necessarily require the implementation of special optics or cameras. The main idea is to use optical systems with small depth of field, where the degree of defocusing of the particle images is related to the particles’ depth positions.

A large variety of 3D particle tracking methods relying on defocusing has been proposed. A first notable implementation was the Defocusing Digital PIV, where a three-pinhole mask was used to more efficiently read-out the defocusing information willert1992three ; pereira2000defocusing . Other research groups looked at the changes of the radial intensity profiles of axisymmetric particle images zhang2008three ; van2012non ; afik2015robust . Another method is the Astigmatic PTV, where an astigmatic aberration, introduced by a cylindrical lens, is used to obtain particle image shapes with a characteristic elliptical shape directly related to their depth position cierpka2010simple ; rossi2014optimization .

All these methods share the same principle: The particle image changes shape in a systematic fashion depending on the particle’s depth position. This principle can be generalized to any optics or image type, by constructing a lookup table that maps the particle image shapes with the corresponding depth positions. This approach was introduced by Barnkob et al. barnkob2015general and is referred to as the General Defocusing Particle Tracking (GDPT). The same concept was developed independently by Taute et al. taute2015high to track the 3D motion of bacteria using a standard phase-contrast microscope. Both implementations by Barnkob et al. and Taute et al. used the normalized cross-correlation for comparing the target images with the images in the lookup table; however, different image comparison approaches can be used, and neural networks and artificial intelligence are expected to play a significant role in the future newby2018convolutional ; munoz2019machine .

GDPT has been applied in different fields and by different research groups qiu2019experimental ; volk2018size ; rossi2017kinematics ; barnkob2018acoustically ; boyko2020nonuniform . However, the description of GDPT is limited to the seminal papers in Refs. 3 and 31, and there is a need for a more thorough definition and analysis of the fundamental elements characterizing a GDPT measurement. This step is crucial for a deeper understanding of the method and for future developments and improvements. Moreover, to be able to compare different GDPT algorithms and implementations, standardized assessment schemes and a database of reference images must be established, in analogy to what is already available for PTV or PIV kahler2016main . Consequently, the objective of this work is to fill this gap and provide the basis for further understanding and development of the GDPT method.

In Section 2 we identify the fundamental elements that characterize a GDPT measurement and provide a standardized scheme to assess its uncertainty. Following, in Section 3 we study the uncertainty of the method as a function of image noise and particle image density using synthetic images. Finally, in Section 4 we provide guidelines to assess the uncertainty of GDPT measurements in experimental cases where bias errors are present and the true values are not accessible. The synthetic datasets used in this work are presented in Appendix A and are freely-available to the research community. The datasets are analyzed using DefocusTracker, an open-source GDPT implementation described in Appendix B.

Refer to caption
Figure 1: Fundamentals of a GDPT analysis. (a) The analyzed system consists of a measurement volume V=l×w×hV=l\times w\times h filled with NpN_{\mathrm{p}} particles. (b) The particles in the volume are recorded on one image using a single-camera acquisition approach. As a consequence of image defocusing, the particle images have different shapes according to their depth positions. (c) The depth position of a target particle image is identified using a reference set of calibration images that maps the particle image shapes as a function of their depth position. A similarity function is used to match the target particle image with the most similar calibration image. (d) The result of a GDPT measurement is a set of measured particle coordinates (xx^{\prime},yy^{\prime},zz^{\prime}). The accuracy of the measurement result is quantified by the respective estimated uncertainties (σx\sigma_{x},σy\sigma_{y},σz\sigma_{z}).

2 Fundamentals of GDPT

The fundamental principles of a GDPT analysis are outlined in Fig. 1 and involve (a) the physical system under investigation, (b) a single-camera acquisition approach, (c) an image processing approach, and (d) the evaluation of the measurement results. The list of symbols and parameters used in this section is given in Table 1.

2.1 Physical system

The purpose of a 3D particle tracking system is to locate the physical coordinates

xi,yi,zi,fori=1,,Np,\displaystyle x_{i},y_{i},z_{i},\quad\text{for}\,\,\,i=1,\ldots,N_{\mathrm{p}}, (1)

of a number NpN_{\mathrm{p}} of tracer particles inside a measurement volume VV and to track their displacement in time. The tracking problem will not be discussed here; in GDPT analysis, the particle concentration is relatively low and conventional tracking algorithms can be used. The fundamental analysis in this work concerns only the problem of particle location determination in GDPT. As we consider single-camera acquisition, it is convenient to define the reference frame with two in-plane coordinates, xx and yy, perpendicular to the optical axis of the camera objective, and one depth coordinate, zz, parallel to the optical axis (Fig. 1). The measurement volume can be approximated by a rectangular cuboid with dimensions l×w×hl\times w\times h, being hh the dimension in the depth direction. The maximum size in the in-plane direction (l×wl\times w) is set by the field of view of the imaging system. The maximum depth hh that can be achieved depends on the imaging system, the particle size, and the illumination intensity, and corresponds to the region where the signal of defocused particle images is strong enough to be processed by the image analysis method.

Figure 2: (a) The particle image function IcI_{\mathrm{c}} describe the image of one particle as a function of its depth position. (b) The SNR and particle image area ApA_{\mathrm{p}} depends on the particle depth position. (c-d) Given the same number of particle per pixels (ppp), the number of overlapping particles is strongly affected by the particle image size.
Refer to caption

2.2 Acquisition (GDPT)

When using single-camera systems, the tracer particles in the measurement volume are recorded on a single image. For a given optical system, we can define a particle image function Ic(X,Y,x,y,z)I_{\mathrm{c}}(X,Y,x,y,z) which provides the image of one particle depending on its position in the physical space. IcI_{\mathrm{c}} can be seen as a point spread function defined for one particle, where XX and YY are the coordinates in the image space, and where we impose that the center of the particle image is located at (X,Y)=(0,0)(X,Y)=(0,0) for any xx, yy, and zz.

We consider an idealized optical system with no distortions, and where IcI_{\mathrm{c}} is independent of the in-plane coordinates (Fig. 2(a))

Ic(X,Y,x,y,z)Ic(X,Y,z).\displaystyle I_{\mathrm{c}}(X,Y,x,y,z)\approx I_{\mathrm{c}}(X,Y,z). (2)

Under this approximation, we can represent a general image I(X,Y)I(X,Y), containing a total number NpN_{\mathrm{p}} of particles, as

I(X,Y)=iIc(XMxi,YMyi,zi)+I0(X,Y),I(X,Y)=\sum_{i}I_{\mathrm{c}}(X-Mx_{i},Y-My_{i},z_{i})+I_{0}(X,Y), (3)

where MM is the magnification of the optical system and where I0I_{0} is a term that accounts for background intensity and thermal noise of the camera.

With respect to the final result of a GDPT evaluation, two primary parameters must be considered:

  • Signal-to-noise ratio (SNR). Following a convention used in image analysis, we define the SNR as the ratio between the mean particle image signal μp\mu_{\mathrm{p}} and the standard deviation of the noise σI\sigma_{I}

    SNR=μpσI.\displaystyle\mathrm{SNR}=\frac{\mu_{\mathrm{p}}}{\sigma_{I}}. (4)

    Practically, σI\sigma_{I} can be estimated as the standard deviation of the image intensity in a region without particles, and μp\mu_{\mathrm{p}} can be calculated as the average intensity of the particle image minus the average background intensity. We can define the boundary of a particle image by setting a threshold, as shown in Fig. 2(b).

  • Particle image density N𝐒\bm{N_{\mathrm{S}}}. This parameter is often given in particles per pixels (ppp). This approach, however, does not consider the particle image size, which is an important factor in defocusing applications with respect to overlapping particles, as shown in Fig. 2(c-d). For GDPT analysis, it is more convenient to consider the ratio between the sum of the particle image areas Ap(i)A_{\mathrm{p}}^{(i)} and full image area AIA_{I} kahler2012uncertainty

    NS=1AIiAp(i)NpA¯pAI.\displaystyle N_{\mathrm{S}}=\frac{1}{A_{I}}\sum_{i}A_{\mathrm{p}}^{(i)}\approx N_{\mathrm{p}}\frac{\bar{A}_{\mathrm{p}}}{A_{I}}. (5)

    Here, A¯p\bar{A}_{\mathrm{p}} is the average of the particle image areas, which can be estimated for instance from the calibration stack. One can easily translate the NSN_{\mathrm{S}} value in ppp, by dividing it with A¯p\bar{A}_{\mathrm{p}}. It should be noted that this parameter is equivalent to the source density encountered in classical PIV literature adrian1984scattering ; westerweel2000theoretical .

In real optical systems, the approximation in Eq. (2) may not hold as a consequence of optical aberrations. The most common aberrations which are relevant for GDPT applications are:

  • Parallax or perspective error. The magnification is not constant across the measurement depth, i.e. objects closer to the lens appear larger on the image. This error is typically small and can be neglected for microscope objective lenses.

  • Field curvature. The focal plane is not flat, therefore the measured zz position must be corrected depending on the particle in-plane position. This effect is relevant in GDPT applications since a field curvature of a few micrometers can have a significant impact in the measurement.

  • Distortion. The particle images are distorted as they move away from the image center. This error is difficult to correct in GDPT analysis based on a single calibration stack but is normally not strong in conventional optical setups.

More details about practical strategies to deal with optical aberrations and bias errors are discussed in Section 4.

2.3 Processing (GDPT)

The aim of a GDPT processing is to determine the 3D particle positions from the defocused particle images. The in-plane position can be obtained using one of the many approaches developed for 2D PTV maas1993particle ; ohmi2000particle ; ouellette2006quantitative ; raffel2018particle . The out-of-plane component is determined using a reference set of calibration images and must contain the following elements:

  1. 1.

    A discrete reference set of calibration images, referred to as the calibration stack. This can be seen as a discrete sampling at known positions of the particle image function IcI_{\mathrm{c}}

    Ic(k)(X,Y)=\displaystyle I_{\mathrm{c}}^{(k)}(X,Y)= Ic(X,Y,zk)+I0(X,Y)\displaystyle I_{\mathrm{c}}(X,Y,z_{k})+I_{0}(X,Y)
    withk=1,2,,Ncal.\displaystyle\quad\mathrm{with}\,\,k=1,2,...,N_{\mathrm{cal}}. (6)

    Ic(k)I_{\mathrm{c}}^{(k)} is typically obtained experimentally by taking subsequent images of a reference particle which is displaced at known positions, for instance using a motorized focusing stage barnkob2015general .

  2. 2.

    A function or procedure to identify target particle images It(i)I_{\mathrm{t}}^{(i)} inside the image II. This normally relies on segmentation algorithms that can be applied on raw or filtered/pre-processed images.

  3. 3.

    A function or procedure to quantify the similarity between different images. This is used to rank the calibration images in Ic(k)I_{\mathrm{c}}^{(k)} with respect to their similarity to a given target particle image It(i)I_{\mathrm{t}}^{(i)}.

  4. 4.

    A function or procedure to estimate the final depth position ziz^{\prime}_{i} of the target particle from the similarity values between It(i)I_{\mathrm{t}}^{(i)} and Ic(k)I_{\mathrm{c}}^{(k)}. It should be noted that a simple identification of the most similar image in the stack would produce a discrete output. Interpolation schemes are needed to obtain a continuous output with a “sub-image” resolution, in analogy with what is typically done in digital PIV evaluations to obtain sub-pixel resolution.

More generally, the determination of the depth position in GDPT can be seen as a supervised learning problem, where the calibration stack is the training set used to calibrate a prediction algorithm. The scheme of the prediction algorithm remains the same but it can be trained on different setups just using different calibration stacks. We used in this paper the implementation based on the normalized cross-correlation proposed in Ref. 3, but other approaches using neural networks or more sophisticated classification schemes would be natural improvements of the method.

Table 1: List of symbols and parameters.
Symbol Description
AIA_{I} Image area
ApA_{\mathrm{p}} Particle image area
CmC_{\mathrm{m}} Normalized cross-correlation maximum
dmedd_{\mathrm{med}} Median filter size
I(X,Y)I(X,Y) Image
I0(X,Y)I_{0}(X,Y) Image background
Ic(X,Y,z)I_{\mathrm{c}}(X,Y,z) Particle image function
Ic(k)(X,Y)I_{\mathrm{c}}^{(k)}(X,Y) Calibration image stack
It(i)(X,Y)I_{\mathrm{t}}^{(i)}(X,Y) Target particle image
MM Magnification
μp\mu_{\mathrm{p}} Mean particle image signal
NcalN_{\mathrm{cal}} Number of calibration images
NpN_{\mathrm{p}} Number of particles per image
NpN^{\prime}_{\mathrm{p}} Number of meas. particles per image
NSN_{\mathrm{S}} Particle image density (source density)
NSN_{\mathrm{S}}^{*} Critical particle image density
NSN_{\mathrm{S}}^{\prime} Measured particle image density
σx,y\sigma_{x,y} Meas. uncertainty, in-plane coords.
σx,yδ(z)\sigma_{x,y}^{\delta}(z) Local meas. uncertainty, in-plane coords.
σz\sigma_{z} Meas. uncertainty, depth coord.
σzδ(z)\sigma_{z}^{\delta}(z) Local meas. uncertainty, depth coord.
σI\sigma_{I} Image noise level (standard deviation)
ϕ\phi Relative num. of meas. particles
ϕδ(z)\phi^{\delta}(z) Local relative num. of meas. particles
SNR Image signal-to-noise ratio
SS / S(,)S(\cdot,\cdot) Similarity parameter / function
V=lwhV=l\,w\,h Measurement volume
xx, yy, zz Coordinates in physical space
xix_{i}, yiy_{i}, ziz_{i} Particle coordinates
xix^{\prime}_{i}, yiy^{\prime}_{i}, ziz^{\prime}_{i} Measured particle coordinates
XX, YY Coordinates in image space

2.4 Measurement results

The result of a GDPT evaluation on a single image, containing a total number NpN_{\mathrm{p}} of particles, is a set of measured particle coordinates xix^{\prime}_{i}, yiy^{\prime}_{i}, ziz^{\prime}_{i}, where

zi={zi+ϵziif measuredundefinedotherwise,\displaystyle z^{\prime}_{i}=\begin{cases}z_{i}+\epsilon_{z_{i}}&\quad\text{if measured}\\ \text{undefined}&\quad\text{otherwise}\end{cases}, (7)

where ϵzi\epsilon_{z_{i}} is the measurement error and the same definition applies for the other coordinates. To assess the performance of a GDPT measurement, the following parameters must be considered:

  1. 1.

    The measurement uncertainty in the particle position determination.

  2. 2.

    The relative number of measured particles.

  3. 3.

    The depth of the measurement volume.

For a fair assessment of a GDPT measurement, all these three parameters should be considered, since they are interconnected among each other. For instance, a stricter validation criterion can reduce the error but at the expenses of a smaller number of measured particles.

Figure 3: Concept of similarity and discrete sampling of the particle image function. (a) Similarity SS between the two images at coordinates z1z_{1} (blue) and z2z_{2} (red) and the full particle image function along zz. (b) Illustration of self-similarity, the average similarity between particle images at identical height but different in-plane positions, as a function of image subpixel displacements and noise. (c) Examples of the calibration stack Ic(k)I_{\mathrm{c}}^{(k)}, the discrete representation of the particle image function IcI_{\mathrm{c}}. (d) Similarity between neighbor images in calibration stacks of Ncal=15N_{\mathrm{cal}}=15, 50, or 500 calibration images.
Refer to caption
  • Measurement uncertainty. When the true particle position is known, as in the case of synthetic images, the measurement uncertainty in the determination of one coordinate is normally given in terms of the root-mean-square of the error

    σz=i(zizi)2i1,\sigma_{z}=\sqrt{\frac{\sum_{i}^{\prime}(z^{\prime}_{i}-z_{i})^{2}}{\sum_{i}^{\prime}1}}, (8)

    where i\sum_{i}^{\prime} indicates summation over the measured values and i1\sum_{i}^{\prime}1 is equal to the total number of measured particles NpN_{\mathrm{p}}^{\prime}. Since the particle images have different shapes, a non-uniform uncertainty along zz is expected and it is useful to define a local uncertainty

    σzδ(z)=i(zizi)2θδ(z,zi)iθδ(z,zi),\sigma_{z}^{\delta}(z)=\sqrt{\frac{\sum_{i}^{\prime}(z^{\prime}_{i}-z_{i})^{2}\,\theta^{\delta}(z,z_{i})}{\sum_{i}^{\prime}\theta^{\delta}(z,z_{i})}}, (9)

    with

    θδ(z,zi)={1for zδ<zi<z+δ0otherwise.\displaystyle\theta^{\delta}(z,z_{i})=\begin{cases}1&\text{for }\,\,z-\delta<z_{i}<z+\delta\\ 0&\text{otherwise}\end{cases}. (10)

    Eq. (9) indicates the uncertainty associated to a bin centered at zz and having a width of 2δ2\delta. The same applies for the uncertainty of the in-plane coordinates xx and yy. For particle images with rotational symmetry, we can assume σx=σy\sigma_{x}=\sigma_{y}. Note that Eqs. (8) and (9) give the total error, since the true values ziz_{i} are used. If the uncertainty is calculated around a mean value, as in case of experimental images, the uncertainty does not take into account bias errors. A discussion about how to apply these formulas to experimental images is presented in Section 4.

  • Relative number of measured particles. This is defined as the ratio between the number of measured particles and the total number of particles in one image

    ϕ=i1i1=NpNp.\phi=\frac{\sum_{i}^{\prime}1}{\sum_{i}1}=\frac{N_{\mathrm{p}}^{\prime}}{N_{\mathrm{p}}}. (11)

    Also in this case it is useful to define a local ϕ\phi defined as

    ϕδ(z)=iθδ(z,zi)iθδ(z,zi).\phi^{\delta}(z)=\frac{\sum_{i}^{\prime}\theta^{\delta}(z,z_{i})}{\sum_{i}\theta^{\delta}(z,z_{i})}. (12)

    The relative number of measured particles ϕ\phi tends to decrease as the particle concentration is increased, due to the more frequent occurrence of overlapping particle images. For a given GDPT implementation, there will be a critical particle image density NSN_{\mathrm{S}}^{*} above which the number of measured particles NpN^{\prime}_{\mathrm{p}} starts to decrease. This sets the maximum possible seeding density that should be used for that implementation. Furthermore, it should be noted that ϕ\phi is not directly accessible in experimental images, where only the number of measured particles NpN_{\mathrm{p}}^{\prime} is available.

  • Measurement volume. The choice of the depth hh of the measurement volume affects the total number of particles NpN_{\mathrm{p}} to be measured and, consequently, the number of overlapping particles and the measurement uncertainty. For instance, a large depth hh can include highly-defocused particle images, which have a smaller SNR and are more difficult to detect. To fairly estimate the uncertainty of a given implementation, the measurement depth on which it is applied must be indicated. In GDPT systems, hh is practically set by the lowest and highest zz coordinate in the stack.

Figure 4: GDPT uncertainties as a function of calibration sampling and image signal-to-noise ratios [Dataset I, Fig. 8(a)]. (a,c,e) Local depth coordinate uncertainty σzδ(z)\sigma_{z}^{\delta}(z) as a function of the depth coordinate zz for (a) noise-less images (σI=0\sigma_{I}=0) and varying number of calibration images NcalN_{\mathrm{cal}}, (c) fixed number of calibration images Ncal=50N_{\mathrm{cal}}=50 and varying noise level σI\sigma_{I}, and (e) fixed number of calibration images Ncal=50N_{\mathrm{cal}}=50, fixed noise level σI=50\sigma_{I}=50, and for the application of different median filters dmedd_{\mathrm{med}} to the images prior to the GDPT analysis. (b,d,f) Depth coordinate uncertainty σz\sigma_{z} as a function of the number of calibration images NcalN_{\mathrm{cal}} for (b) noise-less images σI=0\sigma_{I}=0 with and without sub-image interpolation, (d) varying noise level σI\sigma_{I}, and for (f) fixed noise level σI=50\sigma_{I}=50 and use of different image median filtering dmedd_{\mathrm{med}}.
Refer to caption

2.5 Concept of similarity

The calibration stack Ic(k)I_{\mathrm{c}}^{(k)} represents a discrete sampling of the particle image function across zz. The depth position of a particle is obtained by comparing a target particle image It(i)I_{\mathrm{t}}^{(i)} with the images in the stack using a similarity function SS, usually normalized between 0 and 1, with 1 being the perfect match (Fig. 3(a)). In an ideal case, the measurement resolution can be increased indefinitely by increasing the number of images NcalN_{\mathrm{cal}} in the stack (Fig. 3(c)). In a real case, however, beyond a certain NcalN_{\mathrm{cal}} the difference in shape between two neighbor images will be smaller than the difference induced by the image noise and in-plane image discretization (i.e. the light-intensity distribution is discretized into pixels).

This concept is illustrated in Fig. 3(b), where the self-similarity, i.e. the average SS between particle images at the same height but different in-plane positions, is shown as a function of zz. Even in the case with no noise (blue line), SS is not unity due to tiny differences induced by sub-pixel displacements of the particle images. By adding noise (red line, σI=25\sigma_{I}=25), SS decreases significantly, especially in regions where the SNR is lower. A way to check whether a calibration stack is over-sampling IcI_{\mathrm{c}}, is to calculate the similarity between neighbor images in the stack, i.e., S(Ic(k),Ic(k+1))S(I_{\mathrm{c}}^{(k)},I_{\mathrm{c}}^{(k+1)}). In the example in Fig. 3(d), the stack with Ncal=500N_{\mathrm{cal}}=500 (orange line) is clearly over-sampled, since it coincides with the self-similarity curve in Fig. 3(b). Further refining the stack will not bring any advantage. For Ncal=15N_{\mathrm{cal}}=15 (blue line), the SS between neighbor images is small, showing that the stack under-samples the particle image function. The stack with Ncal=50N_{\mathrm{cal}}=50 (red line) is a better compromise, with a slightly under-sampled region for z/h<0.5z/h<0.5 and over-sampled above.

3 Standardized uncertainty assessment using synthetic images

For a complete assessment of the effect of NcalN_{\mathrm{cal}}, SNR, and NSN_{\mathrm{S}} on the final results, it is necessary to look at the final error in the zz determination, which is also affected by the choice of the similarity function and the practical implementation of the method (e.g.  algorithms used, interpolation schemes, and smoothing). In this section, we present a systematic procedure based on synthetic images to address these aspects. Guidelines for the uncertainty assessment in experimental cases is provided in the next section.

The particle images are generated using MicroSIG rossi2019synthetic . We consider here three datasets to analyze, respectively, the effect of noise, particle concentration, and background intensity gradients. The datasets are freely available111The datasets can be downloaded through https://defocustracking.com/., more details are given in Appendix A. The datasets are analyzed using DefocusTracker  which is an open-source GDPT implementation. As similarity parameter, DefocusTracker uses CmC_{\mathrm{m}}, the maximum of the normalized cross-correlation between two images; for more details, see Appendix B.

Figure 5: GDPT uncertainties as a function of particle image density and overlapping particle images [Dataset II, Fig. 8(b)]. (a) The local depth coordinate uncertainty σzδ(z)\sigma_{z}^{\delta}(z), (c) the local in-plane coordinate uncertainty σx,yδ(z)\sigma_{x,y}^{\delta}(z), and (e) the local relative number of measured particles per image ϕδ(z)\phi^{\delta}(z) as a function of the depth coordinate zz for particle image densities NS=0.05N_{\mathrm{S}}=0.05 (squares) and NS=0.59N_{\mathrm{S}}=0.59 (circles). (b,d) The uncertainties σz\sigma_{z} and σx,y\sigma_{x,y}, and (f) the relative number of measured particles per image ϕ\phi (blue colors) and measured particle image density NSN_{\mathrm{S}}^{\prime} (orange colors) as a function of the particle image density NSN_{\mathrm{S}}.
Refer to caption

3.1 Calibration sampling and signal-to-noise ratio

In this section we evaluate the effect, on the depth coordinate determination, of the number of calibration images and sub-image interpolation along with the influence of image noise. More specifically, we analyze Dataset I (Fig. 8(a) in Appendix A) where particle images do not overlap; thus all the particles are detected, i.e., Np=NpN_{\mathrm{p}}^{\prime}=N_{\mathrm{p}}.

To isolate the different effects, we first analyze images with no noise, i.e. σI=0\sigma_{I}=0. The results are shown in Fig. 4(a), where we plot the local depth coordinate uncertainty σzδ(z)\sigma_{z}^{\delta}(z) as a function of zz along with a selection of the corresponding particle image shapes. The results are shown when using Ncal=15N_{\mathrm{cal}}=15, 50, or 500 calibration images with (points) and without (open circles) the use of sub-image interpolation. It may be noted that the defocused particle images have a sharp ring shape below the focal position (low zz) and blurred Gaussian-like shape above (high zz). This is due to the spherical aberration which is present in many optical systems and included in MicroSIG rossi2019synthetic . Detecting the shape differences for blurred particle is more difficult, which explains the larger uncertainty in regions with z/h>0.6z/h>0.6.

Generally, increasing NcalN_{\mathrm{cal}} leads to a decreasing local uncertainty σzδ\sigma_{z}^{\delta}, but e.g. for z/h0.6z/h\sim 0.6, the use of a sub-image detection scheme can lead to better results for lower NcalN_{\mathrm{cal}} which is seen by a better performance for Ncal=20N_{\mathrm{cal}}=20 (blue lines) than for Ncal=50N_{\mathrm{cal}}=50 (black lines) or Ncal=500N_{\mathrm{cal}}=500 (red lines). The use of a sub-image interpolation scheme allows for a continuous zz determination and does in general yield lower uncertainties up to a certain value of NcalN_{\mathrm{cal}}. This is shown in Fig. 4(b), where we show the depth coordinate uncertainty σz\sigma_{z} as a function of NcalN_{\mathrm{cal}}. As NcalN_{\mathrm{cal}} approaches 200, the uncertainty, with and without the use of a sub-image scheme, converges to the same value.

We now fix the number of images in the calibration stack to Ncal=50N_{\mathrm{cal}}=50 and analyze images with increasing noise levels. The results are presented in Fig. 4(c). Not surprisingly, the local depth coordinate uncertainty σzδ\sigma_{z}^{\delta} increases with a decreasing SNR. As explained before, the local uncertainty for larger values of zz is larger due to the blurred Gaussian-like shape of the particle images. The effect of noise on the local uncertainty naturally propagates into the total uncertainty as seen in Fig. 4(d). Clearly, as the noise level increases, a larger NcalN_{\mathrm{cal}} is needed in order to reach a converging uncertainty σz\sigma_{z}.

Lastly, to explore the reduction of noise through image pre-processing, we now fix the noise level to σI=50\sigma_{I}=50 and apply different median filters to the images. We illustrate this in Fig. 4(e) where we apply a median filter of dmed×dmedd_{\mathrm{med}}\times d_{\mathrm{med}} (with dmedd_{\mathrm{med}} equal to 5 or 7) to both the calibration and the measurement images. The median filter decreases the impact of noise in the local uncertainty σzδ\sigma_{z}^{\delta}, in some region even as much as one order of magnitude. Evidently, the filter size has an optimum between averaging out noise and actual particle image features — this is seen by the presence of some slightly lower values of σzδ\sigma_{z}^{\delta} for dmed=5d_{\mathrm{med}}=5 than for dmed=7d_{\mathrm{med}}=7. This is confirmed in Fig. 4(f), where the same trend is seen for the average uncertainty σz\sigma_{z}.

Figure 6: GDPT uncertainties as a function of variations in image background intensities [Dataset III, Fig. 8(c)]. (a) The local depth-coordinate uncertainty σzδ(z)\sigma_{z}^{\delta}(z) and (c) the local relative number of measured particles per image ϕδ(z)\phi^{\delta}(z) as a function of the depth coordinate zz for an applied linear background intensity gradient α=0\alpha=0 (blue lines), α=5\alpha=5 (red colors), and α=10\alpha=10 (yellow colors). (b) The depth-coordinate uncertainty σz\sigma_{z} and (d) the relative number of measured particles per image ϕ\phi as a function of α\alpha.
Refer to caption

3.2 Particle image overlap and particle concentration

After investigating the effect of noise and NcalN_{\mathrm{cal}}, we now analyze the more experimentally-realistic case where the presence of overlapping particle images is possible. In particular we use the noise-less (σI=0\sigma_{I}=0) Dataset II (Fig. 8(b)) to assess the GDPT uncertainties as a function of increasing particle concentration while keeping the number of calibration images fixed (Ncal=50N_{\mathrm{cal}}=50). We consider here particle image densities up to NS=0.59N_{\mathrm{S}}=0.59, corresponding to 0.001 particles per pixels. As the particle concentration increases, the number of overlapping particle images increases concurrently. This leads to lower similarities CmC_{\mathrm{m}} between target particle images and calibration images, which furthermore leads to larger errors in the determination of the zz-coordinates. By setting a higher threshold on the accepted values of CmC_{\mathrm{m}}, poorly-determined zz-coordinates can be removed to increase the determination accuracy but with the cost of lowering the number of measured particles NpN^{\prime}_{\mathrm{p}}.

In Figs. 5(a), 5(c), and 5(e), we show the local uncertainties σzδ\sigma_{z}^{\delta} and σx,yδ\sigma_{x,y}^{\delta}, and the local relative number of measured particles ϕδ\phi^{\delta} for two particle image densities of NS=0.05N_{\mathrm{S}}=0.05 (squares) and NS=0.59N_{\mathrm{S}}=0.59 (circles), respectively. As NSN_{\mathrm{S}} is increased from 0.05 to 0.59, the local errors σzδ\sigma_{z}^{\delta} and σx,yδ\sigma_{x,y}^{\delta} are consistently increasing, while the local relative number of measured particles ϕδ\phi^{\delta} is consistently decreasing. As the threshold on CmC_{\mathrm{m}} is increased, both σzδ\sigma_{z}^{\delta}, σx,yδ\sigma_{x,y}^{\delta}, and ϕδ\phi^{\delta} are decreasing as expected. The same trend is confirmed in Figs. 5(b), 5(d), and 5(f), where the uncertainties σz\sigma_{z} and σx,y\sigma_{x,y}, and the relative number of measured particles ϕ\phi are computed as a function of the particle image density NSN_{\mathrm{S}} and Cm=0.5C_{\mathrm{m}}=0.5, 0.8, and 0.9, respectively. In addition, we see in Fig. 5(f) that as NSN_{\mathrm{S}} increases, the measured particle image density NSN_{\mathrm{S}}^{\prime} (orange colors) reaches a peak, e.g., for NS0.24N_{\mathrm{S}}\approx 0.24 when Cm=0.9C_{\mathrm{m}}=0.9. In fact, as the particle concentration is increased, the number of particles in the image increases but so does the number of outliers or not-detectable particle images due to the increased number of overlapping particle images that cannot be processed. This can be seen as a critical value, denoted here as NSN_{\mathrm{S}}^{*}, that sets the maximum particle image density that can be used with those settings.

3.3 Variations in image intensity

Experimental measurement images are prone to variations in image light intensity, for example, if the image illumination is inhomogeneous over the image plane or if the illumination amplitude changes over time. This can eventually affect the accuracy of defocusing-based particle detection, but depends on the type of image intensity variation and applied detection algorithm. In this section, we assess the GDPT measurement uncertainties when analyzing measurement images with an applied linear light intensity gradient of increasing steepness. More specifically, we use Dataset III (Fig. 8(c)), which is based on the images in Dataset II for NS=0.30N_{\mathrm{S}}=0.30 and to which an intensity gradient α\alpha has been applied.

Figures 6(a) and 6(c) show the local depth coordinate uncertainty σzδ(z)\sigma_{z}^{\delta}(z) and the local relative number of measured particles ϕδ(z)\phi^{\delta}(z). For small α\alpha, the changes are small as expected from the fact that the normalized cross-correlation is insensitive to changes in intensity level. However, as α\alpha increases, the intensity gradient becomes comparable to the intensities of the particle image features. This affects the uncertainty and the number of measured particles specially in regions where the SNR is low (outside the green area in Fig. 6(a) and (c)). Overall, the effect of intensity gradient is small in the region with large SNR, as shown in Fig. 6(b) and (d). Note also the previously discussed connection between the uncertainty and number of measured particles, e.g., without considering the latter, one would erroneously observe in Fig. 6(b) a better performance for α=10\alpha=10 than for α=5\alpha=5.

Figure 7: Example of uncertainty assessment in experimental GDPT measurement of a Poiseuille flow in a microfluidic channel of rectangular cross-section of 380 μ\upmum ×\times 100 μ\upmum. Through the ansatz of zero cross-sectional velocity, we can estimate the local measurement uncertainties (a) σx,yδ\sigma_{x,y}^{\delta} of the in-plane coordinates and (b) σzδ\sigma_{z}^{\delta} of the depth coordinate.
Refer to caption

4 Uncertainty assessment on experimental images

The fundamental uncertainty assessment presented in this work is only perfectly-applicable to synthetic images. When moving to experimental images, the true values are obviously unknown and additional factors can bias the measurement result. In this section, we briefly discuss the most relevant sources of bias error that should be taken into account and provide guidelines about how to estimate the uncertainty on experimental images.

4.1 Refractive index

A common way to obtain the calibration stack experimentally is to use one particle at a fixed position (e.g. stuck to a wall) and to move the objective lens at different depth positions. The reference zz coordinates are obtained from the reading of the scanning device. During the measurement, however, the situation is reversed: The objective lens is fixed and the particles move. This has consequences if the immersion medium of the lens is different from the medium where the particles are dispersed, and a correction coefficient must be multiplied to the measured zz. In most applications, this coefficient is equal to the ratio between the refractive index coefficient of the fluid (typically water) and the one of the immersion medium of the lens (typically air) rossi2012effect .

4.2 Aberrations

In real applications, the particle image function IcI_{\mathrm{c}} is not the same across in-plane positions due to optical aberrations. The more straightforward way to address this problem would be to take multiple calibration stacks for different in-plane positions; however, this approach is difficult to implement. First, the size of the calibration stack would increase considerably and so the time necessary for the calibration (a particle must be scanned in different positions). Second, higher complexity and computational costs would be needed to navigate the different calibration stacks and an interpolation scheme must be implemented to cover the entire area of the sensor (only a discrete set of in-plane positions can be taken). Future implementations of the GDPT method using neural network might be able to tackle this task.

In many practically applications, however, the aberrations are weak and a single calibration stack (typically obtained in the center of the image) can be used in the whole image area rossi2019interfacial ; barnkob2018acoustically ; qiu2019experimental . Additional bias errors due to field curvature or perspective errors can be corrected using a reference experiment, for instance, using a fixed array of tracer particles on a flat plane perpendicular to the optical axis and scan it at different depth positions.

In microfluidics applications, where microscope objectives are used, the perspective error is typically negligible, but the field curvature can give errors of few microns cierpka2010calibration , which might be relevant at those scales. If the measurements are performed on a straight microchannel, one practical way to correct this bias is by a direct measurement of a Poiseuille flow inside the duct. In this case, we know that the streamlines in such flow must be straight lines, and we can use this information to determine and correct the field curvature.

4.3 Uncertainty estimation

To estimate the measurement uncertainty of an experimental GDPT setup, we can use Eqs. (8) and (9), but we need to estimate the unknown true values. A practical approach can be to measure particle displacements in flows having zero velocity in one direction. We can estimate then the displacement uncertainty, considering 0 as the true value. Modeling the error as normally distributed, the positioning uncertainty will be equal to the displacement error divided by 2\sqrt{2}. Of course, particular care should be taken with reducing as much as possible the bias errors and eliminating false positive with an appropriate outlier rejection scheme. Together with the uncertainty, it is important to indicate the depth hh of the measurement volume. When it is possible to estimate NSN_{\mathrm{S}}, for instance, if the experimental particle concentration is known, the relative number of measured particles ϕ\phi can be calculated; otherwise, NSN_{\mathrm{S}}^{\prime} should be indicated.

We give an example of the uncertainty estimation on experimental measurements in Fig. 7 using data from Ref. 3. The data contain GDPT measurements of a Poiseuille flow in a microchannel with a rectangular cross-section of 380 μ\upmum ×\times 100 μ\upmum. The flow is directed along the xx direction and the uncertainty was estimated along the perpendicular directions yy and zz, i.e., the directions of zero flow velocity. For a NS=0.03N_{\mathrm{S}}^{\prime}=0.03 (very few overlapping particles) and across a height of h=100μh=100~\upmum, we obtained uncertainties σx,y=0.08\sigma_{x,y}=0.08 px and σz/h=0.01\sigma_{z}/h=0.01, in good agreement with the values obtained in the analysis of the synthetic images.

5 Conclusions

We have identified the fundamental elements characterizing a GDPT measurement; these are the number of images in the calibration stack NcalN_{\mathrm{cal}}, the image signal-to-noise ratio SNR, the particle image density NSN_{\mathrm{S}}, and the function chosen to evaluate the similarities between calibration and target images. For the evaluation of GDPT measurements, we presented an assessment scheme encompassing the measured coordinate uncertainties, the relative number of measured particles, and the depth of the measurement volume.

For a practical implementation of the presented assessment scheme, we created a group of freely-available synthetic image datasets and we used them to study the performance of the GDPT software DefocusTracker. The fundamental findings of the study are: (i) There is an optimal number of images in the calibration stack, including more images will not reduce the measurement uncertainties, (ii) the presence of overlapping particle images increases significantly the uncertainty; using a stricter criterion to accept valid measured particles can help to improve the accuracy but at the expense of the number of measured particles, and (iii) for each setting, one can extrapolate a critical particle image density beyond which the number of measured particle decreases. The most relevant quantitative results of the study are summarized in Table LABEL:tab:performance_defocustracker.

Table 2: Summary of the performance on Dataset I (first row) and II (second and third rows) using DefocusTracker, with median filter set to dmed=5d_{\mathrm{med}}=5.
CmC_{\mathrm{m}} NcalN_{\mathrm{cal}} σI\sigma_{I} NSN_{\mathrm{S}}^{*} σx,y\sigma_{x,y} (px) σz/h\sigma_{z}/h ϕ\phi
0.5 50 50 - 0.152 0.014 1
0.5 50 - 0.545 0.436 0.021 0.330
0.9 50 - 0.248 0.213 0.013 0.353

We provided guidelines to assess the uncertainty of GDPT measurements in experimental cases where bias errors can be present and in contrary to synthetic images, the true values are not accessible. Bias errors occur because of discrepancies between calibration and target images induced by optical aberrations. This should be taken into account, e.g.  by implementing multiple calibration stacks for strong aberrations, or by implementing reference experiments for weak aberrations where one single calibration stack can still be used. To estimate experimental uncertainties, one needs to estimate the true values. This is possible for instance by looking at a velocity flow fields with null velocity in one measurement direction.

In conclusion, this work provides the tools for a more aware use of GDPT and is an important step toward the further development of the method in terms of accuracy, efficiency, and processing speed. Next steps include the expansion of the datasets to temporal-coherent data, non-monodisperse particles, and experimental data, for instance including biological cells for use of GDPT in biomedical sciences.

Acknowledgements.
This work was supported by the European Union’s Horizon 2020 Research and Innovation Programme under the Marie Sklodowska-Curie Grant No. 713683 (COFUNDfellowsDTU).
Refer to caption
Figure 8: Overview of the three synthetically-created datasets used to test and evaluate the performance of GDPT. (a) Dataset I contains measurement images of particles with random xx, yy, and zz positions but fixed within a grid in xx and yy. The dataset contains groups of measurement images of various noise levels σI\sigma_{I}, here illustrated via the insets (red rectangles) showing the images for σI=0\sigma_{I}=0 and 50, and for σI=50\sigma_{I}=50 when a median filter dmed=5d_{\mathrm{med}}=5 has been applied. (b) Dataset II contains groups of measurement images of randomly distributed particles for different particle image density NSN_{\mathrm{S}}, here illustrated via the insets (red rectangles) showing the images for NS=0.20N_{\mathrm{S}}=0.20, 0.40, and 0.59. (c) Dataset III contains groups of the measurement images for various added linear light-intensity gradients α\alpha, see Eq. (13). The measurement images are taken from Dataset II for NS=0.30N_{\mathrm{S}}=0.30.

Appendix A Datasets for standardized evaluation of GDPT methods

In this section, we introduce a group of three datasets and corresponding calibration images for evaluating the performance of a GDPT implementation as a function of different signal-to-noise ratio SNR, particle image density NSN_{\mathrm{S}}, and background intensity gradients. The datasets do not include the effect of field curvature or image aberrations. The datasets are meant to act as a reference set for the scientific community and are freely available222The datasets can be downloaded through https://defocustracking.com/..

The datasets are based on synthetic images created using MicroSIG, which is a Synthetic Image Generator (SIG) using ray tracing and a simplified spherical lens model to obtain realistic defocused or astigmatic particle images rossi2019synthetic . MicroSIG is open source and can be downloaded at gitlab.com/defocustracking. In this work, we consider bright, monodisperse particles of diameter dpd_{\mathrm{p}}, which is the most common case in velocimetry applications. All datasets share the same basic MicroSIG settings in terms of particle diameter (dpd_{\mathrm{p}} = 2 μ\upmum), objective lens (magnification MM = 10×\times, numerical aperture NA = 0.3, focal length ff = 350 μ\upmum), and sensor settings (pixel size of 6.5 μ\upmum, I0I_{0} = 500 counts). The settings have been chosen since they simulate experimental conditions that are representative for a large number of applications in microfluidics. The simulated measurement depth h=86μh=86~\upmum is kept the same for all datasets.

The three datasets are shown in Fig. 8. In order to ensure the same level of statistical significance, all datasets contain \sim 20,000 particles for each set of parameters. The three datasets are:

  • Dataset I. This dataset contains 3×603\times 60 measurement images for 3 different noise levels σI\sigma_{I}. Each measurement image contains 361 particle images located at random xx, yy, and zz positions. The xx and yy coordinates are loosely constraint on a 19×1919\times 19 grid to exclude particle image overlapping. The dataset is suitable for analyzing the depth coordinate precision and how it depends on the image noise level σI\sigma_{I}, number of calibration images NcalN_{\mathrm{cal}}, and method parameters such as image filtering and sub-image approach for the depth coordinate determination.

  • Dataset II. This dataset contains 12 subsets of measurement images of particles with randomly distributed xx, yy, and zz coordinates, thus including particle image overlapping. Each subset corresponds to a specific particle image density NSN_{\mathrm{S}} and contains a certain number of measurement images in order to have an overall number of 20,000 particles. We start with a subset of 1200 images at NS=0.05N_{\mathrm{S}}=0.05 and end with a subset of 100 images at NS=0.59N_{\mathrm{S}}=0.59. This dataset is suitable for analyzing the relative number of measured particles and depth coordinate uncertainty as a function of increasing particle image density.

  • Dataset III. This dataset contains 10 subsets of 34 measurement images of 600 particles (NS=0.30N_{\mathrm{S}}=0.30) with randomly distributed xx, yy, and zz coordinates. Each subset has a superimposed linear light-intensity gradient along the horizontal direction defined as

    Ipattern(X,Y)=αX,\displaystyle I_{\mathrm{pattern}}(X,Y)=\alpha X, (13)

    where α\alpha is a parameter accounting for the gradient intensity. The impact of α\alpha can be better appreciated by normalizing its value with the mean particle image intensity divided by the characteristic size of the particle images

    α~=αAp1/2/μp.\displaystyle\tilde{\alpha}=\alpha\,A_{\mathrm{p}}^{1/2}/\mu_{\mathrm{p}}. (14)

    A value of α~=1\tilde{\alpha}=1 indicates a light-intensity gradient on the same order of magnitude of the intensity gradient in the particle images. For this dataset we have α\alpha ranging from 1 to 10, corresponding to α~\tilde{\alpha} ranging from 0.16 to 1.6.

  • Calibration images. The set of calibration images provides the calibration images for analyzing the Datasets I–III with GDPT. It contains 3×123\times 12 calibration image stacks for 3 different noise levels σI\sigma_{I} and 12 different numbers of calibration images NcalN_{\mathrm{cal}}.

Appendix B DefocusTracker

The GDPT implementation used in this work is the Version 1.0 of DefocusTracker, which is a MATLAB implementation published under the open-source license and available at defocustracking.com. The implementation is based on the normalized cross-correlation for image comparison and a polynomial scheme for sub-image interpolation. In order to work fast and robustly, the implementation uses a cross-correlation prediction scheme based on the set of calibration images; for more details, see Ref. 25. DefocusTracker allows multiple processing iterations using different similarity parameter thresholds to improve the detection of overlapping particles; however, in this work we limit ourselves to one iteration and a single similarity parameter threshold. The implementation allows image noise filter through Gaussian and median filter, though in this work we utilize only the latter. In addition, DefocusTracker allows the determination of particle trajectories through a nearest-neighbor tracking scheme. We do not perform tracking of particles across the image frames in this work, but it is important to mention that using predictive tracking approaches can increase the performance of particle detection as well.

In DefocusTracker  the similarity parameter between two images I1I_{1} and I2I_{2}, is defined as the peak maximum of their normalized cross-correlation function c(u,v)c(u,v). Here uu and vv are the in-plane coordinates in correlation space. Following the seminal paper by Lewis in 1995 Lewis1995fast , the normalized cross-correlation takes the form

c(u,v)=\displaystyle c(u,v)=
X,Y[I1(X,Y)I1¯][I2(Xu,Yv)I2¯]{X,Y[I1(X,Y)I1¯]2[I2(Xu,Yv)I2¯]2}1/2,\displaystyle\frac{\sum_{X,Y}[I_{1}(X,Y)-\bar{I_{1}}]\,[I_{2}(X-u,Y-v)-\bar{I_{2}}]}{\Big{\{}\sum_{X,Y}[I_{1}(X,Y)-\bar{I_{1}}]^{2}\,[I_{2}(X-u,Y-v)-\bar{I_{2}}]^{2}\Big{\}}^{1/2}}, (15)

where I1¯\bar{I_{1}} and I2¯\bar{I_{2}} are the mean image intensities of I1I_{1} and I2I_{2}, respectively. The correlation function c(u,v)c(u,v) has its peak maximum CmC_{\mathrm{m}} at the position of best match between the images and the amplitude of the peak maximum ranges from 0 to 1, where 1 indicates a perfect match. A key advantage of the normalized cross-correlation function is that it is robust against light-intensity fluctuations such as inhomogeneous light distribution.

References

  • (1) Adrian, R.J.: Scattering particle characteristics and their effect on pulsed laser measurements of fluid flow: speckle velocimetry vs particle image velocimetry. Applied optics 23(11), 1690–1691 (1984)
  • (2) Afik, E.: Robust and highly performant ring detection algorithm for 3d particle tracking using 3D microscope imaging. Scientific reports 5(1), 1–9 (2015)
  • (3) Barnkob, R., Kähler, C.J., Rossi, M.: General defocusing particle tracking. Lab on a Chip 15(17), 3556–3560 (2015)
  • (4) Barnkob, R., Nama, N., Ren, L., Huang, T.J., Costanzo, F., Kähler, C.J.: Acoustically driven fluid and particle motion in confined and leaky systems. Physical Review Applied 9(1), 014027 (2018)
  • (5) Boyko, E., Eshel, R., Gat, A.D., Bercovici, M.: Nonuniform electro-osmotic flow drives fluid-structure instability. Physical Review Letters 124(2), 024501 (2020)
  • (6) Cierpka, C., Kähler, C.: Particle imaging techniques for volumetric three-component (3D3C) velocity measurements in microfluidics. Journal of visualization 15(1), 1–31 (2012)
  • (7) Cierpka, C., Rossi, M., Segura, R., Kähler, C.: On the calibration of astigmatism particle tracking velocimetry for microflows. Measurement Science and Technology 22(1), 015401 (2011)
  • (8) Cierpka, C., Segura, R., Hain, R., Kähler, C.J.: A simple single camera 3C3D velocity measurement technique without errors due to depth of correlation and spatial averaging for microfluidics. Measurement Science and Technology 21(4), 045401 (2010)
  • (9) Fahringer, T.W., Lynch, K.P., Thurow, B.S.: Volumetric particle image velocimetry with a single plenoptic camera. Measurement Science and Technology 26(11), 115201 (2015)
  • (10) Kähler, C.J., Astarita, T., Vlachos, P.P., Sakakibara, J., Hain, R., Discetti, S., La Foy, R., Cierpka, C.: Main results of the 4th international piv challenge. Experiments in Fluids 57(6), 97 (2016)
  • (11) Kähler, C.J., Scharnowski, S., Cierpka, C.: On the uncertainty of digital PIV and PTV near walls. Experiments in fluids 52(6), 1641–1656 (2012)
  • (12) Lewis, J.P.: Fast normalized cross-correlation. Proceedings of Vision interface 10(1), 120–123 (1995)
  • (13) Liu, J., Reisbeck, M., Hayden, O.: Investigation of mechanical and magnetophoretic focusing for magnetic flow cytometry. Current Directions in Biomedical Engineering 5(1), 353–355 (2019)
  • (14) van Loenhout, M.T., Kerssemakers, J.W., De Vlaminck, I., Dekker, C.: Non-bias-limited tracking of spherical particles, enabling nanometer resolution at low magnification. Biophysical journal 102(10), 2362–2371 (2012)
  • (15) Maas, H., Gruen, A., Papantoniou, D.: Particle tracking velocimetry in three-dimensional flows. Experiments in fluids 15(2), 133–146 (1993)
  • (16) Memmolo, P., Miccio, L., Paturzo, M., Di Caprio, G., Coppola, G., Netti, P.A., Ferraro, P.: Recent advances in holographic 3D particle tracking. Advances in Optics and Photonics 7(4), 713–755 (2015)
  • (17) Muñoz-Gil, G., Garcia-March, M.A., Manzo, C., Martín-Guerrero, J.D., Lewenstein, M.: Machine learning method for single trajectory characterization. New Journal of Physics 22(1), 013010 (2020)
  • (18) Newby, J.M., Schaefer, A.M., Lee, P.T., Forest, M.G., Lai, S.K.: Convolutional neural networks automate detection for tracking of submicron-scale particles in 2D and 3D. Proceedings of the National Academy of Sciences 115(36), 9026–9031 (2018)
  • (19) Ohmi, K., Li, H.Y.: Particle-tracking velocimetry with new algorithms. Measurement Science and Technology 11(6), 603 (2000)
  • (20) Ouellette, N.T., Xu, H., Bodenschatz, E.: A quantitative study of three-dimensional lagrangian particle tracking algorithms. Experiments in Fluids 40(2), 301–313 (2006)
  • (21) Pereira, F., Gharib, M., Dabiri, D., Modarress, D.: Defocusing digital particle image velocimetry: a 3-component 3-dimensional DPIV measurement technique. application to bubbly flows. Experiments in Fluids 29(1), S078–S084 (2000)
  • (22) Qiu, W., Karlsen, J.T., Bruus, H., Augustsson, P.: Experimental characterization of acoustic streaming in gradients of density and compressibility. Physical Review Applied 11(2), 024018 (2019)
  • (23) Raffel, M., Willert, C.E., Scarano, F., Kähler, C.J., Wereley, S.T., Kompenhans, J.: Particle image velocimetry: a practical guide. Springer (2018)
  • (24) Rossi, M.: Synthetic image generator for defocusing and astigmatic PIV/PTV. Measurement Science and Technology 31(1), 017003 (2019)
  • (25) Rossi, M., Barnkob, R.: Toward automated 3D PTV for microfluidics. 13th International Symposium on Particle Image Velocimetry — ISPIV 2019, Munich, Germany, July 22-24, 2019, pp. 1456–1462
  • (26) Rossi, M., Cicconofri, G., Beran, A., Noselli, G., DeSimone, A.: Kinematics of flagellar swimming in euglena gracilis: Helical trajectories and flagellar shapes. Proceedings of the National Academy of Sciences 114(50), 13085–13090 (2017)
  • (27) Rossi, M., Kähler, C.J.: Optimization of astigmatic particle tracking velocimeters. Experiments in fluids 55(9), 1809 (2014)
  • (28) Rossi, M., Marin, A., Kähler, C.J.: Interfacial flows in sessile evaporating droplets of mineral water. Physical Review E 100(3), 033103 (2019)
  • (29) Rossi, M., Segura, R., Cierpka, C., Kähler, C.J.: On the effect of particle image intensity and image preprocessing on the depth of correlation in micro-PIV. Experiments in fluids 52(4), 1063–1075 (2012)
  • (30) Shi, S., Ding, J., New, T., Liu, Y., Zhang, H.: Volumetric calibration enhancements for single-camera light-field PIV. Experiments in Fluids 60(1), 21 (2019)
  • (31) Taute, K., Gude, S., Tans, S., Shimizu, T.: High-throughput 3D tracking of bacteria on a standard phase contrast microscope. Nature communications 6, 8776 (2015)
  • (32) Volk, A., Kähler, C.J.: Size control of sessile microbubbles for reproducibly driven acoustic streaming. Physical Review Applied 9(5), 054015 (2018)
  • (33) Westerweel, J.: Theoretical analysis of the measurement precision in particle image velocimetry. Experiments in Fluids 29(1), S003–S012 (2000)
  • (34) Willert, C., Gharib, M.: Three-dimensional particle imaging with a single camera. Experiments in Fluids 12(6), 353–358 (1992)
  • (35) Willert, C.E., Gharib, M.: Digital particle image velocimetry. Experiments in fluids 10(4), 181–193 (1991)
  • (36) Wu, M., Roberts, J.W., Buckley, M.: Three-dimensional fluorescent particle tracking at micron-scale using a single camera. Experiments in Fluids 38(4), 461–465 (2005)
  • (37) Zhang, Z., Menq, C.H.: Three-dimensional particle tracking with subnanometer resolution using off-focus images. Applied optics 47(13), 2361–2370 (2008)