| Sharpen |
Function
Un-sharp masking is used for the 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
(for example,
greater than 3 percent of the image size) return undesirable results. You can
also
use the
sharpen
filter in the Convolve function, but ringing may result.
|
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