Skip to content

Commit

Permalink
Specify units of output motion field
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Jun 25, 2019
1 parent 14c9175 commit 48dd70e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pysteps/motion/darts.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def DARTS(R, **kwargs):
-------
out : ndarray
Three-dimensional array (2,m,n) containing the dense x- and y-components
of the motion field.
of the motion field in units of pixels / timestep as given by the input
array R.
"""

Expand Down
3 changes: 2 additions & 1 deletion pysteps/motion/lucaskanade.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def dense_lucaskanade(R, **kwargs):
-------
out : ndarray_
If dense=True (the default), it returns the three-dimensional array (2,m,n)
containing the dense x- and y-components of the motion field.
containing the dense x- and y-components of the motion field in units of
pixels / timestep as given by the input array R.
If dense=False, it returns a tuple containing the one-dimensional arrays
x, y, u, v, where x, y define the vector locations, u, v define the x
and y direction components of the vectors.
Expand Down
3 changes: 2 additions & 1 deletion pysteps/motion/vet.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ def vet(input_images,
Displacement Field (2D array representing the transformation) that
warps the template image into the input image.
The dimensions are (2,ni,nj), where the first
dimension indicates the displacement along x (0) or y (1).
dimension indicates the displacement along x (0) or y (1) in units of
pixels / timestep as given by the input_images array.
intermediate_steps : list of ndarray_
List with the first guesses obtained during the scaling procedure.
Expand Down

0 comments on commit 48dd70e

Please sign in to comment.