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 Image

First frame image.

f2 Image

Second frame image.

points float[2][]

points which are tracked.

searchRegions float[2][]

search region width and height for each point.

prevflow float[2][]

displacement values preallocated array.

usePrevious 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