Local signature quantization by sparse coding