Python Image Displacement Identification.
Image-based Displacement Identification (IDI) implementation in python.
See the documentation for
Use Napari UI for quick displacement identification:
Create an instance:
video = pyidi.pyIDI(cih_file='video.cih')
Currently the pyIDI method works with Photron
.cihx files, however,
also be passed as
cih_file argument. 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:
The method of identification has to be specified:
After points are set, displacements can be calculated (using method, set in
displacements = video.get_displacements()
Multiprocessing can also be used by passing the
displacements = video.get_displacements(processes=4)
- Add _name_of_method.py with class that inherits after
- This class must have methods:
get_points(static method - sets attribute video.points)
pyIDIadd a new method of identification in
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.