%23%20%2F%2F%2F%20script%0A%23%20requires-python%20%3D%20%22%3E%3D3.11%22%0A%23%20dependencies%20%3D%20%5B%0A%23%20%20%20%20%20%22marimo%22%2C%0A%23%20%20%20%20%20%22openpiv%3D%3D0.26.3%22%2C%0A%23%20%20%20%20%20%22numpy%22%2C%0A%23%20%20%20%20%20%22matplotlib%22%2C%0A%23%20%20%20%20%20%22scipy%22%2C%0A%23%20%20%20%20%20%22scikit-image%22%2C%0A%23%20%5D%0A%23%20%2F%2F%2F%0A%0Aimport%20marimo%0A%0A__generated_with%20%3D%20%220.25.2%22%0Aapp%20%3D%20marimo.App(width%3D%22medium%22)%0A%0A%0A%40app.cell%0Adef%20_()%3A%0A%20%20%20%20import%20marimo%20as%20mo%0A%20%20%20%20mo.md(%22%23%20Introduction%20to%20PIV%20(Particle%20Image%20Velocimetry)%5Cn%5CnThis%20notebook%20introduces%20PIV%20concepts%20and%20OpenPIV%20usage.%22)%0A%20%20%20%20return%20(mo%2C)%0A%0A%0A%40app.cell%0Adef%20_(mo)%3A%0A%20%20%20%20mo.md(%22%22%22%0A%20%20%20%20%23%23%20What%20is%20PIV%3F%0A%20%20%20%20PIV%20measures%20velocity%20fields%20by%20tracking%20particles%20in%20two%20images.%0A%20%20%20%20%22%22%22)%0A%20%20%20%20return%0A%0A%0A%40app.cell%0Adef%20_()%3A%0A%20%20%20%20import%20numpy%20as%20np%0A%20%20%20%20from%20openpiv%20import%20tools%2C%20pyprocess%0A%20%20%20%20from%20openpiv.tools%20import%20synimage%0A%20%20%20%20img_a%2C%20img_b%20%3D%20synimage.synimagegen(128)%0A%20%20%20%20u%2C%20v%2C%20s2n%20%3D%20pyprocess.extended_search_area_piv(img_a.astype(int)%2C%20img_b.astype(int)%2C%20window_size%3D32%2C%20overlap%3D16%2C%20dt%3D0.1%2C%20search_area_size%3D64)%0A%20%20%20%20print(%22PIV%20done%22%2C%20u.shape)%0A%20%20%20%20return%0A%0A%0Aif%20__name__%20%3D%3D%20%22__main__%22%3A%0A%20%20%20%20app.run()%0A
88f3854a5e95c2acde1ff121eef82173