Refactoring particle filter stub and color meanshift