Python Image Displacement Identification.
Project description
pyidi
Image-based Displacement Identification (IDI) implementation in python.
See the documentation for pyIDI
.
Use Napari UI for quick displacement identification:
BASIC USAGE:
Create an instance:
video = pyidi.pyIDI(input_file='video.cih')
The pyIDI
method works with various formats: .cih
, .cihx
, .png
, .avi
etc. Additionally, it can also work with numpy.ndarray
as input.
If an array is passed, it must have a shape of: (n time points, image height, image width)
.
Set the points where displacements will be determined:
p = np.array([[0, 1], [1, 1], [2, 1]]) # example of points
video.set_points(points=p)
Or use point selection UI to set individual points or grid inside selected area. For more information about UI see documentation. Launch viewer with:
video.gui()
The method of identification has to be specified:
video.set_method(method='sof', **method_kwargs)
After points are set, displacements can be calculated (using method, set in set_method
):
displacements = video.get_displacements()
Multiprocessing can also be used by passing the processes
argument:
displacements = video.get_displacements(processes=4)
DEVELOPER GUIDELINES:
- Add _name_of_method.py with class that inherits after
IDIMethods
- This class must have methods:
calculate_displacements
with attributedisplacements
get_points
(static method - sets attribute video.points)
- In
pyIDI
add a new method of identification inavaliable_methods
dictionary.
Citing
If you are using the pyIDI
package for your research, consider citing our articles:
- Čufar, K., Slavič, J., & Boltežar, M. (2024). Mode-shape magnification in high-speed camera measurements. Mechanical Systems and Signal Processing, 213, 111336. https://doi.org/10.1016/J.YMSSP.2024.111336
- Zaletelj, K., Gorjup, D., Slavič, J., & Boltežar, M. (2023). Multi-level curvature-based parametrization and model updating using a 3D full-field response. Mechanical Systems and Signal Processing, 187, 109927. https://doi.org/10.1016/j.ymssp.2022.109927
- Zaletelj, K., Slavič, J., & Boltežar, M. (2022). Full-field DIC-based model updating for localized parameter identification. Mechanical Systems and Signal Processing, 164. https://doi.org/10.1016/j.ymssp.2021.108287
- Gorjup, D., Slavič, J., & Boltežar, M. (2019). Frequency domain triangulation for full-field 3D operating-deflection-shape identification. Mechanical Systems and Signal Processing, 133. https://doi.org/10.1016/j.ymssp.2019.106287
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyidi-0.30.2.tar.gz
.
File metadata
- Download URL: pyidi-0.30.2.tar.gz
- Upload date:
- Size: 42.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e79c01c2236c5279d693120af740fcee2abd19dd5f4db87418c5d30ba512b35 |
|
MD5 | 5e835bc885c77cae697cda2d17495769 |
|
BLAKE2b-256 | d9af6d90d9e83b45dbd738cdba0cf071abdbe2e19ab49d5f645e93e6d14b26bc |
File details
Details for the file pyidi-0.30.2-py3-none-any.whl
.
File metadata
- Download URL: pyidi-0.30.2-py3-none-any.whl
- Upload date:
- Size: 53.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 079c823972cd9031dfa0e09043c079da62df791c549932de51266b9912bbe579 |
|
MD5 | 070342131f7ed844a521411cd47a9362 |
|
BLAKE2b-256 | 093fb4f1cf779f9578c7da065bd12112689d7937cb37cfacdd8cef4cc53b06e7 |