Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lowlevel86/raster-to-vector

A fast way to convert rasterized straight edges into vectors.
https://github.com/lowlevel86/raster-to-vector

Last synced: about 2 months ago
JSON representation

A fast way to convert rasterized straight edges into vectors.

Awesome Lists containing this project

README

        

# raster-to-vector
A fast way to convert rasterized straight edges into vectors.

![](./imgs/01.png) ![](./imgs/02.png)

If given the pixel pattern data of a line bit by bit, it is possible to determine if a line is straight without using loops or slow calculus functions.

This is implemented in the "rastToVec.c" source code.

In the "tests/line_patt" folder the output of the fast method is tested using the output of a different and more slower method.

Objective: to create code that...
* quickly converts edges into vectors
* is practical and easy to use
* uses a single c source code file

Applications:
* landscaping
* home decorating
* CAD
* augmented reality
* real time 3d modeling of the real world
* camera based collision detection systems

Todo List:
* Write edge tracer code
* Demonstrate raster to vector conversion