Inkscape tutorial: Tracing bitmaps

Inkscape

Tutorial | Tracing bitmaps

One of the features in Inkscape is a tool for tracing a bitmap image into one or more <path> elements for your SVG drawing. These short notes should help you become acquainted with how it works.

Gogoan izan Bektorizatzailearen helburua ez dela jatorrizko irudiaren kopia zehatza lortzea; ezta bukatutako produktua lortzea ere. Ez dago hori lor dezakeen bektorizatzaile automatikorik. Egiten duena zera da, zure marrazkietan baliabide gisa erabil ditzakezun kurba multzoa sortzen du.

Our tracer, derived from the original Potrace library by Peter Selinger, interprets a black and white bitmap, and produces a set of curves. For Potrace, we currently have three types of input filters to convert from the raw image to something that Potrace can use.

Orokorrean, gero eta pixel ilun gehiago egon tarteko bit-mapan, Potrace-k bektorizazio gehiago burutuko du. Bektorizatze kopurua gora doan heinean, PUZ gehiago beharko da, eta <bide> elementua askoz handiagoa izango da. Gomendagarria da erabiltzaileak tarteko irudi argiagoekin saiatzea lehenbizi, gradualki ilunagoetara pasatuz helburuko bidearen proportzio eta konplexutasuna lortu arte.

To use the tracer, load or import an image, select it, and select the PathTrace Bitmap item, or Shift+Alt+B.

The user will see the five filter options available:

  • Brightness Cutoff

Honek soilik pixel baten gorri, berde eta urdinen (edo grisen itzalen) batura erabiltzen du erabakitzeko beltza edo zuria izan behar duen. Atalasea 0,0tik (Beltza) 1.0ra (zuria) ezar daiteke. Gero eta atalase handiagoa, gero eta pixel gutxiago antzemango dira “txuri” bezala, eta bitarteko irudia ilunagoa izango da.

  • Edge Detection

Honek ertz detekziorako J. Canny-k asmatutako algoritmoa erabiltzen du antzeko kontrastea duten isoklinak azkar topatzeko. Honek jatorrizko irudiarekin antzekotasun gutxiago izango duen tarteko bit-mapa sortzen du Distira mozketarekin konparatuta, baina ziur aski beste modura galduko litzatekeen kurben informazioa eskainiko du.

  • Kolore Kuantizazioa

Iragazki honek beste biekin alderatuta tarteko irudi oso diferentea sortuko du, baina oso erabilgarria egia esanda. Distira edo kontrasteko isoklinak erakutsi ordez, kolorea aldatzen duten ertzak bilatuko ditu, nahiz eta distira eta kontraste berdina eduki. Zehaztu daitekeen balioa, Korore kopurua, tarteko bit-mapan egongo diren irteera kopurua adierazten du, tarteko irudia koloretan izatekotan. Ondoren zuri/beltza edo kolorearen indizea bakoiti edo bikoitia den erabakiko du.

Erabiltzaileak hiru iragazkiak frogatu beharko lituzke, eta irudi mota ezberdinek sortzen dituzten emaitza ezberdinak aztertu. Beti egongo da irudi bat non iragazki bat besteak baino aproposagoa den.

After tracing, it is also suggested that the user try PathSimplify (Ctrl+L) on the output path to reduce the number of nodes. This can make the output of Potrace much easier to edit. For example, here is a typical tracing of the Old Man Playing Guitar:

Note the enormous number of nodes in the path. After hitting Ctrl+L, this is a typical result:

Irudikapena apur bat zakarragoa eta originarela gutxiago hurbiltzen da, baina marrazkia askoz sinpleagoa eta editatzeko errazagoa da. Gogoan izan zuk nahi duzuna ez dela irudiaren bektorizazio zehatza, baizik eta zure marrazkian erabil ditzakezu kurba multzoa.

  • Autotrace

The Autotrace option uses a different algorithm for tracing and also offers some other parameters to tweak. It may take a little longer to work, but gives you some variety to choose from.

  • Centerline tracing (autotrace)

If you would like to vectorize a line drawing, and get strokes that are easy to modify instead of filled areas as a result, use this option. It will attempt to find contiguous lines that make up your drawing.

Authors: Bulia Byak; Jonathan Leighton; Colin Marquardt; Nicolas Dufour; Gellért Gyuris; Maren Hachmann

Translators: Ales Zabala Alava (Shagi) — ; Maider Likona Santamarina — 2009

Header / footer design: Esteban Capella — 2019