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.
How to use kernels larger than 10 in unsharpmask?
- 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?
What happens when you try and what is your command line?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- 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?
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
convert rose: -unsharp 10 rose_us10.jpg
convert rose: -unsharp 100 rose_us10.jpg
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
convert rose: -unsharp 0x50 rose_us0x50.jpg
Last edited by fmw42 on 2008-11-05T19:47:09-07:00, edited 4 times in total.
Re: How to use kernels larger than 10 in unsharpmask?
Amount and threshold are available in ImageMagick (e.g. -unsharp 0x1+amount+threshold).