Permalink
Browse files

"k-means", not "kd-means". kd-trees are not involved :|

  • Loading branch information...
1 parent 45b8ba0 commit 59f3692edc53a9ef711616afebdc93d85b95b2a4 mwcz committed Mar 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/photos/cs.py
View
@@ -12,7 +12,7 @@
def palette( _image, _size ):
"""Calculates the 'important' colors in an image using kd-means."""
img = _image.copy()
- img.thumbnail( (64,64) ) # downsize the image so kd-means will run MUCH faster.
+ img.thumbnail( (64,64) ) # downsize the image so k-means will run MUCH faster.
pixels = list( img.getdata() )
wh_pixels = vq.whiten( pixels )

0 comments on commit 59f3692

Please sign in to comment.