In the previous video we examined the impact of downsampling and reconstructing an image. In this video, we examine the impact of changing the number of quantization levels used to store the image pixel values.
An original gray scale image file is loaded in Matlab that uses 8-bit quantization for each pixel (corresponding to 2^8 = 256 colors). The image is then re-quantized to 7-bit, 6-bit, 5-bit, .....quantization levels to visualize the impact of using fewer quantization levels on the image. While images with fewer quantization levels require less storage space, it comes at the cost of introducing additional quantization error as compared to the original image.