Image Hashing via Cross-View Code Alignment in the Age of Foundation Models