fractal-mosaics/README.md

43 lines
2.7 KiB
Markdown
Raw Normal View History

2013-04-25 14:39:40 -07:00
Fractal-Mosaics
===============
2013-04-30 15:48:38 -07:00
Fractal Mosaics is a rotation, scale, and translation invariant photomosaic algorithm (i.e., the images can be placed at arbitrary locations, can be scaled to any size, and can be rotated by any angle).
2013-04-30 15:46:54 -07:00
2013-05-01 15:03:55 -07:00
The figure below shows a Fractal Mosaic and traditional photomosaic made using the same target image and image set.
2013-05-01 15:03:40 -07:00
![Photomosaic New Algorithm Fractal Eye](https://raw.github.com/s-ben/Fractal-Mosaics/gh-pages/images/fractal_trad_compare.png?login=s-ben&token=174f9368670265a272b500a411d902da)
2013-04-30 15:46:54 -07:00
2013-05-01 15:04:35 -07:00
For a detailed description of the algorithm, see my "[paper](http://s-ben.github.io/Fractal-Mosaics/)" on it and documentation links below.
2013-04-30 15:46:54 -07:00
2013-04-30 15:21:34 -07:00
# Prerequisites
2013-04-30 15:23:47 -07:00
Fractal Mosaics is implemented in Matlab. You’ll need a copy of Matlab with the Signal Processing toolbox installed (any version should work, most should come with the Signal Processing toolbox).
2013-04-30 15:21:34 -07:00
2013-04-30 15:46:54 -07:00
2013-04-30 15:21:34 -07:00
# Getting Started
2013-05-02 12:01:39 -07:00
1. Download the [demo example](https://github.com/s-ben/Fractal-Mosaics/blob/gh-pages/code/FractalMosaics_package.zip). This has all the code you need. Simply modify the example to create your own mosaics.
2. Download the [example image set](https://docs.google.com/file/d/0B_2ApIVBvXm1RlFjTmVwUXRIcms/edit?usp=sharing) (706 MB database of images of San Francisco).
2013-04-30 15:21:34 -07:00
3. Unpack zip file with images into the /library_images folder in the demo example.
4. Navigate to the /m-files directory
5. Run ‘fractal_mosaic.m’
Your mosaic is now rendering.
2013-05-01 14:31:02 -07:00
WARNING: it takes a long time to render a mosaic (~6 to 8 hrs on my macbook pro). If you want to optimize it, please do ;)
2013-04-30 15:21:34 -07:00
2013-05-02 12:14:36 -07:00
The demo example creates a black and white mosaic. This is because color takes ~3X as long. To create a color mosaic, download the [color image set](https://docs.google.com/file/d/0B_2ApIVBv Xm1ckhjX3RibVVPdkk/edit?usp=sharing), and set Fractal Mosaics to color mode (see the [Variables](https://github.com/s-ben/Fractal-Mosaics/wiki/Variables) page for info on this).
2013-04-30 15:21:34 -07:00
# Documentation
2013-05-02 11:57:47 -07:00
* [Fractal Mosaic “paper”](http://s-ben.github.io/Fractal-Mosaics/): academic-style paper explaining how the algorithm works
* [Wiki](https://github.com/s-ben/Fractal-Mosaics/wiki): includes pages with step-by-step instructions on how to create your own mosaic and description of variables used to tweak mosaic output.
* [Gallery](http://www.flickr.com/photos/travelingseth/sets/72157623789223762/): Flickr page containing finished mosaics
2013-04-25 14:39:40 -07:00
2013-05-01 14:26:29 -07:00
# Licencing
Fractal Mosaics is licensed under the GNU General Public License ([GPL](http://www.gnu.org/licenses/gpl.txt)). If you wish to use Fractal Mosaics for proprietary software, let's talk! (seth.benton@gmail.com)
2013-05-01 14:19:18 -07:00
[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/80d211511c492cf9dce9dd9841acf603 "githalytics.com")](http://githalytics.com/s-ben/Fractal-Mosaics)