

.. _example_cluster_plot_face_compress.py:


=========================================================
Vector Quantization Example
=========================================================

Face, a 1024 x 768 size image of a raccoon face,
is used here to illustrate how `k`-means is
used for vector quantization.



**Python source code:** :download:`plot_face_compress.py <plot_face_compress.py>`

.. literalinclude:: plot_face_compress.py
    :lines: 14-
    