surface blur

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?".
Post Reply
roottree

surface blur

Post by roottree »

how-to create a effect like photoshop surface-blur with IM?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: surface blur

Post by fmw42 »

post links to some input and output example images. not all of us use PS.
roottree

Re: surface blur

Post by roottree »

ohh, sorry
original http://i1.fastpic.ru/big/2010/0203/46/6 ... 7d9f46.jpg
surface blur http://i1.fastpic.ru/big/2010/0203/d8/9 ... 53a7d8.jpg
look like gaussian-blur, but did't destroy images border

maybe composite gaussian blur and filter(image borders creator...laplacian+overlay)?



P.S. you owner http://www.fmwconcepts.com/ ? great work, read rigth now :)
Last edited by roottree on 2010-02-03T11:13:38-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: surface blur

Post by Bonzo »

Take a look at the operators from the links on this page: http://www.rubblewebs.co.uk/imagemagick/operator.php
The pages are quite large !

Not what you are looking for looking at the images in your last post.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: surface blur

Post by fmw42 »

original

Image

Attempting thresholded gaussian blur:
blur=4
thresh=25
convert freckles.jpg \( -clone 0 -blur 0x${blur} \) -alpha off \
\( -clone 0 -clone 1 -compose minus -composite -auto-level -threshold ${thresh}% -negate \) \
-compose over -composite freckles_b${blur}_t${thresh}.jpg

Image

This is not quite what you want.

I believe what you need is a mean shift algorithm such as in ImageJ. Here is the result from ImageJ

Image

UNFORTUNATELY, IM does NOT have such an algorithm as far as I know.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: surface blur

Post by snibgo »

You can get somewhere close to the Photoshop image with:

Code: Select all

convert freckles.jpg -selective-blur 0x2+08% defreckle1.png
optionally followed by this, repeated a few times:

Code: Select all

convert defreckle1.png -selective-blur 0x1+5% defreckle1.png
Fiddle with the numbers for some variety.

Or you might try:

Code: Select all

convert freckles.jpg -noise 2 defreckle1.png
snibgo's IM pages: im.snibgo.com
roottree

Re: surface blur

Post by roottree »

Yes, I already use noise, but noise 2 or noise 3 fully destroy hair and border of images
-selective-blur is good, play with param :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: surface blur

Post by fmw42 »

snibgo wrote:convert freckles.jpg -selective-blur 0x2+08% defreckle1.png
Nice. I had not tried that.
gnujsa

Re: surface blur

Post by gnujsa »

I can get the same result (nearly identical) with gimp's selective blur, with parameters :
radius : 30, delta : 30

but with imagemagick (6.6.0 Q16), I get some artifacts (sort of posterization in gradient) when i try large delta,
for example : convert -selective-blur 0x5+20%
Post Reply