Speed-up tips for -unsharp
Posted: 2007-08-25T13:17:06-07:00
Background:
1. <http://redskiesatnight.com/Articles/IMsharpen/> gives these suggestions on radius values:
-unsharp <radius>{x<sigma>}{+<amount>}{+<threshold>}
How do you know how big of a radius to use? It depends on your output target resolution, for one thing. It also depends on your personal preferences, as well as the specific needs of the image at hand. As far as the resolution issue goes, the GIMP User Manual recommends that unsharp mask radius be set as follows:
radius = (output ppi / 30) * 0.2
Which is very similar to another commonly found rule of thumb:
radius = output ppi / 150
2. Anthony said this (in another thread) about -unsharp :
[[ The most important factor is the sigma. As it is the real control of the sharpening operation. It is only due to hostorical accident it is the second term in the above. It can be any floating point value from .1 for practically no sharpening to 3 or more for sever shaprening. 0.5 to 1.0 is rather good. Radius is just a limit of the effect as is the threshold. Radius is only in interger units as that is the way the algorithm works, the larger it is the slower it is. But it should be at a minumum 1 or better still 2 times the sigma. ]]
Now the QUESTIONS:
My final output for a book publishing project has to be 600 dpi, which per #1 would indicate that my radius should be 4 and my sigma 2. But when I ran -unsharp at 0x1 it took 5 hours to finish a 1.0M JPEG! I'm using a PowerPC Mac operating at 1.8 gz with no special graphics processing hardware. And... I have 100+ pages to do.
So:
a) Is 5 hours to -unsharp a 1M scanned JPEG (text document) sound about right, or is something very wrong??
b) what software variables should be taken into account to speed things up? e.g. not running other apps, or running IM concurrently on several images at once
c) do I need to find another machine that has some kind of special graphics processor or other hardware, or tons of RAM, or faster clock speed, or ??
Any tips/suggestions will be appreciated!
1. <http://redskiesatnight.com/Articles/IMsharpen/> gives these suggestions on radius values:
-unsharp <radius>{x<sigma>}{+<amount>}{+<threshold>}
How do you know how big of a radius to use? It depends on your output target resolution, for one thing. It also depends on your personal preferences, as well as the specific needs of the image at hand. As far as the resolution issue goes, the GIMP User Manual recommends that unsharp mask radius be set as follows:
radius = (output ppi / 30) * 0.2
Which is very similar to another commonly found rule of thumb:
radius = output ppi / 150
2. Anthony said this (in another thread) about -unsharp :
[[ The most important factor is the sigma. As it is the real control of the sharpening operation. It is only due to hostorical accident it is the second term in the above. It can be any floating point value from .1 for practically no sharpening to 3 or more for sever shaprening. 0.5 to 1.0 is rather good. Radius is just a limit of the effect as is the threshold. Radius is only in interger units as that is the way the algorithm works, the larger it is the slower it is. But it should be at a minumum 1 or better still 2 times the sigma. ]]
Now the QUESTIONS:
My final output for a book publishing project has to be 600 dpi, which per #1 would indicate that my radius should be 4 and my sigma 2. But when I ran -unsharp at 0x1 it took 5 hours to finish a 1.0M JPEG! I'm using a PowerPC Mac operating at 1.8 gz with no special graphics processing hardware. And... I have 100+ pages to do.
So:
a) Is 5 hours to -unsharp a 1M scanned JPEG (text document) sound about right, or is something very wrong??
b) what software variables should be taken into account to speed things up? e.g. not running other apps, or running IM concurrently on several images at once
c) do I need to find another machine that has some kind of special graphics processor or other hardware, or tons of RAM, or faster clock speed, or ??
Any tips/suggestions will be appreciated!