https://github.com/tw1ddle/geometrize-lib
:large_orange_diamond: C++ library for Geometrize, a tool for geometrizing images into geometric primitives
https://github.com/tw1ddle/geometrize-lib
art cpp cpp-library geometrize geometry geometry-processing hill-climbing
Last synced: about 2 months ago
JSON representation
:large_orange_diamond: C++ library for Geometrize, a tool for geometrizing images into geometric primitives
- Host: GitHub
- URL: https://github.com/tw1ddle/geometrize-lib
- Owner: Tw1ddle
- License: other
- Created: 2017-02-12T00:38:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T19:34:15.000Z (about 2 years ago)
- Last Synced: 2025-08-11T14:43:50.878Z (2 months ago)
- Topics: art, cpp, cpp-library, geometrize, geometry, geometry-processing, hill-climbing
- Language: C++
- Homepage: https://www.geometrize.co.uk/
- Size: 8.58 MB
- Stars: 67
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.geometrize.co.uk/)
[](https://github.com/Tw1ddle/geometrize-lib/blob/master/LICENSE)
[](https://ci.appveyor.com/project/Tw1ddle/geometrize-lib)[Geometrize](https://www.geometrize.co.uk/) is a C++ library based on [primitive](https://github.com/fogleman/primitive). It recreates images as geometric primitives.
[](https://www.geometrize.co.uk/)
## Features
* Geometrize images into shapes.
* Export the results as SVG, JSON and more.## Usage
Refer to the minimal [example](https://github.com/Tw1ddle/geometrize-lib-example) project and read the [documentation](https://tw1ddle.github.io/geometrize-lib-docs/). These projects may also be useful references:
| Project |
|--------------------------------------------------------------------|
| [Geometrize App](https://github.com/Tw1ddle/geometrize) |
| [Example](https://github.com/Tw1ddle/geometrize-lib-example) |
| [Fuzz Tests](https://github.com/Tw1ddle/geometrize-lib-fuzzing) |
| [Unit Tests](https://github.com/Tw1ddle/geometrize-lib-unit-tests) |
| [Documentation](https://github.com/Tw1ddle/geometrize-lib-docs) |See the [top level repo](https://github.com/Tw1ddle/geometrize-top-level-repo) for a listing of all the repositories included in the Geometrize project.
## Shape Comparison
The matrix below shows typical results for a combination of circles, triangles, rotated rectangles, rotated ellipses and all supported shapes at 50, 200 and 500 total shapes:
| - | 50 Shapes | 200 Shapes | 500 Shapes |
| ------------------ | ------------- | ------------- | ------------ |
| Circles | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| Triangles | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| Rotated Rectangles | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| Rotated Ellipses | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |
| All Shapes | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) | [](https://www.geometrize.co.uk/) |## Screenshots
See the [gallery](https://gallery.geometrize.co.uk/).
## Resources
See the Geometrize [resources](https://resources.geometrize.co.uk/) page.
## Notes
* Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on [Twitter](https://twitter.com/Sam_Twidale).