Computes flow for every pixel of the first input image using Lucas & Kanade algorithm

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void LK(
	Image<Gray, byte> prev,
	Image<Gray, byte> curr,
	Size winSize,
	Image<Gray, float> velx,
	Image<Gray, float> vely
)
Public Shared Sub LK ( _
	prev As Image(Of Gray, Byte), _
	curr As Image(Of Gray, Byte), _
	winSize As Size, _
	velx As Image(Of Gray, Single), _
	vely As Image(Of Gray, Single) _
)
public:
static void LK(
	Image<Gray, unsigned char>^ prev, 
	Image<Gray, unsigned char>^ curr, 
	Size winSize, 
	Image<Gray, float>^ velx, 
	Image<Gray, float>^ vely
)

Parameters

prev
Image<(Of <(<'Gray, Byte>)>)>
First image
curr
Image<(Of <(<'Gray, Byte>)>)>
Second image
winSize
Size
Size of the averaging window used for grouping pixels
velx
Image<(Of <(<'Gray, Single>)>)>
Horizontal component of the optical flow of the same size as input images
vely
Image<(Of <(<'Gray, Single>)>)>
Vertical component of the optical flow of the same size as input images

See Also