Rank-based distance metric learning: An application to image retrieval | Synapse