Function
We use un-sharp masking for our sharpening filter. This process blurs the image
slightly, takes the difference between the blurred result and the input image,
and adds that back over the input image. High values of x and yPixels
(say, greater than 3% of the image size) will return undesirable results. You
can also use the sharpen filter in the Convolve
function, but this may give you ringing.
Parameters
|
Type
|
Defaults
|
Function
|
percent |
float
|
20 | The amount of mixing between the sharpened and the original image. 100 means none of the original image is present. |
x/yPixels |
float
|
3,xPixels |
The amount of sharpening as described in pixels. |
channels |
string
|
"rgba" | Which channels Shake should sharpen. Any or all of rgba. Default is "rgba" |
Synopsis
image Sharpen( image, float percent, float xPixels, float yPixels, const char * channels );
Script
image = Sharpen( image, percent, xPixels, yPixels, "channels" );
Command Line
shake -sharpen percent xPixels yPixels