MeanShift
Iterates to find object center.
int cvMeanShift( IplImage* imgProb, CvRect windowIn, CvTermCriteria
criteria, CvConnectedComp* out );
2D object probability distribution.
imgProb
Initial search window.
windowIn
Criteria applied to determine when the window search should be
criteria
finished.
Resultant structure that contains converged search window
out
coordinates (rect field) and sum of all pixels inside the window
(area field).
Discussion
The function MeanShift iterates to find the object center given its 2D color
probability distribution image. 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. The function returns the number of iterations made.
Partager