Color Quantization

version (187 KB) by Athi
This program reduces the number of colors present in a true color image (or indexed color image).


Updated 7 Jun 2011

View License

A true color image (24 bit image) usually contains thousands of unique colors. This program uses K-Mean algorithm to find out the significant colors in an image and represents the image with less number of colors.
The colors present in the output image are exported as a CSV file.

Cite As

Athi (2022). Color Quantization (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Porosity Calculator for SEM Images

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!