Skip to content

Uses the k-means clustering algorithm to reduce the number of colours in an image to n colours.

Notifications You must be signed in to change notification settings

hsingh124/Creating-k-colour-images

Repository files navigation

Creating-k-colour-images

This Matlab program uses the k-means clustering algorithm to create k-colour images (where k is a specified small number such as 4) from an image containing many hundreds (or even thousands) of colours.

To test this out, put all the files in the same folder and run ConvertImage.m. You can use clocktower.jpg to test it out.

About

Uses the k-means clustering algorithm to reduce the number of colours in an image to n colours.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages