Particle image velocimetry with optical flow