Both vertical and horizontal movement were analyzed by finding maxima of cross-correlation functions between succeeding images.
28 Advantages and limitations of this method have been discussed.
28 A custom program was developed for this analysis. Vertical movement was analyzed in the three rectangular areas shown in
Figure 2aat the center of the image and 1 and 2 mm below the center; each area was 1.4 × 0.7 mm.
Figures 2b 2c 2d 2eare enlarged images of the top rectangle, which have been high-pass filtered to emphasize local contrast detail.
Figures 2b and 2dcorrespond to the image in
Figure 2a , whereas
Figures 2c and 2ecorrespond to an image obtained 0.1 second later. It can be seen that the lipid layer had moved to the upper right in that interval. This movement was estimated by finding the best match between the first image,
f(
x,
y), and the second image after displacing it by an amount δ
x, δ
y, i.e.,
g(
x + δ
x,
y + δ
y); all dimensions,
x, δ
x,
y, and δ
y, were specified in pixels. The best match was found by finding the values of δ
x and δ
y that maximize the cross-correlation function
\[C({\delta}x,\ {\delta}y)\ {=}\ {{\sum}_{x}}{{\sum}_{y}}f(x,\ y)g(x\ {+}\ {\delta}x,\ y\ {+}\ {\delta}y)\]
where the summation is over all pixels in the integration area given by the solid rectangle, A, in the first image
(Fig. 2b)and the corresponding displaced rectangle, A′, in the second image
(Fig. 2c) . This formula was found to be nonoptimal; for example, if there is a bright region extending off the top of both regions, the second image area may be shifted upward more than optimally to increase the contribution of this bright region. We therefore modified the calculation as follows:
\[C({\delta}x,\ {\delta}y)\ {=}\ {{\sum}_{x}}{{\sum}_{y}}f(x\ {-}\ {\delta}x/2,\ y\ {-}\ {\delta}y/2)g(x\ {+}\ {\delta}x/2,\ y\ {+}\ {\delta}y/2)\]
which was found to be less affected by the artifact. Typical areas used in this modified calculation are illustrated by the dashed rectangles, A
1 and A
2, in
Figures 2d and 2e . For odd values of, say, δ
x, the values of
x − δ
x/2 and
x + δ
x/2 were rounded up by half a pixel to form integer values. The position of the maximum along, say, the δ
x dimension was interpolated by fitting an inverted parabola through the maximum and two surrounding values (δ
x − 1, δ
x + 1) and calculating the maximum position for this parabola with subpixel accuracy. The analysis was usually performed on sequential images. However, the analysis program detected blurring caused by saccadic eye movements, which would cause inaccurate movement estimates—in this case, lipid movement—was calculated from cross-correlation between an image before the saccadic movement and an image after the movement. Total horizontal and vertical movements,
X(
t) and
Y(
t), were derived from
\[X(t)\ {=}\ {{\sum}}{\delta}x\]
\[Y(t)\ {=}\ {{\sum}}{\delta}y\]
where the summation is over all times up to time
t. Immediately after the blink, rapid upward movement of the lipid layer caused blurring of the image, which made the cross-correlation analysis of
equation 2inaccurate; therefore, analysis started a short time after the blink, on average after 0.22 seconds.