Data-driven Visual Similarity for Cross-domain Image Matching