Recovering metric and affine properties from images

Slides:



Advertisements
Similar presentations
Projective 3D geometry class 4
Advertisements

Epipolar Geometry.
More on single-view geometry
Invariants (continued).
1 A camera is modeled as a map from a space pt (X,Y,Z) to a pixel (u,v) by ‘homogeneous coordinates’ have been used to ‘treat’ translations ‘multiplicatively’
3D reconstruction.
Primitives Behaviour at infinity HZ 2.2 Projective DLT alg Invariants
Developable Surface Fitting to Point Clouds Martin Peternell Computer Aided Geometric Design 21(2004) Reporter: Xingwang Zhang June 19, 2005.
Conics DLT alg HZ 4.1 Rectification HZ 2.7 Hierarchy of maps Invariants HZ 2.4 Projective transform HZ 2.3 Behaviour at infinity Primitives pt/line/conic.
Recovery of affine and metric properties from images in 2D Projective space Ko Dae-Won.
Robot Vision SS 2005 Matthias Rüther 1 ROBOT VISION Lesson 3: Projective Geometry Matthias Rüther Slides courtesy of Marc Pollefeys Department of Computer.
Projective Geometry- 3D
Self-calibration.
Recovering metric and affine properties from images
Structure from motion.
Multiple View Geometry Projective Geometry & Transformations of 2D Vladimir Nedović Intelligent Systems Lab Amsterdam (ISLA) Informatics Institute,
1 Basic geometric concepts to understand Affine, Euclidean geometries (inhomogeneous coordinates) projective geometry (homogeneous coordinates) plane at.
The 2D Projective Plane Points and Lines.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Projective 2D & 3D geometry course 2
Projective 2D geometry (cont’) course 3
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
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
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Multiple View Geometry
Projective 2D geometry Appunti basati sulla parte iniziale del testo
Projective 3D geometry. Singular Value Decomposition.
Homogeneous coordinates
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Projective 3D geometry. Singular Value Decomposition.
3D photography Marc Pollefeys Fall 2007
Projective Geometry and Camera model Class 2
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
3D photography Marc Pollefeys Fall 2004 / Comp Tue & Thu 9:30-10:45
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Projective Geometry and Geometric Invariance in Computer Vision Babak N. Araabi Electrical and Computer Eng. Dept. University of Tehran Workshop on image.
Euclidean cameras and strong (Euclidean) calibration Intrinsic and extrinsic parameters Linear least-squares methods Linear calibration Degenerate point.
Robot Vision SS 2008 Matthias Rüther 1 ROBOT VISION Lesson 2: Projective Geometry Matthias Rüther Slides courtesy of Marc Pollefeys Department of Computer.
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.
Pole/polar consider projective geometry again we may want to compute the tangents of a curve that pass through a point (e.g., visibility) let C be a conic.
Projective Geometry. Projection Vanishing lines m and n.
Objects at infinity used in calibration
Projective 3D geometry class 4
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Computer Vision cmput 499/615
Multi-linear Systems and Invariant Theory in the Context of Computer Vision and Graphics CS329 Amnon Shashua.
Chapter VII. Classification of Quadric Surfaces 65. Intersection of a quadric and a line. General form and its matrix representation.
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
Projective Geometry Hu Zhan Yi. Entities At Infinity The ordinary space in which we lie is Euclidean space. The parallel lines usually do not intersect.
Auto-calibration we have just calibrated using a calibration object –another calibration object is the Tsai grid of Figure 7.1 on HZ182, which can be used.
1 Overview Introduction to projective geometry 1 view geometry (calibration, …) 2-view geometry (stereo, motion, …) 3- and N-view geometry Autocalibration.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Projective 2D geometry (cont’) course 3 Multiple View Geometry Modified from Marc Pollefeys’s slides.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
MATHEMATICS B.A./B.Sc. (GENERAL) FIRST YEAR EXAMINATIONS,2012.
3D Reconstruction from Images
3. Transformation
Homogeneous Coordinates (Projective Space)
Epipolar geometry.
CS Visual Recognition Projective Geometry Projective Geometry is a mathematical framework describing image formation by perspective camera. Under.
Estimating 2-view relationships
3D reconstruction class 11
Uncalibrated Geometry & Stratification
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Presentation transcript:

