Introduction - If you have any usage issues, please Google them yourself
For encoding, image is split in blocks and each block is then
converted to the training vector Xi = (xi1, xi2, ..….., xik ). The
codebook is searched for the nearest codevector Cmin by
computing squared Euclidean distance as presented in
equation (1) between vector Xi and all the codevectors of the
codebook