.
6. For the last part, I had to transform the RGB colors to luminance,Y,
and color difference coordinates U and V. After performing quantization
with
luminance.m, I recombined the RGB parts
of the picture with different
p values of 1, 2 and 4. Finally, I
compared these results with the original color image.

Original image, luminance quantization with
p=1,
p=2,
and
p=4.
Conclusion: I was able to see how an image can be
compressed using different quantization methods and matrices, and see also
how small changes on the quantization matrix could have a significant
effect on the quality of the image being displayed.