fractal-mosaics/README.md

38 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

# Fractal Mosaics (Tower fork)
2013-04-25 14:39:40 -07:00
Fork of [s-ben/Fractal-Mosaics](https://github.com/s-ben/Fractal-Mosaics) adapted for the Tower **mosaik** drop-inbox.
2013-04-30 15:46:54 -07:00
Upstream implements a rotation / scale / translation invariant photomosaic algorithm (log-polar registration + CBIR prefilter + large-first placement). Original code is MATLAB (GPL-3.0). This repository keeps the unpacked MATLAB sources under `reference/upstream-matlab/` and ships a **Python CLI** for headless use on Arch/Linux.
2013-05-01 15:03:55 -07:00
## Credit
2013-04-30 15:46:54 -07:00
- Original author: Seth Benton — https://github.com/s-ben/Fractal-Mosaics
- Algorithm write-up: https://s-ben.github.io/Fractal-Mosaics/
- License: GNU GPL v3 (see `LICENSE` and `reference/upstream-matlab/gpl_license.txt`)
2013-04-30 15:46:54 -07:00
## Python CLI (Tower)
2013-04-30 15:21:34 -07:00
```bash
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[cli]'
2013-04-30 15:21:34 -07:00
fractal-mosaic \
--master path/to/target.jpg \
--tiles path/to/tile_pool/ \
--output out.png \
--profile mittel
```
2013-04-30 15:46:54 -07:00
Profiles: `wenig` (fast, larger tiles), `mittel`, `dicht` (more placements, slower).
2013-04-30 15:21:34 -07:00
**Constraints for Tower v1:** geometric transforms + edge alpha only — **no tile recoloring**.
2013-04-30 15:21:34 -07:00
## Layout
2013-04-30 15:21:34 -07:00
| Path | Role |
|------|------|
| `reference/upstream-matlab/` | Unpacked `.m` files from upstream package |
| `reference/package/` | Original `FractalMosaics_package.tar.gz` |
| `src/fractal_mosaic/` | Python engine + CLI |
| docs site (`index.html`, …) | Upstream gh-pages documentation (preserved) |