Iterates to find the object center given its back projection and initial position of search window. The iterations are made until the search window center moves by less than the given value and/or until the function has done the maximum number of iterations.
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 cvMeanShift( IntPtr probImage, Rectangle window, MCvTermCriteria criteria, out MCvConnectedComp comp )
Public Shared Function cvMeanShift ( _ probImage As IntPtr, _ window As Rectangle, _ criteria As MCvTermCriteria, _ <OutAttribute> ByRef comp As MCvConnectedComp _ ) As Integer
public: static int cvMeanShift( IntPtr probImage, Rectangle window, MCvTermCriteria criteria, [OutAttribute] MCvConnectedComp% comp )
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).