How do I get "-selective-blur" to work?

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
KonfuseKitty
Posts: 18
Joined: 2010-07-16T15:54:28-07:00
Authentication code: 8675308

How do I get "-selective-blur" to work?

Post by KonfuseKitty »

Using IM 6.6.3.6 on Ubuntu 10.04, no matter what geometry setting I use with "-selective-blur", the command has no effect. The strange thing is that with a higher setting, the processing takes longer, but no effect in the end. Is this a bug or am I doing it wrong? I use it as "-selective-blur 6x16", or "-selective-blur 16x6", with many different number combinations used in the geometry setting. It may be worth noting that "-adaptive-blur" which has the same syntax works well.
KonfuseKitty
Posts: 18
Joined: 2010-07-16T15:54:28-07:00
Authentication code: 8675308

Re: How do I get "-selective-blur" to work?

Post by KonfuseKitty »

No-one? Fred? Anyone? Does -selective-blur work for you?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do I get "-selective-blur" to work?

Post by fmw42 »

KonfuseKitty wrote:No-one? Fred? Anyone? Does -selective-blur work for you?

Selective blur needs a contrast threshold. I have updated the user documentation on the options page to make that more clear.

Image

convert cameraman.png -selective-blur 0x3+50% cameraman_sblur_0x3_50.png

Image
KonfuseKitty
Posts: 18
Joined: 2010-07-16T15:54:28-07:00
Authentication code: 8675308

Re: How do I get "-selective-blur" to work?

Post by KonfuseKitty »

Thanks, Fred, that works. Playing around with the settings, "-selective-blur 4x4+10%" produces good results for colour noise reduction. Cheers! :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do I get "-selective-blur" to work?

Post by fmw42 »

KonfuseKitty wrote:Thanks, Fred, that works. Playing around with the settings, "-selective-blur 4x4+10%" produces good results for colour noise reduction. Cheers! :)

Yes, I used an overkill 50% to emphasize the fact. I found 10 - 25% more pleasing, also
Post Reply