Particle tracking velocimetry in three-dimensional flows