Learning weights for codebook in image classification and retrieval | IEEE Conference Publication | IEEE Xplore