ArticleslgStudy

mathematics

Direct linear transformation

Direct linear transformation is a mathematics 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 Direct linear transformation rather than just read about it. In short: Direct linear transformation (DLT) is an algorithm which solves a set of variables from a set of similarity relations: 𝐱k∝𝐀𝐲k for k=1,…,N where 𝐱k and 𝐲k are known vectors, ∝ denotes equality up to an unknown scalar multiplication, and 𝐀 is a matrix (or linear transformation) which contains the unknowns to be solved. This type of relation appears frequently in projective geometry.

Key takeaways

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

Reference excerpt

Direct linear transformation (DLT) is an algorithm which solves a set of variables from a set of similarity relations:

𝐱k∝𝐀𝐲k for k=1,…,N where 𝐱k and 𝐲k are known vectors, ∝ denotes equality up to an unknown scalar multiplication, and 𝐀 is a matrix (or linear transformation) which contains the unknowns to be solved. This type of relation appears frequently in projective geometry. Practical examples include the relation between 3D points in a scene and their projection onto the image plane of a pinhole camera, and homographies.

Introduction An ordinary system of linear equations

𝐱k=𝐀𝐲k for k=1,…,N can be solved, for example, by rewriting it as a matrix equation 𝐗=𝐀𝐘 where matrices 𝐗 and 𝐘 contain the vectors 𝐱k and 𝐲k in their respective columns. Given that there exists a unique solution, it is given by

𝐀=𝐗𝐘T(𝐘𝐘T)−1. Solutions can also be described in the case that the equations are over or under determined. What makes the direct linear transformation problem distinct from the above standard case is the fact that the left and right sides of the defining equation can differ by an unknown multiplicative factor which is dependent on k. As a consequence, 𝐀 cannot be computed as in the standard case. Instead, the similarity relations are rewritten as proper linear homogeneous equations which then can be solved by a standard method. The combination of rewriting the similarity equations as homogeneous linear equations and solving them by standard methods is referred to as a direct linear transformation algorithm or DLT algorithm. DLT is attributed to Ivan Sutherland.

Example Suppose that k∈{1,...,N}. Let 𝐱k=(x1k,x2k)∈ℝ2 and 𝐲k=(y1k,y2k,y3k)∈ℝ3 be two known vectors, and we want to find the 2×3 matrix 𝐀 such that

αk𝐱k=𝐀𝐲k where αk≠0 is the unknown scalar factor related to equation k. To get rid of the unknown scalars and obtain homogeneous equations, define the anti-symmetric matrix

𝐇=(0−110) and multiply both sides of the equation with 𝐱kT𝐇 from the left

(𝐱kT𝐇)αk𝐱k=(𝐱kT𝐇)𝐀𝐲kαk𝐱kT𝐇𝐱k=𝐱kT𝐇𝐀𝐲k Since 𝐱kT𝐇𝐱k=0, the following homogeneous equations, which no longer contain the unknown scalars, are at hand

𝐱kT𝐇𝐀𝐲k=0 In order to solve 𝐀 from this set of equations, consider the elements of the vectors 𝐱k and 𝐲k and matrix 𝐀:

𝐱k=(x1kx2k), 𝐲k=(y1ky2ky3k), and 𝐀=(a11a12a13a21a22a23) and the above homogeneous equation becomes

0=a11x2ky1k−a21x1ky1k+a12x2ky2k−a22x1ky2k+a13x2ky3k−a23x1ky3k for k=1,…,N. This can also be written in the matrix form:

0=𝐛kT𝐚 for k=1,…,N where 𝐛k and 𝐚 both are 6-dimensional vectors defined as

𝐛k=(x2ky1k−x1ky1kx2ky2k−x1ky2kx2ky3k−x1ky3k) and 𝐚=(a11a21a12a22a13a23). So far, we have 1 equation and 6 unknowns. A set of homogeneous equations can be written in the matrix form

