ArticleslgStudy

computer science

Homography (computer vision)

Homography (computer vision) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Homography (computer vision) rather than just read about it. In short: In the field of computer vision, any two images of the same planar surface in space are related by a homography (assuming a pinhole camera model). This has many practical applications, such as image rectification, image registration, or camera motion—rotation and translation—between two images.

Homography (computer vision) — main illustration
Homography (computer vision) — illustration

Key takeaways

  • Homography (computer vision) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Homography (computer vision) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Homography (computer vision) from memory before moving on to harder problems.

Reference excerpt

In the field of computer vision, any two images of the same planar surface in space are related by a homography (assuming a pinhole camera model). This has many practical applications, such as image rectification, image registration, or camera motion—rotation and translation—between two images. Once camera resectioning has been done from an estimated homography matrix, this information may be used for navigation, or to insert models of 3D objects into an image or video, so that they are rendered with the correct perspective and appear to have been part of the original scene (see Augmented reality).

3D plane to plane equation We have two cameras a and b, looking at points Pi in a plane. Passing from the projection bpi=(bui;bvi;1) of Pi in b to the projection api=(aui;avi;1) of Pi in a:

api=bziaziKa⋅Hab⋅Kb−1⋅bpi where azi and bzi are the z coordinates of P in each camera frame and where the homography matrix Hab is given by

Hab=R−tnTd. R is the rotation matrix by which b is rotated in relation to a; t is the translation vector from a to b; n and d are the normal vector of the plane and the distance from origin to the plane respectively. Ka and Kb are the cameras' intrinsic parameter matrices.

The figure shows camera b looking at the plane at distance d. Note: From above figure, assuming nTPi+d=0 as plane model, nTPi is the projection of vector Pi along n, and equal to −d. So t=t⋅1=t(−nTPid). And we have HabPi=RPi+t where Hab=R−tnTd. This formula is only valid if camera b has no rotation and no translation. In the general case where Ra,Rb and ta,tb are the respective rotations and translations of camera a and b, R=RaRbT and the homography matrix Hab becomes

Hab=RaRbT−(−Ra∗RbT∗tb+ta)nTd where d is the distance of the camera b to the plane.

Affine homography When the image region in which the homography is computed is small or the image has been acquired with a large focal length, an affine homography is a more appropriate model of image displacements. An affine homography is a special type of a general homography whose last row is fixed to

h31=h32=0,h33=1.

See also Direct linear transformation Epipolar geometry Feature (computer vision) Fundamental matrix (computer vision) Pose (computer vision) Photogrammetry

References

O. Chum and T. Pajdla and P. Sturm (2005). "The Geometric Error for Homographies" (PDF). Computer Vision and Image Understanding. 97 (1): 86–102. doi:10.1016/j.cviu.2004.03.004.

Toolboxes homest is a GPL C/C++ library for robust, non-linear (based on the Levenberg–Marquardt algorithm) homography estimation from matched point pairs (Manolis Lourakis). OpenCV is a complete (open and free) computer vision software library that has many routines related to homography estimation (cvFindHomography) and re-projection (cvPerspectiveTransform).

External links Serge Belongie & David Kriegman (2007) Explanation of Homography Estimation from Department of Computer Science and Engineering, University of California, San Diego. A. Criminisi, I. Reid & A. Zisserman (1997) "A Plane Measuring Device", §3 Computing the Plane to Plane Homography, from Visual Geometry Group, Department of Engineering Science, University of Oxford. Elan Dubrofsky (2009) Homography Estimation, Master's thesis, from Department of Computer Science, University of British Columbia. Richard Hartley & Andrew Zisserman (2004) Multiple View Geometry from Visual Geometry Group, Oxford. Includes Matlab Functions for calculating a homography and the fundamental matrix (computer vision). GIMP Tutorial – using the Perspective Tool by Billy Kerr on YouTube. Shows how to do a perspective transform using GIMP. Allan Jepson (2010) Planar Homographies from Department of Computer Science, University of Toronto. Includes 2D homography from four pairs of corresponding points, mosaics in image processing, removing perspective distortion in computer vision, rendering textures in computer graphics, and computing planar shadows. Plane transfer homography Course notes from CSE576 at University of Washington in Seattle. Etienne Vincent & Robert Laganiere (2000) Detecting Planar Homographies in an Image Pair Archived 2016-03-04 at the Wayback Machine from School of Information Technology and Engineering, University of Ottawa. Describes an algorithm for detecting planes in images, uses random sample consensus (RANSAC) method, describes heuristics and iteration.

Illustrations

Homography (computer vision): Geometrical setup for homography: stereo cameras O1 and O2 both pointed at X in epipolar geometry. Drawing from Neue Konstruktionen der Perspektive und Photogrammetrie by Hermann Guido Hauck (1845 — 1905)
Geometrical setup for homography: stereo cameras O1 and O2 both pointed at X in epipolar geometry. Drawing from Neue Konstruktionen der Perspektive und Photogrammetrie by Hermann Guido Hauck (1845 — 1905)
Homography (computer vision) illustration

Worked examples

Example 1 — a first encounter with Homography (computer vision)

Start with the simplest possible case. Write down what Homography (computer vision) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Homography (computer vision) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Homography (computer vision) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Homography (computer vision)

In research
Homography (computer vision) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Homography (computer vision) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Homography (computer vision) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Functions and mappings, Geometry in computer vision, so understanding it makes those chapters shorter.
In everyday life
Look for Homography (computer vision) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Homography (computer vision)” →

How to study Homography (computer vision) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Homography (computer vision) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Homography (computer vision) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Homography (computer vision) in simple terms?

In the field of computer vision, any two images of the same planar surface in space are related by a homography (assuming a pinhole camera model). This has many practical applications, such as image rectification, image registration, or camera motion—rotation and translation—between two images.

Why does Homography (computer vision) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Homography (computer vision)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Homography (computer vision).

Tags

  • Functions and mappings
  • Geometry in computer vision

Keep exploring