A simple example project for the 2019 High-speed Image Based Experimental Modal Analysis & Open Source Tools Summer School.
At the end of the summer school, the image-ema-project will be available on PyPI and can be installed with pip.
$ pip install image_ema_project
After installing image-ema-project you can use it like any other Python module.
Here is a simple example:
import image_ema_project as iep
import numpy as np
import matplotlib.pyplot as plt
video = np.load('examples/speckle.npy', mmap_mode='r')
results = iep.get_displacements(video, point=[5, 5], roi_size=[7, 7])
plt.figure()
plt.plot(results[0], label='x [px]')
plt.plot(results[1], label='y [px]')
plt.legend()
plt.show()
You can also run this basic example by running the following commain in the project base direcotry:
$ python -m examples.basic_example
The Read the Docs page provides the project documentation.