# Projective transformation

﻿
Projective transformation

A projective transformation is a transformation used in projective geometry: it is the composition of a pair of perspective projections. It describes what happens to the perceived positions of observed objects when the point of view of the observer changes. Projective transformations do not preserve sizes or angles but do preserve incidence and cross-ratio: two properties which are important in projective geometry. A projective transformation can also be called a projectivity.

As important special cases, a projective transformation can be in the (real) one-dimensional projective line "RP"1, the two-dimensional projective plane "RP"2, and the three-dimensional projective 3-space "RP"3.

Transformations on the projective line

Let "X" be a point on the "x"-axis. A projective transformation can be defined geometrically for this line by picking a pair of points "P", "Q", and a line "m", all within the same "x-y" plane which contains the "x"-axis upon which the transformation will be performed.

Draw line "l" through points "P" and "X". Line "l" crosses line "m" at point "R". Then draw line "n" through points "Q" and "R": line "n" will cross the "x"-axis at point "T". Point "T" is the transform of point "X" [Paiva] .

Points "P" and "Q" represent two different observers, or points of view. Point "R" is the position of some object they are observing. Line "m" is the objective world which they are observing, and the "x"-axis is the subjective perception of "m".

Analysis

The above is a synthetic description of a one-dimensional projective transformation. It is now desired to convert it to an analytical (Cartesian) description.

Let point "X" have coordinates "(x0,0)". Let point "P" have coordinates $\left(P_x,P_y\right)$. Let point "Q" have coordinates $\left(Q_x,Q_y\right)$. Let line "m" have slope "m" ("m" is being overloaded in meaning).

The slope of line "l" is

:$P_y over P_x - x_0,$

so an arbitrary point "(x,y)" on line "l" is given by the equation

:$\left\{y over x - x_0\right\} = \left\{P_y over P_x - x_0\right\}$,

:$y = \left\{P_y over P_x - x_0\right\} \left(x - x_0\right). qquad qquad \left(1\right)$

On the other hand, any point "(x,y)" on line "m" is described by

:$y = m x + b. qquad qquad \left(2\right)$

The intersection of lines "l" and "m" is point "R", and it is obtained by combining equations (1) and (2):

:$m x + b = \left\{P_y x over P_x - x_0\right\} - \left\{P_y x_0 over P_x - x_0\right\}.$

Joining the "x" terms yields

:$left\left( \left\{P_y over P_x - x_0\right\} - m ight\right) x = b + \left\{P_y x_0 over P_x - x_0\right\}$

and solving for "x" we obtain

:$x_1 = \left\{b \left(P_x - x_0\right) + P_y x_0 over P_y - m \left(P_x - x_0\right)\right\}.$

"x"1 is the abscissa of "R". The ordinate of "R" is

:$y_1 = m left \left[ \left\{b \left(P_x - x_0\right) + P_y x_0 over P_y - m \left(P_x - x_0\right)\right\} ight\right] + b.$

Now, knowing both "Q" and "R", the slope of line "n" is

:$\left\{y_1 - Q_y over x_1 - Q_x\right\} .$

We want to find the intersection of line "n" and the "x"-axis, so let

:$\left(Q_x, Q_y\right) + lambda \left(x_1 - Q_x, y_1 - Q_y\right) = \left(x,0\right) qquad qquad \left(3\right)$

The value of "λ" must be adjusted so that both sides of vector equation (3) are equal. Equation (3) is actually two equations, one for abscissas and one for ordinates. The one for ordinates is

:$Q_y + lambda \left(y_1 - Q_y\right) = 0$

Solve for lambda,

:$lambda = \left\{-Q_y over y_1 - Q_y\right\} qquad qquad \left(4\right)$

The equation for abscissas is

:$x = Q_x + lambda \left(x_1 - Q_x\right)$

which together with equation (4) yields

:$x = Q_x - Q_y left\left( \left\{x_1 - Q_x over y_1 - Q_y\right\} ight\right) qquad qquad \left(5\right)$

which is the abscissa of "T".

Substitute the values of "x1" and "y1" into equation (5),

:$x = Q_x - Q_y left \left[ \left\{ \left\{b \left(P_x - x_0\right) + P_y x_0 over P_y - m \left(P_x - x_0\right)\right\} - Q_x over \left\{m b \left(P_x - x_0\right) + m P_y x_0 over P_y - m \left(P_x - x_0\right)\right\} + b - Q_y\right\} ight\right] .$

Dissolve the fractions in both numerator and denominator:

:$x = Q_x - Q_y left \left[ \left\{b \left(P_x - x_0\right) + P_y x_0 - Q_x P_y + m Q_x \left(P_x - x_0\right) over m b \left(P_x - x_0\right) + m P_y x_0 + b P_y - m b \left(P_x - x_0\right) - Q_y P_y + m Q_y \left(P_x - x_0\right) \right\} ight\right] .$

Simplify and relabel "x" as "t(x)":

:$t\left(x\right) = Q_x - Q_y left \left[ \left\{ \left(P_x - x_0\right) \left(b + m Q_x\right) + P_y \left(x_0 - Q_x\right) over \left(P_x - x_0\right) m Q_y + P_y \left(m x_0 + b - Q_y\right) \right\} ight\right] .$

