Skip to content

JsThiago/color-quantize

 
 

Repository files navigation

color-quantize

color quantization

Example:

octave:70>  X = imread ('lena.png');
octave:71>  [C, id] = impalette (X, 3, 'EUCLIDEAN');
octave:72>  [idx, Xq] = imquantize (X, C, 'EUCLIDEAN', 'FLOYDSTEINBERG');
octave:73>  image (uint8(Xq));
octave:74> imwrite (uint8(Xq), 'lena-n3-euclidean-floydsteinberg.png')

lenaquantized

About

color quantization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 94.5%
  • M 3.2%
  • Shell 2.3%