Image Tracking and Stabilization 107
mediocre tracking system (of which there are many) from an excellent one (of
which there are very few).
Choosing the Feature to Track
Probably the most important thing that experienced trackers have developed an
instinct for is how to choose the right area to track. The first step of this decision-
making process is to visually examine the entire sequence with which you are
working. There are a number of reasons for this step. Obviously, one of the primary
reasons has to do with the fact that you are looking for a feature that remains
visible throughout the necessary duration of the shot. If the feature you are track-
ing becomes obscured or leaves frame, you will need to expend some additional
effort dealing with this problem, as described in the section entitled ‘‘Human
Intervention.’’
Secondly, you are looking for a feature that remains fairly constant in terms of
its shape and color. The tracking algorithm will usually be trying to find something
that matches the original sample, and if the pattern changes over time it will no
longer be such a match. Fortunately, there are methods for tracking objects that
vary over time. Generally they involve choosing to periodically update the sample
region you have chosen, replacing the original pattern with the most recent success-
ful match. This change needs to be fairly gradual for the algorithm to deal with
it, and a sudden, drastic change in the region that occurs over only a few frames
will probably still cause the tracker to lose the region in question. Depending on
the situation, this process of redefining the sample pattern may occur any number
of times throughout the duration of the shot. As usual, the degree to which this
process is automated will depend on the software that you are using.
Not only do we need to worry about the visibility and constancy of our ROI
over the length of the sequence, but we also need to make sure that the ROI
moves in a way that is appropriate for the element we are adding. In our example
we chose to track the tip of the ship because we were planning to attach an object
to this point. But we don’t always need to track the exact attachment spot, as
long as it does not move relative to that desired location. In other words, tracking
some other feature on the front of the boat would probably also give us data that
was reasonably accurate. But the farther away from the actual attachment point
we move, the less accurate the data becomes, since these areas are moving differ-
ently. If you look at the example images in Figure 7.1 again, you can see that the
rear of the boat is actually rising as the bow is descending. Obviously, if we wish
to attach something to the front of the boat, it would be useless to track the back
of the boat.
Finally, there are some specific visual characteristics that we look for in the
region that we are choosing to track. Generally, you will want to pick a high-
contrast area, with noticeable variations in color and brightness. Certain software