Five marks and the sixth
Worth reading first: The conic a circle becomes · The circle whose centre moves.
A general conic has six coefficients and they matter only up to a common scale, so it has five degrees of freedom. Five points impose five linear conditions. The arithmetic closes exactly: five marks on a photograph determine one conic, with nothing left over and no choice made anywhere.
That is a familiar counting argument and it is worth doing something with rather than reciting. What follows is what the count actually buys, what it does not, where it fails, and what changes the instant a sixth mark joins the fit.
The count, and what makes it exact
Write the conic as
Multiplying every coefficient by the same number changes nothing, so the object is a point in a five-dimensional projective space. Each point that must lie on the conic gives one linear equation in the six coefficients. Five points give five equations, and a five-by-six homogeneous system generically has a one-dimensional null space — one conic, up to the scale that was never meant to matter.
The word “generically” is doing real work there and it is the subject of a later section. Take it at face value for now.
What is worth noticing immediately is that this is not a fit. There is no residual to minimise, no compromise between marks, and no sense in which some marks matter more than others. The conic through five points is as determined as the line through two.
The withheld mark
A count is not evidence. The test is whether the conic through five marks passes through a sixth that had no say in it.
Six points are taken on a circle in the world, all six are projected, and five of them are handed to the solver. The sixth is measured against the answer afterwards, along the curve’s own normal so the number is a distance in pixels rather than an algebraic residual whose units depend on how the conic was scaled.
It comes back at 1.9e-13 px.
That number is arithmetic, not geometry, and saying so is the point. The five marks did not approximately determine the sixth; they determined it, and what is left is the accumulated rounding of a few dozen floating-point operations.
What five marks leave open
The counting argument is exact and it is also modest, and the modesty is easy to lose.
Five marks determine the conic. They do not determine the circle. They do not say how big it was, how far away it was, or which way its plane was tilted; they do not say whether the thing photographed was a circle at all.
That last one deserves care, because the phrase “the conic through five marks on a photographed circle” quietly contains an assumption that the arithmetic never used. The solver was given five image points and returned the conic through them. It would have returned a conic through five marks on a photographed ellipse just as happily, and the two results are indistinguishable — which they must be, since an ellipse in the world and a circle in the world can produce the same picture.
So the honest statement of the result has two clauses. Five marks fix the picture of the circle exactly, and fix nothing about the circle. The second clause is not a caveat on the first; it is a different and equally sharp fact, and it has an essay of its own.
Where five marks are not enough
The generic case is not the only case, and a solver that reports the exceptional one as an answer is worse than one that fails.
Five points determine a conic unless four of them are collinear. If four are on a line , then every conic of the form “ together with any line through the fifth point” passes through all five — a whole pencil of degenerate conics — and the system’s null space is two-dimensional rather than one.
The failure is not a large residual. The solver returns a conic; it just returns an arbitrary member of a family, chosen by whichever direction the numerics happened to favour. Nothing about the answer looks wrong.
The guard is on the eigenvalue gap: the ratio of the smallest singular value of the design matrix to the next smallest. In the good case that ratio is tiny — the null space is genuinely one-dimensional and its companion is not. As four points approach collinearity the two collapse together, and the ratio is the quantity that actually degrades.
That is the same shape of failure this site has recorded before, in a homography fitted to four nearly-collinear shadow marks: a confident answer with a small residual, from a system that had nothing to say. The tell is never the residual. It is always the conditioning.
The sixth mark, used
Now change one thing. Instead of holding the sixth mark back, put it into the calculation.
The arithmetic changes character completely. Six equations in six unknowns, homogeneous, and generically the only solution is zero — which is to say there is no conic through six points, in general. The six points a photograph of a circle supplies are not general, so a solution does exist; but the problem is now overdetermined, and the object the solver returns is the smallest-eigenvector solution of a least-squares problem rather than a null vector.
Three things follow, and each is useful.
There is now a residual, and it means something. With five marks the residual is identically zero and carries no information. With six it is the amount by which the marks fail to lie on any one conic, which is a measurement of the marks rather than of the solver.
The residual is a test of the assumption. Six marks on a genuine circle give a residual at arithmetic noise. Six marks on something that is not a conic at all — a rounded rectangle, a hand-drawn oval, a curve with a flat on one side — give a residual that is not, and the size of it says how far from conic the thing was.
And more marks buy accuracy against noise. A mark located to within a pixel makes the five-point answer wrong by roughly a pixel’s worth. Twenty marks around the same curve average that down, and the improvement is the ordinary square-root one.
So five is the number at which the problem is determined, and it is almost never the number to use. This is the same trade the site meets in every recovery it makes: the minimal solution is what proves the theorem, and the overdetermined one is what a reader with a photograph should actually compute.
Why five points, projectively
There is a second way to see the number five that explains why it is not four or six, and it is worth having because it makes the result look inevitable rather than lucky.
A conic in the projective plane is a symmetric matrix up to scale: six entries, minus one for the scale, is five. That count is projectively invariant — it does not change under any projectivity — which is why the same number governs a circle, an ellipse, a hyperbola and a pair of lines. They are one object in five dimensions, and the affine names are labels for where the object sits relative to a chosen line.
The five conditions are equally projective. “This point lies on this conic” is an incidence, and incidences survive projection. So the entire statement — five marks, one conic, exactly — is a projective statement, and it can be made on a photograph without knowing anything about the camera. That is the property that makes it usable.
Five marks, and the pencil they can fail to leave
It is worth drawing the degenerate case rather than only describing it, because what makes it dangerous is that it looks like the good case.
Put five marks on a photograph so that four of them fall on one straight edge — a kerb, a window mullion, the join between two paving slabs — and the fifth anywhere else. Every conic consisting of that straight line together with any line through the fifth mark passes through all five. There is a one-parameter family of answers and the solver returns one of them.
What the returned conic looks like is a pair of crossing lines, which is a perfectly legitimate conic and is exactly what the marks describe. The mistake is not in the arithmetic; it is in having asked five marks a question that needed a different five.
The practical rule follows from the failure rather than from taste: spread the marks around the curve. Four on one side and one on the other is nearly the degenerate case and inherits most of its conditioning, even though no four are exactly collinear. The eigenvalue gap says how nearly, and it is the number to look at before the residual.
Doing it on a real picture
The construction is worth stating as a procedure, because it is one of the few things in this subject that a reader can carry out with a photograph and a straightedge and get an answer that is exactly right.
Mark five points on the curve. Anywhere on it. There is no need to find its ends, its axes or its centre — none of those survive projection anyway, so a method that needed them would be asking for something the picture does not contain.
Solve the five-by-six system. By hand this is a determinant; the conic through five points is the vanishing of a six-by-six determinant whose first row is and whose other five rows are the same expressions at the marks.
Then use it as a curve. The conic can be intersected with any line in the picture, tangents can be dropped to it from any point, and its pole–polar relation can be constructed with a straightedge — all of which are things about the world, transported through the picture, and none of which needed the camera.
The determinant, written once
For a reader who wants the answer rather than the machinery, the conic through five marks is one determinant. Set
Expanding along the top row gives the six coefficients directly, as five-by-five minors of the marks’ own coordinates. It vanishes at each mark because the determinant then has two equal rows, which is the whole proof, and it degenerates to nothing when four marks are collinear because the corresponding rows become linearly dependent — the same failure the eigenvalue gap detects numerically, seen algebraically.
What the number five is really counting
One last reading, and it is the one that connects this essay to the rest of the field.
Five is the dimension of the space of conics. Every constraint that cuts that space down by one is worth the same amount, and a point on the curve is only the most obvious kind. A tangent line is worth one too — a conic tangent to five given lines is equally determined, by exactly the same count in the dual plane. So is “passes through this point with this tangent direction”, which is worth two.
Which is why the circular points are worth so much. They are two points that every circle passes through, so knowing that the thing photographed was a circle is worth two of the five conditions before any mark is made — and three marks on a photographed circle determine the conic, provided the plane’s horizon is known.
That is not a saving in effort. It is the reason a photographed circle calibrates a camera and a photographed ellipse does not: the two conditions the roundness supplies are the two that carry the metric information, and they are on the horizon.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- Two circles, one picture — both name circle, conic, degrees of freedom, eigenvalues, point at infinity, projective map, singular values
- The polar with a straightedge — both name conic, duality, projective map, tangent
- Two lines at infinity — both name conic, necessary, not sufficient, point at infinity, projective map
- The two points a picture hides — both name conic, degrees of freedom, homography
- Undoing a picture made on a curve — both name homography, least squares, projective map
- What happens behind the eye — both name necessary, not sufficient, point at infinity, projective map
Named objects
A flat tag is an object no other essay names yet.
CircleConicdegrees of freedomdesign matrixDiscriminantDualityEigenvaluesHomographyleast squaresnecessary, not sufficientpoint at infinityProjective mapsingular valuesTangent