Dynamic Resource Allocation for Probabilistic Tracking in Complex Scenes