Skip to content

Commit

Permalink
Update gitignore and edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
linusmossberg committed Mar 27, 2020
1 parent e9e446e commit 392a2d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
!.gitignore
!README.md
!LICENSE
!report.pdf
!/buttons/
!/source/
!/output_images/
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,24 @@ where the input *image* is the RGB-image that should be reproduced and the outpu
The number of total buttons used in the reproduction can be reduced by increasing the minimum circle area, *circle_packing_settings.min_radius*.

<div about="output_images/total-reduction.jpg">
<p align="center"><i>Images reproduced with different numbers of total buttons:</i></p>
<img src="output_images/total-reduction.jpg" alt="Images reproduced with different numbers of total buttons" title="" />
<a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"></a>
<p align="center"><i>Images reproduced with different numbers of total buttons.</i></p>
</div>

<div about="output_images/circle-packing.gif">
<p align="center"><i>Circle packing with mimimum radius decreasing by one pixel each frame:</i></p>
<img src="output_images/circle-packing.gif" alt="Circle-packing GIF with diffrent minimum circle radius" width="100%" title="" />
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/"></a>
<p align="center"><i>Circle packing with mimimum radius decreasing by one pixel each frame.</i></p>
</div>

### 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.

<div about="output_images/unique-reduction.jpg">
<p align="center"><i>Images reproduced with different numbers of unique buttons:</i></p>
<img src="output_images/unique-reduction.jpg" alt="Images reproduced with different number of unique buttons" title="" />
<a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"></a>
<p align="center"><i>Images reproduced with different numbers of unique buttons:</i></p>
</div>

## Requirements
Expand Down
Binary file added report.pdf
Binary file not shown.

0 comments on commit 392a2d4

Please sign in to comment.