[3 P]Apply the k-means algorithm for lossy image compression by means of vector quantization.
kmeansto do the clustering. Determine the compression factor for each value of and relate it to the quality of the image. Apply an appropriate quality measure of you choice.
Present your results clearly, structured and legible. Document them in such a way that anybody can reproduce them effortless. Send the code of your solution to mailto:firstname.lastname@example.org@igi.tugraz.at