1 / 93

Motion estimation

Motion estimation. Parametric motion (image alignment) Tracking Optical flow. Tracking. Three assumptions. Brightness consistency Spatial coherence Temporal persistence. Brightness consistency.

ward
Download Presentation

Motion estimation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Motion estimation • Parametric motion (image alignment) • Tracking • Optical flow

  2. Tracking

  3. Three assumptions • Brightness consistency • Spatial coherence • Temporal persistence

  4. Brightness consistency Image measurement (e.g. brightness) in a small region remain the same although their location may change.

  5. Spatial coherence • Neighboring points in the scene typically belong to the same surface and hence typically have similar motions. • Since they also project to nearby pixels in the image, we expect spatial coherence in image flow.

  6. Temporal persistence The image motion of a surface patch changes gradually over time.

  7. Image registration Goal: register a template image T(x) and an input image I(x), where x=(x,y)T. (warp I so that it matches T) Image alignment: I(x) and T(x) are two images Tracking: T(x) is a small patch around a point p in the image at t. I(x) is the image at time t+1. Optical flow: T(x) and I(x) are patches of images at t and t+1. warp I T fixed

  8. Simple approach (for translation) • Minimize brightness difference

  9. Simple SSD algorithm For each offset (u, v) compute E(u,v); Choose (u, v) which minimizes E(u,v); Problems: • Not efficient • No sub-pixel accuracy

  10. Lucas-Kanade algorithm

  11. Lucas-Kanade algorithm iterate • warp I with W(x;p) • compute error image T(x,y)-I(W(x,p)) • compute gradient image with W(x,p) • evaluate Jacobian at (x;p) • compute • compute Hessian • compute • solve • update p by p+ until converge

  12. Coarse-to-fine strategy I J refine J Jw I warp + I J Jw pyramid construction pyramid construction refine warp + J I Jw refine warp +

  13. Application of image alignment

  14. Direct vs feature-based • Direct methods use all information and can be very accurate, but they depend on the fragile “brightness constancy” assumption. • Iterative approaches require initialization. • Not robust to illumination change and noise images. • In early days, direct method is better. • Feature based methods are now more robust and potentially faster. • Even better, it can recognize panorama without initialization.

  15. Tracking

  16. Tracking (u, v) I(x,y,t) I(x+u,y+v,t+1)

  17. Tracking brightness constancy optical flow constraint equation

  18. Optical flow constraint equation

  19. Multiple constraints

  20. Area-based method • Assume spatial smoothness

  21. Area-based method • Assume spatial smoothness

  22. Area-based method must be invertible

  23. Area-based method • The eigenvalues tell us about the local image structure. • They also tell us how well we can estimate the flow in both directions. • Link to Harris corner detector.

  24. Textured area

  25. Edge

  26. Homogenous area

  27. KLT tracking • Select features by • Monitor features by measuring dissimilarity

  28. Aperture problem

  29. Aperture problem

  30. Aperture problem

  31. Demo for aperture problem • http://www.sandlotscience.com/Distortions/Breathing_Square.htm • http://www.sandlotscience.com/Ambiguous/Barberpole_Illusion.htm

  32. Aperture problem • Larger window reduces ambiguity, but easily violates spatial smoothness assumption

  33. KLT tracking http://www.ces.clemson.edu/~stb/klt/

  34. KLT tracking http://www.ces.clemson.edu/~stb/klt/

  35. SIFT tracking (matching actually) Frame 10 Frame 0 

  36. SIFT tracking Frame 100 Frame 0 

  37. SIFT tracking Frame 200 Frame 0 

More Related