OpenPIV 0.26.1__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.1 → openpiv-0.26.4}/PKG-INFO +75 -26
- {openpiv-0.26.1 → openpiv-0.26.4}/README.md +58 -7
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/conf.py +1 -1
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/developers.rst +1 -1
- 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.1 → openpiv-0.26.4}/openpiv/lib.py +27 -23
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/preprocess.py +21 -3
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/pyprocess.py +57 -16
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/pyprocess3D.py +242 -73
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/settings.py +84 -48
- 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.1 → openpiv-0.26.4}/openpiv/test/test_dual_backends.py +1 -0
- openpiv-0.26.4/openpiv/test/test_dynamic_masking.py +51 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_lib.py +31 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_process.py +4 -3
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_pyprocess.py +49 -0
- {openpiv-0.26.1 → 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.1 → 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.1 → 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.1 → openpiv-0.26.4}/openpiv/test/test_tools_multiprocessing.py +34 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_windef.py +14 -11
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/tools.py +20 -2
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/windef.py +295 -235
- openpiv-0.26.4/pyproject.toml +77 -0
- openpiv-0.26.1/openpiv/docs/requirements.txt +0 -6
- openpiv-0.26.1/openpiv/smoothn.py +0 -788
- openpiv-0.26.1/pyproject.toml +0 -59
- {openpiv-0.26.1 → openpiv-0.26.4}/LICENSE.txt +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/PIV_3D_plotting.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/__init__.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test1/exp1_001_a.bmp +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test1/exp1_001_b.bmp +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test1/test_data.vec +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_00.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_01.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_10.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_11.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_20.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_21.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_30.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_31.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_40.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_41.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_50.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test2/2image_51.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test3/pair_4_frame_0.jpg +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test3/pair_4_frame_1.jpg +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test4/Camera1-0101.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test4/Camera1-0102.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_10_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_10_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_1_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_1_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_2_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_2_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_3_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_3_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_4_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_4_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_5_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_5_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_6_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_6_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_7_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_7_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_8_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_8_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_9_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test5/Pattern_9_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0001_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0002_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0003_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0004_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_0005_A.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1001_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1002_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1003_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1004_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/data/test6/Pattern_1005_B.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/Makefile +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/OpenPIV.pdf +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/OpenPIV_advanced_processing_parameters.pdf +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/generate_figures.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/B005_1.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/B005_2.tif +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/dual_backend_architecture.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/image1.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/image2.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/image3.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/image4.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/piv_validation_demo.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/images/speedup_benchmarks.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/index.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/make.bat +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/api_reference.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/faq.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/fft_correlation_backends.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.filters._gaussian_kernel.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.filters.gaussian.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.filters.replace_outliers.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.lib.replace_nans.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.lib.sincinterp.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.preprocess.dynamic_masking.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.CorrelationFunction.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.correlate_windows.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.extended_search_area_piv.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.get_coordinates.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.get_field_shape.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.process.normalize_intensity.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.correlate_windows.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.find_first_peak.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.find_second_peak.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.find_subpixel_peak_position.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.get_coordinates.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.get_field_shape.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.moving_window_array.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.normalize_intensity.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.pyprocess.piv.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.scaling.uniform.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.Multiprocesser.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.display.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.display_vector_field.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.imread.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.tools.save.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.global_std.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.global_val.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.local_median_val.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/generated/openpiv.validation.sig2noise_val.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/gui_doc.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/installation_instruction.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/introduction.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/masking.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/modules.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/openpiv.rst +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/openpiv_pivuq.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/piv_basics.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/tutorial1.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/docs/src/windef.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/filters.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/phase_separation.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/piv.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/preprocess.py,cover +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/scaling.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/OpenPIV_results_16_test1/field_A0000.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/__init__.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/conftest.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/extended_search_area_vectorized.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/moon.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_PIV_3D_plotting.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_filters.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_filters.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_find_peaks.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_package_metadata.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_performance.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_piv.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_preprocess.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_process.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_rust_backend.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_rust_subpixel.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_scaling.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools.png +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools_background.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools_basic_utils.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools_image_processing.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_tools_vector_field.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_validation.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_validation.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_vectorized_extended_search.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_windef.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_windef_coverage.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_windef_detailed.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/test/test_windef_final.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/tutorials/Example for overlap setting change.ipynb +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/tutorials/masking_tutorial.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/tutorials/tutorial1.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/tutorials/tutorial2.py +0 -0
- {openpiv-0.26.1 → openpiv-0.26.4}/openpiv/tutorials/windef_tutorial.py +0 -0
- {openpiv-0.26.1 → 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
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: OpenPIV
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.4
|
|
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
|
-
|
|
6
|
-
|
|
5
|
+
Project-URL: Documentation, http://openpiv.readthedocs.org
|
|
6
|
+
Project-URL: Repository, https://github.com/OpenPIV/openpiv-python
|
|
7
7
|
Author: Alex Liberzon
|
|
8
|
-
|
|
8
|
+
License: GPL-3.0-only
|
|
9
|
+
License-File: LICENSE.txt
|
|
9
10
|
Classifier: Development Status :: 4 - Beta
|
|
10
11
|
Classifier: Intended Audience :: Science/Research
|
|
11
12
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
12
|
-
Classifier: License :: Other/Proprietary License
|
|
13
13
|
Classifier: Natural Language :: English
|
|
14
14
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
15
|
Classifier: Operating System :: Microsoft :: Windows
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Operating System :: POSIX
|
|
18
|
-
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.14
|
|
24
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
|
|
25
33
|
Provides-Extra: rust
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist: matplotlib (>=3.8.0)
|
|
28
|
-
Requires-Dist: natsort (>=8.4.0)
|
|
29
|
-
Requires-Dist: numpy (>=2.0.0)
|
|
30
|
-
Requires-Dist: openpiv-rust (>=0.1.0) ; extra == "rust"
|
|
31
|
-
Requires-Dist: scikit-image (>=0.23.0)
|
|
32
|
-
Requires-Dist: scipy (>=1.11.0)
|
|
33
|
-
Requires-Dist: tqdm (>=4.66.0)
|
|
34
|
-
Project-URL: Documentation, http://openpiv.readthedocs.org
|
|
35
|
-
Project-URL: Repository, https://pypi.python.org/pypi/OpenPIV
|
|
34
|
+
Requires-Dist: openpiv-rust>=0.1.0; extra == 'rust'
|
|
36
35
|
Description-Content-Type: text/markdown
|
|
37
36
|
|
|
38
37
|
# OpenPIV
|
|
39
38
|
[](https://github.com/OpenPIV/openpiv-python/actions/workflows/testing.yml)
|
|
40
|
-
[
|
|
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)
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
OpenPIV consists in a Python and Cython modules for scripting and executing the analysis of
|
|
@@ -68,15 +69,17 @@ Click the link - thanks to BinderHub, Jupyter and Conda you can now get it in yo
|
|
|
68
69
|
pip install uv
|
|
69
70
|
uv pip install openpiv
|
|
70
71
|
|
|
72
|
+
To include the optional Rust accelerator: `uv pip install "openpiv[rust]"`.
|
|
73
|
+
|
|
71
74
|
### Using pip (standard)
|
|
72
75
|
|
|
73
76
|
Use PyPI: <https://pypi.python.org/pypi/OpenPIV>:
|
|
74
77
|
|
|
75
78
|
pip install openpiv
|
|
76
79
|
|
|
77
|
-
### Or [
|
|
80
|
+
### Or with [uv](https://docs.astral.sh/uv/)
|
|
78
81
|
|
|
79
|
-
|
|
82
|
+
uv add openpiv
|
|
80
83
|
|
|
81
84
|
### Note on Conda/Anaconda
|
|
82
85
|
|
|
@@ -114,7 +117,13 @@ OpenPIV features a parallel dual-backend architecture designed for high throughp
|
|
|
114
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.
|
|
115
118
|
* **🐍 Pure Python / SciPy Backend**: Complete, zero-dependency reference implementation that runs everywhere without a compiler.
|
|
116
119
|
|
|
117
|
-
|
|
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.
|
|
118
127
|
|
|
119
128
|
### Explicit Backend Control
|
|
120
129
|
|
|
@@ -225,11 +234,51 @@ These and many additional examples are in another repository: [OpenPIV-Python-Ex
|
|
|
225
234
|
15. [Yuri Ishizawa](https://github.com/yuriishizawa)
|
|
226
235
|
|
|
227
236
|
|
|
228
|
-
|
|
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).
|
|
229
238
|
|
|
230
|
-
##
|
|
231
|
-
|
|
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")
|
|
232
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
|
+
```
|
|
233
282
|
|
|
234
283
|
|
|
235
284
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# OpenPIV
|
|
2
2
|
[](https://github.com/OpenPIV/openpiv-python/actions/workflows/testing.yml)
|
|
3
|
-
[
|
|
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)
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
OpenPIV consists in a Python and Cython modules for scripting and executing the analysis of
|
|
@@ -31,15 +33,17 @@ Click the link - thanks to BinderHub, Jupyter and Conda you can now get it in yo
|
|
|
31
33
|
pip install uv
|
|
32
34
|
uv pip install openpiv
|
|
33
35
|
|
|
36
|
+
To include the optional Rust accelerator: `uv pip install "openpiv[rust]"`.
|
|
37
|
+
|
|
34
38
|
### Using pip (standard)
|
|
35
39
|
|
|
36
40
|
Use PyPI: <https://pypi.python.org/pypi/OpenPIV>:
|
|
37
41
|
|
|
38
42
|
pip install openpiv
|
|
39
43
|
|
|
40
|
-
### Or [
|
|
44
|
+
### Or with [uv](https://docs.astral.sh/uv/)
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
uv add openpiv
|
|
43
47
|
|
|
44
48
|
### Note on Conda/Anaconda
|
|
45
49
|
|
|
@@ -77,7 +81,13 @@ OpenPIV features a parallel dual-backend architecture designed for high throughp
|
|
|
77
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.
|
|
78
82
|
* **🐍 Pure Python / SciPy Backend**: Complete, zero-dependency reference implementation that runs everywhere without a compiler.
|
|
79
83
|
|
|
80
|
-
|
|
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.
|
|
81
91
|
|
|
82
92
|
### Explicit Backend Control
|
|
83
93
|
|
|
@@ -188,10 +198,51 @@ These and many additional examples are in another repository: [OpenPIV-Python-Ex
|
|
|
188
198
|
15. [Yuri Ishizawa](https://github.com/yuriishizawa)
|
|
189
199
|
|
|
190
200
|
|
|
191
|
-
|
|
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.
|
|
192
229
|
|
|
193
230
|
## How to cite this work
|
|
194
|
-
[](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
|
+
```
|
|
195
246
|
|
|
196
247
|
|
|
197
248
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
MinMax_U_disp: &id001 !!python/tuple
|
|
2
|
+
- -30
|
|
3
|
+
- 30
|
|
4
|
+
MinMax_V_disp: *id001
|
|
5
|
+
ROI: full
|
|
6
|
+
correlation_method: circular
|
|
7
|
+
deformation_method: symmetric
|
|
8
|
+
do_sig2noise_validation: false
|
|
9
|
+
dt: 1
|
|
10
|
+
dynamic_masking_filter_size: 7
|
|
11
|
+
dynamic_masking_method: None
|
|
12
|
+
dynamic_masking_threshold: 0.005
|
|
13
|
+
extract_sig2noise: false
|
|
14
|
+
filepath_images: .
|
|
15
|
+
filter_kernel_size: 2
|
|
16
|
+
filter_method: localmean
|
|
17
|
+
frame_pattern_a: exp1_001_a.bmp
|
|
18
|
+
frame_pattern_b: exp1_001_b.bmp
|
|
19
|
+
interpolation_order: 3
|
|
20
|
+
iterations: 3
|
|
21
|
+
max_filter_iteration: 4
|
|
22
|
+
median_size: 1
|
|
23
|
+
median_threshold: 3
|
|
24
|
+
normalized_correlation: false
|
|
25
|
+
overlap: !!python/tuple
|
|
26
|
+
- 32
|
|
27
|
+
- 16
|
|
28
|
+
- 8
|
|
29
|
+
replace_vectors: true
|
|
30
|
+
save_folder_suffix: Test_4
|
|
31
|
+
save_path: ./res
|
|
32
|
+
save_plot: true
|
|
33
|
+
scale_plot: 100
|
|
34
|
+
scaling_factor: 1
|
|
35
|
+
show_plot: true
|
|
36
|
+
sig2noise_mask: 2
|
|
37
|
+
sig2noise_method: peak2peak
|
|
38
|
+
sig2noise_threshold: 1.05
|
|
39
|
+
smoothn: true
|
|
40
|
+
smoothn_p: 0.5
|
|
41
|
+
std_threshold: 10
|
|
42
|
+
subpixel_method: gaussian
|
|
43
|
+
validation_first_pass: true
|
|
44
|
+
windowsizes: !!python/tuple
|
|
45
|
+
- 64
|
|
46
|
+
- 32
|
|
47
|
+
- 16
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cells": [
|
|
3
|
+
{
|
|
4
|
+
"cell_type": "code",
|
|
5
|
+
"execution_count": 1,
|
|
6
|
+
"metadata": {},
|
|
7
|
+
"outputs": [],
|
|
8
|
+
"source": [
|
|
9
|
+
"# test of YAML idea"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"cell_type": "code",
|
|
14
|
+
"execution_count": 2,
|
|
15
|
+
"metadata": {},
|
|
16
|
+
"outputs": [],
|
|
17
|
+
"source": [
|
|
18
|
+
"from openpiv import windef"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"cell_type": "code",
|
|
23
|
+
"execution_count": 3,
|
|
24
|
+
"metadata": {},
|
|
25
|
+
"outputs": [],
|
|
26
|
+
"source": [
|
|
27
|
+
"settings = windef.Settings()"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"cell_type": "code",
|
|
32
|
+
"execution_count": 4,
|
|
33
|
+
"metadata": {},
|
|
34
|
+
"outputs": [
|
|
35
|
+
{
|
|
36
|
+
"name": "stdout",
|
|
37
|
+
"output_type": "stream",
|
|
38
|
+
"text": [
|
|
39
|
+
"filepath_images: . \n",
|
|
40
|
+
", save_path: ./res \n",
|
|
41
|
+
", save_folder_suffix: Test_4 \n",
|
|
42
|
+
", frame_pattern_a: exp1_001_a.bmp \n",
|
|
43
|
+
", frame_pattern_b: exp1_001_b.bmp \n",
|
|
44
|
+
", ROI: full \n",
|
|
45
|
+
", dynamic_masking_method: None \n",
|
|
46
|
+
", dynamic_masking_threshold: 0.005 \n",
|
|
47
|
+
", dynamic_masking_filter_size: 7 \n",
|
|
48
|
+
", correlation_method: circular \n",
|
|
49
|
+
", normalized_correlation: False \n",
|
|
50
|
+
", windowsizes: (64, 32, 16) \n",
|
|
51
|
+
", overlap: (32, 16, 8) \n",
|
|
52
|
+
", iterations: 3 \n",
|
|
53
|
+
", subpixel_method: gaussian \n",
|
|
54
|
+
", deformation_method: symmetric \n",
|
|
55
|
+
", interpolation_order: 3 \n",
|
|
56
|
+
", scaling_factor: 1 \n",
|
|
57
|
+
", dt: 1 \n",
|
|
58
|
+
", extract_sig2noise: False \n",
|
|
59
|
+
", sig2noise_method: peak2peak \n",
|
|
60
|
+
", sig2noise_mask: 2 \n",
|
|
61
|
+
", validation_first_pass: True \n",
|
|
62
|
+
", MinMax_U_disp: (-30, 30) \n",
|
|
63
|
+
", MinMax_V_disp: (-30, 30) \n",
|
|
64
|
+
", std_threshold: 10 \n",
|
|
65
|
+
", median_threshold: 3 \n",
|
|
66
|
+
", median_size: 1 \n",
|
|
67
|
+
", do_sig2noise_validation: False \n",
|
|
68
|
+
", sig2noise_threshold: 1.05 \n",
|
|
69
|
+
", replace_vectors: True \n",
|
|
70
|
+
", smoothn: True \n",
|
|
71
|
+
", smoothn_p: 0.5 \n",
|
|
72
|
+
", filter_method: localmean \n",
|
|
73
|
+
", max_filter_iteration: 4 \n",
|
|
74
|
+
", filter_kernel_size: 2 \n",
|
|
75
|
+
", save_plot: True \n",
|
|
76
|
+
", show_plot: True \n",
|
|
77
|
+
", scale_plot: 100 \n",
|
|
78
|
+
"\n"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"source": [
|
|
83
|
+
"attrs = vars(settings)\n",
|
|
84
|
+
"print(', '.join(\"%s: %s \\n\" % item for item in attrs.items()))"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"cell_type": "code",
|
|
89
|
+
"execution_count": 5,
|
|
90
|
+
"metadata": {},
|
|
91
|
+
"outputs": [],
|
|
92
|
+
"source": [
|
|
93
|
+
"import yaml"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"cell_type": "code",
|
|
98
|
+
"execution_count": 6,
|
|
99
|
+
"metadata": {},
|
|
100
|
+
"outputs": [],
|
|
101
|
+
"source": [
|
|
102
|
+
"with open(r'default_settings.yaml', 'w') as file:\n",
|
|
103
|
+
" documents = yaml.dump(attrs, file)"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"cell_type": "code",
|
|
108
|
+
"execution_count": 7,
|
|
109
|
+
"metadata": {},
|
|
110
|
+
"outputs": [
|
|
111
|
+
{
|
|
112
|
+
"name": "stdout",
|
|
113
|
+
"output_type": "stream",
|
|
114
|
+
"text": [
|
|
115
|
+
"{'MinMax_U_disp': (-30, 30), 'MinMax_V_disp': (-30, 30), 'ROI': 'full', 'correlation_method': 'circular', 'deformation_method': 'symmetric', 'do_sig2noise_validation': False, 'dt': 1, 'dynamic_masking_filter_size': 7, 'dynamic_masking_method': 'None', 'dynamic_masking_threshold': 0.005, 'extract_sig2noise': False, 'filepath_images': '.', 'filter_kernel_size': 2, 'filter_method': 'localmean', 'frame_pattern_a': 'exp1_001_a.bmp', 'frame_pattern_b': 'exp1_001_b.bmp', 'interpolation_order': 3, 'iterations': 3, 'max_filter_iteration': 4, 'median_size': 1, 'median_threshold': 3, 'normalized_correlation': False, 'overlap': (32, 16, 8), 'replace_vectors': True, 'save_folder_suffix': 'Test_4', 'save_path': './res', 'save_plot': True, 'scale_plot': 100, 'scaling_factor': 1, 'show_plot': True, 'sig2noise_mask': 2, 'sig2noise_method': 'peak2peak', 'sig2noise_threshold': 1.05, 'smoothn': True, 'smoothn_p': 0.5, 'std_threshold': 10, 'subpixel_method': 'gaussian', 'validation_first_pass': True, 'windowsizes': (64, 32, 16)}\n"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"source": [
|
|
120
|
+
"with open(r'default_settings.yaml') as file:\n",
|
|
121
|
+
" # The FullLoader parameter handles the conversion from YAML\n",
|
|
122
|
+
" # scalar values to Python the dictionary format\n",
|
|
123
|
+
" settings1 = yaml.load(file, Loader=yaml.FullLoader)\n",
|
|
124
|
+
"\n",
|
|
125
|
+
" print(settings1)"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"cell_type": "code",
|
|
130
|
+
"execution_count": 8,
|
|
131
|
+
"metadata": {},
|
|
132
|
+
"outputs": [],
|
|
133
|
+
"source": [
|
|
134
|
+
"settings2 = windef.Settings()"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"cell_type": "code",
|
|
139
|
+
"execution_count": 16,
|
|
140
|
+
"metadata": {},
|
|
141
|
+
"outputs": [],
|
|
142
|
+
"source": [
|
|
143
|
+
"for key in settings1:\n",
|
|
144
|
+
" setattr(settings2, key, settings1[key])\n",
|
|
145
|
+
"# setattr(self, key, dictionary[key])"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"cell_type": "code",
|
|
150
|
+
"execution_count": 24,
|
|
151
|
+
"metadata": {},
|
|
152
|
+
"outputs": [
|
|
153
|
+
{
|
|
154
|
+
"data": {
|
|
155
|
+
"text/plain": [
|
|
156
|
+
"True"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"execution_count": 24,
|
|
160
|
+
"metadata": {},
|
|
161
|
+
"output_type": "execute_result"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"source": [
|
|
165
|
+
"import pickle\n",
|
|
166
|
+
"pickle.dumps(settings) == pickle.dumps(settings2)"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"cell_type": "code",
|
|
171
|
+
"execution_count": 25,
|
|
172
|
+
"metadata": {},
|
|
173
|
+
"outputs": [
|
|
174
|
+
{
|
|
175
|
+
"name": "stdout",
|
|
176
|
+
"output_type": "stream",
|
|
177
|
+
"text": [
|
|
178
|
+
"filepath_images: . \n",
|
|
179
|
+
", save_path: ./res \n",
|
|
180
|
+
", save_folder_suffix: Test_4 \n",
|
|
181
|
+
", frame_pattern_a: exp1_001_a.bmp \n",
|
|
182
|
+
", frame_pattern_b: exp1_001_b.bmp \n",
|
|
183
|
+
", ROI: full \n",
|
|
184
|
+
", dynamic_masking_method: None \n",
|
|
185
|
+
", dynamic_masking_threshold: 0.005 \n",
|
|
186
|
+
", dynamic_masking_filter_size: 7 \n",
|
|
187
|
+
", correlation_method: circular \n",
|
|
188
|
+
", normalized_correlation: False \n",
|
|
189
|
+
", windowsizes: (64, 32, 16) \n",
|
|
190
|
+
", overlap: (32, 16, 8) \n",
|
|
191
|
+
", iterations: 3 \n",
|
|
192
|
+
", subpixel_method: gaussian \n",
|
|
193
|
+
", deformation_method: symmetric \n",
|
|
194
|
+
", interpolation_order: 3 \n",
|
|
195
|
+
", scaling_factor: 1 \n",
|
|
196
|
+
", dt: 1 \n",
|
|
197
|
+
", extract_sig2noise: False \n",
|
|
198
|
+
", sig2noise_method: peak2peak \n",
|
|
199
|
+
", sig2noise_mask: 2 \n",
|
|
200
|
+
", validation_first_pass: True \n",
|
|
201
|
+
", MinMax_U_disp: (-30, 30) \n",
|
|
202
|
+
", MinMax_V_disp: (-30, 30) \n",
|
|
203
|
+
", std_threshold: 10 \n",
|
|
204
|
+
", median_threshold: 3 \n",
|
|
205
|
+
", median_size: 1 \n",
|
|
206
|
+
", do_sig2noise_validation: False \n",
|
|
207
|
+
", sig2noise_threshold: 1.05 \n",
|
|
208
|
+
", replace_vectors: True \n",
|
|
209
|
+
", smoothn: True \n",
|
|
210
|
+
", smoothn_p: 0.5 \n",
|
|
211
|
+
", filter_method: localmean \n",
|
|
212
|
+
", max_filter_iteration: 4 \n",
|
|
213
|
+
", filter_kernel_size: 2 \n",
|
|
214
|
+
", save_plot: True \n",
|
|
215
|
+
", show_plot: True \n",
|
|
216
|
+
", scale_plot: 100 \n",
|
|
217
|
+
"\n"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"source": [
|
|
222
|
+
"attrs2 = vars(settings2)\n",
|
|
223
|
+
"print(', '.join(\"%s: %s \\n\" % item for item in attrs2.items()))"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"cell_type": "code",
|
|
228
|
+
"execution_count": null,
|
|
229
|
+
"metadata": {},
|
|
230
|
+
"outputs": [],
|
|
231
|
+
"source": []
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"metadata": {
|
|
235
|
+
"kernelspec": {
|
|
236
|
+
"display_name": "Python [conda env:openpiv] *",
|
|
237
|
+
"language": "python",
|
|
238
|
+
"name": "conda-env-openpiv-py"
|
|
239
|
+
},
|
|
240
|
+
"language_info": {
|
|
241
|
+
"codemirror_mode": {
|
|
242
|
+
"name": "ipython",
|
|
243
|
+
"version": 3
|
|
244
|
+
},
|
|
245
|
+
"file_extension": ".py",
|
|
246
|
+
"mimetype": "text/x-python",
|
|
247
|
+
"name": "python",
|
|
248
|
+
"nbconvert_exporter": "python",
|
|
249
|
+
"pygments_lexer": "ipython3",
|
|
250
|
+
"version": "3.8.3"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"nbformat": 4,
|
|
254
|
+
"nbformat_minor": 4
|
|
255
|
+
}
|