spatial_correlation#

Compute correlation length of velocity and velocity orientation.

Syntax

python cav_imseq.py input_folder output_folder
  • input_folder – folder of PIV data

  • output_folder – folder to save output

Test

python spatial_correlation.py test_imagesatch_spatial_correlation\piv_foldertest_imagesatch_spatial_correlation\spatial_correlation

Edit

  • Aug 06, 2020 – (i) change corrI return value according to the change of corrI(), to speed up the code, (ii) write parameters in log down sampling: instead of computing correlations for all frames, now only take 100 frames if the video is shorter than 100 frames, do the whole video

  • Dec 13, 2021 – (i) Rewrite doc string. (ii) Minor structural modification.

  • Dec 15, 2021 – (i) Rename to spatial_correlation.py, (ii) modify test script, (iii) replace PIV data loading snippet with read_piv function.

  • Jan 05, 2023 – Adapt myimagelib import style.

  • Feb 08, 2023 – Rewrite in function wrapper form, to make autodoc work properly. (autodoc import the script and execute it, so anything outside if __name__=="__main__" will be executed, causing problems)