http://www.emgu.com
Implements CAMSHIFT object tracking algorithm ([Bradski98]). First, it finds an object center using cvMeanShift and, after that, calculates the object size and orientation.

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

Syntax

C#
public static int cvCamShift(
	IntPtr probImage,
	Rectangle window,
	MCvTermCriteria criteria,
	out MCvConnectedComp comp,
	out MCvBox2D box
)
Visual Basic
Public Shared Function cvCamShift ( _
	probImage As IntPtr, _
	window As Rectangle, _
	criteria As MCvTermCriteria, _
	<OutAttribute> ByRef comp As MCvConnectedComp, _
	<OutAttribute> ByRef box As MCvBox2D _
) As Integer
Visual C++
public:
static int cvCamShift(
	IntPtr probImage, 
	Rectangle window, 
	MCvTermCriteria criteria, 
	[OutAttribute] MCvConnectedComp% comp, 
	[OutAttribute] MCvBox2D% box
)

Parameters

probImage
Type: System..::..IntPtr
Back projection of object histogram
window
Type: System.Drawing..::..Rectangle
Initial search window
criteria
Type: Emgu.CV.Structure..::..MCvTermCriteria
Criteria applied to determine when the window search should be finished
comp
Type: Emgu.CV.Structure..::..MCvConnectedComp%
Resultant structure that contains converged search window coordinates (comp->rect field) and sum of all pixels inside the window (comp->area field).
box
Type: Emgu.CV.Structure..::..MCvBox2D%
Circumscribed box for the object. If not IntPtr.Zero, contains object size and orientation

Return Value

The number of iterations made within cvMeanShift

See Also