Page 1 of 1

surface blur

Posted: 2010-02-03T07:43:26-07:00
by roottree
how-to create a effect like photoshop surface-blur with IM?

Re: surface blur

Posted: 2010-02-03T10:23:50-07:00
by fmw42
post links to some input and output example images. not all of us use PS.

Re: surface blur

Posted: 2010-02-03T10:53:58-07:00
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 :)

Re: surface blur

Posted: 2010-02-03T10:54:11-07:00
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.

Re: surface blur

Posted: 2010-02-03T11:54:42-07:00
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.

Re: surface blur

Posted: 2010-02-04T00:39:37-07:00
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

Re: surface blur

Posted: 2010-02-04T01:04:49-07:00
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 :)

Re: surface blur

Posted: 2010-02-04T10:31:28-07:00
by fmw42
snibgo wrote:convert freckles.jpg -selective-blur 0x2+08% defreckle1.png
Nice. I had not tried that.

Re: surface blur

Posted: 2010-04-21T16:06:46-07:00
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%