CvMeanShift Method OpenCvSharp Class Library
Finds object center on back projection

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

public static int MeanShift(
	CvArr probImage,
	CvRect window,
	CvTermCriteria criteria,
	CvConnectedComp comp
)

Parameters

probImage
Type: OpenCvSharpCvArr
Back projection of object histogram (see cvCalcBackProject).
window
Type: OpenCvSharpCvRect
Initial search window.
criteria
Type: OpenCvSharpCvTermCriteria
Criteria applied to determine when the window search should be finished.
comp
Type: OpenCvSharpCvConnectedComp
Resultant structure that contains converged search window coordinates (comp->rect field) and sum of all pixels inside the window (comp->area field).

Return Value

Type: Int32
The function returns number of iterations made within cvMeanShift.
See Also

Reference