Please refer to the Image_Features_Codebook.pdf file for details about functions.