Particle filter with a mode tracker for visual tracking across illumination changes