Image Quantization And Sampling