Which ranking metric is optimal? With applications in image retrieval and stereo matching | IEEE Conference Publication | IEEE Xplore