Skip to content

TimSousa1/image_palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Palette

Use k colors to recreate the input image. Example for k_means.h

Uses some stb libs to read from and write to more complex image formats.

Usage:

$ ./km [-k <number of colors>] [-i] <input file> [-o <output file>]

Compile with

make

You can also use raylib to step through each iteration manually and visualize the image every step.

make VISUALIZE=1

About

Update an image to use k colors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published