Homepage - Index
CGM Plug-in for Apple Shake: Blur Alpha

Function

This is different to Shake's Blur as this preset blurs just the alpha channel of the image. By default a gaussian blur is used, but you can change the filter for both X and Y. It's very important to keep an eye on the spread function. Because the workspace is infinite, you can select which pixels will be used for the blur calculation - only the pixels inside the image, or outside as well. If you are getting clipping or dark edges on your final image you should toggle Blur Alphas's spread parameters.

Parameters
Type
Defaults
Function
xPixels
float
0 The amount of blur as described in Pixels in a horizontal direction, for example the amount of 200 will blur 200 pixels to either side of the current pixel.
yPixels
float
xPixels/Get
DefaultAspect()
The amount of blur as described in Pixels in a vertical direction. By preset the BlurAlpha uses the same amount as defined for the xPixels.
spread
int
0

This tells Shake whether to treat the area outside of the frame or not.

0 = Compute within the frame (default)
1 = Compute outside of the frame

Because of the infinite workspace, it is sometimes handy to compute outside of the frame as well, for example if the Blur Alpha is placed after a Scale command. Note that if nothing is outside of the frame (ie, black), you will see a black edge.

xFilter
string
"gauss" The name of any available Filter Type for the horizontal blur direction.
yFilter
string
"gauss" The name of any available Filter Type for the vertical blur direction.
channels
string
"nnna" Which channels will be blurred. Any or all of rgba.

Synopsis

image BlurAlpha(
 image In,
 float xPixels,
 float yPixels,
 int spread,
 const char * xFilter,
 const char * yFilter,
 const char * channels
);

Script

image = BlurAlpha( In, xPixels, yPixels, spread, "xFilter", "yFilter", "channels" );

Command Line (Terminal)

shake -bluralpha xPixels yPixels spread etc...

Examples (Terminal)

shake /www.CGM-online.com/doc/CGM_Logo.tif -bluralpha 100
- adds the BlurAlpha filter to the CGM logo. The blur amount is set to 100 pixels horizontal.
  The preset values are used for all other parameters.

shake /www.CGM-online.com/doc/CGM_Logo.tif -bluralpha "Linear(0,0@1,400@20)"
- adds the BlurAlpha filter to the CGM logo and animates the amout of blur from 0 to 400 during the frame
  range of 1 to 20.

shake /www.CGM-online.com/doc/CGM_Logo.tif -bluralpha 0 100
- adds the BlurAlpha filter to the CGM logo and just blurs vertically using the amount of 100 pixels.

shake /www.CGM-online.com/doc/CGM_Logo.tif -bluralpha 100 400 0 "gauss" "gauss" "rgbn"

- adds the BlurAlpha filter to the CGM logo and blurs all channels instead of the alpha channel.

Example (Shake's Command Line)

/www.CGM-online.com/doc/CGM_Logo.tif -bluralpha 100

 

( go back )