A Unified framework for local visual descriptors