Optical Flow

  • Feature Based Methods :- Track features such as corners, etc across all the frames. Hence they gave you apparent motion (Motion in the image).

  • Direct or Dense Methods :- Recover motion for each pixel of image space-temporal image brigthness variation. Suitable for videos and image variation is small.

    • Lucan-Kannade Methode is used.

  • Optical Flow :- Optical flow is the pattern of apparent motion of image objects between two consecutive frames caused by the movemement of object or camera.

    • Consider a pixel I(x,y,t) in first frame (Check a new dimension, time, is added here. Earlier we were working with images only, so no need of time). It moves by distance (dx,dy) in next frame taken after dt time. So since those pixels are the same and intensity does not change, we can say,

I(x,y,t)=I(x+dx,y+dy,t+dt)

    • Above equation is called Optical Flow equation. In it, we can find fx and fy, they are image gradients. Similarly ft is the gradient along time. But (u,v) is unknown. We cannot solve this one equation with two unknown variables. So several methods are provided to solve this problem and one of them is Lucas-Kanade.

    • So from user point of view, idea is simple, we give some points to track, we receive the optical flow vectors of those points. But again there are some problems. Until now, we were dealing with small motions. So it fails when there is large motion. For Larger motion :-

      • Coarse-to-refinement This is used when pixel motion is not small.

        • We use hierarchical LK here:-

Last updated