How to use kernels larger than 10 in unsharpmask?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
thodberg
Posts: 11
Joined: 2008-01-09T14:56:52-07:00

How to use kernels larger than 10 in unsharpmask?

Post by thodberg »

I have never been able to use a kernel size larger than 10
when I use the commandline tool -unsharp.

What is the reason for this limitation?

In photoshop it is possible to use a radius/kernel size
larger than 10 and through this it is possible to obtain
effect that is similar to what is optained through
a high pass filter. For this reason it would be interesting
to use -unsharp with a kernel larger that 10.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to use kernels larger than 10 in unsharpmask?

Post by anthony »

What happens when you try and what is your command line?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to use kernels larger than 10 in unsharpmask?

Post by fmw42 »

thodberg wrote:I have never been able to use a kernel size larger than 10
when I use the commandline tool -unsharp.

What is the reason for this limitation?

In photoshop it is possible to use a radius/kernel size
larger than 10 and through this it is possible to obtain
effect that is similar to what is optained through
a high pass filter. For this reason it would be interesting
to use -unsharp with a kernel larger that 10.

It seems to work for me, but not much difference after 10.

convert rose: rose.jpg
Image

convert rose: -unsharp 10 rose_us10.jpg
Image

convert rose: -unsharp 100 rose_us10.jpg
Image

I am running IM 6.4.5-3 Q16 Mac OSX Tiger

I think you need to play with the other parameters (sigma, amount, threshold)

If you use sigma rather than radius, ie. 0xsigma, then you get an effect similar to Photoshop

convert rose: -unsharp 0x10 rose_us0x10.jpg
Image

convert rose: -unsharp 0x50 rose_us0x50.jpg
Image
Last edited by fmw42 on 2008-11-05T19:47:09-07:00, edited 4 times in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to use kernels larger than 10 in unsharpmask?

Post by magick »

Amount and threshold are available in ImageMagick (e.g. -unsharp 0x1+amount+threshold).
Post Reply