http://www.emgu.com
Iterates to find the object center given its back projection and initial position of search window. The iterations are made until the search window center moves by less than the given value and/or until the function has done the maximum number of iterations.

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

Syntax

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

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).

Return Value

The number of iterations made

See Also