CvCamShift Method (CvArr, CvRect, CvTermCriteria, CvConnectedComp) OpenCvSharp Class Library
Finds object center, size, and orientation

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

public static int CamShift(
	CvArr probImage,
	CvRect window,
	CvTermCriteria criteria,
	out 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