Person re-identification by discriminatively selecting parts and features