Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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 representation as follows:

2 3-D Transformations: Translation Ordinarily, a translation between points is expressed as a vector addition Homogeneous coordinates allow it to be written as a matrix multiplication:

3 3-D Rotations: Euler Angles Can decompose rotation of about arbi- trary 3-D axis into rotations about the coordinate axes (“yaw-roll-pitch”), where: (Clockwise when looking toward the origin)

4 3-D Transformations: Rotation A rotation of a point about an arbitrary axis normally expressed as a multiplication by the rotation matrix is written with homogeneous coordinates as follows:

5 3-D Transformations: Change of Coordinates Any rigid transformation can be written as a combined rotation and translation:

6 Pinhole Camera Model Camera center Principal point Image point Camera point Image plane Focal length Optical axis

7 Pinhole Perspective Projection Letting the camera coordinates of the projected point be leads by similar triangles to:

8 Projection Matrix Using homogeneous coordinates, we can describe perspective projection with a linear equation: (by the rule for converting between homogeneous and regular coordinates)

9 Example 1: 2D Translation Q: How can we represent translation as a 3x3 matrix? A: Using the rightmost column:

10 Translation Example of translation t x = 2 t y = 1 Homogeneous Coordinates

11 Basic 2D Transformations Basic 2D transformations as 3x3 matrices Translate RotateShear Scale

12 Affine Transformations Affine transformations are combinations of … –Linear transformations, and –Translations Properties of affine transformations: –Origin does not necessarily map to origin –Lines map to lines –Parallel lines remain parallel –Ratios are preserved –Closed under composition –Models change of basis

13 Projective Transformations Projective transformations … –Affine transformations, and –Projective warps Properties of projective transformations: –Origin does not necessarily map to origin –Lines map to lines –Parallel lines do not necessarily remain parallel –Ratios are not preserved –Closed under composition –Models change of basis

14 Matrix Composition Transformations can be combined by matrix multiplication p’ = T(t x,t y ) R(  ) S(s x,s y ) p

15 Homography (Projective Transformation) Definition: Projective transformation or 8DOF Recall (set f=1)

16 Homography Estimation Given N pairs of corresponding coordinates (u,v) <> (u’,v’), how to estimate eight-parameter transform H?

17 Computing the Homography 8 degrees of freedom in, so 4 pairs of 2-D points are sufficient to determine it –Other combinations of points and lines also work 3 collinear points in either image are a degenerate configuration preventing a unique solution Direct Linear Transformation (DLT) algorithm: Least-squares method for estimating

18 Huang’s LS Method A

19 Direct Linear Transformation (DLT) Method Since vectors are homogeneous, are parallel, so Let be row j of, be stacked ‘s Expanding and rearranging cross product above, we obtain, where

20 DLT Homography Estimation: Solve System Only 2 linearly independent equations in each, so leave out 3 rd to make it 2 x 9 Stack every to get 2n x 9 Solve by computing singular value decomposition (SVD) ; is last column of Solution is improved by normalizing image coordinates before applying DLT

21 Applying Homographies to Remove Perspective Distortion from Hartley & Zisserman 4 point correspondences suffice for the planar building facade

22 Homographies for Mosaicing from Hartley & Zisserman


Download ppt "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."

Similar presentations


Ads by Google