Skip to content

gromchek/polyatlas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polygonal atlas builder

This tool detects contour of an object, splits it into polygons and packs them into a big atlas. Example output Example output (debug version)

Build

mkdir build & cd build cmake .. cmake --build .

Args

--max_size
      set max size of atlas (default: 2048)
--output
      output atlas name (default: atlas)
--config
      Output config type: json or lua (default: json)
--dir
      path to images directory (default: .)
--trim
      trim atlas size (default: false)
--debug
      draw debug atlas (default: false)
--ignore
      ignore files in ignore.txt (default: false)

In ignore.txt you should write files path line by line like:

images/fig90.png
images/fig91.png

Dependencies

OpenCV

License

MIT

About

polygonal atlas builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published