GPU/CUDA optimized implementation of 3D optical flow algorithms such as Farneback two frame motion estimation and Lucas Kanade dense optical flow algorithms
Project description
opticalflow3d
GPU/CUDA optimized implementation of 3D optical flow algorithms such as Farneback two frame motion estimation and Lucas Kanade dense optical flow algorithms.
Please see the related projects section for the other components of this pipeline
Overview
Being able to efficiently calculate the displacements between two imaging volumes will allow us to query the dynamics captured in the images. This would include 3D biological samples and 3D force micrsocopy. However, a CPU based implementation would be too time consuming. Thus, this repository was created to address this problem by providing GPU accelerated implementation of various optical flow algorithms. Speed is key here, and tricks such as separable convolutions are used.
Currently, two optical flow methods are implemented:
- Pyramidal Lucas Kanade dense optical flow algorithm
- Farneback two frame motion estimation algorithm
The following methods are also provided to help in the assessment of the vectors.
- forward mapping of the first image using the calculated vectors
Usage
Required packages
The following packages are required. Please ensure that they are installed using either pip or conda.
- numpy
- numba
- scikit-image
- scipy
- cupy
- tqdm
Installation
This package is available via pip and can be installed using:
pip install opticalflow3d
Examples
Examples can be found in the examples folder
How to cite
Related projects
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
Hashes for opticalflow3d-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455235266737b28ddc431ca516bc6a6ce78e6b061da1a533bad605ecc80939ff |
|
MD5 | e28cdb550dd8b0aea0f6955c5bc3d4de |
|
BLAKE2b-256 | 41eb4cc352d6d7c3b4038aeb18db186bcc0cb0e3a3fae3bca84c49aedb546e2f |