Skip to content

SalBakraa/rectilinear-polygon-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rectilinear Polygon Extractor

Description

This is a tool that converts an image with a transparent background to a recilinear polygone. It outputs the points as JSON or SVG if the program is ran with --output-as-svg.

Catch

This program can't handle:

  • Single pixel images
     +---+---+---+
     |   |   |   |
     +---+---+---+
     |   | * |   |
     +---+---+---+
     |   |   |   |
     +---+---+---+
    
  • Images with a protruding single pixel
     +---+---+---+
     |   | * |   |
     +---+---+---+
     | * | * | * |
     +---+---+---+
     |   | * |   |
     +---+---+---+
    
  • Images that contain a multiple sections
     +---+---+---+---+---+---+---+---+---+
     |   | * | * | * | * |   |   |   |   |
     +---+---+---+---+---+---+---+---+---+
     |   | * | * | * | * |   | * | * | * |
     +---+---+---+---+---+---+---+---+---+
     | * | * | * | * | * |   | * | * | * |
     +---+---+---+---+---+---+---+---+---+
     | * | * | * | * | * |   | * | * | * |
     +---+---+---+---+---+---+---+---+---+
     | * | * | * | * | * |   | * | * | * |
     +---+---+---+---+---+---+---+---+---+
     |   |   |   |   |   |   | * | * | * |
     +---+---+---+---+---+---+---+---+---+
    

Build

gcc -o nobuild nobuild.c
./nobuild

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published