Emgu CV Library Documentation
PyrLK Method (prev, curr, prevFeatures, winSize, level, criteria, currFeatures, status, trackError)
NamespacesEmgu.CVOpticalFlowPyrLK(Image<(Of <(Gray, Byte>)>), Image<(Of <(Gray, Byte>)>), array<PointF>[]()[], Size, Int32, MCvTermCriteria, array<PointF>[]()[]%, array<Byte>[]()[]%, array<Single>[]()[]%)

www.emgu.com/wiki
Calculates optical flow for a sparse feature set using iterative Lucas-Kanade method in pyramids
Declaration Syntax
C#Visual BasicVisual C++
public static void PyrLK(
	Image<Gray, byte> prev,
	Image<Gray, byte> curr,
	PointF[] prevFeatures,
	Size winSize,
	int level,
	MCvTermCriteria criteria,
	out PointF[] currFeatures,
	out byte[] status,
	out float[] trackError
)
Public Shared Sub PyrLK ( _
	prev As Image(Of Gray, Byte), _
	curr As Image(Of Gray, Byte), _
	prevFeatures As PointF(), _
	winSize As Size, _
	level As Integer, _
	criteria As MCvTermCriteria, _
	<OutAttribute> ByRef currFeatures As PointF(), _
	<OutAttribute> ByRef status As Byte(), _
	<OutAttribute> ByRef trackError As Single() _
)
public:
static void PyrLK(
	Image<Gray, unsigned char>^ prev, 
	Image<Gray, unsigned char>^ curr, 
	array<PointF>^ prevFeatures, 
	Size winSize, 
	int level, 
	MCvTermCriteria criteria, 
	[OutAttribute] array<PointF>^% currFeatures, 
	[OutAttribute] array<unsigned char>^% status, 
	[OutAttribute] array<float>^% trackError
)
Parameters
prev (Image<(Of <(Gray, Byte>)>))
First frame, at time t
curr (Image<(Of <(Gray, Byte>)>))
Second frame, at time t + dt
prevFeatures (array< PointF >[]()[])
Array of points for which the flow needs to be found
winSize (Size)
Size of the search window of each pyramid level
level (Int32)
Maximal pyramid level number. If 0 , pyramids are not used (single level), if 1 , two levels are used, etc
criteria (MCvTermCriteria)
Specifies when the iteration process of finding the flow for each point on each pyramid level should be stopped
currFeatures ( array< PointF >[]()[] %)
Array of 2D points containing calculated new positions of input features in the second image
status ( array< Byte >[]()[] %)
Array. Every element of the array is set to 1 if the flow for the corresponding feature has been found, 0 otherwise
trackError ( array< Single >[]()[] %)
Array of double numbers containing difference between patches around the original and moved points

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.5.0.0 (1.5.0.0)