SlideShare a Scribd company logo
Introduction to Homography 2010.01.19
Coordinate System view coordinate system object coordinate system x y z world coordinate system
History P->G:  以  E  為眼點從平面 G 到平面 W 的 透視對應
Outline Projective   Geometry Projective   Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
Homo. representation (1)  Lines This equivalence relationship is known as a  homogeneous  vector representative
Homo. representation (2)  Points Homo. representation
Degree of freedom (DoF) Point Line
2 lines Assume Intersection of lines (1)
Intersection of lines (2) Ex:   determining the intersection of the lines  x = 1   and  y = 1  y = 1 x = 1
Line joining points The line passing through two points x and x’ Assume
Line at infinity (1) Consider 2 lines Intersection
Line at infinity (2) Inhomogeneous representation No sense ! Suggest the point has infinitely large coordinates Homogeneous coordinates (x, y, 0) T  do not correspond to any finite point in R 2
Line at infinity (3) Ex: intersection point of 2 lines  x=1  and  x=2 The point at infinity in the direction of the y-axis
Line at infinity (4) Projective Space P 2   : augment  R 2  by adding points with last coordinate  x 3  = 0  to all homogeneous 3-vectors The points with last coordinate  x 3  = 0  are known as  ideal points , or  points at infinity The set of all ideal points may be written  (x 1 ,x 2 , 0) T . The set lies on a single line, the  line at infinity , denoted by the vector  (0,0,1) T   =>  (x 1 ,x 2 ,0)(0,0,1) T =0
Concept of points at infinity Simplify the intersection properties of points and lines In  P 2 , one may state  without qualification  (not true in the  R 2 ) 2 distinct lines meet in a single point 2 distinct points lie on a single line
A model for the projective plane Points  and  Lines  of P 2  are represented by  Rays  and  Planes , respectively, through the origin in R 3 Lines lying in the x 1 x 2 -plane represent  ideal points , and the x 1 x 2 -plane represents  l ∞
Outline Projective   Geometry Projective   Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
Mapping between planes
Definition (1) A projectivity is an  invertible  mapping  h  from  P 2  to itself such that 3 points  x 1  ,  x 2  and  x 3  lie on the same line if and only if  h(x 1 ) ,  h(x 2 )  and  h(x 3 )  do Synonymous Collineation  Homography
Definition (2) A mapping  h  from  P 2  to  P 2  There exists a  non-singular  3 x 3 matrix H such that for any point in  P 2  represented by a vector x it is true that
Definition (3) H  is a  homogeneous matrix , since as in the homogeneous representation of a point,  only the ratio of the matrix elements is significant  (Dof = 8)
A hierarchy of transformations (1)
A hierarchy of transformations (2)
Outline Projective   Geometry Projective   Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
Document Distortion
Correction
2D Homography x i  in  P 2   x j  in  P 2 In a practical situation, the points  x i  and  x j  are points in 2 images (or the same image), each image being considered as a projective plane  P 2
DLT Algorithm (1)
DLT Algorithm (2) Since each point correspondence provides 2 equations,  4 correspondences are sufficient  to solve for the 8 degrees of freedom of  H Use  more than 4 correspondences  to ensure a  more robust solution  (The problem then becomes to solve for a vector h that  minimizes a suitable cost function )
Outline Projective   Geometry Projective   Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
OpenCV Implementation Mat   findHomography (  const  Mat & srcPoints,  const  Mat & dstPoints,  int method=0,  double ransacReprojThreshold=3); void  warpPerspective (  const  Mat & src,  CV_OUT  Mat & dst,  const  Mat & M,  Size dsize,  int flags=INTER_LINEAR,  int borderMode=BORDER_CONSTANT, const Scalar& borderValue=Scalar()); Homography Estimation Projective Transform
Reference Multiple View Geometry in Computer Vision , Cambridge University Press, 2000. Projective geometry and homogeneous coordinates [Video] -  http://www.youtube.com/watch?v=q3turHmOWq4

More Related Content

PPTX
Fourier transforms
PDF
NAS-Ch4-Application of Laplace Transform
PPTX
Fourier series Introduction
PPTX
Double Integral Powerpoint
PDF
Partial Differential Equations, 3 simple examples
PPTX
Maximum sum subarray
PPTX
Fast fourier transform
PPTX
Fourier series and applications of fourier transform
Fourier transforms
NAS-Ch4-Application of Laplace Transform
Fourier series Introduction
Double Integral Powerpoint
Partial Differential Equations, 3 simple examples
Maximum sum subarray
Fast fourier transform
Fourier series and applications of fourier transform

