Optical Flow Extraction

external back to SHIRAI Lab.'s Home Page
external back to Object Tracking Page

1 Generalized Gradient Method based on Spatio-Temporal Filtering

  Optical flow is calculated by the generalized gradient method based on spatio-temporal filtering.

Let tex2html_wrap_inline149 denotes brightness at a point tex2html_wrap_inline151 in an image at time t. If this point moves to a point tex2html_wrap_inline155 at time t+dt, the following equation holds:

  equation14

Taylor expansion of the right side of the equation (1) is

  equation18

where tex2html_wrap143 , tex2html_wrap144 , tex2html_wrap145 กค and e is the high order terms of dx,dy,dt.

Assuming that e is negligible, we obtain the next equation:

  equation27

where tex2html_wrap_inline169 , tex2html_wrap_inline171 is flow vector. This is the constraint equation of the gradient method.

By applying two different spatial filters g,h to the input image tex2html_wrap_inline177 , the following two constraint equations are derived.

  equation34

where tex2html_wrap_inline179 represents convolution. The flow vector tex2html_wrap_inline181 is obtained by solving these simultaneous equations.

The filters used in the equaiton 4 shold have following features.

  1. garanteeing the continuity for capability to differentiation of the filtered images.
  2. suppressing high-order term of dx, dy, dt.
  3. independence of two constraing equations.
We choose orientation-sensitive smoothing filters. One of those is gaussian filter which has large variance in x-direction and is defferentiated. Another is gaussian filter which has large variance in y-direction and is defferentiated.

A smoothing filter is applied to garantee the capability of differentiation in temporal direction.

2 Reliability of Optical Flows

We define the reliability of the flow by the angle between two lines corresponding to equations (4) as shown in figure 1. The reliability tex2html_wrap_inline189 is given as:

  equation52

where tex2html_wrap_inline191 and tex2html_wrap_inline193 . Note that the right side of this equation is the absolute value of the determinant of the coefficient matrix of the flow vector normalized by the spatial gradient of brightness. If the reliability tex2html_wrap_inline195 is small, the flow vector is not calculated.

   figure64
Figure 1: reliability of optical flow

If the contrast is small, the flow vector is not reliable, either. The reliability tex2html_wrap_inline197 of the contrast is given as:

  equation75

If the reliability tex2html_wrap_inline199 is small, the flow vector is not calculated at the point.

3 Result

A Result of extracting optical flow is shown in Figure 2. Lines stands for flow vectors, and colors stands for its direction. In the area which doesn't have gray points, flow vectors aren't calculated bacause of its unreliability.




Ryuzo Okada
Wed Jun 11 13:44:38 JST 1997