Scalable Content Based Image Retrieval Based on A Hierarchical Hashing Approach