from openpiv import windef
from openpiv import tools, scaling, validation, filters, preprocess
import openpiv.pyprocess as process
from openpiv import pyprocess
import numpy as np
import pathlib
import warnings
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib
matplotlib.rcParams['figure.figsize'] = (8.0, 8.0)
settings = windef.PIVSettings()
'Data related settings'
# Folder with the images to process
settings.filepath_images = pathlib.Path('../test10/')
# Folder for the outputs
settings.save_path = pathlib.Path('../test10/')
# Root name of the output Folder for Result Files
settings.save_folder_suffix = 'Test_1'
# Format and Image Sequence
settings.frame_pattern_a = 'B001_1.tif'
settings.frame_pattern_b = 'B001_2.tif'
settings.num_iterations = 3 # select the number of PIV passes
settings.windowsizes=(128, 64, 32)
settings.overlap=(64, 32, 16)
settings.show_plot = True
windef.piv(settings)
Saving to ../test10/OpenPIV_results_32_Test_1/field_A0000.txt
Image Pair 1 B001_1 B001_2
settings.num_iterations = 4 # select the number of PIV passes
settings.windowsizes=(128, 64, 32, 16)
settings.overlap=(64, 32, 16, 8)
windef.piv(settings)
Saving to ../test10/OpenPIV_results_16_Test_1/field_A0000.txt
Image Pair 1 B001_1 B001_2
settings.num_iterations = 3 # select the number of PIV passes
settings.windowsizes=(128, 64, 32, 16)
settings.overlap=(64, 32, 16, 8)
windef.piv(settings)
Saving to ../test10/OpenPIV_results_32_Test_1/field_A0000.txt
Image Pair 1 B001_1 B001_2