CvCamShift Method (CvArr, CvRect, CvTermCriteria, CvConnectedComp, CvBox2D) 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,
	out CvBox2D box
)

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).
box
Type: OpenCvSharpCvBox2D
Circumscribed box for the object. If not NULL, contains object size and orientation.

Return Value

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

Reference