Inkscape.org
Beyond the Basics Tracing bitmaps: from bitmap line to vector
  1. #1
    David49 David49 @David49

    Hi,

    I want to trace a bitmap, it is a map. The idea is to engrave it on wood with laser.

    Here we can see the black lines (nevermind the names).

     

    When zooming in, we can start seeing the pixelated image

    The bitmap tracing works pretty well 

     

    but if i set the fill to none and the stroke to black this is what I get, a double line:

    This would give a very bad result when laser engraving.

    Is there a way to get a single line?

    I've been trying to interpolate between lines, but it was a dissaster

    thanks

     

  2. #2
    COD COD @COD

    If you just want the outline 
     

  3. #3
    David49 David49 @David49

    Hi,

    I need all the regions

    But what you did it is very nice. How have you done it?

     

  4. #4
    David49 David49 @David49

    Actually, your lines are smoother, which is better (less zigzags, more clarity)

  5. #5
    COD COD @COD

     

  6. #6
    COD COD @COD

    The first one was using the Bucket Fill tool using the Alpha channel.
    The second one was Trace Bitmap - Center Line Tracing - single pass with all options disabled. Then node edit the names out. 

    Something like this - it won't be perfect. If you overlay all 3 you will see the differences. 

    Do you plan to etch and cut? I would do a Path Effect>Offset with a 10mm setting on the Blue Outline. 

  7. #7
    David49 David49 @David49

    Great tips.

    About the bucket, I don't understand what you mean with the Alpha Channel. I tried with a rectangle around the map and then the bucket command works

    The Center Line Tracing tool is very nice.I didn't know about it. The result is good, but one needs to correct a bit (there are some gaps, some "steep" corners) but overall it is fine.

    The idea is cutting the perimeter and mark the inner regions. Why the 10mm offset?

    thank you very much for all

  8. #8
    COD COD @COD

    When you select the Paint Bucket tool you can select the type of fill. 

    10mm offset - I assumed you were also going to laser cut as well as engrave.

    The Center Tracing tool. Just came across an issue with that. Where it tends to chop at the perimeter. Lets see if I can find the post that can correct that issue.

     

  9. #9
    COD COD @COD

    Ok- I found the fix for Centerline Tracing if the result is getting "chopped" on one or more sides.

    https://gitlab.com/inkscape/inbox/-/issues/11763


     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Tracing bitmaps: from bitmap line to vector