Aggregating local descriptors into a compact image representation