Skip to content

dstein64/k-means-quantization-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k-means Image Color Quantization

k-means Image Color Quantization is a web page that can apply color quantization to images using k-means clustering.

The code runs fully in the browser. That is, there are no server-side calls to process the image and/or run the clustering and quantization. The implementation is in JavaScript.

How To Use

To quantize an image, navigate to index.html, load an image, select a value for k, and click Quantize. The time to process increases with the size of the image.

The page is available at https://dstein64.github.io/k-means-quantization-js/.

Screenshots

Selection/Instructions

Select

Quantized Image

Quantized

License

The source code has an MIT License.

See LICENSE.