HPatches: A Benchmark and Evaluation of Handcrafted and Learned Local Descriptors