diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2019-12-02 15:29:58 +0000 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2019-12-02 15:29:58 +0000 |
| commit | 8a376c5746f7cb403617fe198ab01c6fd6819fd9 (patch) | |
| tree | bf59f1ec26085f88b9a8685c8ee1ce7c8c586f8f /README.md | |
| parent | 1cedebbaec6dd12a14cdf0906220c581c09ab9d5 (diff) | |
| parent | d791dbc1d5837af34e394d090d0c715e287eb875 (diff) | |
| download | distill-8a376c5746f7cb403617fe198ab01c6fd6819fd9.tar.xz distill-8a376c5746f7cb403617fe198ab01c6fd6819fd9.zip | |
Merge branch 'master' of github.com:jamesbarnett91/distill
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -1,8 +1,14 @@ # distill -`distill` is a small go program which takes an image and redraws a primitive version using only extremely simplified shape and colour informaion. It's designed to be run against artistic works (e.g. paintings) but works with any image. +`distill` is a small go program which takes an image and redraws a primitive version using only extremely simplified shape and colour informaion. It's designed to be run against works of art, but any input image can be used. -While the output is basic, `distill` tries to generate recognisable images which retain the character and substance of the original. Whether it succeeds at this or not is up to you. +<p align="center"> + <img width="425" src="samples/persistence-orig.jpg"> + <span/> + <img width="425" src="samples/persistence-dist.png"> +</p> + +While the output is basic, `distill` tries to generate recognisable images which retain the character and substance of the original. Whether it succeeds at this or not is up to you. ## Running Download a binary release (todo) or fetch the package @@ -40,4 +46,15 @@ The average colour of each block is calculated. This creates an extremely low re The average colour of each block is compared to the previously extracted dominant colours. The block colour is set the the closest dominant colour based on its [euclidean distance](https://en.wikipedia.org/wiki/Euclidean_distance) in the [Lab](https://en.wikipedia.org/wiki/CIELAB_color_space) colour space. ## Samples -TODO + +<p align="center"> + <img width="425" src="samples/nighthawks-dist.png"> + <span/> + <img width="425" src="samples/wave-dist.png"> +</p> + +<p align="center"> + <img width="425" src="samples/starry-night-dist.png"> + <span/> + <img width="425" src="samples/pearl-dist.png"> +</p> |