Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 383 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 383 Bytes

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