Definitionintro
Homography
Also called projective transformation, planar homography, collineation.
An invertible map of the projective plane given by a 3 by 3 matrix up to scale; it relates two images of a plane and two images taken from one center.
A homography is an invertible map of the projective plane that sends lines to lines. Every homography is for an invertible matrix , defined up to a nonzero factor, so it has 8 degrees of freedom. In vision it relates two images of one plane, and two images of any scene taken by a camera that turns about its center. This page defines the map and its two sources; homography estimation is the problem of finding from matched points, the DLT is the linear method that solves it, and homography decomposition recovers the camera motion from .
Definition
A homography (also projectivity or projective transformation) of is an invertible map such that three points lie on one line if and only if their images lie on one line.
Matrix form. A map is a homography if and only if there is an invertible real matrix with for every point , in homogeneous coordinates. The matrices and , , give the same map, and only they do. So a homography has degrees of freedom. A common way to fix the scale is ; the choice fails when the true is 0.
In inhomogeneous coordinates, with , the point goes to
Lines and conics. If points map by , a line maps to , because . A conic maps to .
Four points fix it. Given four points with no three on a line and four image points with no three on a line, there is exactly one homography that maps the first four to the second four. With fewer points it is not unique, and with three points on a line the problem is degenerate.
The plane-induced homography. Let a plane be in the frame of camera 1, with a unit normal and its distance from the center of camera 1. Let a point have coordinates in camera 1 and in camera 2, and let the images be and , with the intrinsic matrices. On the plane , so and
Hartley and Zisserman (Section 13.1) write the plane as , so their formula has a minus sign: . Both describe the same map.
The homography of a turning camera. If the camera only turns about its center, and the formula gives for every point of the scene, whatever its depth. This is the basis of panoramas (HZ Section 8.4).
Group. The product of two homographies and the inverse of a homography are homographies. They form the projective group, the last class of the hierarchy of planar transformations. Every homography keeps incidence, collinearity and the cross-ratio.
Examples and non-examples
- A square to a trapezoid. sends , , , to , , , . For example . The center goes to . The third row is the line , which this sends to the line at infinity: the point goes to .
- A camera that turns. Take , so the principal point is the origin, and a turn about the vertical axis with , : . Then . The image center goes to , which is .
- A plane seen from two cameras. With , the same , , and : . The point of image 1 goes to .
- Non-example: a scene with depth and a moving center. If and the points are not on one plane, the image of a point depends on its depth (parallax), and no single maps all points of image 1 to their matches. The two images are then related by the fundamental matrix, which maps a point to a line, not to a point.
- Non-example: a singular matrix. A matrix of rank 2 sends all of to one line and is not invertible. It occurs for a plane through the center of camera 2, which that camera sees edge on.
- Non-example: lens distortion. Radial distortion bends straight lines, so two images of a plane through a real lens are related by a homography only after the distortion is removed (see the Brown-Conrady model).
Related definitions
- Hierarchy of planar transformations: the Euclidean, similarity and affine maps are the homographies of special forms.
- Homography estimation and the DLT for homographies: how to compute from point matches.
- Homography decomposition: the inverse of the plane formula, from back to , and .
- Image warping: resampling an image through to apply a homography to pixels.
- Image stitching: uses to put the photos of a panorama in one frame.
- Fundamental matrix: for two views and any plane with homography , , where is the epipole of image 2.
References
- Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, second edition, Cambridge University Press, 2004, Section 2.3, Projective transformations (the definition, the matrix form and the maps of lines and conics); Section 8.4, The importance of the camera centre (images from one center); Section 13.1, Homographies given the plane and vice versa
- Richard Szeliski, Computer Vision, Algorithms and Applications, second edition, Springer, 2022, Section 2.1, Geometric primitives and transformations (the 2D projective transformation) and Chapter 8, Image alignment and stitching
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag JZXEV2 Edit this page History Report an error Markdown