3 OPTICAL FLOW
The optical flow approximates the image motion field
by representing the apparent motion of the image
brightness pattern on the image plane.
In determining the optical flow, two aspects must
be taken into account. One is related to the accuracy
level of data concerning motion direction and inten-
sity. The other aspect encompasses certain properties
related to the computational load required for optical
flow determination under minimal conditions of accu-
racy. The compromise between these aspects depends
on the situation and the expected results. The trade-
offs between efficiency and accuracy in optical flow
algorithms are discussed by (Liu et al., 1998).
The methods of determining the optical flow can be
divided (Barron et al., 1994) in: a) differential tech-
niques; b) region-based matching; c) energy-based
methods; and d) phase-based techniques. Initially we
considered the differential techniques. Among them,
one has a particular interest; it uses spatiotemporal
derivatives of the image brightness intensity (Horn
and Schunck, 1981). The optical flow can be obtained
from these variations. This technique assumes that
the motion is intrinsically coupled to image brightness
variations. It assumes as well that the scene illumina-
tion does not change; otherwise, the light changes will
influence the motion detection.
3.1 Horn & Schunck Differential
Method
According (Horn and Schunck, 1981) the optical flow
cannot be calculated at a point in the image inde-
pendently of neighboring points without introducing
additional constraints. This happens because the ve-
locity field at each image point has two components
while the change in brightness at that point due to mo-
tion yields only one constraint. Before describing the
method, certain conditions must be satisfied.
For convenience, it is assumed that the apparent ve-
locity of brightness patterns can be directly identified
with the movement of surfaces in the scene. This im-
plies that, according the object surface that moves, it
does not exist (or there is a little) brightness varia-
tion. This happens, for example, with objects of ra-
dial symmetry, low global contrast and high specular
reflectance level. It is further assumed that the inci-
dent illumination is uniform across the surface.
Denoting I(x, y, t) as the image brightness at time
t of the image point (x, y). During motion, it is as-
sumed that the brightness of a particular point is con-
stant, that means
dI (x, y, t)
dt
= 0 (1)
Expanding and rewriting the equation 1
I
x
u + I
y
v + I
t
= 0 (2)
where: I
x
, I
y
and I
t
represent partial derivatives of
brightness in x, y and t respectively; u and v are the
x− and y−velocity components.
Considering that, the brightness pattern can move
smoothly and independently of the rest of the scene,
there is a possibility to recover velocity information.
The partial derivatives of image brightness are esti-
mated from the discrete set of image brightness mea-
surements. To avoid problems caused by zero values
for the derivatives in the spatiotemporal directions,
the point of interest is located at the center of a cube
formed by eight measurements as shown in figure 1
(Horn and Schunck, 1981).
Figure 1: Estimating image partial derivates
Each of the partial derivatives is estimated as the
average of the four first differences taken over adja-
cent measurements
I
x
≈
1
4
{I
i,j+1,k
− I
i,j,k
+ I
i+1,j+1,k
− I
i+1,j,k
+
I
i,j+1,k+1
− I
i,j,k+1
+ I
i+1,j+1,k+1
− I
i+1,j,k+1
}
I
y
≈
1
4
{I
i+1,j,k
− I
i,j,k
+ I
i+1,j+1,k
− I
i,j+1,k
+
I
i+1,j,k+1
− I
i,j,k+1
+ I
i+1,j+1,k+1
− I
i,j+1,k+1
}
I
t
≈
1
4
{I
i,j,k+1
− I
i,j,k
+ I
i+1,j,k+1
− I
i+1,j,k
+
I
i,j+1,k+1
− I
i,j+1,k
+ I
i+1,j+1,k+1
− I
i+1,j+1,k
}
(3)
The additional constraint for the velocity calcula-
tion results from the assumption of smoothness of the
velocity field. The solution to the optical flow prob-
lem consists therefore in: a) minimize equation 4; and
b) minimize the smoothness measurement of the ve-
locity field. Equation (5) is a measure of the departure
from smoothness in the velocity field. For minimiza-
tion two errors are defined
ξ
b
= I
x
u + I
y
v + I
t
(4)
and
MOTION SEGMENTATION IN SEQUENTIAL IMAGES BASED ON THE DIFFERENTIAL OPTICAL FLOW
95