What's hot (20)

PPTX
Z transforms and their applications
PPTX
Applications of differential equation
PDF
Introduction to Numerical Analysis
PPT
Equations of tangents
PDF
3.Frequency Domain Representation of Signals and Systems
PDF
Partial Differential Equation - Notes
PDF
partial diffrentialequations
PDF
Fourier series and transforms
PPTX
Leonardo of Pisa
PDF
Reduction forumla
PDF
Introduction to Calculus I
PDF
Calculus a Functions of Several Variables
PDF
Z transform
PPT
07 periodic functions and fourier series
PDF
Fourier Series
PDF
Differential Equations 4th Edition Blanchard Solutions Manual
PDF
Calculus III
PDF
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
PDF
DSP_2018_FOEHU - Lec 04 - The z-Transform
Z transforms and their applications
Applications of differential equation
Introduction to Numerical Analysis
Equations of tangents
3.Frequency Domain Representation of Signals and Systems
Partial Differential Equation - Notes
partial diffrentialequations
Fourier series and transforms
Leonardo of Pisa
Reduction forumla
Introduction to Calculus I
Calculus a Functions of Several Variables
Z transform
07 periodic functions and fourier series
Fourier Series
Differential Equations 4th Edition Blanchard Solutions Manual
Calculus III
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
DSP_2018_FOEHU - Lec 04 - The z-Transform
Ad

Similar to Introduction to homography (20)

PPTX
Computer Vision - Single View
PDF
The geometry of perspective projection
PDF
Structure and Motion - 3D Reconstruction of Cameras and Structure
PPT
2d/3D transformations in computer graphics(Computer graphics Tutorials)
PDF
Journey to structure from motion
PDF
Multiple_view_geometry - Mechatronics and Robotics
PDF
introduction to camera, the operation of camera
PDF
Lec15 sfm
PPTX
Computer Vision single view Modelling
PPTX
2D Transformation.pptx
PPTX
transformations2 and fitting on image processing.pptx
PDF
Camera Calibration from a Single Image based on Coupled Line Cameras and Rect...
PDF
3-D Visual Reconstruction: A System Perspective
PPTX
2-Vector.pptx
PDF
Lecture21
PDF
Lecture21
PPTX
UNITIII1 Stereo geometry and vision.pptx
PDF
(slides 3) Visual Computing: Geometry, Graphics, and Vision
PDF
Projection.pdf is CAD CAM engg is that the
PDF
Lecture20
Computer Vision - Single View
The geometry of perspective projection
Structure and Motion - 3D Reconstruction of Cameras and Structure
2d/3D transformations in computer graphics(Computer graphics Tutorials)
Journey to structure from motion
Multiple_view_geometry - Mechatronics and Robotics
introduction to camera, the operation of camera
Lec15 sfm
Computer Vision single view Modelling
2D Transformation.pptx
transformations2 and fitting on image processing.pptx
Camera Calibration from a Single Image based on Coupled Line Cameras and Rect...
3-D Visual Reconstruction: A System Perspective
2-Vector.pptx
Lecture21
Lecture21
UNITIII1 Stereo geometry and vision.pptx
(slides 3) Visual Computing: Geometry, Graphics, and Vision
Projection.pdf is CAD CAM engg is that the
Lecture20
Ad

More from Shih-Hsiang Lin (13)

PDF
Introduction to Apache Ant
PDF
Introduction to GNU Make Programming Language
KEY
Ch6 file, saving states, and preferences
PDF
[C++ gui programming with qt4] chap9
PDF
Ch5 intent broadcast receivers adapters and internet
PDF
Ch4 creating user interfaces
PDF
Ch3 creating application and activities
PDF
[C++ GUI Programming with Qt4] chap7
PPTX
[C++ GUI Programming with Qt4] chap4
PPTX
Function pointer
PPTX
Git basic
PPTX
Project Hosting by Google
PDF
An Introduction to Hidden Markov Model
Introduction to Apache Ant
Introduction to GNU Make Programming Language
Ch6 file, saving states, and preferences
[C++ gui programming with qt4] chap9
Ch5 intent broadcast receivers adapters and internet
Ch4 creating user interfaces
Ch3 creating application and activities
[C++ GUI Programming with Qt4] chap7
[C++ GUI Programming with Qt4] chap4
Function pointer
Git basic
Project Hosting by Google
An Introduction to Hidden Markov Model

