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.10.1935 (2.4.10.1935)

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
)
F#
static member cvCamShift : 
        probImage : IntPtr * 
        window : Rectangle * 
        criteria : MCvTermCriteria * 
        comp : MCvConnectedComp byref * 
        box : MCvBox2D byref -> int 

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

Type: Int32
The number of iterations made within cvMeanShift

See Also