Giter VIP home page Giter VIP logo

rez's Introduction

Rez

Raster image edge vectorizer.

Installation

Install the DMD 2 compiler (using the MinGW setup option on Windows).

Build the executable with the following command line :

dmd -m64 rez.d color.d png.d

Command line

rez [options]

Options

--read-png <image path> [minimum luminance] [maximum luminance] [first luminance] [last luminance] : read an image in PNG format
--binarize <minimum luminance> : binarize the image
--trace <maximum luminance distance> <mask definition> ... : trace the lines
--vectorize <minimum luminance> <maximum position distance> : vectorize the edges
--write-png <image path> [pixel color] : write the image in PNG format
--write-svg <drawing path> [line width] [line color] : write the edges in SVG format
--write-obj <mesh path> [pixel size] [edge height] : write the edges in OBJ format

Mask definition

<image path|width.height>@[maximum bad pixel count]:[rotation count]/[rotation angle]

Examples

rez --read-png test.png 64 255 255 0 --trace 128 4.12@3:2 --write-png OUT/test.png

Traces the lines of an image and writes them in PNG format.

rez --read-png test.png --vectorize 128 0.5 --write-svg OUT/test.svg 1 --write-obj OUT/test.obj 0.01 2.5

Vectorizes the edges of an image and writes them in SVG and OBJ format.

Dependencies

Limitations

Only supports PNG files.

Version

1.0

Author

Eric Pelzer ([email protected]).

License

This project is licensed under the GNU General Public License version 3.

See the LICENSE.md file for details.

rez's People

Contributors

senselogic avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.