Page 1 of 1

Create lineart from color images

Posted: 2014-02-18T01:31:37-07:00
by RyanBram
When looking for vectorization process, I found a software called mkbitmap by Peter Selinger. It's function is for creating bitonal image as an input for potrace. The following is what the sotware can do :
Original
Image

Thresholding without highpass filter
Image

Code: Select all

mkbitmap -x -t 0.5
Thresholding with highpass filter
Image

Code: Select all

mkbitmap -x -f 2
Are there an equivalent function in ImageMagick especially the one with highpass filter?
Because those function will be useful for creating coloring book for my student by using pre-existing color images.

Regards,
--------------------------------------
See also
mkbitmap man page

Re: Create lineart from color images

Posted: 2014-02-18T02:03:12-07:00
by snibgo
IM contains many operations (sch as "-edge") that may be combined to do this. I wouldn't be surprised if fmw42 has a script for this: http://www.fmwconcepts.com/imagemagick/index.php

Re: Create lineart from color images

Posted: 2014-02-18T11:16:48-07:00
by fmw42
This works reasonably well for me on your original color image. Lines are a bit more discontinuous than in your other software.

Code: Select all

convert loxie-orig.png -negate -separate -lat 5x5+5% -negate -evaluate-sequence add loxie_edge.png
Image

see
http://www.imagemagick.org/script/comma ... ns.php#lat

you can play around with the arguments to try to tweak it better.