Image Generation Tools Previous

Chapter 12, Image Processing Tools
Transform Tools



Use the Transform tools to move, reorient, and animate images.

There are four image transformation tools:

Tool: Description:
2D Transform Apply chains of 2D transformations on images--see 2D Transform Tool.
Flip Flips pixels left-to-right, top-to-bottom, or both--see Flip Tool.
Orient Rotates an image--see Orient Tool.
Panner Repositions an image in the X and Y directions--see Panner Tool.

2D Transform Tool Top

The 2D Transform tool lets you apply arbitrary transforms on an image and lets you add camera jitter, motion blur, or stabilizing to the image. You can also move, scale, rotate, and shear images in 2D with high quality filtering as well as concatenate transforms to avoid re-filtering.

The 2D Transform tool has the following parameters:

Show full-size image

Transform generator Transform Type and Offset Transform value editors

Use: To:
Transform generator Create, delete, order, mute, solo and reset transforms. Solo (S) takes precedence over Mute (V) (a transform that's both soloed and muted is visible) while soloing a transform does not affect the muteness of other transforms, thus soloing a transform then un-soloing it does not lose state.
  • The main reset button (in the Tools Options) is the equivalent of deleting and re-adding the tool (all values are reset, and additional transform generators are deleted).
  • The tool maintains the selection of the transforms.
  • Adding a new transform selects the new transform and deselects the rest.
Transform Type Set the type of transform. You can choose from 1 point, 2 point, 4 point, or scale, rotation, and translation and set source and destination values, as well as adjust offset parameters for tracking or stabilizing purposes--see Chapter 25, Tracking and Stabilizing.
Transform value editors Set the values of your transforms, you can also use the direct manipulators in the Player to transform the image--see 2D Transforms.

To produce an affine transformation on an image:
  1. Add a Transform 2D tool at the desired point in the dependency graph (if one is not already there). One transform is automatically added. You can add additional transforms using the New button.

  2. Use the controls that appear in the UI to the right of the super tool controls or the direct manipulators that appear in the Player. The direct manipulation controls are the same as those found in the Warps--see 2D Transforms.

  3. To shear an image, press the Insert key while the focus is in the player (this toggles the transform manipulator and the pivot manipulator), then using the rotate widget, set your pivot angle.

  4. Press the Insert key again and use the scale widgets to shear the image.

Note: Each transform influences transforms which follow it. The more it influences, the more 'global' it is, or conversely, the fewer it influences, the more 'local' it is. The pivot is independent within each transform.

Adding Motion Blur and Filters

Controls on the 2D Transform tool Output tab lets you add motion blur, filtering, and cropping to your image.

The Output tab has the following parameters:

Show full-size image

Use: To:
Motion Blur Add motion blur to the result image. Motion blur can be on or off; when on, there are controls for shutter speed and offset; the time interval over which the shutter is open is centered at the current frame time by default; the offset can be used to move it elsewhere.
Filtering Filter the output image--see Cropping and Filtering the Output.
Crop Crop the output image--see Crop Tool.


Simulating Camera Jitter Using the 2D Transform Tool

Note: The following example describes one way to simulate camera jitter using the 2D Transform tool combined with a Noise or Rand expression--see Random Number Functions.

To simulate camera jitter using the 2D Transform tool:
  1. Place a Transform 2D tool at the desired point in the dependency graph (if one is not already there).

  2. Select the 2D Transform tool.

  3. Right-click in the X (or Y) value editor and select Set Expression. The Expresso calculator appears.

  4. Select Random, then Noise, and type the following expression: noise(t*50)*15. This expression can be broken down as follows:

    Where: Returns:
    noise (t) A value between -1 and 1.
    noise (t * 50) A value between -1 and 1 and where "50" represents frequency. The larger the value, the longer the frequency of the resulting noise.
    noise (t * 50) * 100 Values between -100 and 100, where 100 represents amplitude.

    Show full-size image

    Show full-size image

    Note: You may also want to add motion blur to the output for a more realistic effect.

Flip Tool Top

The Flip tool lets you take an image and flip the pixels left-to-right, top-to-bottom, or both when the Link button is enabled. The default setting is vertical flip.

To modify an image using the Flip tool:
  1. Drag the Flip tool from the Tools tab to the dependency graph in the Schematic view. The image will be vertically flipped.

    Show full-size image

  2. Select the desired flip parameters: Vertical, Horizontal, or both.

    Show full-size image

Note: The Flip tool's Vertical and Horizontal attributes are both animatable by setting keyframes or using expressions--see Setting Keys Manually and Validating and Applying the Expression String.

Orient Tool Top

The Orient tool lets you rotate its input by 0, 90, 180, and 270 degrees (with the rotation parameter being an enumeration) and further flip the result vertically and/or horizontally.

The vertical and horizontal directions refer to the image after the rotation has been applied.

Show full-size image

Note: When possible, use this tool in lieu of more general transform tools because no resampling the input image required resulting in no loss of image quality.

Panner Tool Top

The Panner tool lets you reposition the image in both the X and Y directions, as well as to reposition the image using the X and Y offset created when used with Tracker tool data inside an expression--see Validating and Applying the Expression String and About Tracking and Stabilizing.

To reposition an image using the Panner tool:
  1. Drag the Panner tool from the Tools tab to the dependency graph in the Schematic view.

    Show full-size image

  2. Select the desired reposition parameters: X, Y, or both, and select the desired offset of the X and Y axes.

    Show full-size image

  3. Select the filtering option.

  4. Select the anti-aliasing factor.

Note: The Panner tool's X and Y axes attributes are both animatable by setting keyframes or using expressions--see Setting Keys Manually and Validating and Applying the Expression String.

Previous