http://www.emgu.com
Calculate an optical flow for a sparse feature set.

Namespace: Emgu.CV.GPU
Assembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public void Sparse(
	GpuImage<Gray, byte> frame0,
	GpuImage<Gray, byte> frame1,
	GpuMat<float> points0,
	out GpuMat<float> points1,
	out GpuMat<byte> status,
	out GpuMat<float> err
)
Visual Basic
Public Sub Sparse ( _
	frame0 As GpuImage(Of Gray, Byte), _
	frame1 As GpuImage(Of Gray, Byte), _
	points0 As GpuMat(Of Single), _
	<OutAttribute> ByRef points1 As GpuMat(Of Single), _
	<OutAttribute> ByRef status As GpuMat(Of Byte), _
	<OutAttribute> ByRef err As GpuMat(Of Single) _
)
Visual C++
public:
void Sparse(
	GpuImage<Gray, unsigned char>^ frame0, 
	GpuImage<Gray, unsigned char>^ frame1, 
	GpuMat<float>^ points0, 
	[OutAttribute] GpuMat<float>^% points1, 
	[OutAttribute] GpuMat<unsigned char>^% status, 
	[OutAttribute] GpuMat<float>^% err
)

Parameters

frame0
Type: Emgu.CV.GPU..::..GpuImage<(Of <(<'Gray, Byte>)>)>
First 8-bit input image (supports both grayscale and color images).
frame1
Type: Emgu.CV.GPU..::..GpuImage<(Of <(<'Gray, Byte>)>)>
Second input image of the same size and the same type as frame0
points0
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Single>)>)>
Vector of 2D points for which the flow needs to be found. It must be one row matrix with 2 channels
points1
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Single>)>)>%
Output vector of 2D points (with single-precision two channel floating-point coordinates) containing the calculated new positions of input features in the second image.
status
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Byte>)>)>%
Output status vector (CV_8UC1 type). Each element of the vector is set to 1 if the flow for the corresponding features has been found. Otherwise, it is set to 0.
err
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Single>)>)>%
Output vector (CV_32FC1 type) that contains the difference between patches around the original and moved points or min eigen value if getMinEigenVals is checked. It can be null, if not needed.

See Also