Skip to content

manlito/superpixel-mesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Superpixel Mesh

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.

Motivation

There are a pretty solid algos to generate superpixels, yet, I needed one that:

  • Generates a polygon mesh.
  • It is an optimal approximation.

Building

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:

Running the sample app

demo_opencv /path/to/image.ext

Future work

  • Multilevel mesh partioning, to allow faces with high error to be optimized separately.

About

Superpixels made of quadrilaterals

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published