Suppose we have formed the codebook using the RGB training images. This codebook is now present at the encoder and the decoder.
Now we have one RGB test image (which is not contained in the training images) which we want to compress, transmit and reconstruct. During the reconstruction of this test image, due to the different intensities of the test image, some of which might completely not match with any training image intensity, wouldn't parts of the reconstructed image be darker or brighter than the original image in existing vector quantization algorithms? Is there any way deal with the intensities in existing algorithms like K-means, LBG? Or should we make an appropriate choice of the training images to begin with? Or should the test image be also included within the training images? What is the standard way?