Have a personal or library account? Click to login
oflibnumpy & oflibpytorch: Optical Flow Handling and Manipulation in Python Cover

oflibnumpy & oflibpytorch: Optical Flow Handling and Manipulation in Python

Open Access
|Nov 2021

Abstract

We present oflibnumpy and oflibpytorch, an optical flow library based on NumPy arrays and PyTorch tensors, respectively. It provides a structured approach to the representation of optical flow, i.e 2D vector fields, as a custom class offering a number of methods to apply, manipulate, analyse, and visualise the flow. The library takes into account the two possible frames of reference in optical flow calculation, namely the source (first frame) and target (second frame). The collection of methods and their rigorous mathematical underpinning makes the library broadly applicable to any project that uses flow fields. It is implemented as a Python 3 package whose source can be found on GitHub, and which can be installed either from the git repository or the Python Package Index (PyPI).

DOI: https://doi.org/10.5334/jors.380 | Journal eISSN: 2049-9647
Language: English
Submitted on: Jun 21, 2021
|
Accepted on: Nov 10, 2021
|
Published on: Nov 26, 2021
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2021 Claudio S. Ravasio, Lyndon Da Cruz, Christos Bergeles, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.