Re-identification of persons in multi-camera surveillance under varying viewpoints and illumination