Python版本的low-poly

这个问题启发,用python写了个low-poly generater,十分丑陋需要自己调参,为了用一个Poisson Sampling还调用了Octave(用oct2py库),运行效率十分地下……

项目地址:Github

##Samples

Raw picture (samples/raw/a.jpg)

Raw a.jpg

Processed picture (samples/processed/a.jpg)

Processed a.jpg

Command line

python low_poly.py samples/raw/a.jpg 60 3 samples/processed/a.jpg

Raw picture (samples/raw/b.jpg)

Raw a.jpg

Processed picture (samples/processed/b.jpg)

Processed a.jpg

Command line

python low_poly.py samples/raw/b.jpg 60 3.5 samples/processed/b.jpg

Raw picture (samples/raw/c.png)

Raw a.jpg

Processed picture (samples/processed/c.png)

Processed a.jpg

Command line

python low_poly.py samples/raw/c.png 30 2 samples/processed/c.png

Raw picture (samples/raw/d.jpg)

Raw a.jpg

Processed picture (samples/processed/d.jpg)

Processed a.jpg

Command line

python low_poly.py samples/raw/d.jpg 50 1 samples/processed/d.jpg