𝟎=𝐁𝐚 where 𝐁 is a N×6 matrix which holds the known vectors 𝐛k in its rows. The unknown 𝐚 can be determined, for example, by a singular value decomposition of 𝐁; 𝐚 is a right singular vector of 𝐁 corresponding to a singular value that equals zero. Once 𝐚 has been determined, the elements of matrix 𝐀 can rearranged from vector 𝐚. Notice that the scaling of 𝐚 or 𝐀 is not important (except that it must be non-zero) since the defining equations already allow for unknown scaling. In practice the vectors 𝐱k and 𝐲k may contain noise which means that the similarity equations are only approximately valid. As a consequence, there may not be a vector 𝐚 which solves the homogeneous equation 𝟎=𝐁𝐚 exactly. In these cases, a total least squares solution can be used by choosing 𝐚 as a right singular vector corresponding to the smallest singular value of 𝐁.

More general cases The above example has 𝐱k∈ℝ2 and 𝐲k∈ℝ3, but the general strategy for rewriting the similarity relations into homogeneous linear equations can be generalized to arbitrary dimensions for both 𝐱k and 𝐲k. If 𝐱k∈ℝ2 and 𝐲k∈ℝq the previous expressions can still lead to an equation

0=𝐱kT𝐇𝐀𝐲k for k=1,…,N where 𝐀 now is 2×q. Each k provides one equation in the 2q unknown elements of 𝐀 and together these equations can be written 𝐁𝐚=𝟎 for the known N×2q matrix 𝐁 and unknown 2q-dimensional vector 𝐚. This vector can be found in a similar way as before. In the most general case 𝐱k∈ℝp and 𝐲k∈ℝq. The main difference compared to previously is that the matrix 𝐇 now is p×p and anti-symmetric. When p>2 the space of such matrices is no longer one-dimensional, it is of dimension

M=p(p−1)2. This means that each value of k provides M homogeneous equations of the type

0=𝐱kT𝐇m𝐀𝐲k for m=1,…,M and for k=1,…,N where 𝐇m is a M-dimensional basis of the space of p×p anti-symmetric matrices.

Example p = 3 In the case that p = 3 the following three matrices 𝐇m can be chosen

𝐇1=(00000−1010), 𝐇2=(001000−100), 𝐇3=(0−10100000). In this particular case, the homogeneous linear equations can be written as

𝟎=[𝐱k]×𝐀𝐲k for k=1,…,N where [𝐱k]× is the matrix representation of the vector cross product. Notice that this last equation is vector valued; the left hand side is the zero element in ℝ3. Each value of k provides three homogeneous linear equations in the unknown elements of 𝐀. However, since [𝐱k]× has rank = 2, at most two equations are linearly independent. In practice, therefore, it is common to only use two of the three matrices 𝐇m, for example, for m=1, 2. However, the linear dependency between the equations is dependent on 𝐱k, which means that in unlucky cases it would have been better to choose, for example, m=2,3. As a consequence, if the number of equations is not a concern, it may be better to use all three equations when the matrix 𝐁 is constructed. The linear dependence between the resulting homogeneous linear equations is a general concern for the case p > 2 and has to be dealt with either by reducing the set of anti-symmetric matrices 𝐇m or by allowing 𝐁 to become larger than necessary for determining 𝐚.

References

Richard Hartley and Andrew Zisserman (2003). Multiple View Geometry in computer vision. Cambridge University Press. ISBN 978-0-521-54051-3.

External links Homography Estimation by Elan Dubrofsky (§2.1 sketches the "Basic DLT Algorithm") A DLT Solver based on MATLAB by Hsiang-Jen (Johnny) Chien

Worked examples

Example 1 — a first encounter with Direct linear transformation

Start with the simplest possible case. Write down what Direct linear transformation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Direct linear transformation 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 Direct linear transformation 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 Direct linear transformation

In research
Direct linear transformation appears in mathematics 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 Direct linear transformation 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
Direct linear transformation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Geometry in computer vision, Projective geometry, so understanding it makes those chapters shorter.
In everyday life
Look for Direct linear transformation 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 “Direct linear transformation” →

How to study Direct linear transformation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Direct linear transformation 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 Direct linear transformation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Direct linear transformation in simple terms?

Direct linear transformation (DLT) is an algorithm which solves a set of variables from a set of similarity relations: 𝐱k∝𝐀𝐲k for k=1,…,N where 𝐱k and 𝐲k are known vectors, ∝ denotes equality up to an unknown scalar multiplication, and 𝐀 is a matrix (or linear transformation) which contains t…

Why does Direct linear transformation matter?

Because it connects several mathematics 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 Direct linear transformation?

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 Direct linear transformation.

Tags

  • Geometry in computer vision
  • Projective geometry

Keep exploring