Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aschinchon/travelling-salesman-portrait
An experiment in R to convert photos into single-line-drawings
https://github.com/aschinchon/travelling-salesman-portrait
drawing mathart portrait r rstats
Last synced: about 1 month ago
JSON representation
An experiment in R to convert photos into single-line-drawings
- Host: GitHub
- URL: https://github.com/aschinchon/travelling-salesman-portrait
- Owner: aschinchon
- License: mit
- Created: 2018-04-04T20:54:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-24T12:04:40.000Z (about 6 years ago)
- Last Synced: 2024-08-06T03:04:57.431Z (5 months ago)
- Topics: drawing, mathart, portrait, r, rstats
- Language: R
- Homepage: https://fronkonstin.com/2018/04/04/the-travelling-salesman-portrait/
- Size: 3.91 KB
- Stars: 87
- Watchers: 7
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Travelling Salesman Portrait
After completing this experiment you will be able to create *one line drawing* from your favorite images. Resulting drawings are obtained using an algorithm to solve The Travelling Salesman Problem (TSP).
For example, if you load this image:
The resulting portrait is this one:
## Getting Started
### Prerequisites
You will need to install the following packages (if you don't have them already):
```
install.packages("imager")
install.packages("dplyr")
install.packages("ggplot2")
install.packages("scales")
install.packages("TSP")
```## More info
A complete explanation of the experiment can be found [at fronkonstin](https://fronkonstin.com/2018/04/04/the-travelling-salesman-portrait/)
## Authors
* **Antonio Sánchez Chinchón** - [@aschinchon](https://twitter.com/aschinchon)