Implements CAMSHIFT object tracking algrorithm ([Bradski98]). First, it finds an object center using cvMeanShift and, after that, calculates the object size and orientation.

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

- probImage (IntPtr)
- Back projection of object histogram
- window (MCvRect)
- Initial search window
- criteria (MCvTermCriteria)
- Criteria applied to determine when the window search should be finished
- comp ( MCvConnectedComp %)
- Resultant structure that contains converged search window coordinates (comp->rect field) and sum of all pixels inside the window (comp->area field).
- box ( MCvBox2D %)
- Circumscribed box for the object. If not NULL, contains object size and orientation

number of iterations made within cvMeanShift