-proxyscale/SetProxyScale
Function
These identical functions are for setting the proxy size in the command
line or the script to speed up testing. It is identical to turning on
proxies in the interface. For more information on proxies, see About
Proxies and Squeezed Images.
Parameters
|
Type
|
Defaults
|
Function
|
Synopsis
void SetProxyScale(
float proxyScale,
float proxyRatio,
const char * proxyFilter
);
Script
SetProxyScale(
proxyScale,
proxyRatio,
"proxyFilter"
);
Command Line
shake -proxy proxyScale proxyRatio proxyFilter
Example
shake -script my_script.shk -proxy .5
shake -script my_script.shk -proxy .5 1 impulse
Filter
|
Description
|
box |
Relatively inexpensive and gives a
"boxy" look. Default size is 1x1. |
default |
By default, mitchell is used to go
up, and sinc to go down. |
dirac |
Dirac and impulse are the same. Default
size is 0x0. |
gauss |
Gaussian lacks in sharpness, but is
good with ringing and aliasing. Default size is 5x5. |
impulse |
Fast but lower quality. Default size
is 0x0. |
lanczos |
Similar to the sinc filter, but with
less sharpness and ringing. Default size is 6x6. |
mitchell |
This is the default filter when scaling
up. A good balance between sharpness and ringing, and so a good choice
for scaling up. Default size is 4x4. This is also known as a high-quality
Catmull-Rom filter. |
quad |
Like triangle, but blurrier with
fewer artifacts. Default size is 3x3. |
sinc |
This is the default filter when scaling
down. Keeps small details when scaling down with good aliasing. Ringing
problems make it a questionable choice for scaling up.. Default size
is 4x4. It also can deliver negative values, which can be interesting
when working in float/channel bit depth. |
triangle |
Not highest quality, but fine for
displaying a scaled image on your screen. Default size is 2x2. |
|