tional search area can be restricted to 70 px × 50 px.
Other tracking approaches update the reference
pattern continually, e.g. from frame to frame. This
bears the danger of tracking drift (current reference
becomes more and more dissimilar from the original
reference) and total loss of the pattern.
The proposed tracking strategy keeps the same ref-
erence pattern throughout the image sequence. This
makes tracking particularly robust, since the loss of
the pattern in one frame does not imply the total loss
of the pattern for the remaining sequence. As a draw-
back, this strategy increases the search space to find
subsequent patterns. However, since the motion of the
heart, induced by heart beat and respiration, is quasi-
periodic, the range of motion is restricted (see motion
trajectories in Fig. 2).
2.2 Optical Flow Calculation
A suitable optical flow strategy is required to analyse
the motion of the beating heart and to assess the ef-
fectiveness of the motion correction strategy. While
reliability is most important for motion analysis, the
strategy does not need to run in realtime.
Magnitudes of motion of the beating heart can be
rather large, especially when tracking by referring to
the original reference image as described above, lead-
ing to magnitudes of up to 40 px for the given image
sequence (Fig. 2). As the proposed motion correction
also keeps a reference image, the optical flow method
designed for its evaluation should calculate the veloc-
ities between the current and the reference image.
Since differential motion estimation techniques are
often restricted to small motion displacements (Bar-
ron et al., 1994), e.g. less than 1 px, satisfying results
of motion estimation cannot be expected in this con-
text. Results for the optical flow techniques by (Horn
and Schunck, 1981) and (Lucas and Kanade, 1981)
are included in the analysis below.
Therefore, a region-based optical flow method is
proposed to analyse the motion of the beating heart.
The method uses the motion tracking strategy de-
scribed above applied to every image pixel to build
a dense motion field. Outliers by specular reflections
on the heart surface are avoided by applying the de-
scribed elimination strategy prior to tracking.
2.3 Optical Flow Measure
The optical flow algorithm yields a dense motion field
of the beating heart surface. It can be represented by
a needle map, such as in Fig. 9, which, however, does
not show the motion vector of every single pixel, for
reasons of clarity. The question arises how these mo-
tion fields can be assessed to allow for evaluation and
comparison of particular heart motion scenarios, e.g.
after application of different motion correction algo-
rithms. In the following, an appropriate measure of
optical flow is presented, together with a strategy to
ensure its quality by outlier removal.
The magnitude of the remaining motion is espe-
cially important for assessing the performance of mo-
tion correction. The direction of the remaining mo-
tion is not so critical, since the goal of motion correc-
tion is to minimise the remaining motion such that its
magnitude becomes as small as possible. Moreover,
direction is not well defined for good motion correc-
tion with remaining speeds approaching zero (also see
the corresponding frequency distribution in Fig. 4 be-
low, which lacks compactness). Poor motion correc-
tion, however, is characterised by large magnitudes
of remaining motion, while the directions do not pro-
vide additional information. Therefore, only the mag-
nitude of motion is considered for the evaluation of
heart motion. The mean magnitude of all vectors of
a motion field M is proposed as a global measure of
motion and denoted as the mean speed of M
µ (M )
def
=
1
|M|
m∈M
m . (2)
Outliers in the motion field, however, can affect the
quality of this measure. Therefore, they should be de-
tected and excluded from the motion field. The mo-
tion fields in Fig. 11 show areas of outliers. Possible
outliers caused by specular reflections are prevented
by the proposed motion estimation strategy which in-
cludes their elimination. Since the motion analyses
are focussed on the beating heart surface, the image
areas of the mechanical stabiliser are excluded, the
glossy surface of which often does not bear sufficient
texture for tracking. Further, there can still be areas on
the heart surface without significant texture, i.e. rather
homogeneous regions, in which robust tracking is not
possible and outliers occur.
Motion fields of the beating heart show a clear ho-
mogeneity of velocity, which can be analysed by the
corresponding histograms. Figures 3 and 4 show fre-
quency distributions of speed and direction for orig-
inal and motion corrected image pairs. The concen-
tration around the maximum frequency in the speed
histograms confirms the observed homogeneity of the
motion field. Outliers are characterised by disturbing
this homogeneity and appear as less frequent values
farther from the maximum. Therefore, outliers can be
detected by thresholds in the frequency distribution.
Constant thresholds for a longer image sequence
of the beating heart, however, are not recommended,
since the frequency distribution of these images is too
broadly spread to find such thresholds (Fig. 5). This
is due to the periodically changing motion direction
of the heart in the image plane and the corresponding
speed fluctuations. Therefore, individual thresholds
for outlier detection are calculated for each image.
OPTICAL FLOW TO ANALYSE STABILISED IMAGES OF THE BEATING HEART
239