From e9e446eaf5ba2ddb299e1830717f036386545664 Mon Sep 17 00:00:00 2001 From: Linus Mossberg Date: Fri, 27 Mar 2020 12:28:47 +0100 Subject: [PATCH] Add report and update readme + images --- README.md | 66 ++++++++++++++++++++++++++----------------------------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index e89d640..15dc4e4 100644 --- a/README.md +++ b/README.md @@ -3,65 +3,61 @@ ### Wheat Field with Cypresses - *Vincent van Gogh*
- Button Mosaic of the painting 'Wheat Field with Cypresses' by Vincent van Gogh + Button mosaic of the painting 'Wheat Field with Cypresses' by Vincent van Gogh
### The Great Wave off Kanagawa - *Hokusai*
- Button Mosaic of the painting 'The Great Wave off Kanagawa' by Hokusai + Button mosaic of the painting 'The Great Wave off Kanagawa' by Hokusai
-### Girl with a Pearl Earring - *Johannes Vermeer* +### The Scream (1910 version) - *Edvard Munch* -
- Button Mosaic of the painting 'Girl with a Pearl Earring' by Johannes Vermeer +
+ Button mosaic of the painting 'The Scream' (1910) by Edvard Munch
-### The Scream - *Edvard Munch* +More results are availible in [output_images](output_images). -
- Button Mosaic of the painting 'The Scream' by Edvard Munch - -
+## Report -### De Tio Största, nr 3 - *Hilma af Klint* +A report describing this work in more detail is available [here](report.pdf). -
- Button Mosaic of the painting 'De Tio Största, nr 3' by Hilma af Klint - -
+## Usage + +Set the MATLAB working directory to the *source* directory to use the program. The simplest use is then: +``` +[mosaic, corrected] = buttonMosaic(image); +``` +where the input *image* is the RGB-image that should be reproduced and the outputs *mosaic* and *corrected* are the resulting mosaics with and without color correction. For more advanced use, see [source/examples.m](source/examples.m). -### American Gothic - *Grant Wood* +### Total Button Reduction +The number of total buttons used in the reproduction can be reduced by increasing the minimum circle area, *circle_packing_settings.min_radius*. -
- Button Mosaic of the painting 'American Gothic' by Grant Wood +
+

Images reproduced with different numbers of total buttons:

+ Images reproduced with different numbers of total buttons
-### Braided Streams - *Katmai National Park and Preserve* - -
- Button mosaic of a photo of braided streams by Katmai National Park and Preserve - +
+

Circle packing with mimimum radius decreasing by one pixel each frame:

+ Circle-packing GIF with diffrent minimum circle radius +
-[Source Photo](https://www.flickr.com/photos/katmainps/43417091514) - -## Circle Packing - - +### Unique Button Reduction +The program also has a setting to limit the number of unique buttons used in the reproduction, *mosaic_settings.unique_button_limit*. The program picks the most perceptually important buttons needed to reproduce the given reference image using K-means in CIELAB space. This is similar to Lloyd-Max quantization using the LBG-algorithm. -## Usage - -Set the MATLAB working directory to the *source* directory to use the program. The simplest use is then: -``` -[mosaic, corrected] = buttonMosaic(image); -``` -where the input *image* is the RGB-image that should be reproduced and the outputs *mosaic* and *corrected* are the resulting mosaics with and without color correction. For more advanced use, see [source/examples.m](source/examples.m). +
+

Images reproduced with different numbers of unique buttons:

+ Images reproduced with different number of unique buttons + +
## Requirements