https://github.com/tomdionysus/gaphoto
GAPhoto is a image-to-SVG converter based on a genetic algorithm
https://github.com/tomdionysus/gaphoto
csharp dotnet genetic-algorithm image-processing svg
Last synced: about 1 month ago
JSON representation
GAPhoto is a image-to-SVG converter based on a genetic algorithm
- Host: GitHub
- URL: https://github.com/tomdionysus/gaphoto
- Owner: tomdionysus
- License: other
- Created: 2019-01-07T21:10:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T01:03:20.000Z (over 7 years ago)
- Last Synced: 2025-01-19T10:45:09.885Z (over 1 year ago)
- Topics: csharp, dotnet, genetic-algorithm, image-processing, svg
- Language: C#
- Size: 232 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.rtf
Awesome Lists containing this project
README
# GAPhoto
GAPhoto is a image-to-SVG converter based on a genetic algorithm, in C#.NET
## Building
Please use Visual Studio 2015 or higher.
## Operation
Starting with a supplied image, GAPhoto creates a canvas with a set of random polygons (selectable). The image and the rendered canvas are then compared to produce a total difference. The random set is then mutated, and compared again. If the new mutated image is 'closer' to the original, the new set is kept, otherwise it is discarded. This process is repeated as fast as the computer will allow, usually around a hundred times a second.
Over a long enough runtime, the render of the set of polygons will approximate the original image to a high degree. The set can be saved in SVG format.
## Credits
* Original code 2012 - Tom Cully
* 2018 Repack and update for Visual Studio - [Ciarán Irvine](https://github.com/cirvine)