MeanShift and CamShift

What we learned until now in this chapter, apart from the use cases that we already saw, was meant to prepare us for correctly using the MeanShift and CamShift algorithms, since they extensively benefit from histograms and back-projection images. But what are the MeanShift and CAMShift algorithms?

Let's start with the MeanShift and then move on to CamShift, which is basically the enhanced version of the same algorithm. So, a very practical definition for MeanShift (as it is stated in the current OpenCV documentation) is the following:

Finds an object on a back projection image

That's quite a simple yet practical definition of the MeanShift algorithm, and we are going to stick to that more or less when we work with it. ...

Get Computer Vision with OpenCV 3 and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.