K-means Color Quantization

Cluster all pixels into K representative colors and replace each pixel with its cluster center. Different style than fixed-bucket posterize.

← Kumgit! · Image Processing index

Loading OpenCV.js…

Input

Output