Soft-assigned bag of features for object tracking