Dynamic Perspective CS 543 / ECE 549 β Saurabh Gupta Spring 2020, UIUC http://saurabhg.web.illinois.edu/teaching/ece549/sp2020/ Many slides adapted from J. Malik.
Perspective Projection P Y &' ( , &) π, π, π β ( Z f O y Suppose the camera moves with p respect to the worldβ¦ β’ Point P (π, π, π) in the world moves relative to the camera, its projection in the image (π¦, π§) moves as well. β’ This movement in the image plane is called optical flow. β’ Suppose the image of the point (π¦, π§) moves to (π¦ + βπ¦, π§ + βπ§) in time βπ’ , then 12 13 , 14 are the two 13 components of the optical flow.
Outline β’ Relate optical flow to camera motion β’ Special cases
Μ Μ Μ How does a point X in the scene move? β’ Assume that the camera moves with a translational velocity π’ = (π’ 2 , π’ 4 , π’ 6 ) and angular velocity π = π 2 , π 4 , π 6 . β’ Linear velocity of point π = π, π, π is given π = βπ’ β πΓπ. by Μ π 4 π β π 6 π π’ 2 π π’ 4 π 6 π β π 2 π = β β π π’ 6 π 2 π β π 4 π π
Μ Μ Μ Μ Μ Μ Μ Μ Now, lets consider the effect of projection π 4 π β π 6 π π’ 2 π π’ 4 π 6 π β π 2 π = β β π π’ 6 π 2 π β π 4 π π ' ) β’ Assume, π = 1 , π¦ = ( , π§ = ( . '(@ Μ )(@ Μ (' () β’ π¦ = π§ = , Μ ( A ( A π, Μ π, Μ π , from equation above: β’ Substitute Μ π 2 π’ 2 β 1 + π¦ E π§ = 1 π¦π§ π§ π£ π¦ β1 0 π¦ π’ 4 π 4 π€ = + 0 β1 π§ (1 + π§ E ) π βπ¦π§ βπ¦ π 6 π’ 6
Μ Μ Dynamic Perspective Equations π’ 2 π 2 β 1 + π¦ E π§ = 1 π¦π§ π§ π£ π¦ β1 0 π¦ π’ 4 π 4 π€ = + 0 β1 π§ (1 + π§ E ) π βπ¦π§ βπ¦ π 6 π’ 6 Translation Component Rotation Component
Μ Μ Optical flow for pure rotation π’ 2 π 2 β 1 + π¦ E π§ = 1 π¦π§ π§ π£ π¦ β1 0 π¦ π’ 4 π 4 π€ = + 0 β1 π§ (1 + π§ E ) π βπ¦π§ βπ¦ π 6 π’ 6 π 2 β 1 + π¦ E π¦π§ π§ π£ π 4 π€ = β’ (1 + π§ E ) βπ¦π§ βπ¦ π 6 β’ We can determine π from the flow field. β’ Flow field is independent of π(π¦, π§) .
Μ Μ Optical flow for pure translation along Z-axis π’ 2 π 2 β 1 + π¦ E π§ = 1 π¦π§ π§ π£ π¦ β1 0 π¦ π’ 4 π 4 π€ = + 0 β1 π§ (1 + π§ E ) π βπ¦π§ βπ¦ π 6 π’ 6 π¦ π£ 3 F β’ π€ = π§ ((2,4) β’ Optical flow vector is a scalar multiple of position vector. β’ Scale factor ambiguity, if π’ 6 β ππ’ 6 , and π β ππ , optical flow remains unchanged. β’ But, you can get time to collision, π/π’ 6 .
Μ Μ Optical flow for general translation π’ 2 π 2 β 1 + π¦ E π§ = 1 π¦π§ π§ π£ π¦ β1 0 π¦ π’ 4 π 4 π€ = + 0 β1 π§ (1 + π§ E ) π βπ¦π§ βπ¦ π 6 π’ 6 @3 L J43 F β’ π£ = @3 I J23 F ((2,4) , v = ((2,4)
Optical flow for points on a road Slide by J. Malik
Translating along X-axis in front of a wall Slide by J. Malik
Estimating Optical Flow from Images http://en.wikipedia.org/wiki/Barberpole_illusion
Estimating Optical Flow from Images http://en.wikipedia.org/wiki/Barberpole_illusion
Estimating Optical Flow from Images Aperture Problem
Μ Μ Recap β’ Relate optical flow to camera motion π’ 2 π 2 β 1 + π¦ E π§ = 1 π¦π§ π§ π£ π¦ β1 0 π¦ π’ 4 π 4 π€ = + 0 β1 π§ (1 + π§ E ) π βπ¦π§ βπ¦ π 6 π’ 6 β’ Special cases β’ Pure rotation / pure translation / time to collision
Recommend
More recommend