Implementation of camshift processing