Recovering metric and affine properties from images Parallelism Parallel length ratios Angles Length ratios Will show: Projective distortion can be removed once image of line at infinity is specified Affine distortion removed once image of circular points is specified Then the remaining distortion is only similarity

The line at infinity For an affine transformation line at infinity maps onto line at infinity The line at infinity l is a fixed line under a projective transformation H if and only if H is an affinity A point on line at infinity is mapped to ANOTHER point on the line at infinity, not necessarily the same point Note: not fixed pointwise

Affine properties from images projection rectification Euclidean plane Two step process: 1.Find l the image of line at infinity in plane 2 2. Transform l to its canonical position (0,0,1) T by plugging into HPA and applying it to the entire image to get a “rectified” image 3. Make affine measurements on the rectified image

Affine rectification v1 l∞ v2 l1 l3 l2 l4 c a b

Distance ratios

The circular points Two points on l_inf: Every circle intersects l_inf at circular points “circular points” l∞ Circle: Line at infinity Algebraically, encodes orthogonal directions

The circular points Canonical coordinates of circular points Two points on l_inf which are fixed under any similarity transformation Canonical coordinates of circular points The circular points I, J are fixed points under the projective transformation H iff H is a similarity Identifying circular points allows recovery of similarity properties i.e. angles ratios of lengths

Conic dual to the circular points The dual conic is fixed conic under the projective transformation H iff H is a similarity Note: has 4DOF (3x3 ho mogeneous; symmetric, determinant is zero) l∞ is the nullvector

Angles Euclidean: Projective: (orthogonal) Once is identified in the projective plane, then Euclidean angles may be measured by equation (1)

Length ratios

Metric properties from images Upshot: projective (v) and affine (K) components directly determined from the image of C*∞ Once C*∞ is identified on the projective plane then projective distortion may be rectified up to a similarity Rectifying transformation from SVD

Metric from affine Affine rectified

Metric from projective

Pole-polar relationship The polar line l=Cx of the point x with respect to the conic C intersects the conic in two points. The two lines tangent to C at these points intersect at x

Correlations and conjugate points A correlation is an invertible mapping from points of P2 to lines of P2. It is represented by a 3x3 non-singular matrix A as l=Ax Conjugate points with respect to C (on each others polar) Conjugate lines with respect to C* (through each others pole)

Projective conic classification Diagonal Equation Conic type (1,1,1) improper conic (1,1,-1) circle (1,1,0) single real point (1,-1,0) two lines (1,0,0) single line

Affine conic classification ellipse parabola hyperbola

Chasles’ theorem A B C X D Conic = locus of constant cross-ratio towards 4 ref. points A B C X D

Iso-disparity curves Xi Xj X1 X0 C1 C2 X∞

Fixed points and lines (eigenvectors H =fixed points) (1=2  pointwise fixed line) ( eigenvectors H-T =fixed lines)

Projective 3D geometry

Singular Value Decomposition

Singular Value Decomposition Homogeneous least-squares Span and null-space Closest rank r approximation Pseudo inverse

Projective 3D Geometry Points, lines, planes and quadrics Transformations П∞, ω∞ and Ω ∞

3D points 3D point in R3 in P3 projective transformation (4x4-1=15 dof)

Planes 3D plane Transformation Euclidean representation Dual: points ↔ planes, lines ↔ lines

Planes from points Or implicitly from coplanarity condition (solve as right nullspace of ) Or implicitly from coplanarity condition

Points from planes (solve as right nullspace of ) Representing a plane by its span M is 4x3 matrix. Columns of M are null space of X is a point on plane x ( a point on projective plane P2 ) parameterizes points on the plane π M is not unique

Lines Line is either joint of two points or intersection of two planes Representing a line by its span: two vectors A, B for two space points (4dof) Span of WT is the pencil of points on the line Span of the 2D right null space of W is the pencil of the planes with the line as axis 2x4 Span of W*T is the pencil of Planes with the line as axis Dual representation: P and Q are planes; line is span of row space of W* 2x4 Example: X-axis (Alternative: Plücker representation, details see e.g. H&Z)

Points, lines and planes Plane π defined by the join of the point X and line W is obtained from the null space of M: Point X defined by the intersection of line W with plane is the null space of M

Plücker matrices L has rank 2 Plücker matrix (4x4 skew-symmetric homogeneous matrix) L has rank 2 4dof generalization of L independent of choice A and B Transformation A,B on line AW*=0, BW*=0, … 4dof, skew symmetric 6dof, scale -1, rank2 -1 Prove independence of choice by filling in C=A+muB, AA-AA disappears, … Prove transform based on A’=HA, B’=HB,… Example: x-axis

Plücker matrices Dual Plücker matrix L* Correspondence Join and incidence (plane through point and line) Indicate 12-34 {1234} always present Prove join (AB’+BA’)P=A (if A’P=0) which is general since L independent of A and B Example intersection X-axis with X=1: X=counterdiag(-1 0 0 1)(1 0 0 -1)’=(1 0 0 1)’ (point on line) (intersection point of plane and line) (line in plane) (coplanar lines)

Plücker line coordinates on Klein quadric L consists of non-zero elements

Plücker line coordinates (Plücker internal constraint) (two lines intersect) (two lines intersect) (two lines intersect)

Quadrics and dual quadrics Quadratic surface in P3 defined by: (Q : 4x4 symmetric matrix) 9 d.o.f. in general 9 points define quadric det Q=0 ↔ degenerate quadric pole – polar (plane ∩ quadric)=conic transformation 3. and thus defined by less points 4. On quadric=> tangent, outside quadric=> plane through tangent point 5. Derive X’QX=x’M’QMx=0 Dual Quadric: defines equation on planes: tangent planes π to the point quadric Q satisfy: relation to quadric (non-degenerate) transformation

Quadric classification Rank Sign. Diagonal Equation Realization 4 (1,1,1,1) X2+ Y2+ Z2+1=0 No real points 2 (1,1,1,-1) X2+ Y2+ Z2=1 Sphere (1,1,-1,-1) X2+ Y2= Z2+1 Hyperboloid (1S) 3 (1,1,1,0) X2+ Y2+ Z2=0 Single point 1 (1,1,-1,0) X2+ Y2= Z2 Cone (1,1,0,0) X2+ Y2= 0 Single line (1,-1,0,0) X2= Y2 Two planes (1,0,0,0) X2=0 Single plane Signature sigma= sum of diagonal,e.g. +1+1+1-1=2,always more + than -, so always positive…

Quadric classification Projectively equivalent to sphere: sphere ellipsoid hyperboloid of two sheets paraboloid Ruled quadrics: hyperboloids of one sheet Ruled quadric: two family of lines, called generators. Hyperboloid of 1 sheet topologically equivalent to torus! Degenerate ruled quadrics: cone two planes

Twisted cubic twisted cubic conic 3 intersection with plane (in general) 12 dof (15 for A – 3 for reparametrisation (1 θ θ2θ3) 2 constraints per point on cubic, defined by 6 points projectively equivalent to (1 θ θ2θ3) Horopter & degenerate case for reconstruction

Hierarchy of transformations Projective 15dof Intersection and tangency Parallellism of planes, Volume ratios, centroids, The plane at infinity π∞ Affine 12dof Similarity 7dof The absolute conic Ω∞ Euclidean 6dof Volume

Screw decomposition Any particular translation and rotation is equivalent to a rotation about a screw axis and a translation along the screw axis.

2D Euclidean Motion and the screw decomposition screw axis // rotation axis

The plane at infinity The plane at infinity π is a fixed plane under a projective transformation H iff H is an affinity Represents 3DOF between projective and affine canical position contains directions two planes are parallel  line of intersection in π∞ line // line (or plane)  point of intersection in π∞

The absolute conic The absolute conic Ω∞ is a (point) conic on π. In a metric frame: The absolute conic Ω∞ is a fixed conic under the projective transformation H iff H is a similarity Represent 5 DOF between affine and similarity Ω∞ is only fixed as a set, not pointwise Circle intersect Ω∞ in two points All Spheres intersect π∞ in Ω∞

The absolute conic Euclidean: Projective: (orthogonality=conjugacy) Orthogonality is conjugacy with respect to Absolute Conic d1 and d2 are lines

The absolute dual quadric Absolute dual Quadric = All planes tangent to Ω∞ The absolute conic Q*∞ is a fixed conic under the projective transformation H iff H is a similarity 8 dof plane at infinity π∞ is the nullvector of Angles: