3D Motion Estimation.

Slides:



Advertisements
Similar presentations
Single-view geometry Odilon Redon, Cyclops, 1914.
Advertisements

3D reconstruction.
Two-View Geometry CS Sastry and Yang
Two-view geometry.
Computer Vision Optical Flow
Camera calibration and epipolar geometry
Structure from motion.
3D Computer Vision and Video Computing 3D Vision Topic 4 of Part II Visual Motion CSc I6716 Fall 2011 Cover Image/video credits: Rick Szeliski, MSR Zhigang.
Motion Analysis Slides are from RPI Registration Class.
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Uncalibrated Geometry & Stratification Sastry and Yang
Epipolar Geometry and the Fundamental Matrix F
CSc83029 – 3-D Computer Vision/ Ioannis Stamos 3-D Computational Vision CSc Optical Flow & Motion The Factorization Method.
Uncalibrated Epipolar - Calibration
Single-view geometry Odilon Redon, Cyclops, 1914.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
COMP 290 Computer Vision - Spring Motion II - Estimation of Motion field / 3-D construction from motion Yongjik Kim.
3D Motion Estimation. 3D model construction Video Manipulation.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Motion from normal flow. Optical flow difficulties The aperture problemDepth discontinuities.
3D Computer Vision and Video Computing 3D Vision Topic 8 of Part 2 Visual Motion (II) CSC I6716 Spring 2004 Zhigang Zhu, NAC 8/203A
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Camera Geometry and Calibration Thanks to Martial Hebert.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
The Brightness Constraint
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Metrology 1.Perspective distortion. 2.Depth is lost.
Geometry of Multiple Views
Single-view geometry Odilon Redon, Cyclops, 1914.
3D Imaging Motion.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
Single-view geometry Odilon Redon, Cyclops, 1914.
Dynamic Perspective How a moving camera reveals scene depth and egomotion parameters Jitendra Malik UC Berkeley.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
11/25/03 3D Model Acquisition by Tracking 2D Wireframes Presenter: Jing Han Shiau M. Brown, T. Drummond and R. Cipolla Department of Engineering University.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Calibrating a single camera
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Estimating Parametric and Layered Motion
Depth from disparity (x´,y´)=(x+D(x,y), y)
3D Vision Topic 4 of Part II Visual Motion CSc I6716 Fall 2009
Vision Based Motion Estimation for UAV Landing
Homogeneous Coordinates (Projective Space)
The Brightness Constraint
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
Structure from motion Input: Output: (Tomasi and Kanade)
The Brightness Constraint
3D Vision Topic 5 of Part II Visual Motion CSc I6716 Fall 2007
The Brightness Constraint
Multiple View Geometry for Robotics
Uncalibrated Geometry & Stratification
George Mason University
Nonlinear regression.
Course 7 Motion.
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Single-view geometry Odilon Redon, Cyclops, 1914.
Recovering observer motion
3D Vision Topic 5 of Part II Visual Motion CSc I6716 Spring 2008
3D Vision Lecture 5. Visual Motion CSc83300 Spring 2006
Structure from motion Input: Output: (Tomasi and Kanade)
Presentation transcript:

3D Motion Estimation

3D model construction

3D model construction

Video Manipulation

Visual Motion Allows us to compute useful properties of the 3D world, with very little knowledge. Example: Time to collision

Time to Collision An object of height L moves with constant velocity v: At time t=0 the object is at: D(0) = Do At time t it is at D(t) = Do – vt It will crash with the camera at time: D(t) = Do – vt = 0 t = Do/v v L L l(t) f t t=0 Do D(t)

Time to Collision The image of the object has size l(t): v L L Taking derivative wrt time: f t t=0 Do D(t)

Time to Collision v L L l(t) f t t=0 And their ratio is: Do D(t)

Time to Collision v Can be directly measured from image L L f t t=0 Do l(t) f t t=0 Do And time to collision: D(t) Can be found, without knowing L or Do or v !!

Structure from Motion r Z u t, 

Passive Navigation and Structure from Motion

Consider a 3D point P and its image: z f Z Using pinhole camera equation:

