A tiny library to generate a mesh of superpixels from some image
This repo can be tested in your browser. See here, where additionally I have an explanation of what this thing can do.
There are a pretty solid algos to generate superpixels, yet, I needed one that:
- Generates a polygon mesh.
- It is an optimal approximation.
You need to have installed:
- Compiler with C++17 features available.
- ceres-solver (tested using version 2.0.0)
To build demo app, you also need
- OpenCV (tested using version 4.5.0, needed modules: core, highui, imgproc, imgcodec)
To enable unit tests:
demo_opencv /path/to/image.ext
- Multilevel mesh partioning, to allow faces with high error to be optimized separately.