Skip to content

2c2c/palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

palette

A color quantization script using k-means clustering. It finds the best n colors that make up an image and redraws them along with the palette that made it possible.

Using Lab colorspace throughout the calculations lead to big gains in accuracy.

papika

bird

palm2

It can render multiple iterations increasing the number of colors.

palm

girl

china

To use: python palette.py imagename startcolors endcolors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages