G14 Algebraic Geometry of Segmentation and Tracking
This lecture is about the geometry of lines in 3-space and how it is used in segmentation and tracking. It is based on three papers: Pellegrini’s survey of ray shooting and lines in space, Theobald’s enumerative geometry framework for algorithmic line problems in
The computational problem
The general question is a computational geometry problem: efficiently find the intersections of a large number of rays (a flow of light) with the objects of a scene. The problem has several aspects:
- vision: segmentation and tracking;
- robotics: moving objects in 3-space without collisions;
- computer graphics: rendering realistic images by simulating the flow of light.
Coordinates on lines in 3-space
A line in 3-space depends on four parameters, and there are several ways to choose them.
- By pairs of planes. Four parameters
describe as the intersection of two planes: - By pairs of points. Take the two reference planes
and . A non-horizontal line meets them in points and , and these determine : four parameters .
Plücker coordinates
Definition G14.1 (Homogeneous coordinates). A point
The third way of describing a line, by Plücker coordinates, uses two of its points in homogeneous coordinates.
Definition G14.2 (Plücker coordinates). Let
Choosing two other points of
Proposition G14.3 (Plücker relation). The coordinates
The Klein quadric
Definition G14.4 (Klein quadric and Plücker hyperplanes). The Klein quadric is the quadric hypersurface
With this choice,
Plücker coordinates and incidence relations
Plücker coordinates are useful for describing certain incidence relations:
- intersections of linear loci;
- tangency of quadrics.
Grassmannians and the Plücker embedding
The same construction works for
Definition G14.5 (Plücker coordinates of a
Definition G14.6 (Grassmannian and Plücker embedding). The set of all
For
Dual Plücker coordinates and intersections
Definition G14.7 (Dual Plücker coordinates). An
Proposition G14.8. A
In particular this gives the intersection condition for two lines in
Tangency to quadrics
The next question is to characterize when a
Definition G14.9 (Exterior power of a matrix). The
If
Proposition G14.10 (Tangency in Plücker coordinates). A
A side remark: twistor theory
The idea of turning problems about lines in 3-space into problems about points and hyperplanes in
- Start from a 4-dimensional vector space
, the twistor space. Its projectivization is , and the Klein quadric is the embedding of the Grassmannian of 2-planes in the 4-space . (Here denotes the -dimensional linear subspaces of .) - The Penrose twistor transform is the diagram
where is the flag variety (a line inside a 2-plane inside ) with its two projection maps.
The Klein quadric is ruled by two families of planes, the
In the figure, a point of
- The
-planes are the images under the second projection of the fibers of the first projection in the Penrose transform diagram the fiber over a point of consists of all lines through that point. - The
-planes arise in the same way from the dual Penrose diagram where is the dual projective space, whose points are the planes of . - In these planes every line is a light ray. The base of the light cone
is a product of two ’s, the same as , where is the 2-dimensional spinor space over the vertex of the light cone . - The Grassmannian
is compactified and complexified Minkowski space, with big cell the complexified spacetime.
This was reviewed only as motivation; twistor theory is not used in what follows.
Why projective and complex geometry?
Why use the projective spaces
Why use complex geometry
Remark (General idea). Formulate the problem in projective algebraic geometry; solve it for complex algebraic varieties; restrict to the real points.
Use of Plücker coordinates
- Problems about lines in 3-space are transformed into problems about hyperplanes and points in
. - Why is this better? There are a lot of tools for the algebraic geometry of hyperplane arrangements.
- The disadvantage: five parameters instead of four, which can increase the running time of algorithms.
However, it is known that even though the computational complexity of an arrangement of
A scene in 3-space becomes a hyperplane arrangement in
The geometric setup is as follows.
- Suppose given a configuration of objects in 3-space. Assume they are polyhedra (smooth objects can always be approximated by polyhedra, through a mesh).
- Triangulate the polyhedra and extend the edges of the triangulation to infinite lines
. - Each such line
determines a Plücker hyperplane in . - This gives a hyperplane arrangement in
.
Ray shooting
The ray shooting problem is used for hidden surface removal and for detecting and computing intersections of polyhedra.
Definition G14.11 (Ray shooting problem). Given a collection of polyhedra
Consider a triangle
Visibility and common tangents
Another problem: which bodies of a given scene cannot be seen from any location outside the scene?
- Geometric formulation: determining the common tangents to four given bodies in
. - For polyhedra, common tangents means common transversals to edge lines; for smooth objects, tangents.
Theorem G14.12 (Model result). Four spheres in
The slides show such a configuration, a figure from Sottile–Theobald: four spheres with coplanar centers and 12 common tangent lines. Three equal spheres sit around a smaller fourth sphere in the middle, and twelve lines cross the picture, each touching all four spheres. (In Sottile–Theobald’s example, three spheres of radius
Partial visibility
Here is how to arrive at the geometric formulation.
Definition G14.13 (Partial visibility). A convex body
Reduce the collection
If there is a visibility ray for
The set of common transversals
Definition G14.14. Let
- Lines in
have four parameters, and meeting a body with inner points is an open condition, so is a 4-dimensional set. is a semialgebraic set (defined by algebraic equalities and inequalities), whose boundary consists of lines that are tangent to at least one .- The combinatorial structure of
: its faces are determined by the sets of lines tangent to a fixed subset of bodies in . - Because
is 4-dimensional, it has faces of dimensions , given by lines tangent to bodies.
Lines and spheres
- When the bodies
are polyhedra, this is linear computational geometry. - When the bodies
are smooth (for example spheres), it is nonlinear computational geometry.
Core problem: find the configurations of lines tangent to
The slides show a figure from Theobald: one sphere and three lines
Bounds on the number of common tangents
Theorem G14.15 (Theobald). Consider
The upper bounds for small
Theorem G14.16 (Bézout). Let
Bézout gives
The bound
Proof that
- Three linear equations, one for each of the three given lines
with : which express the fact that and the fixed line intersect in . - One quadratic equation
which expresses the fact that is tangent to the quadric (the sphere). - The Plücker relation, which restricts to the Klein quadric
:
These are five homogeneous equations in
Here
Remark (Where the tangency equation comes from). The equation
Example G14.17 (Tangency to a sphere). For a sphere in
The bounds are attained for
- The case
is as above. - The case
is a very similar argument. - The case
is also similar. Common transversals to four lines in 3-space are a classical problem of enumerative geometry, and it is known that 2 can be achieved (with real solutions), so . : a construction achieving the maximum is the configuration of one sphere and three lines shown earlier. : there is an explicit construction of a configuration of two lines and two balls with eight common tangent lines.
The figure (after Sottile–Theobald) shows why
The slides then show Theobald’s configuration of two lines and two balls with eight common tangent lines: two overlapping balls, two thick black lines crossing near them, and eight lines in shades of gray, each touching both balls and meeting both black lines.
The bound
Now take one line
- The hyperplane
in characterizing the lines transversal to is and the points of correspond to such lines. - For the quadrics
and the corresponding , the equations characterize tangency to for . - Bézout alone would give the count
(the Klein quadric, one linear equation and three quadratic equations). But these equations are not independent at infinity: there are spurious solutions at infinity, intersections of multiplicity two, and removing them leads to the count of 12.
Proof (Getting the multiplicity count).
- The quadric
of a sphere is in homogeneous coordinates in . It intersects the plane at infinity ( ) in the conic , the same conic for every sphere. - For a point
on this conic, the tangent line to the conic at in the plane has Plücker coordinates . - The Plücker vector of a tangent to the conic in the
at infinity therefore also lies on the quadrics defined by , , (the lower right block of each is the identity, so the equation becomes ), and on . Two of these tangent lines, the two tangents to the conic through the point at infinity of , also lie in , so they are solutions at infinity of the system. - Use this to conclude that at these points the tangent hyperplanes to the quadrics
, , and all contain a common 2-dimensional subspace. - Conclude that the multiplicity of intersection there is at least 2. The two solutions at infinity account for at least
of the , which gives the correct count of the maximal number of tangents, .
∎
The slides show Theobald’s configuration of one line and three balls with twelve common tangent lines: a vertical line
Four spheres, and infinitely many tangents
- A similar argument gives the bound
(see Theobald and Sottile–Theobald). - A further step is to characterize the configurations with infinitely many common tangents, such as four spheres with collinear centers and equal radii (or collinear centers and inscribed in the same hyperboloid); see Theobald and Sottile–Theobald.
The slides show Sottile–Theobald’s pictures of configurations of four spheres with infinitely many common tangents. In each, the centers lie on one line
Conclusions
The geometric argument on the maximal number of common tangents gives an estimate of the algorithmic complexity of the visibility problem: it comes down to solving polynomial equations of the given degree (for example a degree 12 equation in the case of four spheres).
References
- Marco Pellegrini, Ray shooting and lines in space, in Handbook of Discrete and Computational Geometry, pp. 599–614, CRC Press Ser. Discrete Math. Appl., CRC, 1997.
- Thorsten Theobald, An enumerative geometry framework for algorithmic line problems in
, SIAM J. Comput. 31 (2002), no. 4, 1212–1228. - Frank Sottile and Thorsten Theobald, Line problems in nonlinear computational geometry, Contemp. Math. 453 (2008), 411–432.