Skip to content

Latest commit

 

History

History
94 lines (81 loc) · 3.21 KB

documentation.rst

File metadata and controls

94 lines (81 loc) · 3.21 KB

Documentation

While this documentation aims to go beyond a simple listing of parameters and instead attempts to explain some of the principles behind the functions, please see the section "Usage" for more details and usage examples including code and flow field visualisations.

Using the Flow Class

This section documents the custom flow class and all its class methods. It is the recommended way of using oflibpytorch and makes the full range of functionality available to the user.

Flow Constructors and Operators

oflibpytorch.Flow

__init__

Manipulating the Flow

oflibpytorch

Flow.resize

Flow.pad

Flow.invert

Flow.switch_ref

Flow.combine_with

Applying the Flow

oflibpytorch

Flow.apply

Flow.track

Evaluating the Flow

oflibpytorch

Flow.is_zero

Flow.matrix

Flow.valid_target

Flow.valid_source

Flow.get_padding

Visualising the Flow

oflibpytorch

Flow.visualise

Flow.visualise_arrows

Flow.show

Flow.show_arrows

oflibpytorch.visualise_definition

Using NumPy Arrays

This section contains functions that take Torch tensors as well as NumPy arrays as inputs, instead of making use of the custom flow class. On the one hand, this avoids having to define flow objects. On the other hand, it requires keeping track of flow attributes manually, and it does not avail itself of the full scope of functionality oflibpytorch has to offer: most importantly, flow masks are not considered or tracked.

Flow Loading

oflibpytorch.from_matrix

oflibpytorch.from_transforms

oflibpytorch.load_kitti

oflibpytorch.load_sintel

oflibpytorch.load_sintel_mask

Flow Manipulation

oflibpytorch.resize_flow

oflibpytorch.invert_flow

oflibpytorch.switch_flow_ref

oflibpytorch.combine_flows

Flow Application

oflibpytorch.apply_flow

oflibpytorch.track_pts

Flow Evaluation

oflibpytorch.is_zero_flow

oflibpytorch.get_flow_matrix

oflibpytorch.valid_target

oflibpytorch.valid_source

oflibpytorch.get_flow_padding

Flow Visualisation

oflibpytorch.visualise_flow

oflibpytorch.visualise_flow_arrows

oflibpytorch.show_flow

oflibpytorch.show_flow_arrows