OpenCV  3.4.4
Open Source Computer Vision
samples/cpp/camshiftdemo.cpp

An example using the mean-shift tracking algorithm