Rotation angular velocity Let things move: V The relative velocity of P wrt camera: P v p Translation velocity z Rotation angular velocity f Z

3D Relative Velocity: V The relative velocity of P wrt camera: P v p z

Motion Field: the velocity of p Taking derivative wrt time: v p z f Z

Motion Field: the velocity of p z f Z

Motion Field: the velocity of p z f Z

Motion Field: the velocity of p Translational component P v p Scaling ambiguity (t and Z can only be derived up to a scale Factor) z f Z

Motion Field: the velocity of p Rotational component P v p z f Z NOTE: The rotational component is independent of depth Z !

Translational flow field

Rotational flow field

Pure Translation What if tz = 0 ? All motion field vectors are parallel to each other and inversely proportional to depth !

Pure Translation: Properties of the MF If tz¹ 0 the MF is RADIAL with all vectors pointing towards (or away from) a single point po. If tz = 0 the MF is PARALLEL. The length of the MF vectors is inversely proportional to depth Z. If tz ¹ 0 it is also directly proportional to the distance between p and po.

Pure Translation: Properties of the MF po is the vanishing point of the direction of translation. po is the intersection of the ray parallel to the translation vector and the image plane.

Special Case: Moving Plane Planar surfaces are common in man-made environments n P v p z f Z Question: How does the MF of a moving plane look like?

Special Case: Moving Plane Points on the plane must satisfy the equation describing the plane. Let n be the unit vector normal to the plane. d be the distance from the plane to the origin. NOTE: If the plane is moving wrt camera, n and d are functions of time. d P Z n O Y X Then: where

Special Case: Moving Plane X Let be the image of P n Using the pinhole projection equation: P d p O Z Y Using the plane equation: Solving for Z:

Special Case: Moving Plane d P Z n O Y X p Now consider the MF equations: And Plug in:

Special Case: Moving Plane d P Z n O Y X p The MF equations become: where

Special Case: Moving Plane d P Z n O Y X p MF equations: Q: What is the significance of this? A: The MF vectors are given by low order (second) polynomials. Their coeffs. a1 to a8 (only 8 !) are functions of n, d, t and w. The same coeffs. can be obtained with a different plane and relative velocity.

Moving Plane: Properties of the MF The MF of a planar surface is at any time a quadratic function in the image coordinates. A plane nTP=d moving with velocity V=-t-w£ P has the same MF than a plane with normal n’=t/|t| , distance d and moving with velocity V=|t|n –(w + n£ t/d)£ P

Classical Structure from Motion Established approach is the epipolar minimization: The “derotated flow” should be parallel to the translational flow. E -urot utr t u

The Translational Case (a least squares formulation) Substitute back

Equations are nonlinear in tx, ty, tz Step 2: Differentiate with respect to tx, ty, tz, set expression to zero. Equations are nonlinear in tx, ty, tz

Using a different norm First, differentiate integrand with respect to Z and set to zero

where

Differentiate g( tx, ty, tz ) with respect to tx, ty, tz and set to zero Solution is singular vector corresponding to smallest singular value

The Rotational Case Let f=1 In matrix form

The General Case Minimization of epipolar distance or, in vector notation

Motion Parallax The difference in motion between two very close points does not depend on rotation. Can be used at depth discontinuities to obtain the direction of translation. FOE

Motion Parallax

Vectors perpendicular to translational component Vector component perpendicular to translational component is only due to rotation rotation can be estimated from it.

Motion Estimation Techniques Prazdny (1981), Burger Bhanu (1990), Nelson Aloimonos (1988), Heeger Jepson (1992): Decomposition of flow field into translational and rotational components. Translational flow field is radial (all vectors are emanating from (or pouring into) one point), rotational flow field is quadratic in image coordinates. Either search in the space of rotations: remainig flow field should be translational. Translational flow field is evaluated by minimizing deviation from radial field: . Or search in the space of directions of translation: Vectors perpendicular to translation are due to rotation only

Motion Estimation Techniques Longuet-Higgins Prazdny (1980), Waxman (1987): Parametric model for local surface patches (planes or quadrics) solve locally for motion parameters and structure, because flow is linear in the motion parameters (quadratic or higher order in the image coordinates)