cs4375-k-means

K-Means Clustering and Image Quantization

Oded Falik and Ramin Nourbakhsh

How to Run

Part 1: K-Means Clustering

python part1.py

Part 2: Image Color Quantization use 1, 2, 3, 4, or 5 as an argument to select different images.

python part2.py 3

Libraries Used

  • numpy
  • pandas
  • scikit-learn (sklearn)
  • matplotlib
  • requests, io, sys
  • PIL

Developed on Python 3.8.4 64-bit Should work on Python 3+