A flexible and hackable Particle Image Velocimetry (PIV) code in Python and Matlab.
- The Python version of the code (Python_Code.py) has been updated frequently. The Matlab version is relatively older. Please use the Python code if you can.
- In some cases, Numba makes the code run much faster (up to 2.2 times). If you don't want to use Numba, comment lines 12 and 15.
- If you want to call the PIV code as a function in your code, please see the contents of "Python_Function" folder in the current repository. There is a sample code ("sample.py") that can show you how to call the function from "piv_lib.py".
- Joblib has been used for parallel processing. It can significantly improve the performance and speed up the processing. The "cores" variable defines the number of parallel jobs and the default value is set to the maximum number of cores available. If you want to limit the number of cores or disable parallel processing, you can adjust it as instructed in the code.