A photo filter.
Find a file
2024-06-26 12:21:28 -04:00
examples reorganize examples & add script to make them 2024-06-07 03:58:13 -04:00
src voronoi spelling fix 2024-06-26 12:21:28 -04:00
.envrc swapping to voroni diagram 2024-01-19 02:31:19 -08:00
.gitignore ignore pictures & svgs at top level 2024-02-12 12:11:09 -08:00
cabal.project strictly formatting changes 2024-04-18 02:54:07 -07:00
flake.lock svg -> jpeg | different voronoi diagram method 2024-06-07 02:53:06 -04:00
flake.nix run nix fmt 2024-04-19 15:16:50 -07:00
fourmolu.yaml strictly formatting changes 2024-04-18 02:54:07 -07:00
generate-outputs.sh modified generate-outputs to grab xargs using nix-shell 2024-06-07 04:14:33 -04:00
image-triangles.cabal svg -> jpeg | different voronoi diagram method 2024-06-07 02:53:06 -04:00
LICENSE parallelism 2018-12-18 01:32:49 -05:00
README.md correct README examples for new paths 2024-06-07 05:03:02 -04:00

image-triangles

Makes a voronoi diagram and fills each cell with the average color the image below in.

examples

Sierra mountains original Sierra mountains post-filter Hawaii original Hawaii post-filter Dog original Dog post-filter

to run:

with nix

nix run  --experimental-features "nix-command flakes" ".#" -- --minDistance 0.02 --input examples/inputs/birds-eye-view.png --output output.jpeg

with cabal

Install cabal & ghc if you don't have them.

cabal update
cabal run image-triangles -- --minDistance 0.02 --input examples/inputs/birds-eye-view.png --output output.jpeg