OpenPIV 0.26.0__tar.gz → 0.26.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openpiv-0.26.4/.gitignore +33 -0
- openpiv-0.26.4/PKG-INFO +285 -0
- openpiv-0.26.4/README.md +249 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/conf.py +11 -2
- openpiv-0.26.4/openpiv/docs/generate_figures.py +267 -0
- openpiv-0.26.4/openpiv/docs/images/dual_backend_architecture.png +0 -0
- openpiv-0.26.4/openpiv/docs/images/piv_validation_demo.png +0 -0
- openpiv-0.26.4/openpiv/docs/images/speedup_benchmarks.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/index.rst +8 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/developers.rst +1 -1
- openpiv-0.26.4/openpiv/docs/src/fft_correlation_backends.rst +245 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/installation_instruction.rst +16 -19
- openpiv-0.26.4/openpiv/examples/notebooks/default_settings.yaml +47 -0
- openpiv-0.26.4/openpiv/examples/notebooks/windef_settings_yaml.ipynb +255 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/lib.py +27 -23
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/piv.py +11 -4
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/preprocess.py +21 -3
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/pyprocess.py +111 -23
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/pyprocess3D.py +242 -73
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/settings.py +85 -49
- openpiv-0.26.4/openpiv/smoothn.py +890 -0
- openpiv-0.26.4/openpiv/synimage/PIV_experiment_data.npz +0 -0
- openpiv-0.26.4/openpiv/synimage/Synthetic_Image_Generator_examples.ipynb +367 -0
- openpiv-0.26.4/openpiv/synimage/__init__.py +108 -0
- openpiv-0.26.4/openpiv/synimage/simple_synthetic_image_demo.ipynb +185 -0
- openpiv-0.26.4/openpiv/synimage/synimagegen.py +383 -0
- openpiv-0.26.4/openpiv/synimage/test_synimagegen.py.bck +79 -0
- openpiv-0.26.4/openpiv/test/test_dual_backends.py +161 -0
- openpiv-0.26.4/openpiv/test/test_dynamic_masking.py +51 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_lib.py +31 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_process.py +4 -3
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_pyprocess.py +49 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_pyprocess3D.py +39 -4
- openpiv-0.26.4/openpiv/test/test_pyprocess3d_fft.py +344 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_rust_windef.py +94 -1
- openpiv-0.26.4/openpiv/test/test_settings_yaml.py +19 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_smoothn.py +200 -51
- openpiv-0.26.4/openpiv/test/test_synimage.py +92 -0
- openpiv-0.26.4/openpiv/test/test_synimage_piv.py +53 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools_multiprocessing.py +34 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_windef.py +14 -11
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/tools.py +20 -2
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/windef.py +296 -236
- openpiv-0.26.4/pyproject.toml +77 -0
- openpiv-0.26.0/PKG-INFO +0 -158
- openpiv-0.26.0/README.md +0 -120
- openpiv-0.26.0/openpiv/docs/requirements.txt +0 -6
- openpiv-0.26.0/openpiv/docs/src/fft_correlation_backends.rst +0 -162
- openpiv-0.26.0/openpiv/smoothn.py +0 -788
- openpiv-0.26.0/pyproject.toml +0 -59
- {openpiv-0.26.0 → openpiv-0.26.4}/LICENSE.txt +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/PIV_3D_plotting.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/__init__.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test1/exp1_001_a.bmp +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test1/exp1_001_b.bmp +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test1/test_data.vec +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_00.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_01.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_10.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_11.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_20.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_21.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_30.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_31.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_40.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_41.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_50.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test2/2image_51.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test3/pair_4_frame_0.jpg +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test3/pair_4_frame_1.jpg +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test4/Camera1-0101.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test4/Camera1-0102.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_10_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_10_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_1_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_1_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_2_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_2_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_3_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_3_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_4_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_4_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_5_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_5_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_6_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_6_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_7_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_7_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_8_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_8_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_9_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test5/Pattern_9_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0001_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0002_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0003_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0004_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0005_A.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1001_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1002_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1003_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1004_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1005_B.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/Makefile +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/OpenPIV.pdf +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/OpenPIV_advanced_processing_parameters.pdf +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/images/B005_1.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/images/B005_2.tif +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/images/image1.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/images/image2.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/images/image3.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/images/image4.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/make.bat +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/api_reference.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/faq.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.filters._gaussian_kernel.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.filters.gaussian.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.filters.replace_outliers.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.lib.replace_nans.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.lib.sincinterp.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.preprocess.dynamic_masking.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.CorrelationFunction.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.correlate_windows.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.extended_search_area_piv.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.get_coordinates.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.get_field_shape.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.normalize_intensity.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.correlate_windows.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.find_first_peak.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.find_second_peak.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.find_subpixel_peak_position.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.get_coordinates.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.get_field_shape.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.moving_window_array.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.normalize_intensity.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.piv.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.scaling.uniform.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.Multiprocesser.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.display.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.display_vector_field.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.imread.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.save.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.global_std.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.global_val.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.local_median_val.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.sig2noise_val.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/gui_doc.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/introduction.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/masking.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/modules.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/openpiv.rst +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/openpiv_pivuq.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/piv_basics.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/tutorial1.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/docs/src/windef.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/filters.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/phase_separation.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/preprocess.py,cover +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/scaling.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/OpenPIV_results_16_test1/field_A0000.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/__init__.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/conftest.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/extended_search_area_vectorized.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/moon.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_PIV_3D_plotting.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_filters.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_filters.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_find_peaks.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_package_metadata.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_performance.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_piv.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_preprocess.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_process.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_rust_backend.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_rust_subpixel.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_scaling.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools.png +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools_background.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools_basic_utils.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools_image_processing.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_tools_vector_field.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_validation.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_validation.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_vectorized_extended_search.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_windef.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_windef_coverage.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_windef_detailed.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/test/test_windef_final.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/tutorials/Example for overlap setting change.ipynb +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/tutorials/masking_tutorial.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/tutorials/tutorial1.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/tutorials/tutorial2.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/tutorials/windef_tutorial.py +0 -0
- {openpiv-0.26.0 → openpiv-0.26.4}/openpiv/validation.py +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
*.m
|
|
2
|
+
*.jvc
|
|
3
|
+
*.pyc
|
|
4
|
+
build/
|
|
5
|
+
*.txt
|
|
6
|
+
/setup.cfg
|
|
7
|
+
|
|
8
|
+
dist/*
|
|
9
|
+
masking_tutorial/.ipynb_checkpoints
|
|
10
|
+
openpiv/masking_tutorial/.ipynb_checkpoints
|
|
11
|
+
.eggs
|
|
12
|
+
*.pyd
|
|
13
|
+
OpenPIV.egg-info
|
|
14
|
+
*.ipynb_checkpoints*
|
|
15
|
+
.vscode/settings.json
|
|
16
|
+
*.so
|
|
17
|
+
|
|
18
|
+
tmp.png
|
|
19
|
+
openpiv/examples/notebooks/*.html
|
|
20
|
+
openpiv/examples/notebooks/test_3d/
|
|
21
|
+
Open_PIV_results_*
|
|
22
|
+
openpiv/docs/.vscode/
|
|
23
|
+
openpiv/docs/_build/
|
|
24
|
+
openpiv/examples/.vscode/settings.json
|
|
25
|
+
openpiv/docs/_build/doctrees/environment.pickle
|
|
26
|
+
openpiv/docs/src/test1.vec
|
|
27
|
+
openpiv/test/OpenPIV_results_16_/field_A0000.png
|
|
28
|
+
.coverage
|
|
29
|
+
target/
|
|
30
|
+
crates/**/target/
|
|
31
|
+
dist/
|
|
32
|
+
*.whl
|
|
33
|
+
/piv_explainer
|
openpiv-0.26.4/PKG-INFO
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: OpenPIV
|
|
3
|
+
Version: 0.26.4
|
|
4
|
+
Summary: OpenPIV consists in a Python and Cython modules for scripting and executing the analysis of a set of PIV image pairs. In addition, a Qt and Tk graphical user interfaces are in development, to ease the use for those users who don't have python skills.
|
|
5
|
+
Project-URL: Documentation, http://openpiv.readthedocs.org
|
|
6
|
+
Project-URL: Repository, https://github.com/OpenPIV/openpiv-python
|
|
7
|
+
Author: Alex Liberzon
|
|
8
|
+
License: GPL-3.0-only
|
|
9
|
+
License-File: LICENSE.txt
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Operating System :: POSIX
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering
|
|
23
|
+
Requires-Python: >=3.11
|
|
24
|
+
Requires-Dist: imageio>=2.35.0
|
|
25
|
+
Requires-Dist: matplotlib>=3.8.0
|
|
26
|
+
Requires-Dist: natsort>=8.4.0
|
|
27
|
+
Requires-Dist: numpy>=2.0.0
|
|
28
|
+
Requires-Dist: pillow>=13.0.0
|
|
29
|
+
Requires-Dist: pyyaml>=6.0
|
|
30
|
+
Requires-Dist: scikit-image>=0.23.0
|
|
31
|
+
Requires-Dist: scipy>=1.11.0
|
|
32
|
+
Requires-Dist: tqdm>=4.66.0
|
|
33
|
+
Provides-Extra: rust
|
|
34
|
+
Requires-Dist: openpiv-rust>=0.1.0; extra == 'rust'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# OpenPIV
|
|
38
|
+
[](https://github.com/OpenPIV/openpiv-python/actions/workflows/testing.yml)
|
|
39
|
+
[](https://github.com/OpenPIV/openpiv-python/actions/workflows/wheels.yml)
|
|
40
|
+
[](https://pypi.org/project/openpiv/)
|
|
41
|
+
[](https://doi.org/10.5281/zenodo.593157)
|
|
42
|
+
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
OpenPIV consists in a Python and Cython modules for scripting and executing the analysis of
|
|
46
|
+
a set of PIV image pairs. In addition, a Qt and Tk graphical user interfaces are in
|
|
47
|
+
development, to ease the use for those users who don't have python skills.
|
|
48
|
+
|
|
49
|
+
## Warning
|
|
50
|
+
|
|
51
|
+
The OpenPIV python version is still in its *beta* state. This means that
|
|
52
|
+
it still might have some bugs and the API may change. However, testing and contributing
|
|
53
|
+
is very welcome, especially if you can contribute with new algorithms and features.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## Test it without installation
|
|
57
|
+
Click the link - thanks to BinderHub, Jupyter and Conda you can now get it in your browser with zero installation:
|
|
58
|
+
[](https://mybinder.org/v2/gh/openpiv/openpiv-python/master?filepath=openpiv%2Fexamples%2Fnotebooks%2Ftutorial1.ipynb)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## Installing
|
|
64
|
+
|
|
65
|
+
### Recommended: Using uv (fastest)
|
|
66
|
+
|
|
67
|
+
[uv](https://github.com/astral-sh/uv) is a fast Python package installer and resolver written in Rust:
|
|
68
|
+
|
|
69
|
+
pip install uv
|
|
70
|
+
uv pip install openpiv
|
|
71
|
+
|
|
72
|
+
To include the optional Rust accelerator: `uv pip install "openpiv[rust]"`.
|
|
73
|
+
|
|
74
|
+
### Using pip (standard)
|
|
75
|
+
|
|
76
|
+
Use PyPI: <https://pypi.python.org/pypi/OpenPIV>:
|
|
77
|
+
|
|
78
|
+
pip install openpiv
|
|
79
|
+
|
|
80
|
+
### Or with [uv](https://docs.astral.sh/uv/)
|
|
81
|
+
|
|
82
|
+
uv add openpiv
|
|
83
|
+
|
|
84
|
+
### Note on Conda/Anaconda
|
|
85
|
+
|
|
86
|
+
⚠️ **Conda packages are no longer actively maintained.** The conda-forge package may be outdated.
|
|
87
|
+
|
|
88
|
+
If you previously installed OpenPIV via conda, you can migrate to pip or uv:
|
|
89
|
+
|
|
90
|
+
# Remove the conda package
|
|
91
|
+
conda remove openpiv
|
|
92
|
+
|
|
93
|
+
# Install with pip or uv
|
|
94
|
+
pip install openpiv
|
|
95
|
+
# or
|
|
96
|
+
uv pip install openpiv
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### To build from source
|
|
100
|
+
|
|
101
|
+
Clone using git:
|
|
102
|
+
|
|
103
|
+
git clone https://github.com/OpenPIV/openpiv-python.git
|
|
104
|
+
cd openpiv-python
|
|
105
|
+
|
|
106
|
+
To build the Rust acceleration extension locally (requires Rust toolchain and maturin):
|
|
107
|
+
|
|
108
|
+
pip install maturin
|
|
109
|
+
maturin develop --release -m crates/openpiv_rust/Cargo.toml
|
|
110
|
+
pip install -e .
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## High-Performance Dual-Backend Acceleration (Rust & SciPy)
|
|
114
|
+
|
|
115
|
+
OpenPIV features a parallel dual-backend architecture designed for high throughput without sacrificing numerical reproducibility:
|
|
116
|
+
|
|
117
|
+
* **⚡ Parallel Rust Backend (`openpiv_rust`)**: Multithreaded execution across all CPU cores using Rayon and real-to-complex FFTW/RustFFT routines. Delivers up to **580x** faster outlier validation, **19x** faster subpixel peak interpolation and SNR calculation, **4-6x** faster windowing and FFT cross-correlation, and **3.7x** faster end-to-end PIV pipelines.
|
|
118
|
+
* **🐍 Pure Python / SciPy Backend**: Complete, zero-dependency reference implementation that runs everywhere without a compiler.
|
|
119
|
+
|
|
120
|
+
Plain `pip install openpiv` / `uv pip install openpiv` installs the pure Python/SciPy backend. To also get the pre-compiled Rust acceleration wheels, install the optional `rust` extra:
|
|
121
|
+
|
|
122
|
+
pip install "openpiv[rust]"
|
|
123
|
+
# or
|
|
124
|
+
uv pip install "openpiv[rust]"
|
|
125
|
+
|
|
126
|
+
`backend="auto"` then uses Rust when the extra is installed and falls back to SciPy otherwise.
|
|
127
|
+
|
|
128
|
+
### Explicit Backend Control
|
|
129
|
+
|
|
130
|
+
All core processing functions accept a `backend` parameter:
|
|
131
|
+
|
|
132
|
+
| `backend` Option | Behavior |
|
|
133
|
+
| :--- | :--- |
|
|
134
|
+
| `"auto"` *(default)* | Automatically selects the parallel Rust backend if available; cleanly and transparently falls back to pure Python/SciPy if not. |
|
|
135
|
+
| `"rust"` | Enforces the parallel Rust backend. Raises an informative `ImportError` if the Rust extension is not compiled. |
|
|
136
|
+
| `"scipy"` (or `"python"`) | Enforces the pure Python/SciPy reference path. |
|
|
137
|
+
|
|
138
|
+
Both backends produce identical numerical results (`diff = 0.0`).
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### Code Examples
|
|
143
|
+
|
|
144
|
+
#### 1. Quick Analysis with `simple_piv`
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
from openpiv import piv
|
|
148
|
+
|
|
149
|
+
# Default: auto-selects fast Rust backend with fallback
|
|
150
|
+
x, y, u, v, s2n = piv.simple_piv("exp1_001_a.bmp", "exp1_001_b.bmp", backend="auto")
|
|
151
|
+
|
|
152
|
+
# Explicitly force the parallel Rust backend
|
|
153
|
+
x, y, u, v, s2n = piv.simple_piv("exp1_001_a.bmp", "exp1_001_b.bmp", backend="rust")
|
|
154
|
+
|
|
155
|
+
# Explicitly force the SciPy reference backend
|
|
156
|
+
x, y, u, v, s2n = piv.simple_piv("exp1_001_a.bmp", "exp1_001_b.bmp", backend="scipy")
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
#### 2. Standard PIV with `extended_search_area_piv`
|
|
160
|
+
|
|
161
|
+
```python
|
|
162
|
+
from openpiv import pyprocess, tools
|
|
163
|
+
|
|
164
|
+
frame_a = tools.imread("exp1_001_a.bmp")
|
|
165
|
+
frame_b = tools.imread("exp1_001_b.bmp")
|
|
166
|
+
|
|
167
|
+
# Run with parallel Rust acceleration
|
|
168
|
+
u, v, s2n = pyprocess.extended_search_area_piv(
|
|
169
|
+
frame_a,
|
|
170
|
+
frame_b,
|
|
171
|
+
window_size=32,
|
|
172
|
+
overlap=16,
|
|
173
|
+
search_area_size=32,
|
|
174
|
+
correlation_method="circular",
|
|
175
|
+
backend="rust", # 'auto', 'rust', or 'scipy'
|
|
176
|
+
)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
#### 3. Multi-Pass Window Deformation (`windef`)
|
|
180
|
+
|
|
181
|
+
```python
|
|
182
|
+
from openpiv import windef, tools
|
|
183
|
+
|
|
184
|
+
settings = windef.PIVSettings()
|
|
185
|
+
settings.windowsizes = (64, 32, 16)
|
|
186
|
+
settings.overlap = (32, 16, 8)
|
|
187
|
+
settings.num_iterations = 3
|
|
188
|
+
|
|
189
|
+
# Choose backend in PIVSettings: 'auto', 'rust', or 'scipy'
|
|
190
|
+
settings.backend = "auto"
|
|
191
|
+
|
|
192
|
+
frame_a = tools.imread("exp1_001_a.bmp")
|
|
193
|
+
frame_b = tools.imread("exp1_001_b.bmp")
|
|
194
|
+
|
|
195
|
+
# Executes all deformation passes with the chosen backend
|
|
196
|
+
x, y, u, v, mask = windef.simple_multipass(frame_a, frame_b, settings)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Documentation
|
|
202
|
+
|
|
203
|
+
The OpenPIV documentation is available on the project web page at <http://openpiv.readthedocs.org>
|
|
204
|
+
|
|
205
|
+
## Demo notebooks
|
|
206
|
+
|
|
207
|
+
1. [Tutorial Notebook 1](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/tutorial1.ipynb)
|
|
208
|
+
2. [Tutorial notebook 2](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/tutorial2.ipynb)
|
|
209
|
+
3. [Dynamic masking tutorial](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/masking_tutorial.ipynb)
|
|
210
|
+
4. [Multipass with Windows Deformation](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/window_deformation_comparison.ipynb)
|
|
211
|
+
5. [Multiple sets in one notebook](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/all_test_cases_sample.ipynb)
|
|
212
|
+
6. [3D PIV](https://nbviewer.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/PIV_3D_example.ipynb)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
These and many additional examples are in another repository: [OpenPIV-Python-Examples](https://github.com/OpenPIV/openpiv-python-examples)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## Contributors
|
|
219
|
+
|
|
220
|
+
1. [Alex Liberzon](http://github.com/alexlib)
|
|
221
|
+
2. [Roi Gurka](http://github.com/roigurka)
|
|
222
|
+
3. [Zachary J. Taylor](http://github.com/zjtaylor)
|
|
223
|
+
4. [David Lasagna](http://github.com/gasagna)
|
|
224
|
+
5. [Mathias Aubert](http://github.com/MathiasAubert)
|
|
225
|
+
6. [Pete Bachant](http://github.com/petebachant)
|
|
226
|
+
7. [Cameron Dallas](http://github.com/CameronDallas5000)
|
|
227
|
+
8. [Cecyl Curry](http://github.com/leycec)
|
|
228
|
+
9. [Theo Käufer](http://github.com/TKaeufer)
|
|
229
|
+
10. [Andreas Bauer](https://github.com/AndreasBauerGit)
|
|
230
|
+
11. [David Bohringer](https://github.com/davidbhr)
|
|
231
|
+
12. [Erich Zimmer](https://github.com/ErichZimmer)
|
|
232
|
+
13. [Peter Vennemann](https://github.com/eguvep)
|
|
233
|
+
14. [Lento Manickathan](https://github.com/lento234)
|
|
234
|
+
15. [Yuri Ishizawa](https://github.com/yuriishizawa)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
Smoothing: `smoothn.py` provides scalar field smoothing for velocity fields (1D, 2D, and N-D) with support for missing data (NaNs) and masked arrays using `scipy.interpolate` and robust penalized spline methods. It is covered under the OpenPIV GPL v3 license. Based on discretized smoothing principles from D. Garcia (2010).
|
|
238
|
+
|
|
239
|
+
## Getting started with PIVSettings (YAML)
|
|
240
|
+
|
|
241
|
+
You can configure a PIV run with `PIVSettings` and optionally store it in YAML:
|
|
242
|
+
|
|
243
|
+
```python
|
|
244
|
+
from openpiv import windef
|
|
245
|
+
|
|
246
|
+
# 1. Create settings in Python
|
|
247
|
+
settings = windef.Settings()
|
|
248
|
+
settings.filepath_images = "./images"
|
|
249
|
+
settings.frame_pattern_a = "frame_a_*.tif"
|
|
250
|
+
settings.frame_pattern_b = "frame_b_*.tif"
|
|
251
|
+
settings.windowsizes = (64, 32, 16)
|
|
252
|
+
settings.overlap = (32, 16, 8)
|
|
253
|
+
|
|
254
|
+
# Save to YAML for reuse / sharing
|
|
255
|
+
settings.to_yaml("my_settings.yaml")
|
|
256
|
+
|
|
257
|
+
# Load from YAML later
|
|
258
|
+
settings = windef.Settings.from_yaml("my_settings.yaml")
|
|
259
|
+
|
|
260
|
+
# Run PIV
|
|
261
|
+
windef.piv(settings)
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Without YAML, just instantiate and modify `windef.Settings()` directly, as shown above.
|
|
265
|
+
|
|
266
|
+
## How to cite this work
|
|
267
|
+
[](https://doi.org/10.5281/zenodo.593157)
|
|
268
|
+
|
|
269
|
+
If you use OpenPIV in your scientific research, please cite the persistent software archive on Zenodo:
|
|
270
|
+
|
|
271
|
+
```bibtex
|
|
272
|
+
@software{openpiv_python,
|
|
273
|
+
author = {Liberzon, Alex and K{\"a}ufer, Theo and Bauer, Andreas and Vennemann, Peter and Zimmer, Erich and contributors},
|
|
274
|
+
title = {OpenPIV: Python and Rust Acceleration for Particle Image Velocimetry},
|
|
275
|
+
year = {2026},
|
|
276
|
+
publisher = {Zenodo},
|
|
277
|
+
version = {v0.26.4},
|
|
278
|
+
doi = {10.5281/zenodo.593157},
|
|
279
|
+
url = {https://doi.org/10.5281/zenodo.593157}
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
openpiv-0.26.4/README.md
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# OpenPIV
|
|
2
|
+
[](https://github.com/OpenPIV/openpiv-python/actions/workflows/testing.yml)
|
|
3
|
+
[](https://github.com/OpenPIV/openpiv-python/actions/workflows/wheels.yml)
|
|
4
|
+
[](https://pypi.org/project/openpiv/)
|
|
5
|
+
[](https://doi.org/10.5281/zenodo.593157)
|
|
6
|
+
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
OpenPIV consists in a Python and Cython modules for scripting and executing the analysis of
|
|
10
|
+
a set of PIV image pairs. In addition, a Qt and Tk graphical user interfaces are in
|
|
11
|
+
development, to ease the use for those users who don't have python skills.
|
|
12
|
+
|
|
13
|
+
## Warning
|
|
14
|
+
|
|
15
|
+
The OpenPIV python version is still in its *beta* state. This means that
|
|
16
|
+
it still might have some bugs and the API may change. However, testing and contributing
|
|
17
|
+
is very welcome, especially if you can contribute with new algorithms and features.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Test it without installation
|
|
21
|
+
Click the link - thanks to BinderHub, Jupyter and Conda you can now get it in your browser with zero installation:
|
|
22
|
+
[](https://mybinder.org/v2/gh/openpiv/openpiv-python/master?filepath=openpiv%2Fexamples%2Fnotebooks%2Ftutorial1.ipynb)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Installing
|
|
28
|
+
|
|
29
|
+
### Recommended: Using uv (fastest)
|
|
30
|
+
|
|
31
|
+
[uv](https://github.com/astral-sh/uv) is a fast Python package installer and resolver written in Rust:
|
|
32
|
+
|
|
33
|
+
pip install uv
|
|
34
|
+
uv pip install openpiv
|
|
35
|
+
|
|
36
|
+
To include the optional Rust accelerator: `uv pip install "openpiv[rust]"`.
|
|
37
|
+
|
|
38
|
+
### Using pip (standard)
|
|
39
|
+
|
|
40
|
+
Use PyPI: <https://pypi.python.org/pypi/OpenPIV>:
|
|
41
|
+
|
|
42
|
+
pip install openpiv
|
|
43
|
+
|
|
44
|
+
### Or with [uv](https://docs.astral.sh/uv/)
|
|
45
|
+
|
|
46
|
+
uv add openpiv
|
|
47
|
+
|
|
48
|
+
### Note on Conda/Anaconda
|
|
49
|
+
|
|
50
|
+
⚠️ **Conda packages are no longer actively maintained.** The conda-forge package may be outdated.
|
|
51
|
+
|
|
52
|
+
If you previously installed OpenPIV via conda, you can migrate to pip or uv:
|
|
53
|
+
|
|
54
|
+
# Remove the conda package
|
|
55
|
+
conda remove openpiv
|
|
56
|
+
|
|
57
|
+
# Install with pip or uv
|
|
58
|
+
pip install openpiv
|
|
59
|
+
# or
|
|
60
|
+
uv pip install openpiv
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### To build from source
|
|
64
|
+
|
|
65
|
+
Clone using git:
|
|
66
|
+
|
|
67
|
+
git clone https://github.com/OpenPIV/openpiv-python.git
|
|
68
|
+
cd openpiv-python
|
|
69
|
+
|
|
70
|
+
To build the Rust acceleration extension locally (requires Rust toolchain and maturin):
|
|
71
|
+
|
|
72
|
+
pip install maturin
|
|
73
|
+
maturin develop --release -m crates/openpiv_rust/Cargo.toml
|
|
74
|
+
pip install -e .
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## High-Performance Dual-Backend Acceleration (Rust & SciPy)
|
|
78
|
+
|
|
79
|
+
OpenPIV features a parallel dual-backend architecture designed for high throughput without sacrificing numerical reproducibility:
|
|
80
|
+
|
|
81
|
+
* **⚡ Parallel Rust Backend (`openpiv_rust`)**: Multithreaded execution across all CPU cores using Rayon and real-to-complex FFTW/RustFFT routines. Delivers up to **580x** faster outlier validation, **19x** faster subpixel peak interpolation and SNR calculation, **4-6x** faster windowing and FFT cross-correlation, and **3.7x** faster end-to-end PIV pipelines.
|
|
82
|
+
* **🐍 Pure Python / SciPy Backend**: Complete, zero-dependency reference implementation that runs everywhere without a compiler.
|
|
83
|
+
|
|
84
|
+
Plain `pip install openpiv` / `uv pip install openpiv` installs the pure Python/SciPy backend. To also get the pre-compiled Rust acceleration wheels, install the optional `rust` extra:
|
|
85
|
+
|
|
86
|
+
pip install "openpiv[rust]"
|
|
87
|
+
# or
|
|
88
|
+
uv pip install "openpiv[rust]"
|
|
89
|
+
|
|
90
|
+
`backend="auto"` then uses Rust when the extra is installed and falls back to SciPy otherwise.
|
|
91
|
+
|
|
92
|
+
### Explicit Backend Control
|
|
93
|
+
|
|
94
|
+
All core processing functions accept a `backend` parameter:
|
|
95
|
+
|
|
96
|
+
| `backend` Option | Behavior |
|
|
97
|
+
| :--- | :--- |
|
|
98
|
+
| `"auto"` *(default)* | Automatically selects the parallel Rust backend if available; cleanly and transparently falls back to pure Python/SciPy if not. |
|
|
99
|
+
| `"rust"` | Enforces the parallel Rust backend. Raises an informative `ImportError` if the Rust extension is not compiled. |
|
|
100
|
+
| `"scipy"` (or `"python"`) | Enforces the pure Python/SciPy reference path. |
|
|
101
|
+
|
|
102
|
+
Both backends produce identical numerical results (`diff = 0.0`).
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### Code Examples
|
|
107
|
+
|
|
108
|
+
#### 1. Quick Analysis with `simple_piv`
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
from openpiv import piv
|
|
112
|
+
|
|
113
|
+
# Default: auto-selects fast Rust backend with fallback
|
|
114
|
+
x, y, u, v, s2n = piv.simple_piv("exp1_001_a.bmp", "exp1_001_b.bmp", backend="auto")
|
|
115
|
+
|
|
116
|
+
# Explicitly force the parallel Rust backend
|
|
117
|
+
x, y, u, v, s2n = piv.simple_piv("exp1_001_a.bmp", "exp1_001_b.bmp", backend="rust")
|
|
118
|
+
|
|
119
|
+
# Explicitly force the SciPy reference backend
|
|
120
|
+
x, y, u, v, s2n = piv.simple_piv("exp1_001_a.bmp", "exp1_001_b.bmp", backend="scipy")
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### 2. Standard PIV with `extended_search_area_piv`
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from openpiv import pyprocess, tools
|
|
127
|
+
|
|
128
|
+
frame_a = tools.imread("exp1_001_a.bmp")
|
|
129
|
+
frame_b = tools.imread("exp1_001_b.bmp")
|
|
130
|
+
|
|
131
|
+
# Run with parallel Rust acceleration
|
|
132
|
+
u, v, s2n = pyprocess.extended_search_area_piv(
|
|
133
|
+
frame_a,
|
|
134
|
+
frame_b,
|
|
135
|
+
window_size=32,
|
|
136
|
+
overlap=16,
|
|
137
|
+
search_area_size=32,
|
|
138
|
+
correlation_method="circular",
|
|
139
|
+
backend="rust", # 'auto', 'rust', or 'scipy'
|
|
140
|
+
)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
#### 3. Multi-Pass Window Deformation (`windef`)
|
|
144
|
+
|
|
145
|
+
```python
|
|
146
|
+
from openpiv import windef, tools
|
|
147
|
+
|
|
148
|
+
settings = windef.PIVSettings()
|
|
149
|
+
settings.windowsizes = (64, 32, 16)
|
|
150
|
+
settings.overlap = (32, 16, 8)
|
|
151
|
+
settings.num_iterations = 3
|
|
152
|
+
|
|
153
|
+
# Choose backend in PIVSettings: 'auto', 'rust', or 'scipy'
|
|
154
|
+
settings.backend = "auto"
|
|
155
|
+
|
|
156
|
+
frame_a = tools.imread("exp1_001_a.bmp")
|
|
157
|
+
frame_b = tools.imread("exp1_001_b.bmp")
|
|
158
|
+
|
|
159
|
+
# Executes all deformation passes with the chosen backend
|
|
160
|
+
x, y, u, v, mask = windef.simple_multipass(frame_a, frame_b, settings)
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Documentation
|
|
166
|
+
|
|
167
|
+
The OpenPIV documentation is available on the project web page at <http://openpiv.readthedocs.org>
|
|
168
|
+
|
|
169
|
+
## Demo notebooks
|
|
170
|
+
|
|
171
|
+
1. [Tutorial Notebook 1](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/tutorial1.ipynb)
|
|
172
|
+
2. [Tutorial notebook 2](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/tutorial2.ipynb)
|
|
173
|
+
3. [Dynamic masking tutorial](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/masking_tutorial.ipynb)
|
|
174
|
+
4. [Multipass with Windows Deformation](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/window_deformation_comparison.ipynb)
|
|
175
|
+
5. [Multiple sets in one notebook](https://nbviewer.jupyter.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/all_test_cases_sample.ipynb)
|
|
176
|
+
6. [3D PIV](https://nbviewer.org/github/OpenPIV/openpiv-python-examples/blob/main/notebooks/PIV_3D_example.ipynb)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
These and many additional examples are in another repository: [OpenPIV-Python-Examples](https://github.com/OpenPIV/openpiv-python-examples)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## Contributors
|
|
183
|
+
|
|
184
|
+
1. [Alex Liberzon](http://github.com/alexlib)
|
|
185
|
+
2. [Roi Gurka](http://github.com/roigurka)
|
|
186
|
+
3. [Zachary J. Taylor](http://github.com/zjtaylor)
|
|
187
|
+
4. [David Lasagna](http://github.com/gasagna)
|
|
188
|
+
5. [Mathias Aubert](http://github.com/MathiasAubert)
|
|
189
|
+
6. [Pete Bachant](http://github.com/petebachant)
|
|
190
|
+
7. [Cameron Dallas](http://github.com/CameronDallas5000)
|
|
191
|
+
8. [Cecyl Curry](http://github.com/leycec)
|
|
192
|
+
9. [Theo Käufer](http://github.com/TKaeufer)
|
|
193
|
+
10. [Andreas Bauer](https://github.com/AndreasBauerGit)
|
|
194
|
+
11. [David Bohringer](https://github.com/davidbhr)
|
|
195
|
+
12. [Erich Zimmer](https://github.com/ErichZimmer)
|
|
196
|
+
13. [Peter Vennemann](https://github.com/eguvep)
|
|
197
|
+
14. [Lento Manickathan](https://github.com/lento234)
|
|
198
|
+
15. [Yuri Ishizawa](https://github.com/yuriishizawa)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
Smoothing: `smoothn.py` provides scalar field smoothing for velocity fields (1D, 2D, and N-D) with support for missing data (NaNs) and masked arrays using `scipy.interpolate` and robust penalized spline methods. It is covered under the OpenPIV GPL v3 license. Based on discretized smoothing principles from D. Garcia (2010).
|
|
202
|
+
|
|
203
|
+
## Getting started with PIVSettings (YAML)
|
|
204
|
+
|
|
205
|
+
You can configure a PIV run with `PIVSettings` and optionally store it in YAML:
|
|
206
|
+
|
|
207
|
+
```python
|
|
208
|
+
from openpiv import windef
|
|
209
|
+
|
|
210
|
+
# 1. Create settings in Python
|
|
211
|
+
settings = windef.Settings()
|
|
212
|
+
settings.filepath_images = "./images"
|
|
213
|
+
settings.frame_pattern_a = "frame_a_*.tif"
|
|
214
|
+
settings.frame_pattern_b = "frame_b_*.tif"
|
|
215
|
+
settings.windowsizes = (64, 32, 16)
|
|
216
|
+
settings.overlap = (32, 16, 8)
|
|
217
|
+
|
|
218
|
+
# Save to YAML for reuse / sharing
|
|
219
|
+
settings.to_yaml("my_settings.yaml")
|
|
220
|
+
|
|
221
|
+
# Load from YAML later
|
|
222
|
+
settings = windef.Settings.from_yaml("my_settings.yaml")
|
|
223
|
+
|
|
224
|
+
# Run PIV
|
|
225
|
+
windef.piv(settings)
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Without YAML, just instantiate and modify `windef.Settings()` directly, as shown above.
|
|
229
|
+
|
|
230
|
+
## How to cite this work
|
|
231
|
+
[](https://doi.org/10.5281/zenodo.593157)
|
|
232
|
+
|
|
233
|
+
If you use OpenPIV in your scientific research, please cite the persistent software archive on Zenodo:
|
|
234
|
+
|
|
235
|
+
```bibtex
|
|
236
|
+
@software{openpiv_python,
|
|
237
|
+
author = {Liberzon, Alex and K{\"a}ufer, Theo and Bauer, Andreas and Vennemann, Peter and Zimmer, Erich and contributors},
|
|
238
|
+
title = {OpenPIV: Python and Rust Acceleration for Particle Image Velocimetry},
|
|
239
|
+
year = {2026},
|
|
240
|
+
publisher = {Zenodo},
|
|
241
|
+
version = {v0.26.4},
|
|
242
|
+
doi = {10.5281/zenodo.593157},
|
|
243
|
+
url = {https://doi.org/10.5281/zenodo.593157}
|
|
244
|
+
}
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
@@ -17,9 +17,18 @@ import os
|
|
|
17
17
|
# If extensions (or modules to document with autodoc) are in another directory,
|
|
18
18
|
# add these directories to sys.path here. If the directory is relative to the
|
|
19
19
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
20
|
-
sys.path.insert(0, os.path.abspath('
|
|
20
|
+
sys.path.insert(0, os.path.abspath('../..'))
|
|
21
|
+
sys.path.insert(0, os.path.abspath('..'))
|
|
21
22
|
sys.path.append(os.path.abspath("sphinxext"))
|
|
22
23
|
|
|
24
|
+
try:
|
|
25
|
+
import pypandoc
|
|
26
|
+
pandoc_dir = os.path.dirname(pypandoc.get_pandoc_path())
|
|
27
|
+
if pandoc_dir not in os.environ["PATH"]:
|
|
28
|
+
os.environ["PATH"] = pandoc_dir + os.pathsep + os.environ["PATH"]
|
|
29
|
+
except Exception:
|
|
30
|
+
pass
|
|
31
|
+
|
|
23
32
|
# -- General configuration -----------------------------------------------------
|
|
24
33
|
|
|
25
34
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
@@ -64,7 +73,7 @@ copyright = '2014, OpenPIV team'
|
|
|
64
73
|
# built documents.
|
|
65
74
|
#
|
|
66
75
|
# The short X.Y version.
|
|
67
|
-
version = '0.26.
|
|
76
|
+
version = '0.26.4'
|
|
68
77
|
# The full version, including alpha/beta/rc tags.
|
|
69
78
|
# release = '0.0.1a'
|
|
70
79
|
|