SparseOpticalFlow.evaluate

Evaluate sparse optical flow method between two consecutive frames.

interface SparseOpticalFlow
float[2][]
evaluate
(
inout Image f1
,
inout Image f2
,
in float[2][] points
,
in float[2][] searchRegions
,
float[2][] prevflow = null
,
bool usePrevious = false
)

Parameters

f1
Type: Image

First frame image.

f2
Type: Image

Second frame image.

points
Type: float[2][]

points which are tracked.

searchRegions
Type: float[2][]

search region width and height for each point.

prevflow
Type: float[2][]

displacement values preallocated array.

usePrevious
Type: bool

if algorithm should continue iterating by using presented values in the flow array, set this to true.

Return Value

Type: float[2][]

Array of 2 floating point values which represent movement of each given feature point, from f1 to f2.

Meta