CvCalcOpticalFlowBM Method OpenCvSharp Class Library
Calculates optical flow for two images by block matching method

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void CalcOpticalFlowBM(
	CvArr prev,
	CvArr curr,
	CvSize blockSize,
	CvSize shiftSize,
	CvSize maxRange,
	bool usePrevious,
	CvArr velx,
	CvArr vely
)

Parameters

prev
Type: OpenCvSharpCvArr
First image, 8-bit, single-channel.
curr
Type: OpenCvSharpCvArr
Second image, 8-bit, single-channel.
blockSize
Type: OpenCvSharpCvSize
Size of basic blocks that are compared.
shiftSize
Type: OpenCvSharpCvSize
Block coordinate increments.
maxRange
Type: OpenCvSharpCvSize
Size of the scanned neighborhood in pixels around block.
usePrevious
Type: SystemBoolean
Uses previous (input) velocity field.
velx
Type: OpenCvSharpCvArr
Horizontal component of the optical flow of floor((prev->width - block_size.width)/shiftSize.width) × floor((prev->height - block_size.height)/shiftSize.height) size, 32-bit floating-point, single-channel.
vely
Type: OpenCvSharpCvArr
Vertical component of the optical flow of the same size velx, 32-bit floating-point, single-channel.
See Also

Reference