Target tracking code with mean shift and particle filter