LucasKanadeFlow.evaluate

Lucas-Kanade optical flow algorithm implementation.

class LucasKanadeFlow
override
float[2][]
evaluate
(
inout Image f1
,
inout Image f2
,
in float[2][] points
,
in float[2][] searchRegions
,
float[2][] flow = 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.

flow 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.

See: dcv.features.corner

Meta