Smoothing effect

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
badabou
Posts: 54
Joined: 2008-06-23T06:12:24-07:00

Smoothing effect

Post by badabou »

Hello,

I try to reproduce this effect with imagemagick but I do not find a solution.

Is this possible?

Thank you

Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Smoothing effect

Post by fmw42 »

try

convert image -median 2 result
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Smoothing effect

Post by anthony »

You may also like to try using a raster to vector and back to raster conversion!

See IM examples...
http://www.imagemagick.org/Usage/transform/#edge_vector
and
http://www.imagemagick.org/Usage/draw/#svg_output

It should work well as you have already eliminated anti-aliasing pixels that will often confuse a tool like "autotrace".

NOTE IM does have the ability to make direct use of autotrace when either reading or writing images like this. See the above link for details.


You may also like to clean up and smooth speckles before using autotrace (or median) by using Morphology Operators to smooth the edges a little.
http://www.imagemagick.org/Usage/morphology/#basic
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply