A patch-based affinity measurement method for online multiple pedestrian tracking