Unsupervised learning of discriminative edge measures for vehicle matching between nonoverlapping cameras