Janke 2020
Janke 2020
SoftwareX
journal homepage: www.elsevier.com/locate/softx
article info a b s t r a c t
Article history: Within this paper we present Part2Track, a MATLAB software package for the evaluation of 2D
Received 24 October 2019 Particle Tracking Velocimetry (PTV) measurements. Part2Track is not only capable of handling time
Received in revised form 30 January 2020 resolved image series but also double frame image sets, which are commonly recorded by standard
Accepted 30 January 2020
PIV systems. The following work covers a short description of the package’s functionalities and a
Keywords: performance analysis on synthetic images. In order to demonstrate the capabilities of handling realistic,
Particle Tracking Velocimetry experimental data, two test cases are provided.
PTV © 2020 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY license
PIV (http://creativecommons.org/licenses/by/4.0/).
MATLAB
Part2Track
Code metadata
1. Motivation and significance seeded flows. Calculating the flow velocity from these images
is performed by dividing the whole image into smaller interro-
Laser optical measurement techniques for the determination gation windows and applying image cross correlation methods.
of global flow velocity fields have become a standard tool in Although the windowed cross correlation is very robust and has
experimental fluid dynamics. Many different set ups emerged been improved by various advanced techniques, it introduces
in the past, from which Particle Image Velocimetry (PIV) has spatial averaging effects in the final velocity vector calculation [1].
proven to be a versatile technique with a relatively easy installa- A closely related measurement approach, called Particle Track-
tion. The data obtained by PIV techniques are images of particle ing Velocimetry (PTV), can overcome this effect by tracking indi-
vidual tracer particles. If the majority of all particles are detected
∗ Corresponding author. and tracked, this method can enhance the spatial resolution and
E-mail address: [email protected] (T. Janke). increase the data yield per image [2].
https://doi.org/10.1016/j.softx.2020.100413
2352-7110/© 2020 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/).
2 T. Janke, R. Schwarze and K. Bauer / SoftwareX 11 (2020) 100413
2. Software description
Fig. 2. Absolute displacement field δ for the Taylor–Green-Vortex test case for three different seeding densities (top row). Raw image crops (bottom row) illustrate
the seeding density within a 32 × 32 px area (small, dashed rectangle). For the error analysis only the velocity information within the solid, large rectangle is
considered.
Fig. 3. Results of the synthetic image evaluation. (a) Particle detection rate, (b) particle position error, (c) particle matching rate and (d) displacement error.
3.2. Time resolved data particle trajectories. Therefore, the time resolved algorithm is
used. By setting the evaluation folder within the main script to
As a next example, the flow analysis inside a bent pipe is
..\test_cases\time_resolved\Pipe\, the test case can be
demonstrated (see Fig. 5(a)). The data originates from high speed
PIV measurements [16] and allows the observation of whole started.
T. Janke, R. Schwarze and K. Bauer / SoftwareX 11 (2020) 100413 5
Fig. 4. Illustration of the double frame test case Lung. (a) Overlapped double frame image pair (inverted and with added boundaries for better visibility), (b) crop
out (see (a)) of instantaneous scattered vector field with detected particles, (c) ensemble scattered vector field (every 10th vector is shown) of all images and (d)
ensemble averaged structured velocity field.
The chosen processing parameters are similar as in the double living cells. By modifying the detection routine for these tasks,
frame experiment (see Table 1). But two further values have to Part2Track can quickly be used to study the motion of such
be set. These are the allowed error between predicted particle objects as well.
position and detected position as well as the number of iterative
initialization steps. The values will be 1 px and 3 iterations. 5. Conclusions
An image overlay of four consecutive time steps is presented
in Fig. 5(b), which already gives an impression of the occurring We presented the novel MATLAB software package Part2Track.
flow structure. The obtained trajectories by the PTV analysis are Part2Track is able to analyze double frame and time resolved 2D
plotted in Fig. 5(c), where the paths are color coded according to PTV image data. Various recent methods, such as a histogram
their local streamwise velocity. An ensemble polynomial binning matching method or ensemble bin averaging using polynomial
leads to the structured velocity field (see Fig. 5(d)). The bins have interpolations, are implemented within Part2Track. An analysis
a size of 16 px and the grid spacing is 8 px in each direction. using ideal synthetic image data demonstrated the good perfor-
mance across a large range of seeding densities without the need
4. Impact of changing major processing parameters. Two test cases were
introduced and briefly described to gain a better understanding
The main contribution of this work is to provide a freely of the use of Part2Track for real experimental applications.
available and extended source code for the double frame image
analysis of PTV measurements based on the particle matching Declaration of competing interest
method by Fuchs and Kähler [4]. As the development of the
software package progressed, a method for the evaluation of time The authors declare that they have no known competing finan-
resolved image sets has been added as well. Now, Part2Track cial interests or personal relationships that could have appeared
offers a complete 2D PTV image analysis software package for to influence the work reported in this paper.
the two most important image recording strategies found in PIV
and PTV experiments. Since Part2Track can handle dense particle Acknowledgments
images, previously recorded PIV image data can easily be rean-
alyzed with Part2Track to increase the spatial resolution of the The financial support of this study by the Deutsche Forschungs-
measurements or to gain new insights by the Lagrangian results. gemeinschaft, Germany (DFG grant No. BA 4995/2-3) is gratefully
As Part2Track is developed within the MATLAB framework, acknowledged. We would also like to thank Johannes Burkert for
which is commonly used in the engineering field, it takes ad- providing the time resolved image data.
vantages of MATLAB’s optimized internal functions to offer a fast
evaluation of the data and an easy interface for the implementa- Appendix. Experimental parameters
tion of own algorithms.
The tracking of different objects is a reoccurring task in many See Table A.2.
research fields, e.g. the tracking of large crowds of people or
6 T. Janke, R. Schwarze and K. Bauer / SoftwareX 11 (2020) 100413
Fig. 5. Illustration of the time resolved test case Pipe. (a) Sketch to illustrate the field of view within the bent pipe and main flow direction, (b) overlapped images
of four consecutive time steps (inverted for visibility), (c) reconstructed trajectories and (d) ensemble averaged structured velocity field.
Table A.2 [6] Janke T, Schwarze R, Bauer K. PIV-PTV comparison of the oscillating flow
Summary of experimental parameters for the introduced illustrative examples. inside the human lungs. In Proceedings of the 13th International Symposium
Lung data from [6], pipe bend data from [16]. on Particle Image Velocimetry; 2019. p. 232–8.
Lung Pipe bend [7] OpenPTV Consortium. openPTV. 2013, www.openptv.net.
[8] Brevis W, Niño Y, Jirka GH. Integrating cross-correlation and relaxation
camera type CCD CMOS
algorithms for particle tracking velocimetry. Exp Fluids 2011;50(1):135–47.
resolution 1600 × 1200 1280 × 800
http://dx.doi.org/10.1007/s00348-010-0907-z.
pixel pitch 7.4 µm 20 µm
[9] Heyman J. TracTrac: A fast multi-object tracking algorithm for motion es-
lens 105 mm, f# 3.5 90 mm, f# 5.6
timation. Comput Geosci 2019;128:11–8. http://dx.doi.org/10.1016/j.cageo.
laser double-pulse Nd:YAG high-speed Nd:YLF
2019.03.007.
inter-frame delay 160 µs 1/1300 Hz
[10] Malik NA, Dracos T, Papantoniou DA. Particle tracking velocimetry in three-
mapping scale 0.041 mm/px 0.075 mm/px
dimensional flows Part II: Particle tracking. Exp Fluids 1993;15(4):279–94.
tracer diameter 50 µm 50 µm
http://dx.doi.org/10.1007/BF00223406.
[11] Westerweel J, Scarano F. Universal outlier detection for PIV data. Exp Fluids
2005;39(6):1096–100. http://dx.doi.org/10.1007/s00348-005-0016-6.
[12] Patel M, Leggett SE, Landauer AK, Wong IY, Franck C. Rapid, topology-based
References particle tracking for high-resolution measurements of large complex 3D
motion fields. Sci Rep 2018;8(1):5581. http://dx.doi.org/10.1038/s41598-
[1] Kähler CJ, Scharnowski S, Cierpka C. On the resolution limit of digital 018-23488-y.
particle image velocimetry. Exp Fluids 2012;52(6):1629–39. http://dx.doi. [13] Agüera N, Cafiero G, Astarita T, Discetti S. Ensemble 3D PTV for high
org/10.1007/s00348-012-1280-x. resolution turbulent statistics. Meas Sci Technol 2016;27(12):124011. http:
[2] Stitou A, Riethmuller ML. Extension of PIV to super resolution using PTV. //dx.doi.org/10.1088/0957-0233/27/12/124011.
Meas Sci Technol 2001;12(9):1398–403. http://dx.doi.org/10.1088/0957- [14] Raffel M, Willert C, Scarano F, Kähler CJ, Wereley ST, Kompenhans J.
0233/12/9/304. Particle Image Velocimetry - A Practical Guide. 3rd ed.. Springer-Verlag;
[3] Ohmi K, Li HY. Particle-tracking velocimetry with new algorithms. Meas 2018, http://dx.doi.org/10.1007/978-3-319-68852-7.
Sci Technol 2000;11(6):603–16. http://dx.doi.org/10.1088/0957-0233/11/6/ [15] Janke T, Koullapis P, Kassinos S, Bauer K. PIV Measurements of the
303. siminhale benchmark case. Eur J Pharmaceut Sci 2019;133:183–9. http:
[4] Fuchs T, Hain R, Kähler CJ. Non-iterative double-frame 2D/3D particle //dx.doi.org/10.1016/j.ejps.2019.03.025.
tracking velocimetry. Exp Fluids 2017;58(9):119. http://dx.doi.org/10.1007/ [16] Burkert J, Schwarze R, Bauer K. Transitional flow in a 90◦ pipe bend. In Pro-
s00348-017-2404-0. ceedings of the 13th International Symposium on Particle Image Velocimetry;
[5] Cornic P, Leclaire B, Champagnat F, Besnerais GL, Cheminet A, Illoul C, 2019. p. 783–90.
Losfeld G. Double-frame tomographic PTV at high seeding densities. Exp
Fluids 2020;61(2):23. http://dx.doi.org/10.1007/s00348-019-2859-2.