Skip to content

fifiteen82726/median_cut

Repository files navigation

Environment

python 2.7.10

Install dependency

pip install PIL
pip install numpy

Run

python median-cut.py
# Create 4 new images called quantized-image1.jpg to quantized-image4.jpg

Result

Origin

t1

Quantized Image

1 bit

image1

2 bit

image2

4 bit

image4

8 bit

image8

About

implement median cut algorithm in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages