The Horn–Schunck method of estimating optical flow is a global method which introduces a global constraint of smoothness to solve the aperture problem (see Optical Flow for further description).
The Horn-Schunck algorithm assumes smoothness in the flow over the whole image. Thus, it tries to minimize distortions in flow and prefers solutions which show more smoothness.
The flow is formulated as a global energy functional which is then sought to be minimized. This function is given for two-dimensional image streams as:
E=\iint\left[(Ixu+Iyv+
2 | |
I | |
t) |
+\alpha2(\lVert\nablau\rVert2+\lVert\nablav\rVert2)\right]{{\rmd}x{\rmd}y}
Ix
Iy
It
\vec{V}=[u(x,y),v(x,y)]\top
\alpha
\alpha
\partialL | |
\partialu |
-
\partial | |
\partialx |
\partialL | |
\partialux |
-
\partial | |
\partialy |
\partialL | |
\partialuy |
=0
\partialL | |
\partialv |
-
\partial | |
\partialx |
\partialL | |
\partialvx |
-
\partial | |
\partialy |
\partialL | |
\partialvy |
=0
L
Ix(Ixu+Iyv+It)-\alpha2\Deltau=0
Iy(Ixu+Iyv+It)-\alpha2\Deltav=0
where subscripts again denote partial differentiation and
\Delta=
\partial2 | |
\partialx2 |
+
\partial2 | |
\partialy2 |
\Deltau(x,y)=(\overline{u}(x,y)-u(x,y))
\overline{u}(x,y)
u
2 | |
(I | |
x |
+\alpha2)u+IxIyv=
2\overline{u}-I | |
\alpha | |
xI |
t
IxIyu+
2 | |
(I | |
y |
+\alpha2)v=
2\overline{v}-I | |
\alpha | |
yI |
t
which is linear in
u
v
uk+1=\overline{u}k-
Ix(Ix\overline{u | |
k+I |
2} | |
y |
vk+1=\overline{v}k-
Iy(Ix\overline{u | |
k+I |
2} | |
y |
Advantages of the Horn–Schunck algorithm include that it yields a high density of flow vectors, i.e. the flow information missing in inner parts of homogeneous objects is filled in from the motion boundaries. On the negative side, it is more sensitive to noise than local methods.