Photo to cartoon script

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
festr

Re: Photo to cartoon script

Post by festr »

I've made a blog about my motivation about this subject, it could be usefull for someone.

http://festr.blogspot.com/2010/01/color ... ation.html
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Photo to cartoon script

Post by fmw42 »

festr wrote:Hi, I've been searching for good color segmentation algorithms and noone does not sutisfied me except of http://www.caip.rutgers.edu/~comanici/segm_images.html.

I've created google code mirror to that program and modified it a little bit to allow compile on Linux and fix some bugfixes (segmentation faults). Checkout http://code.google.com/p/colorsegmenter/

There is compiled binary segm which should run on any linux with libstdc++.so.6 and it needs convert program installed.
Hello festr,

Might you be able to give me some pointers as to how I might run or compile your modified code on my Mac OSX. I would greatly appreciate it. I have been trying to install their original code and get all kinds of error messages. I would really like to investigate this code.

Thanks

Fred Weinhaus
fmw at alink dot net
festr

Re: Photo to cartoon script

Post by festr »

have you tried version from http://code.google.com/p/colorsegmenter/ ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Photo to cartoon script

Post by fmw42 »

yes, but it does not recognize the command

segm smhouse.ppm
-bash: segm: command not found

but I don't know about libstdc++.so

Mac does not use .so as far as I know. where can I get libstdc++ for mac? Sorry I know little about Linux.
festr

Re: Photo to cartoon script

Post by festr »

you have to ask to some mac developer
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Photo to cartoon script

Post by fmw42 »

Here are some attempts using IM -segment

original:

Image


convert oriental_lady.jpg -segment 1000x0.5 oriental_lady_seg_1000x0p5.gif

Image


convert oriental_lady.jpg -segment 1000x0.1 oriental_lady_seg_1000x0p5.gif

Image
Post Reply