A light far enough away
Worth reading first: The lamp, out of the picture · Where shadows vanish.
The lamp comes out of the picture by intersecting drawn lines: the lines from each post’s top through its shadow tip meet at the image of the light, and the lines from each post’s foot through the same tip meet at the image of the light’s foot. Two points, one vertical apart, and the ground plane’s own scale turns them into a position.
The construction has a test built into it that separates a lamp from the sun. A lamp’s foot is below the horizon; the sun’s is on it. So the question this essay asks is what happens in between, because that is where every photograph of a scene lit by a distant lamp actually sits.
Two quantities that behave completely differently
The sweep separates two things that a single measurement would blur together, and the separation is the point of doing it as a sweep.
The answer stays exact. At every distance in the sweep the recovered height matches the lamp’s actual height to 5e-13 of itself. There is no distance at which the construction starts being approximately right; it is exactly right, at every step, on exact input.
The evidence goes away. The foot’s distance below the horizon — the whole of what distinguishes a lamp from the sun in a picture — falls as . The last three doublings give ratios of 1.80, 1.89 and 1.94, converging on 2, which is the law with the camera’s own height still contributing at the near end.
So the failure that eventually arrives is not a failure of the method. It is that the input stops containing the distinction: two shadow lines a fraction of a pixel from parallel are, to any real measurement, parallel.
What a pixel costs, against distance
The way to put a number on “the evidence goes away” is to perturb the input by the smallest amount a real measurement could resolve and see what the answer does.
One pixel of error in the recovered image of the light moves the recovered height by 0.21 mm at four metres and 0.07 m at two hundred and sixty — a factor of 321 across the sweep, growing without bound beyond it.
That is the shape every recovery on this site has when it approaches a degeneracy, and it is worth naming as a pattern rather than as a fact about lamps.
- Depth from a stereo pair is a reciprocal, so a fixed pixel error becomes an interval that is not symmetric and eventually is not bounded.
- A height from one photograph degrades as the horizon approaches the top of the object’s head.
- And a shadow’s depth measurement costs more and more per pixel as the lamp approaches the camera’s own axis.
In each case the exact arithmetic is exact everywhere and the conditioning is what runs out. The pattern is general enough to be a reading habit: a recovery’s reach is set by its conditioning and not by its correctness.
Why the foot below the horizon is the evidence
The quantity the sweep follows deserves an explanation, because it looks like an incidental by-product of the construction and is in fact the only thing carrying the information.
The light’s foot is a point of the ground plane. Every point of the ground plane images below the horizon, and how far below is a measurement of how far away it is: for a camera at eye height looking at a ground point away, the image sits about below the horizon. The horizon itself is the limit of that as grows — which is what the horizon is, the image of the ground’s points at infinity.
So “the foot is 211 px below the horizon” is a statement that the foot is a particular distance away, and “10.8 px” is a statement that it is much further. The recovery is not reading the lamp’s height off some separate quantity: it is locating the foot on the ground and then reading the height as a cross-ratio up the vertical through it, which is the single-view height measurement pointed at a light instead of at a person.
That identification explains the law without any new argument. The evidence is a distance measurement made on a ground plane, and every distance measurement on a ground plane degrades as , because that is how the perspective divide converts depth into pixels.
Two objects, and what a third buys
The construction needs two shadow-and-object pairs to give a point, and everything beyond that is redundancy — which is worth having for a reason that has nothing to do with averaging.
Two pairs determine the answer. Two lines meet at the light’s image; two more at the foot’s. There is nothing left over, so the answer fits perfectly whatever it is, and no residual is available.
A third pair supplies a residual. With three posts, the third line either passes through the intersection the first two found or it does not, and the distance between them in pixels is a number that could be large. It is what would catch a scene lit by two lamps, or a shadow tip misidentified, or a post that is not vertical.
That is the same discipline as the closest-approach residual in the depth measurement and the same as the reason the site’s round trips are run at all: an exactly-determined answer is unfalsifiable, and one extra observation is what turns a construction into a measurement.
Worth adding that a single post determines nothing at all — the light lies on a line, not at a point — and the machinery says so by returning the family rather than a member of it. A recovery that returned a position from one post would be reporting its own tie-break with a residual of zero, which is the sharpest form of a number that means nothing.
Why the sun is a limit and not a special case
The site’s habit is to treat a centre at infinity as a value of a parameter rather than as a different subject, and the light field is where that habit pays twice.
The sun is a lamp at infinity, and its shadows are therefore a parallel projection of the occluder. Everything that holds for a lamp holds for the sun with the centre moved, in exactly the way a parallel drawing is a photograph from infinitely far away.
Two consequences, both measurable and both worth stating because they are the practical content:
Sunlit shadows are the same shape wherever the object stands. A parallel projection is translation invariant, so moving an object across a sunlit courtyard translates its shadow and does nothing else. Under a lamp the shadow changes size and shape as the object moves, and that change is the whole of what makes a lamp recoverable.
Sunlit shadows converge in the picture and are parallel in the world. The convergence point is on the horizon, and it is the image of the sun’s direction — which is to say the vanishing point of a family of parallel lines, exactly as the site’s foundations field describes.
What a sun determines, and what a lamp determines
The counting is the cleanest statement of the difference, and it explains why the sun is the easier case to recover despite carrying less information.
A lamp is three numbers — a position. Recovering it needs two independent shadow-and-object pairs: two lines meeting at the light’s image, two more meeting at its foot’s image.
The sun is two numbers — a direction, an altitude and an azimuth. One post and its shadow determine the direction outright, since the ray from the post’s top through the shadow tip is the sun’s direction.
So a sunlit photograph gives up its lighting geometry from a single object, and a lamp-lit one needs two. The lamp carries one more number and demands one more piece of evidence, which is the usual accounting and is not a surprise.
What is a surprise, and is this essay’s own measurement, is the third case: a distant lamp is worse than either. It is three numbers, so it demands two objects; and its evidence for the third number has fallen to a fraction of a pixel, so the number it returns is noise. The regime between “clearly a lamp” and “effectively the sun” is where a recovery is least trustworthy, and it is a wide regime — the falloff means the evidence halves for every doubling of the distance and never quite reaches zero.
The refusal, and where it belongs
There is a configuration the recovery must refuse rather than answer, and it is not the far end of the sweep.
A lamp behind the camera has its foot behind the camera too, and the image of a point behind the eye lands above the horizon rather than below it. Feed that to a routine that assumes a foot below the horizon and it returns a height with a sign error and no complaint.
The machinery refuses it, and the refusal is a statement rather than a guard: a foot above the horizon is the picture saying the light is behind the camera, which is true and is not a height.
That distinction — an answer the method can return, against a configuration it must decline — is the discipline the breadth-02 gate was written to enforce across this site, and it applies here in both directions. The sun is an answer. A light behind the camera is a refusal. A distant lamp is an answer with a stated precision, and the precision is the thing that has to be quoted with it.
The test that survives the conditioning
There is one thing the picture keeps saying clearly long after it has stopped saying where the light is, and it is the thing most often actually wanted.
Do two objects share a light? That question is answered by consistency rather than by position. Each object with a visible shadow contributes a line through the light’s image; if the lines meet at a common point, one light is consistent with all of them, and if they do not, no single light is. The residual is in pixels, and it does not require the intersection to be well conditioned — two nearly-parallel lines still either cross a third one at a common place or they do not.
That is why the conditioning collapse above does not make a distant lamp undetectable. It makes its distance undetectable while leaving the shared-light test intact: a sunlit photograph and a photograph lit by a lamp fifty metres away both pass the consistency test, and neither can be told from the other, and an object inserted into either with its shadow drawn at the wrong angle fails both.
The practical form of this is the standard check on a composited image. Take every object with a visible shadow, draw the line from its top through its shadow tip, and see whether the family has a common point — anywhere, including at infinity. A composite assembled from two photographs lit differently produces two families that do not share one, and the discrepancy is in whole degrees rather than in pixels.
What the conditioning does affect is what can be said next. “These shadows are consistent with one light” is robust. “That light was 40 m away and 12 m up” is a claim whose error bars, on a real photograph with pixel-level line fitting, run from a few metres to the sun.
Reading a photograph after this
Three practical residues, which are also three tests a reader can apply to a picture.
Look at where the shadow lines meet. Below the horizon: a lamp, and its height is recoverable. On the horizon: the sun, or a lamp far enough away to be indistinguishable from it. Above the horizon: the light is behind the camera.
Ask how far below. The distance below the horizon in pixels is the evidence, and it converts to a distance: at this camera, 211 px means about four metres and 10.8 px means about two hundred and sixty. A gap of a few pixels is a lamp somewhere between fifty metres and the sun, and the picture does not say which.
And do not read a converging pair of shadows as a lamp without measuring. Two shadow lines in a photograph are never exactly parallel, because measurement is never exact — so every sunlit photograph, read carelessly, contains a lamp at some large distance. That is the failure this essay’s sweep is a defence against, and the defence is quoting the precision beside the answer.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A lens destroys the invariant — both name error propagation, horizon, single-view metrology, vanishing point
- A shadow is a second projection — both name horizon, shadow vanishing point, vanishing point
- The horizon, and the fraction — both name horizon, point at infinity, single-view metrology
- The shadow of a ball is a conic — both name centre of projection, horizon, shadow vanishing point
- What a projection destroys — both name horizon, point at infinity, vanishing point
- Where parallel lines meet — both name horizon, point at infinity, vanishing point
Named objects
A flat tag is an object no other essay names yet.
centre of projectionConditioningerror propagationHorizoninstrument limitLight recoverypoint at infinityshadow vanishing pointsingle-view metrologyVanishing point