quantize¶
quantize an image to a smaller set of colors
$ pierogis quantize input.jpg -c aaaaaa 43ad32 696969 --repeats 3 --iterations 3
$ # or
$ pierogis quantize input.jpg -n 16 --repeats 3 --iterations 3
Wraps rscolorq in python through pyo3 using
SpatialQuantize
. Thank you to the author of that package.
arg |
description |
default |
valid |
---|---|---|---|
|
hex colors to base palette on (palette size ignored) |
|
|
|
number of colors in the palette to cluster for |
|
|
|
number of times to repeat a temperature for DA |
|
|
|
number of times to iterate a coarseness level |
|
|
|
initial temp to use in DA for optimization |
|
|
|
final temp to use in DA for optimization |
|
|
|
relative dithering level (use .5-1.5) |
|
|
See: QuantizeFilling