Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better title + authors.

  • Loading branch information...
commit 9039d1c29c872c69f67ec22458fe6854ed701900 1 parent 975027d
@mblondel mblondel authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 examples/cluster/plot_color_quantization.py
View
12 examples/cluster/plot_color_quantization.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
"""
-============================================
-Vector Quantization of a photo using k-means
-============================================
+==================================
+Color Quantization using K-Means
+==================================
Performs a pixel-wise Vector Quantization (VQ) of an image of the summer palace
(China), reducing the number of colors required to show the image from 96,615
@@ -18,6 +18,12 @@
For comparison, a quantized image using a random codebook (colors picked up
randomly) is also shown.
"""
+# Authors: Robert Layton <robertlayton@gmail.com>
+# Olivier Grisel <olivier.grisel@ensta.org>
+# Mathieu Blondel <mathieu@mblondel.org>
+#
+# License: BSD
+
print __doc__
import numpy as np
import pylab as pl
Please sign in to comment.
Something went wrong with that request. Please try again.