"t(x)" is the projective transformation.

Transformation "t"("x") can be simplified further. First, add its two terms to form a fraction:

:$t\left(x\right) = \left\{ \left(m Q_x P_y - Q_y P_y + b Q_y\right) x_0 + \left(b Q_x P_y - b Q_y P_x\right) over m \left(P_y - Q_y\right) x_0 + \left(m P_x Q_y + P_y \left(b - Q_y\right)\right) \right\} qquad qquad \left(6\right)$

Then, define the coefficients "α", "β", "γ" and "δ" to be the following

:$alpha = m Q_x P_y - Q_y P_y + b Q_y,$::$gamma = m \left(P_y - Q_y\right),$:$delta = m P_x Q_y + P_y \left(b - Q_y\right).$

Substitute these coefficients into equation (6), in order to produce

:

This is the Möbius transformation or bilinear fractional transformation (so called because it has a linear numerator and a linear denominator. Actually, it is bilinear because the composition of projections is a binary linear operator, similar to matrix multiplication).

Inverse transformation

It is clear from the synthetic definition that the inverse transformation is obtained by exchanging points "P" and "Q". This can also be shown analytically. If "P" ↔ "Q", then "α" → "α′", "β" → "β′", "γ" → "γ′", and "δ" → "δ′", where:$alpha\text{'} = m P_x Q_y - P_y Q_y + b P_y = delta,$::$gamma\text{'} = m \left(Q_y - P_y\right) = - gamma,$:$delta\text{'} = m Q_x P_y + b Q_y - Q_y P_y = alpha.$

Therefore if the forwards transformation is

:

then the transformation "t′" obtained by exchanging "P" and "Q" ("P" ↔ "Q") is:

:

Then

:.

Dissolve the fractions in both numerator and denominator of the right side of this last equation:

:::.

Therefore "t"′("x") = "t"−1("x"): the inverse projective transformation is obtained by exchanging observers "P" and "Q", or by letting α ↔ δ, β → −β, and γ → −γ. This is, by the way, analogous to the procedure for obtaining the inverse of a two-dimensional matrix:

:

where Δ = α δ − β γ is the determinant.

Identity transformation

Also analogous with matrices is the identity transformation, which is obtained by letting α = 1, β = 0, γ = 0, and δ = 1, so that

:$t_I\left(x\right) = x.$

Composition of transformations

It remains to show that there is closure in the composition of transformations. One transformation operating on another transformation produces a third transformation. Let the first transformation be "t"1 and the second one be "t"2:

::

The composition of these two transformations is

:::::::

Define the coefficients α3, β3, γ3 and δ3 to be equal to

:::$gamma_3 = gamma_2 alpha_1 + delta_2 gamma_1,$:

Substitute these coefficients into $t_2\left(t_1\left(x\right)\right)$ to obtain

:

Projections operate in a way analogous to matrices. In fact, the composition of transformations can be obtained by multiplying matrices::Since matrices multiply associatively, it follows that composition of projections is also associative.

Projections have: an operation (composition), associativity, an identity, an inverse and closure, so they form a group.

The cross-ratio defined by means of a projection

Let there be a transformation "ts" such that "ts"("A") = $infty$, "ts"("B") = 0, "ts"("C") = 1. Then the value of "ts"("D") is called the cross-ratio of points "A", "B", "C" and "D", and is denoted as ["A", "B", "C", "D"] "s":

:$\left[A,B,C,D\right] _s = t_s\left(D\right).$

Let

:

then the three conditions for "ts(x)" are met when

:::

Equation (7) implies that $gamma A + delta = 0$, therefore $delta = - gamma A$.Equation (8) implies that , so that .Equation (9) becomes

:$\left\{alpha C - alpha B over gamma C - gamma A\right\} = 1,$

which implies

:$gamma = alpha \left\{C - B over C - A\right\}.$

Therefore

:$t_s\left(D\right) = \left\{alpha D - alpha B over alpha left\left( \left\{C - B over C - A\right\} ight\right) D - gamma A\right\} = \left\{alpha \left(D - B\right) over alpha left\left( \left\{C - B over C - A\right\} ight\right) D - alpha left\left( \left\{C - B over C - A\right\} ight\right) A\right\}$::$= \left\{D - B over C - B\right\} \left\{C - A over D - A\right\} = \left\{A - C over A - D\right\} \left\{B - D over B - C\right\}. qquad qquad \left(10\right)$

In equation (10), it is seen that "ts"("D") does not depend on the coefficients of the projection "ts". It only depends on the positions of the points on the "subjective" projective line. This means that the cross-ratio depends only on the relative distances among four collinear points, and not on the projective transformation which was used to obtain (or define) the cross-ratio. The cross ratio is therefore:$\left[A,B,C,D\right] = \left\{A - C over A - D\right\} \left\{B - D over B - C\right\}. qquad qquad \left(11\right)$

Conservation of cross-ratio

Transformations on the projective line preserve cross ratio. This will now be proven. Let there be four (collinear) points "A", "B", "C", "D". Their cross-ratio is given by equation (11). Let "S(x)" be a projective transformation:

:

where . Then

:$\left[S\left(A\right) S\left(B\right) S\left(C\right) S\left(D\right)\right] =$alpha A + eta over gamma A + delta} - {alpha C + eta over gamma C + delta} over {alpha A + eta over gamma A + delta} - {alpha D + eta over gamma D + delta cdot alpha B + eta over gamma B + delta} - {alpha D + eta over gamma D + delta} over {alpha B + eta over gamma B + delta} - {alpha C + eta over gamma C + delta

::

::

::

::

::$= \left\{A - C over A - D\right\} cdot \left\{B - D over B - C\right\}$Therefore [S(A) S(B) S(C) S(D)] = [A B C D] , Q.E.D.

Transformations on the projective plane

Two-dimensional projective transformations are a type of automorphism of the projective plane onto itself.

Planar transformations can be defined synthetically as follows: point "X" on a "subjective" plane must be transformed to a point "T" also on the subjective plane. The transformations uses these tools: a pair of "observation points" "P" and "Q", and an "objective" plane. The subjective and objective planes and the two points all lie in three-dimensional space, and the two planes can intersect at some line.

Draw line "l"1 through points "P" and "X". Line "l"1 intersects the objective plane at point "R". Draw line "l"2 through points "Q" and "R". Line "l"2 intersects the projective plane at point "T". Then "T" is the projective transform of "X".

Analysis

Let the "xy"-plane be the "subjective" plane and let plane "m" be the "objective" plane. Let plane "m" be described by

:$z = f\left(x,y\right) = m x + n y + b$

where the constants "m" and "n" are partial slopes and "b" is the "z"-intercept.

Let there be a pair of "observation" points "P" and "Q",

:$P : \left(P_x, P_y, P_z\right),$:$Q : \left(Q_x, Q_y, Q_z\right).$

Let point "X" lie on the "subjective" plane:

:$X : \left(x,y,0\right).$

Point "X" must be transformed to a point "T",

:$T : \left(T_x, T_y, 0\right)$

also on the "subjective" plane.

The analytical results are a pair of equations, one for abscissa "Tx" and one for ordinate "Ty":

:$T_x = \left\{x \left(-m Q_x P_z - n Q_z P_y + Q_z \left(P_z - b\right)\right) + \left(n y + b\right) \left(Q_z P_x - Q_x P_z\right) over \left(m x + n y\right) \left(Q_z - P_z\right) - \left(m P_x + n P_y\right) Q_z + \left(Q_z - b\right) P_z\right\}, qquad qquad \left(12\right)$

:$T_y = \left\{y \left(-n Q_y P_z - m Q_z P_x + Q_z \left(P_z - b\right)\right) + \left(m x + b\right) \left(Q_z P_y - Q_y P_z\right) over \left(n y + m x\right) \left(Q_z - P_z\right) - \left(n P_y + m P_x\right) Q_z + \left(Q_z - b\right) P_z \right\}. qquad qquad \left(13\right)$

There are (at most) nine degrees of freedom for defining a 2D transformation: "Px", "Py", "Pz", "Qx", "Qy", "Qz", "m", "n", "b". Notice that equations (12) and (13) have the same denominators, and that "Ty" can be obtained from "Tx" by exchanging "m" with "n", and "x" with "y" (including subscripts of "P" and "Q").

Trilinear fractional transformations

Let

:$alpha = -m Q_x P_z - n Q_z P_y + Q_z \left(P_z - b\right),$::$gamma = b \left(Q_z P_x - Q_x P_z\right),$:$delta = m \left(Q_z - P_z\right),$:$epsilon = n \left(Q_z - P_z\right),$:$zeta = - \left(m P_x + n P_y\right) Q_z + \left(Q_z - b\right) P_z,$

so that

:

Also let

:$eta = m \left(Q_z P_y - Q_y P_z\right),$:$heta = -m Q_z P_x - n Q_y P_z + Q_z \left(P_z - b\right),$:$kappa = b \left(Q_z P_y - Q_y P_z\right),$

so that

:$T_y = \left\{eta x + heta y + kappa over delta x + epsilon y + zeta\right\}. qquad qquad \left(15\right)$

Equations (14) and (15) together describe the trilinear fractional transformation.

Composition of trilinear transformations

If a transformation is given by equations (14) and (15), then such transformation is characterized by nine coefficients which can be arranged into a coefficient matrix

:

If there are a pair "T"1 and "T"2 of planar transformations whose coefficient matrices are $M_\left\{T_1\right\}$ and $M_\left\{T_2\right\}$, then the composition of these transformations is another planar transformation "T"3,

:$T_3 = T_2 circ T_1 ,$

such that

:$T_3\left(x,y\right) = T_2 \left( T_1 \left(x,y\right) \right).$

The coefficient matrix of "T"3 can be obtained by multiplying the coefficient matrices of "T"2 and "T"1:

:$M_\left\{T_3\right\} = M_\left\{T_2\right\} , M_\left\{T_1\right\}.$

Proof

Given "T"1 defined by

::$T_\left\{1y\right\} = \left\{eta_1 x + heta_1 y + kappa_1 over delta_1 x + epsilon_1 y + zeta_1\right\},$and given "T2" defined by::$T_\left\{2y\right\} = \left\{eta_2 x + heta_2 y + kappa_2 over delta_2 x + epsilon_2 y + zeta_2\right\},$

then "T"3 can be calculated by substituting "T"1 into "T"2,

:

Multiply numerator and denominator by the same trinomial,

:

Group the coefficients of "x", "y", and 1:

:

These six coefficients of "T"3 are the same as those obtained through the product

:

The remaining three coefficients can be verified thus

:

Multiply numerator and denominator by the same trinomial,

:

Group the coefficients of "x", "y", and "1":

:

The three remaining coefficients just obtained are the same as those obtained through equation (16). Q.E.D.

Planar transformations of lines

The trilinear transformation given be equations (14) and (15) transforms a straight line

:$y = m x + b$

into another straight line

:$T_y = n T_x + c$

where "n" and "c" are constants and equal to

:

and

:

Proof

Given "y = m x + b", then plugging this into equations (14) and (15) yields

:

and

:$T_y = \left\{\left(eta + heta m\right) x + \left( heta b + kappa\right) over \left(delta + epsilon m\right) x + \left(epsilon b + zeta\right) \right\}.$

If "Ty = n Tx + c" and "n" and "c" are constants, then

:$\left\{partial T_y over partial x\right\} = n \left\{partial T_x over partial x\right\}$

so that

:$n = \left\{partial T_y / partial x over partial T_x / partial y\right\}.$Calculation shows that:

and

:$\left\{partial T_y over partial x\right\} = \left\{ \left(epsilon b + zeta\right) \left(eta + heta m\right) - \left( heta b + kappa\right) \left(delta + epsilon m\right) over \left[\left(delta + epsilon m\right) x + \left(epsilon b + zeta\right)\right] ^2 \right\}$

therefore

:

We should now obtain "c" to be

:$c = T_y - n T_x$:::Add the two fractions in the numerator::

Distribute binomials in parentheses in the numerator, then cancel out equal and opposite terms:

:

Factor the numerator into a pair of terms, only one of them having the "numerus cossicus" ("x"). There is another numerus cossicus in the denominator. The objective now is to get both of these to cancel out.

:

Factor the numerator,

:

The terms with the numeri cossici cancel out, therefore

:is a constant. Q.E.D.

Comparing "c" with "n", notice that their denominators are the same. Also, "n" is obtained from "c" by exchanging the following coefficients:

:

There is also the following exchange symmetry between the numerator and denominator of "n":

:

The numerator and denominator of "c" also have exchange symmetry: $\left\{ eta leftrightarrow delta, heta leftrightarrow epsilon, kappa leftrightarrow zeta \right\}.$

The exchange symmetry between "n" and "c" can be chunked into binomials:

:

All of these exchange symmetries amount to exchanging pairs of rows in the coefficient matrix.

Planar transformations of conic sections

A trilinear transformation such as "T" given by equations (14) and (15) will convert a conic section:$A x^2 + B y^2 + C x + D y + E x y + F = 0 qquad qquad \left(17\right)$into another conic section:$A\text{'} T_x^2 + B\text{'} T_y^2 + C\text{'} T_x + D\text{'} T_y + E\text{'} T_x T_y + F\text{'} = 0. qquad qquad \left(18\right)$

Proof

Let there be given a conic section described by equation (17) and a planar transformation "T" described by equations (15) and (16) which converts points "(x,y)" into points "(Tx,Ty)".

It is possible to find an inverse transformation "T′" which converts back points "(Tx,Ty)" to points "(x,y)". This inverse transformation has a coefficient matrix:

Equation (17) can be expressed in terms of the inverse transformation:

:

The denominators can be "dissolved" by multiplying both sides of the equation by the square of a trinomial:

:

Expand the products of trinomials and collect common powers of "Tx" and "Ty":

:

Equation (19) has the same form as equation (18).

What remains to do is to express the primed coefficients in terms of the unprimed coefficients. To do this, apply Cramer's rule to the coefficient matrix "MT" to obtain the primed matrix of the inverse transformation:

:
\ quad & quad & quad \left| egin{matrix} kappa & eta \ zeta & delta end{matrix} ight| &left| egin{matrix} zeta & delta \ gamma & alpha end{matrix} ight| &left| egin{matrix} gamma & alpha \ kappa & eta end{matrix} ight
\ quad & quad & quad \left| egin{matrix} eta & heta \ delta & epsilon end{matrix} ight| &left| egin{matrix} delta &epsilon \ alpha & eta end{matrix} ight| &left| egin{matrix} alpha & eta \ eta & heta end{matrix} ight
end{bmatrix} qquad qquad (20) where "Δ" is the determinant of the unprimed coefficient matrix.

Equation (20) allows primed coefficients to be expressed in terms of unprimed coefficients. But performing these substitutions on the primed coefficients of equation (19) it can be noticed that the determinant "Δ" cancels itself out, so that it can be ignored altogether. Therefore:$A\text{'} = A \left( heta zeta - kappa epsilon\right)^2+ B \left(kappa delta - eta zeta\right)^2+ C \left( heta zeta - kappa epsilon\right) \left(eta epsilon - heta delta\right)+ D \left(kappa delta - eta zeta\right) \left(eta epsilon - heta delta\right)+ E \left( heta zeta - kappa epsilon\right) \left(kappa delta - eta zeta\right)+ F \left(eta epsilon - heta delta\right)^2$

:

:

:

:

:

The coefficients of the transformed conic have been expressed in terms of the coefficients of the original conic and the coefficients of the planar transformation "T". Q.E.D.

Planar projectivities and cross-ratio

Let four points "A", "B", "C", "D" be collinear. Let there be a planar projectivity "T" which transforms these points into points "A′", "B′", "C′", and "D′". It was already shown that lines are transformed into lines, so that the transformed points "A′" through "D′" will also be collinear. Then it will turn out that the cross-ratio of the original four points is the same as the cross-ratio of their transforms::$\left[A B C D\right] = \left[A\text{'} B\text{'} C\text{'} D\text{'}\right] .$

Proof

If the two-dimensional coordinates of four points are known, and if the four points are collinear, then their cross-ratio can be found from their abscissas alone. It is possible to project the points onto a horizontal line by means of a pencil of vertical lines issuing from a point on the line at infinity::$\left[A B C D\right] = \left[A_x B_x C_x D_x\right] .$The same is true for the ordinates of the points. The reason is that any mere rescaling of the coordinates of the points does not change the cross-ratio.

Let:$A : \left(x_1, m x_1 + b\right),$:$B : \left(x_2, m x_2 + b\right),$:$C : \left(x_3, m x_3 + b\right),$:$D : \left(x_4, m x_4 + b\right).$

Clearly these four points are collinear. Let

:

be the first half of a trilinear transformation. Then

::::

The original cross-ratio is

:$\left[x_1 x_2 x_3 x_4\right] = \left\{x_1 - x_3 over x_1 - x_4\right\} cdot \left\{x_2 - x_4 over x_2 - x_3\right\}.$

It is not necessary to calculate the transformed cross-ratio. Just let

:

be a bilinear transformation. Then "S(x)" is a one-dimensional projective transformation. But "Tx(A)=S(A)", "Tx(B)=S(B)", "Tx(C)=S(C)", and "Tx(D)=S(D)". Therefore

:$\left[T_x\left(A\right) T_x\left(B\right) T_x\left(C\right) T_x\left(D\right)\right] = \left[S\left(A\right) S\left(B\right) S\left(C\right) S\left(D\right)\right]$

but it has already been shown that bilinear fractional transformations preserve cross-ratio. Q.E.D.

Example

The following is a rather simple example of a planar projectivity::$T_x = \left\{1 over x\right\}, qquad T_y = \left\{y over x\right\}.$The coefficient matrix of this projectivity "T" is:and it is easy to verify that "MT" is its own inverse.

The locus of points described parametrically as $\left( cos heta, , sin heta \right)$ describe a circle, due to the trigonometric identity:$cos^2 heta + sin^2 heta = 1$which has the same form as the canonical equation of a circle. Applying the projectivity "T" yields the locus of points described parametrically by $\left(sec heta,, an heta\right)$ which describe a hyperbola, due to the trigonometric identity:$sec^2 heta - an^2 heta = 1$which has the same form as the canonical equation of a hyperbola. Notice that points $\left(~-1,0\right)$ and $\left(1,0\right)$ are fixed points.

Indeed, this projectivity transforms any circle, of any radius, into a hyperbola centered at the origin with both of its foci lying on the "x"-axis, and vice versa. This projectivity also transforms the "y"-axis into the line at infinity, and vice versa::$T : \left(0, y\right) ightarrow left\left( \left\{1 over 0\right\}, \left\{y over 0\right\} ight\right) = \left(pm infty, pm infty\right),$:$T: \left(pm infty, pm infty\right) ightarrow left\left( \left\{1 over pm infty\right\}, \left\{pm infty over pm infty\right\} ight\right) = \left(0, y\right).$The ratio of infinity over infinity is indeterminate which means that it can be set to any value "y" desired.

This example emphasizes that in the real projective plane, "RP²", a hyperbola is a closed curve which passes twice through the line at infinity. But what does the transformation do to a parabola?

Let the locus of points $\left(x,x^2\right)$ describe a parabola. Its transformation is:$T : \left(x,x^2\right) ightarrow left\left( \left\{1 over x\right\}, \left\{x^2 over x\right\} ight\right) = \left(x\text{'}, 1/x\text{'}\right)$which is a hyperbola whose asymptotes are the "x"-axis and the "y"-axis and whose wings lie in the first quadrant and the third quadrant. Likewise, the hyperbola:$y = \left\{1 over x\right\}$is transformed by "T" into the parabola:$y = x^2 quad$.

On the other hand, the parabola described by the locus of points $\left(x, pm sqrt\left\{x\right\}\right)$ is transformed by "T" into itself: this demonstrates that a parabola intersects the line at infinity at a single point.

Transformations in projective 3-space

Three-dimensional transformations can be defined synthetically as follows: point "X" on a "subjective" 3-space must be transformed to a point "T" also on the subjective space. The transformations uses these elements: a pair of "observation points" "P" and "Q", and an "objective" 3-space. The subjective and objective spaces and the two points all lie in four-dimensional space, and the two 3-spaces can intersect at some plane.

Draw line "l"1 through points "X" and "P". This line intersects the objective space at point "R". Draw line "l"2 through points "R" and "Q". Line "l2" intersects the projective plane at point "T". Then "T" is the transform of "X".

Analysis

Let:$X : \left(x,y,z,0\right),$:$T : \left(T_x,T_y,T_z,0\right),$:$P : \left(P_x,P_y,P_z,P_t\right),$:$Q : \left(Q_x,Q_y,Q_z,Q_t\right).$Let there be an "objective" 3-space described by:$t = f\left(x,y,z\right) = m x + n y + k z + b$

Draw line "l"1 through points "P" and "X". This line intersects the objective plane at "R". This intersection can be described parametrically as follows:

:$\left(1 - lambda_1\right) X + lambda_1 P = \left(R_x,R_y,R_z,m R_x + n R_y + k R_z + b\right).$

This implies the following four equations:

:$R_x = x + lambda_1 \left(P_x - x\right)$:$R_y = y + lambda_1 \left(P_y - y\right)$:$R_z = z + lambda_1 \left(P_z - z\right)$:$R_t = lambda_1 P_t = m R_x + n R_y + k R_z + b$

Substitute the first three equations into the last one:

:$\left(m x + n y + k z\right) + lambda_1 \left(m P_x + n P_y + k P_z - m x - n y - k z - P_t\right) + b = 0$

Solve for "λ1",

:$lambda_1 = \left\{-\left(b + m x + n y + k z\right) over m \left(P_x - x\right) + n \left(P_y - y\right) + k \left(P_z - z\right) - P_t\right\} = \left\{lambda_\left\{1N\right\} over lambda_\left\{1D.$

Draw line "l"2 through points "R" and "Q". This line intersects the subjective 3-space at "T". This intersection can be represented parametrically as follows:

:$\left(1 - lambda_2\right) R + lambda_2 Q = \left(T_x,T_y,T_z,0\right)$

This implies the following four equations:

:$T_x = R_x + lambda_2 \left(Q_x - R_x\right),$:$T_y = R_y + lambda_2 \left(Q_y - R_y\right),$:$T_z = R_z + lambda_2 \left(Q_z - R_z\right),$:$R_t + lambda_2 \left(Q_t - R_t\right) = 0.$

The last equation can be solved for "λ2",

:$lambda_2 = \left\{R_t over R_t - Q_t\right\}$

which can then be substituted into the other three equations:

:$T_x = R_x + R_t \left\{Q_x - R_x over R_t - Q_t\right\} = \left\{R_t Q_x - R_x Q_t over R_t - Q_t\right\},$:$T_y = R_y + R_t \left\{Q_y - R_y over R_t - Q_t\right\} = \left\{R_t Q_y - R_y Q_t over R_t - Q_t\right\},$:$T_z = R_z + R_t \left\{Q_z - R_z over R_t - Q_t\right\} = \left\{R_t Q_z - R_z Q_t over R_t - Q_t\right\}.$

Substitute the values for "Rx", "Ry", "Rz", and "Rt" obtained from the first intersection into the above equations for "Tx", "Ty", and "Tz",

:$T_x = \left\{lambda_1 P_t Q_x - \left[x + lambda_1 \left(P_x - x\right)\right] Q_t over lambda_1 P_t - Q_t\right\} = \left\{lambda_1 \left[P_t Q_x - Q_t \left(P_x - x\right)\right] - x Q_t over lambda_1 P_t - Q_t\right\},$:$T_y = \left\{lambda_1 P_t Q_y - \left[y + lambda_1 \left(P_y - y\right)\right] Q_t over lambda_1 P_t - Q_t\right\} = \left\{lambda_1 \left[P_t Q_y - Q_t \left(P_y - y\right)\right] - y Q_t over lambda_1 P_t - Q_t\right\},$:$T_z = \left\{lambda_1 P_t Q_z - \left[z + lambda_1 \left(P_z - z\right)\right] Q_t over lambda_1 P_t - Q_t\right\} = \left\{lambda_1 \left[P_t Q_z - Q_t \left(P_z - z\right)\right] - z Q_t over lambda_1 P_t - Q_t\right\}.$

Multiply both numerators and denominators of the above three equations by the denominator of lambda1: λ1D,

:$T_x = \left\{lambda_\left\{1N\right\} \left[P_t Q_x - Q_t \left(P_x - x\right)\right] - x Q_t lambda_\left\{1D\right\} over P_t lambda_\left\{1N\right\} - Q_t lambda_\left\{1D\right\} \right\},$:$T_y = \left\{lambda_\left\{1N\right\} \left[P_t Q_y - Q_t \left(P_y - y\right)\right] - y Q_t lambda_\left\{1D\right\} over P_t lambda_\left\{1N\right\} - Q_t lambda_\left\{1D\right\} \right\},$:$T_z = \left\{lambda_\left\{1N\right\} \left[P_t Q_z - Q_t \left(P_z - z\right)\right] - z Q_t lambda_\left\{1D\right\} over P_t lambda_\left\{1N\right\} - Q_t lambda_\left\{1D\right\} \right\},$

Plug in the values of the numerator and denominator of lambda1:

:$lambda_\left\{1N\right\} = b + m x + n y + k z$:$lambda_\left\{1D\right\} = P_t + m \left(x - P_x\right) + n \left(y - P_y\right) + k \left(z - P_z\right)$

to obtain

:$T_x = \left\{T_\left\{xN\right\} over T_\left\{xD = \left\{\left(b + m x + n y + k z\right) \left[P_t Q_x - Q_t \left(P_x - x\right)\right] - x Q_t \left[P_t + m \left(x - P_x\right) + n \left(y - P_y\right) + k \left(z - P_z\right)\right] over P_t \left(b + m x + n y + k z\right) - Q_t \left[P_t + m \left(x - P_x\right) + n \left(y - P_y\right) + k \left(z - P_z\right)\right] \right\}.$:$T_y = \left\{T_\left\{yN\right\} over T_\left\{xD$,:$T_\left\{yN\right\} = \left(b + m x + n y + k z\right) \left[P_t Q_y - Q_t \left(P_y - y\right)\right] - y Q_t \left[P_t + m \left(x - P_x\right) + n \left(y - P_y\right) + k \left(z - P_z\right)\right] ,$:$T_z = \left\{T_\left\{zN\right\} over T_\left\{xD$.

The numerator "TxN" can be expanded. It will be found that second-degree terms of "x", "y", and "z" will cancel each other out. Then collecting terms with common "x", "y", and "z" yields

:$T_\left\{xN\right\} = x \left(m P_t Q_x + n P_y Q_t + k P_z Q_t + Q_t \left(b - P_t\right)\right) + y n \left(P_t Q_x - P_x Q_t\right) + z k \left(P_t Q_x - P_x Q_t\right) + b \left(P_t Q_x - P_x Q_t\right)$

Likewise, the denominator becomes

:$T_\left\{xD\right\} = \left(m x + n y + k z\right) \left(P_t - Q_t\right) + \left(m P_x + n P_y + k P_z\right) Q_t + P_t \left(b - Q_t\right).$

The numerator "TyN", when expanded and then simplified, becomes

:$T_\left\{yN\right\} = x m \left(P_t Q_y - P_y Q_t\right) + y \left(m P_x Q_t + n P_t Q_y + k P_z Q_t + Q_t \left(b - P_t\right)\right) + z k \left(P_t Q_y - P_y Q_t\right) + b \left(P_t Q_y - P_y Q_t\right).$

Likewise, the numerator "TzN" becomes

:$T_\left\{zN\right\} = x m \left(P_t Q_z - P_z Q_t\right) + y n \left(P_t Q_z - P_z Q_t\right) + z \left(m P_x Q_t + n P_y Q_t + k P_t Q_z + Q_t \left(b - P_t\right)\right) + b \left(P_t Q_z - P_z Q_t\right).$

Let

:$alpha = m P_t Q_x + n P_y Q_t + k P_z Q_t + Q_t \left(b - P_t\right),$::$gamma = k \left(P_t Q_x - P_x Q_t\right),$:$delta = b \left(P_t Q_x - P_x Q_t\right),$:$epsilon = m \left(P_t - Q_t\right),$:$zeta = n \left(P_t - Q_t\right),$:$eta = k \left(P_t - Q_t\right),$:$heta = \left(m P_x + n P_y + k P_z\right) Q_t + P_t \left(b - Q_t\right),$:$iota = m \left(P_t Q_y - P_y Q_t\right),$:$kappa = m P_x Q_t + n P_t Q_y + k P_z Q_t + Q_t \left(b - P_t\right),$:$lambda = k \left(P_t Q_y - P_y Q_t\right),$:$mu = b \left(P_t Q_y - P_y Q_t\right),$:$u = m \left(P_t Q_z - P_z Q_t\right),$:$xi = n \left(P_t Q_z - P_z Q_t\right),$:$o = m P_x Q_t + n P_y Q_t + k P_t Q_z + Q_t \left(b - P_t\right),$:$ho = b \left(P_t Q_z - P_z Q_t\right).$

Then the transformation in 3-space can be expressed as follows,

::$T_y = \left\{iota x + kappa y + lambda z + mu over epsilon x + zeta y + eta z + heta\right\},$:$T_z = \left\{ u x + xi y + o z + ho over epsilon x + zeta y + eta z + heta\right\}.$

The sixteen coefficients of this transformation can be arranged in a coefficient matrix

:

Whenever this matrix is invertible, its coefficients will describe a quadrilinear fractional transformation.

Transformation "T" in 3-space can also be represented in terms of homogeneous coordinates as

:

This means that the coefficient matrix of "T" can operate directly on 4-component vectors of homogeneous coordinates. Transformation of a point can be effected simply by multiplying the coefficient matrix with the position vector of the point in homogeneous coordinates. Therefore, if "T" transforms a point on the plane at infinity, the result will be

:

If ε, ζ, and η are not all equal to zero, then "T" will transform the plane at infinity into a locus of points which lie mostly in affine space. If ε, ζ, and η are all zero, then "T" will be a special kind of projective transformation called an affine transformation, which transforms affine points into affine points and ideal points (i.e. points at infinity) into ideal points.

The group of affine transformations has a subgroup of affine rotations whose matrices have the form

:such that the submatrix:is orthogonal.

Given a pair of quadrilinear fractional transformations "T"1 and "T"2, whose coefficient matrices are $M_\left\{T_1\right\}$ and $M_\left\{T_2\right\}$, then the composition of these pair of transformations is another quadrilinear transformation "T"3 whose coefficient matrix $M_\left\{T_3\right\}$ is equal to the product of the first and second coefficient matrices,

:$\left(T_3 = T_2 circ T_1\right) leftrightarrow \left(M_\left\{T_3\right\} = M_\left\{T_2\right\} M_\left\{T_1\right\}\right).$

The identity quadrilinear fractional transformation "TI" is the transformation whose coefficient matrix is the identity matrix.

Given a spatial projectivity "T1" whose coefficient matrix is $M_\left\{T_1\right\}$, the inverse of this projectivity is another projectivity "T"−1 whose coefficient matrix $M_\left\{T_\left\{-1$ is the inverse of "T"1′s coefficient matrix,

:$\left(T_\left\{-1\right\} circ T_1 = T_I\right) leftrightarrow \left(M_\left\{T_\left\{-1 M_\left\{T_1\right\} = I\right)$.

Composition of quadrilinear transformations is associative, therefore the set of all quadrilinear transformations, together with the operation of composition, form a group.

This group of quadrilinear transformations contains subgroups of trilinear transformations. For example, the subgroup of all quadrilinear transformations whose coefficient matrices have the form

:

is isomorphic to the group of all trilinear transformations whose coefficient matrices are

:

This subgroup of quadrilinear transformations all have the form

:

This means that this subgroup of transformations will act on the plane "z = 0" just like a group of trilinear transformations.

patial transformations of planes

Projective transformations in 3-space transform planes into planes. This can be demonstrated more easily using homogeneous coordinates.

Let

:$z = m x + n y + b$

be the equation of a plane. This is equivalent to

:$m x + n y - z + b = 0. qquad qquad \left(21\right)$

Equation (21) can be expressed as a matrix product:

:

A permutation matrix can be interposed between the two vectors, in order to make the plane vector have homogeneous coordinates:

:

A quadrilinear transformation should convert this to

:

where

:

Equation (22) is equivalent towhere: etc.

Applying equation (24) to equation (25) yields

:Combining equations (26) and (23) produces:Solve for $\left[ T_m : T_n : T_b : 1 \right] ^T$,:

Equation (27) describes how 3-space transformations convert a plane ("m", "n", "b") into another plane ("Tm, Tn, Tb") where

:::

ee also

* Fundamental theorem of projective geometry

References

* [http://www.math.poly.edu/~alvarez/teaching/projective-geometry/Inaugural-Lecture/page_3.html Introduction to Projective Transformations by J. C. Alvarez Paiva]

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• projective transformation — noun : a transformation of space that sends points into points, lines into lines, planes into planes, and any two incident elements into two incident elements …   Useful english dictionary

• Projective geometry — is a non metrical form of geometry, notable for its principle of duality. Projective geometry grew out of the principles of perspective art established during the Renaissance period, and was first systematically developed by Desargues in the 17th …   Wikipedia

• Transformation matrix — In linear algebra, linear transformations can be represented by matrices. If T is a linear transformation mapping Rn to Rm and x is a column vector with n entries, then for some m×n matrix A, called the transformation matrix of T. There is an… …   Wikipedia

• Projective connection — In differential geometry, a projective connection is a type of Cartan connection on a differentiable manifold. The structure of a projective connection is modeled on the geometry of projective space, rather than the affine space corresponding to… …   Wikipedia

• Projective space — In mathematics a projective space is a set of elements constructed from a vector space such that a distinct element of the projective space consists of all non zero vectors which are equal up to a multiplication by a non zero scalar. A formal… …   Wikipedia

• Projective plane — See real projective plane and complex projective plane, for the cases met as manifolds of respective dimension 2 and 4 In mathematics, a projective plane has two possible definitions, one of them coming from linear algebra, and another (which is… …   Wikipedia

• Transformation par polaires réciproques — Cet article est en travaux depuis 2007... et ne respecte pas les recommandations de présentation encyclopédique. L article sur la courbe duale apporte le contexte nécessaire à la compréhension de cet article ci, quasi illisible dans son état… …   Wikipédia en Français

• Projective texture mapping — is a method of texture mapping that allows a textured image to be projected onto a scene as if by a slide projector. Projective texture mapping is useful in a variety of lighting techniques and it s the starting point for shadow… …   Wikipedia

• Transformation de Mobius — Transformation de Möbius La transformation de Möbius ne doit pas être confondue avec la transformée de Möbius Les transformations de Möbius sont de manière générale des automorphismes du compactifié d Alexandrov de noté , définies comme la… …   Wikipédia en Français

• Transformation de möbius — La transformation de Möbius ne doit pas être confondue avec la transformée de Möbius Les transformations de Möbius sont de manière générale des automorphismes du compactifié d Alexandrov de noté , définies comme la composée d un nombre fini d… …   Wikipédia en Français