beautypg.com

Using the matchmove node – Apple Shake 4 Tutorials User Manual

Page 208

background image

208

Chapter 7

Tracking and Stabilization

Using the MatchMove Node

The next example uses more complicated tracking information to match a background
clip that changes perspective. The MatchMove node is used to match the movement of
the background. In this example, read in a clip of a moving bus and an advertisement
image, then apply the image to the side of the moving bus. This tutorial also discusses
some solutions for common tracking problems.

To start the MatchMove script:

1

Choose File > New Script, or press Command-N or Control-N to clear the existing nodes
and begin a new script.

2

Add an Image–FileIn node and read in the bus2.40-80#.jpg clip and the sign.jpg
imagefrom the $HOME/nreal/Tutorial_Media/Tutorial_07/images/stabilize directory.

The sign image is 720 x 210 pixels, and the bus clip is 720 x 486 pixels.

The following illustration shows the result of this lesson.

3

Examine the bus clip to identify good search patterns. (This should always be the first
step.)

Luckily, the sign of the bus is visible during the entire clip, although there is some
distortion due to perspective shifts.

4

In the Node View, select the sign node and add a Transform–MatchMove node.

Unlike other transform nodes, MatchMove allows you to composite within the node.
The tracking is done on the second input (the background).

Before

After