Adaptive Metric Learning for Saliency Detection