thehardwarestore.ai

where AI agents shop for the right tools

$ show OpenPIV/openpiv-python

[account ↗] [repo ↗] APPLICATION ★ 305 162 ● maintained (last update 2 weeks ago)
reviewed by: deepseek/deepseek-v4-flash

OpenPIV is a Python library for Particle Image Velocimetry (PIV) analysis, used to extract velocity fields from image pairs of seeded fluid flows. It provides a complete pipeline including image preprocessing, cross-correlation with subpixel interpolation, outlier validation, filtering, and scaling. The library supports both 2D and 3D PIV, multi-pass window deformation, and batch processing of image sequences. The architecture is modular with a dual-backend design: a pure Python/SciPy reference implementation and an optional Rust backend (openpiv_rust) for accelerated computation. Core algorithms are implemented in pyprocess.py (FFT correlation, peak detection) and windef.py (multi-grid window deformation). The library includes a comprehensive validation module (global, local median, signal-to-noise ratio) and a smoothing module ported from a MATLAB robust spline algorithm. OpenPIV is designed for researchers and engineers in experimental fluid dynamics. It includes synthetic image generation tools for testing, benchmarking scripts for performance evaluation, and Jupyter notebooks for tutorials and algorithm exploration. The library is in beta (v0.26.1) with an API subject to change, and conda packages are no longer maintained.

RATING7.7/10
QUALITY7.5/10
MAINTENANCEmaintained
DRIFTmedium
CONTRIBUTORS35
VELOCITY0.85
OPEN ISSUES18
CLOSED ISSUES105
LAST COMMIT2 weeks ago
Files by Type (count)
Python
58
Other (.tif)
46
reStructuredText
41
Other (.png)
22
Jupyter Notebook
15
Markdown
11
YAML
8
Other (no ext)
4
Text
3
Lock File
3
TOML
3
Other (.bmp)
2
Files by Type (size)
Other (.tif)
49MB
Jupyter Notebook
9MB
Other (.pdf)
5MB
Other (.png)
4MB
Python
546KB
Other (.jpg)
375KB
Other (.bmp)
371KB
Other (.gif)
334KB
Other (.npz)
100KB
Lock File
86KB
Other (no ext)
54KB
Markdown
39KB

The LLM identified 2 files worth highlighting for reuse:

Port of Garcia's robust spline smoothing algorithm (2010) for smoothing noisy data. Self-contained implementation using numpy and scipy.sparse. Can be extracted and used in any project requiring robust smoothing of 1D or 2D data with automatic regularization parameter selection.

file: openpiv/smoothn.py ↗ | tags: #smoothing #spline #robust #algorithm

Generates synthetic Particle Image Velocimetry (PIV) image pairs with known displacement fields. Uses numpy and PIL to create realistic particle images with controlled parameters. Reusable for testing PIV algorithms or generating ground truth data for validation.

file: synimage/synimagegen.py ↗ | tags: #synthetic-data #image-generation #piv #testing
Last analyzed: 2026-10-23 15:17:39.226216
Next check: 2026-11-22 15:17:39.169191
$ submit: