All Projects → ideasman42 → raster-retrace

ideasman42 / raster-retrace

Licence: other
Image tracing command line utility.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to raster-retrace

Dvisvgm
A fast DVI, EPS, and PDF to SVG converter
Stars: ✭ 134 (+235%)
Mutual labels:  vector-graphics
Compose.jl
Declarative vector graphics
Stars: ✭ 196 (+390%)
Mutual labels:  vector-graphics
fonterator
Load fonts as vector graphics in pure Rust with advanced text layout.
Stars: ✭ 34 (-15%)
Mutual labels:  vector-graphics
Tangram
WebGL map rendering engine for creative cartography
Stars: ✭ 1,964 (+4810%)
Mutual labels:  vector-graphics
Psvg
Programmable Scalable Vector Graphics -- drawings that draw themselves
Stars: ✭ 177 (+342.5%)
Mutual labels:  vector-graphics
Picasso
Picasso is a high quality 2D vector graphic rendering library. It support path , matrix , gradient , pattern , image and truetype font.
Stars: ✭ 205 (+412.5%)
Mutual labels:  vector-graphics
Svg.skia
An SVG rendering library.
Stars: ✭ 122 (+205%)
Mutual labels:  vector-graphics
CQULogo
重庆大学视觉标识素材包 --- Visual Identification Bundle of Chongqing University
Stars: ✭ 55 (+37.5%)
Mutual labels:  vector-graphics
Text Attention Heatmap Visualization
Plot the vector graph of attention based text visualisation
Stars: ✭ 181 (+352.5%)
Mutual labels:  vector-graphics
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (+497.5%)
Mutual labels:  vector-graphics
Method Draw
Method Draw, the SVG Editor for Method of Action
Stars: ✭ 2,109 (+5172.5%)
Mutual labels:  vector-graphics
Gerbolyze
Render high-resolution bitmap images to PCB gerber files
Stars: ✭ 169 (+322.5%)
Mutual labels:  vector-graphics
Graphics32
Graphics32 is a graphics library for Delphi and Lazarus. Optimized for 32-bit pixel formats, it provides fast operations with pixels and graphic primitives. In most cases Graphics32 considerably outperforms the standard TBitmap/TCanvas methods.
Stars: ✭ 238 (+495%)
Mutual labels:  vector-graphics
Svglib
Read SVG files and convert them to other formats.
Stars: ✭ 139 (+247.5%)
Mutual labels:  vector-graphics
powerpaint
Kreative PowerPaint - Library and Application for Bitmap and Vector Image Editing
Stars: ✭ 27 (-32.5%)
Mutual labels:  vector-graphics
Ragg
Graphic Devices Based on AGG
Stars: ✭ 127 (+217.5%)
Mutual labels:  vector-graphics
Vectorsynthesis
This library allows the creation and manipulation of vector shapes using audio signals sent directly to oscilloscopes, modified Vectrex consoles, ILDA laser displays, and oscilloscope emulation software using the Pure Data programming environment. Please scroll down for more info in the README below.
Stars: ✭ 199 (+397.5%)
Mutual labels:  vector-graphics
vectorexpress-api
Vector Express is a free service and API for converting, analyzing and processing vector files.
Stars: ✭ 66 (+65%)
Mutual labels:  vector-graphics
Generative-Art
A selection of generative art scripts written in Python
Stars: ✭ 284 (+610%)
Mutual labels:  vector-graphics
Lazpaint
🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
Stars: ✭ 236 (+490%)
Mutual labels:  vector-graphics

Raster Retrace

Image tracing utility.

Feature Set

  • Curve (re)fitting, using an iterative simplification algorithm: see curve-fit-nd library.
  • Black and white image tracing.
  • Corner detection (with angle threshold).
  • SVG vector output.

Note

This is an initial release, currently this tool works but only loads PPM images and writes out SVG.

Support for other image formats is planned.

Examples

Examples below use TANGENT and PIXEL passes to show the curve fit.

https://cloud.githubusercontent.com/assets/1869379/26520327/6cead016-4313-11e7-9a98-1ec17fdb5a23.png
https://cloud.githubusercontent.com/assets/1869379/26520404/42cfb506-4315-11e7-9f76-a83edb73f868.png
https://cloud.githubusercontent.com/assets/1869379/26520321/6049d294-4313-11e7-82a8-9c29e40c3b43.png
https://cloud.githubusercontent.com/assets/1869379/26520354/1bd0f858-4314-11e7-9f78-604d0fab5f5d.png
https://cloud.githubusercontent.com/assets/1869379/26520322/62e16620-4313-11e7-9a2f-550c015776ee.png

Usage

::

Bitmap image tracing utility

Options:
-h, --help Print help text

File Options:

-i, --input FILEPATH
 The file path to use for input
-o, --output FILEPATH
 The file path to use for writing

Tracing Behavior:

-m, --mode MODE
 The method used for tracing the image in [OUTLINE, CENTER], (defaults to OUTLINE).
-z, --turnpolicy POLICY
 Method for extracting outlines [BLACK, WHITE, MAJORITY, MINORITY], (defaults to MAJORITY).

Curve Evaluation Options:

Parameters controlling curve evaluation behavior.

-e, --error PIXELS
 The error threshold (defaults to 1.0)
-t, --simplify PIXELS
 Simplify polygon before fitting (defaults to 2.0)
-c, --corner DEGREES
 The corner threshold (pi or greater to disable, defaults to 30.0)
--optimize-exhaustive
 When passed, perform exhaustive curve fitting (can be slow!)

Output Options:

Generic options for output (format agnostic).

-s, --scale SCALE
 Scale for output, (defaults to 1).
-p, --passes PASSES
 Write extra debug graphics, comma separated list of passes including [PIXEL, PRE_FIT, TANGENT], (defaults to []).
--pass-scale SCALE
 Scale graphic details used in some debug passes, (defaults to 1).

TODO

While the basics work, currently there are areas for improvement.

  • Support for multiple image formats (most likely using the piston crate).
  • Improve bitmap outline extraction method.
  • Improve center-line extraction method.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].