Skip to content
/ K-Means Public

A quick K-Means example in python using numpy for RIT-AI Club

Notifications You must be signed in to change notification settings

rit-ai/K-Means

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

K-Means Example

This K-Means Example was written for a presentation given at RIT-AI.

RIT's awesome AI club!

Simply clone the repo - then run

python3 kMeans.py

Then type the path to any image, and your desired number of clusters.

We'll take every pixel of the image, graph each as RGB values, then run k-means on the pixels.

Once grouped, we set the value of every pixel to the average of its associated group.

In this way, we end up with exactly k colors in the entire image.

About

A quick K-Means example in python using numpy for RIT-AI Club

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages