I built this to understand Particle Image Velocimetry (PIV) and how commercial softwares calculate velocity fields from particle images. Theses scripts use numpy library to evaluate the correlation using bidimensional fast fourrier transfert.
- image.py: generate double frame images of particles with a analytical velocity fields (set dx, dy)
- piv.py: retrieve a window from both images and calculate the correlation (and the its peak) to evaluate the displacement (should retrieve dx, dy!)