reorganize examples & add script to make them
14
README.md
|
|
@ -1,14 +1,14 @@
|
|||
# image-triangles
|
||||
|
||||
Makes a [voroni diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) and fills each cell with the average color the image below in.
|
||||
Makes a [voronoi diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) and fills each cell with the average color the image below in.
|
||||
|
||||
### examples
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
|
||||
### to run:
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 4.9 MiB |
|
Before Width: | Height: | Size: 13 MiB After Width: | Height: | Size: 13 MiB |
|
Before Width: | Height: | Size: 820 KiB After Width: | Height: | Size: 820 KiB |
|
Before Width: | Height: | Size: 372 KiB After Width: | Height: | Size: 372 KiB |
|
Before Width: | Height: | Size: 4.4 MiB |
BIN
examples/outputs/birds-eye-view.png
Normal file
|
After Width: | Height: | Size: 4.9 MiB |
BIN
examples/outputs/luna.jpeg
Normal file
|
After Width: | Height: | Size: 4.2 MiB |
BIN
examples/outputs/sierra.jpeg
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 2.1 MiB |
3
generate-outputs.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
nix build;
|
||||
ls examples/inputs | xargs -I aoeui --max-procs=0 ./result/bin/image-triangles --minDistance 0.01 --input ./examples/inputs/aoeui --output examples/outputs/aoeui
|
||||