Implements CAMSHIFT object tracking algorithm ([Bradski98]). First, it finds an object center using cvMeanShift and, after that, calculates the object size and orientation.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
public static int cvCamShift( IntPtr probImage, Rectangle window, MCvTermCriteria criteria, out MCvConnectedComp comp, out MCvBox2D box )
Public Shared Function cvCamShift ( _ probImage As IntPtr, _ window As Rectangle, _ criteria As MCvTermCriteria, _ <OutAttribute> ByRef comp As MCvConnectedComp, _ <OutAttribute> ByRef box As MCvBox2D _ ) As Integer
public: static int cvCamShift( IntPtr probImage, Rectangle window, MCvTermCriteria criteria, [OutAttribute] MCvConnectedComp% comp, [OutAttribute] MCvBox2D% box )
Parameters
- probImage
- IntPtr
Back projection of object histogram
- window
- Rectangle
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 IntPtr.Zero, contains object size and orientation