oflibnumpy & oflibpytorch: Optical Flow Handling and Manipulation in Python

Autor: Claudio S. Ravasio, Lyndon Da Cruz, Christos Bergeles
Jazyk: angličtina
Rok vydání: 2021
Předmět:
Zdroj: Journal of Open Research Software, Vol 9, Iss 1 (2021)
Druh dokumentu: article
ISSN: 2049-9647
DOI: 10.5334/jors.380
Popis: 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 '2'D 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).
Databáze: Directory of Open Access Journals