Recently uploaded (20)

PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Insiders guide to clinical Medicine.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
O7-L3 Supply Chain Operations - ICLT Program
Anesthesia in Laparoscopic Surgery in India
Microbial diseases, their pathogenesis and prophylaxis
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
PPH.pptx obstetrics and gynecology in nursing
Microbial disease of the cardiovascular and lymphatic systems
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Insiders guide to clinical Medicine.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
TR - Agricultural Crops Production NC III.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
FourierSeries-QuestionsWithAnswers(Part-A).pdf

Introduction to homography

  • 2. Coordinate System view coordinate system object coordinate system x y z world coordinate system
  • 3. History P->G: 以 E 為眼點從平面 G 到平面 W 的 透視對應
  • 4. Outline Projective Geometry Projective Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
  • 5. Homo. representation (1) Lines This equivalence relationship is known as a homogeneous vector representative
  • 6. Homo. representation (2) Points Homo. representation
  • 7. Degree of freedom (DoF) Point Line
  • 8. 2 lines Assume Intersection of lines (1)
  • 9. Intersection of lines (2) Ex: determining the intersection of the lines x = 1 and y = 1 y = 1 x = 1
  • 10. Line joining points The line passing through two points x and x’ Assume
  • 11. Line at infinity (1) Consider 2 lines Intersection
  • 12. Line at infinity (2) Inhomogeneous representation No sense ! Suggest the point has infinitely large coordinates Homogeneous coordinates (x, y, 0) T do not correspond to any finite point in R 2
  • 13. Line at infinity (3) Ex: intersection point of 2 lines x=1 and x=2 The point at infinity in the direction of the y-axis
  • 14. Line at infinity (4) Projective Space P 2 : augment R 2 by adding points with last coordinate x 3 = 0 to all homogeneous 3-vectors The points with last coordinate x 3 = 0 are known as ideal points , or points at infinity The set of all ideal points may be written (x 1 ,x 2 , 0) T . The set lies on a single line, the line at infinity , denoted by the vector (0,0,1) T => (x 1 ,x 2 ,0)(0,0,1) T =0
  • 15. Concept of points at infinity Simplify the intersection properties of points and lines In P 2 , one may state without qualification (not true in the R 2 ) 2 distinct lines meet in a single point 2 distinct points lie on a single line
  • 16. A model for the projective plane Points and Lines of P 2 are represented by Rays and Planes , respectively, through the origin in R 3 Lines lying in the x 1 x 2 -plane represent ideal points , and the x 1 x 2 -plane represents l ∞
  • 17. Outline Projective Geometry Projective Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
  • 19. Definition (1) A projectivity is an invertible mapping h from P 2 to itself such that 3 points x 1 , x 2 and x 3 lie on the same line if and only if h(x 1 ) , h(x 2 ) and h(x 3 ) do Synonymous Collineation Homography
  • 20. Definition (2) A mapping h from P 2 to P 2 There exists a non-singular 3 x 3 matrix H such that for any point in P 2 represented by a vector x it is true that
  • 21. Definition (3) H is a homogeneous matrix , since as in the homogeneous representation of a point, only the ratio of the matrix elements is significant (Dof = 8)
  • 22. A hierarchy of transformations (1)
  • 23. A hierarchy of transformations (2)
  • 24. Outline Projective Geometry Projective Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
  • 27. 2D Homography x i in P 2 x j in P 2 In a practical situation, the points x i and x j are points in 2 images (or the same image), each image being considered as a projective plane P 2
  • 29. DLT Algorithm (2) Since each point correspondence provides 2 equations, 4 correspondences are sufficient to solve for the 8 degrees of freedom of H Use more than 4 correspondences to ensure a more robust solution (The problem then becomes to solve for a vector h that minimizes a suitable cost function )
  • 30. Outline Projective Geometry Projective Transformation Estimation Document Perspective Distortion Direct Linear Transform (DLT) Algorithm OpenCV Implementation
  • 31. OpenCV Implementation Mat findHomography ( const Mat & srcPoints, const Mat & dstPoints, int method=0, double ransacReprojThreshold=3); void warpPerspective ( const Mat & src, CV_OUT Mat & dst, const Mat & M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar& borderValue=Scalar()); Homography Estimation Projective Transform
  • 32. Reference Multiple View Geometry in Computer Vision , Cambridge University Press, 2000. Projective geometry and homogeneous coordinates [Video] - http://www.youtube.com/watch?v=q3turHmOWq4