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:
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. ...