Optics

The eye a fly cannot afford

A compound eye is built from thousands of tiny straws, each looking in one direction. Wide straws look coarsely at the world, and narrow ones blur what they collect by diffraction, so there is a best width, and it depends only on the size of the head. To see as sharply as a person, an eye of this kind would need to be about twelve metres in radius. A single-lens eye gets the same result with a pupil of under two millimetres.

Assumes: How far apart two things have to be · The dark lines a wave cannot avoid

The beam that does not spread and the price it pays showed how a narrow aperture spreads a wave, and how the attempts to avoid this always involve paying somewhere else. How far apart two things have to be found the resulting limit for a lens, which is simple: the smallest angle a telescope or an eye can resolve is about λ/D\lambda/D, and to do better needs a larger aperture. A person with good sight can read small print across a room because a pupil a couple of millimetres across resolves about an arcminute.

An insect has a head a millimetre or two across, and a very different eye. Instead of one aperture and one retina it has thousands of small apertures, packed on a curved surface, each collecting light from one narrow direction and each feeding its own small group of receptors. This is a compound eye, and each unit is an ommatidium. It is an evolutionary success story, having arisen more than 500 million years ago, and has been used by more species than any other kind of eye. What is not at all obvious is why insects do not simply use more facets, which would seem to give them a sharper picture of the world. A short calculation shows they cannot, and it gives a surprising answer to what a sharp compound eye would have to be.

Two blurs, and a width between them

The argument is an old one, and Horace Barlow set it out in 1952 with a clarity that has not been improved on. Imagine a spherical eye of radius RR, whose surface is divided into facets of width DD. The directions in which adjacent facets look differ by an angle

Δϕ=DR.\Delta\phi = \frac{D}{R}.

No detail smaller than about this angle can be represented, since the eye’s sampling grid has that spacing. Thus smaller facets, packed more closely, are better.

Each facet, though, is a small aperture, and light passing through a hole of width DD spreads by an angle

Δρ=λD.\Delta\rho = \frac{\lambda}{D}.

The dark lines a wave cannot avoid gave this for a single slit. So smaller facets are worse here. These two effects oppose each other, and there has to be a best width.

A facet too wide and a facet too narrow. The blur of an insect's compound eye of radius 1 mm against the width of one facet, in green light. A wide facet looks at a wide patch of sky compared with its neighbours, so the eye's sampling is coarse, and that blur rises with the width. A narrow facet is a small aperture, so diffraction spreads what it collects, and that blur falls with the width. Added in quadrature they make a minimum at D = √(λR), here 22 µm, and that is close to the facets of real insects with an eye of that size. No choice of facet width can get below about 1.8°: that figure is forced by the size of the head. Horace Barlow worked this out in 1952 and compared it with bee eyes.
Fig. 1 The blur of a compound eye of radius 1 mm against facet width, in green light. Spacing rises with width and diffraction falls. Together they have a minimum of about 1.8° at 22 µm. No facet width gets below that on a head of this size.

Adding the two blurs in quadrature gives

Δ2=(DR)2+(λD)2.\Delta^2 = \left(\frac{D}{R}\right)^2 + \left(\frac{\lambda}{D}\right)^2.

Differentiating with respect to DD and setting the result to zero, the minimum occurs where the two contributions are equal, at

D=λR,Δmin⁡=2λR.D = \sqrt{\lambda R}, \qquad \Delta_{\min} = \sqrt{\frac{2\lambda}{R}}.

For a 1 mm eye in green light, DD is about 22 µm, and the smallest possible blur is about 1.8 degrees. That is not a matter of a bad design, and it would hold for an eye made with perfect optics, because the best such eye is limited by the head’s size. Even with an ideal design, the fine detail a fly can see is fixed, at about a hundred times worse than a person’s.

It is worth comparing the two limits precisely. For a lens eye, the blur falls as the inverse of size. For a compound eye, it falls as the inverse square root. The whole gulf between the two designs comes from the difference between those exponents. Barlow’s main contribution was his empirical check: he collected the values from 27 species of Hymenoptera, and found facet widths close to λR\sqrt{\lambda R} in those with different head sizes. A large bee and a small wasp have facets of different sizes for reasons that follow from diffraction.

The rule the facets roughly follow

The rule the facets roughly follow. The facet width that gives the sharpest image for a given eye radius, D = √(λR) in green light, on logarithmic scales, with approximate values for three insects. They fall close to the line, a fruit fly a little to the wide side and a dragonfly nearly on it. The line is a limit of resolution in bright light, and an insect has other demands on its eye: in dim light a wider facet catches more, and insects active at dusk have facets wider than this rule. Measurements also find eyes that are locally much finer, with facets larger than average in forward-looking acute zones. The values plotted are typical of published ones, for orientation rather than as data of this analysis.
Fig. 2 The sharpest facet width for each eye radius, with approximate values for three insects, on logarithmic scales. They lie close to the line. A fruit fly is a little wide of it. Insects active in dim light are wider still.

The insects shown are typical examples, for orientation and not for detailed analysis. Published values can vary with the eye region measured. Still, they are consistent with the line within reasonable tolerance. There are no eyes that lie far below it, since a facet that narrow gains nothing and loses light. Many eyes lie somewhat above it, for a reason that has nothing to do with resolution. A small facet admits little light. A photoreceptor counts photons, and at low light levels the shot noise in that count limits what it can detect: to tell one grey from another by a difference of 1 per cent requires about ten thousand photons. Insects active at dusk have facets wider than the diffraction rule requires, which improves their sensitivity at the expense of sharpness. Allan Snyder made that trade-off precise in the 1970s, showing that the best design depends on the brightness of the scene.

It is common to find variation across the same eye. A dragonfly, which hunts insects on the wing, has large facets looking forward and upward, with an interommatidial angle under half a degree, and much smaller ones elsewhere. A male fly chasing a female has an enlarged “love spot” in the part of the eye that looks at her. In all those cases the local radius of curvature changes as well: in the acute zone the surface is flatter, so that a larger number of facets look into a smaller solid angle, and it behaves as though it were part of a much larger sphere. This is what the formula says should work: only the local radius matters, so an eye can be locally sharp at the cost of being larger or having worse vision elsewhere. A similar concentration of resources happens in a human fovea, where acuity is about one arcminute and falls away by a factor of ten within ten degrees or so.

What human sharpness would cost

What human sharpness would cost. The size of eye needed to resolve a given angle, for a compound eye, whose blur goes as the inverse square root of its radius, and for a single-lens eye, whose diffraction limit goes as the inverse of its aperture, on logarithmic scales. To resolve one arcminute with one aperture needs a 1.7 mm pupil. To do it with facets, everywhere round the head, needs an eye of radius 12 m. Kurt Kirschfeld drew a human with a compound eye of that kind in 1976 and made the point vividly; if only the forward-looking part were kept that sharp, as a real eye does, the eye would still be about a metre across. Halving the blur costs four times the radius rather than twice, and that is the whole difference between the two designs.
Fig. 3 Eye size against the angular resolution wanted. A lens eye’s aperture falls as the inverse of the angle; a compound eye’s radius falls as its inverse square. One arcminute needs a 1.7 mm pupil, or a compound eye of 12 m radius.

The formula can be turned around. To resolve an angle Δ\Delta with a compound eye, the radius has to be

R=2λΔ2.R = \frac{2\lambda}{\Delta^2}.

At one arcminute, which is about the human limit, RR is about 12 m. To achieve the same result with a lens takes an aperture of λ/Δ\lambda/\Delta, or 1.7 mm. The compound eye’s radius rises as the square of the sharpness desired. An eye twice as sharp is four times as large, in radius. Kurt Kirschfeld, in 1976, published a well-known cartoon of a person with a compound eye sufficient to give human acuity. If such an eye only had to be sharp in the forward direction, like a human fovea, its diameter would be reduced to about a metre; even then, it would look absurd on a human frame. Taken over the entire field at one arcminute, the figure is far larger.

It is a pretty result, since it says something that no study of insect anatomy would suggest. The barrier between the two kinds of eye is a matter of how an aperture is used. Each facet’s diffraction limit is set by its own small width, whereas a lens collects all of its light through the whole pupil and maps each direction to a separate point. Its aperture is available to all directions at once. A compound eye has divided that same area into thousands of independent apertures and thereby discarded the phase relation between them that would have given a sharp image. That relation is exactly what a telescope array has to preserve, and the fringe that measures a star shows the great gain that comes with doing it.

So why have compound eyes at all? Apart from history, the design has real advantages at small sizes. It needs no focusing mechanism, and its depth of field is effectively infinite. It covers a very wide field, around 300 degrees or more, without any eye movement, and each facet can respond very fast. A housefly’s receptors can follow flicker up to about 250 Hz, against about 60 for a human, and neural processing near the receptors is arranged accordingly. For a small flying animal doing fast aerial manoeuvres at short range, these are good trades. An eye with a lens needs a long enough focal length for a good retina, and on a very small head, this is hard to accommodate. Jumping spiders, however, have managed the alternative at an impressively small size, using an elongated tube and a lens.

An eye made of straws

An eye made of straws. Cross-sections through two compound eyes of the same radius. Each facet at the surface looks out along its own axis and collects from a cone. On the left the facets are wide, so diffraction is small and the cones are narrow, and they miss most of the view between them. On the right the facets are narrow, so the cones overlap and many facets look at the same patch of sky, and a fine detail smears over several. A compound eye has no way to trade this off except by being larger: the surface is a sphere and each facet is a window onto one direction. A lens eye avoids the conflict, since one large aperture sends every direction to its own place on a retina. The cones here are exaggerated to be visible.
Fig. 4 Cross-sections through two compound eyes of the same radius, with cones exaggerated. Wide facets have narrow cones that miss the view between them. Narrow facets have overlapping cones, and a fine detail smears over several.

In a real ommatidium there is a small lens at the surface, called a corneal facet, which focuses light on to the tip of a light-guiding rod, called a rhabdom. The rhabdom acts as a waveguide about a micrometre in diameter, with the same physics as the cone a fibre will accept. Its width is close to that of a wavelength. Thus it supports only a few modes, and those are what Snyder analysed: an optical fibre of this size has a restricted set of angles at which light can be accepted, adding its own contribution to the blur. A further small effect is due to the eye having screening pigment that blocks light from entering one facet and being absorbed in the next. The pigment sits between facets, as a kind of wall, in the manner of the straws in the drawing.

The picture shows what these two limits look like geometrically. On the left, the cones are narrow, because a wide aperture makes a sharp beam, but there are gaps in coverage, or at least large steps in the sampling. On the right, there is no shortage of facets, but each facet’s cone overlaps several neighbours, and they look at nearly the same part of the world. An ideal design has its cones just touching. Nyquist’s criterion from the speeds a pulsed radar folds into one sets the spacing that a sampling lattice needs for a given pattern, about two samples per cycle, so a more careful analysis gives a constant slightly different from the 1 used here. Those details change the coefficient, not the square root. It is a simple but robust fact that the eye’s sampling and its optics are tuned to each other, in many species.

A human retina shows the same kind of match. Its cones in the fovea are spaced about 2.5 µm apart. With a focal length of about 17 mm, that gives about 30 arcseconds between samples, and so a Nyquist limit of about one arcminute. The diffraction limit for a 3 mm pupil is roughly the same, about one arcminute. Thus nature has matched the receptor grid to the optical blur there as well, since a finer grid gains nothing and a coarser grid wastes optics. The eye that loses its lens in water looked at the other end of that same optical system.

A pixel count fixed by the head

A pixel count fixed by the head. The number of facets on a hemisphere at Barlow's optimum, against eye radius. Dividing the area of a hemisphere, 2πR², by the area of a facet, λR, leaves 2πR/λ, so the pixel count is proportional to the eye's radius and not its area. A 1 mm eye gets about 12,566 facets on its hemisphere, about what a large insect has; a housefly has around 3,000 for each eye and a dragonfly up to about 30,000 at larger radius. Against this a human retina has roughly six million cones, in an eye only about twelve millimetres in radius. The compound eye gives up detail in exchange for a very wide field and fast sampling, with neural advantages this calculation has no place for.
Fig. 5 The number of facets on a hemisphere at the sharpest size, against eye radius. Hemisphere area over facet area gives 2πR/λ2\pi R/\lambda. A 1 mm eye holds about 12,600. Only one power of RR survives, because a larger eye also has larger facets.

Dividing a hemisphere’s area, 2πR22\pi R^2, by a facet’s area, D2=λRD^2 = \lambda R, gives a striking formula:

N=2πRλ.N = \frac{2\pi R}{\lambda}.

The number of facets goes as the radius, not as the area. That is because a larger eye uses larger facets. For a 1 mm eye, this gives about 12,600 facets on a hemisphere. Real eyes usually have fewer, and a housefly’s has about 3,000 for each eye, since it spends some of its head’s capacity on other things and its eye’s surface is not a full hemisphere. A dragonfly has up to about 30,000, with eyes of larger radius. Compared with this, a human eye has about 120 million rods and 6 million cones in an eye of 12 mm radius, and the fovea alone gives far better resolution than any compound eye of comparable size could have.

R/λR/\lambda here is the only combination that appears. Interestingly, this is also the number that decides whether the optical calculations in terms of rays or waves apply. The information capacity of any aperture is related to it, as with the invariant that is a count, where the number of independent modes that can pass through an optical system was found to be a fixed count. An eye of radius RR with a hemispherical view and one small aperture per direction uses only about R/λR/\lambda of its possible modes. A lens eye of the same radius might use about (R/λ)2(R/\lambda)^2, or thousands of times more. An important part of what evolution discarded, in the design of the compound eye, is the great majority of the information that the head’s aperture area could have carried.

This is also the reason for some attempts to improve artificial cameras with insect-inspired designs. Modern compound lens systems on phones use several small apertures with overlapping views, and computational methods recover some of what the small apertures lose, by exploiting known overlaps between them. They preserve the angular coverage and small depth of a compound eye, and yet they pay the same scaling cost for sharpness. A phone with four identical small cameras can match, in resolution, one with a single lens only up to a limited factor, and physics provides the reason.

Why a lens works on a head that small, and when it does not

There is a further limit on a lens eye that a compound eye escapes. A lens eye needs its focal length to reach a retina with fine enough receptors, and those receptors cannot be much narrower than about a micrometre, since a thinner waveguide no longer confines light of that wavelength. That sets a minimum focal length for a given acuity. At very small sizes, then, a lens eye runs out of room, and a compound eye is a good way to use a small space. Very small wasps of the family Mymaridae, barely 200 µm long, have eyes with only tens of facets, and at that size there is hardly anything better to do. The hole that makes the sharpest picture found a similar square-root law for the best pinhole, where a similar balance arises between geometry and diffraction: the sharpest pinhole’s diameter also goes as the square root of a length and a wavelength. The two results come from the same two terms.

This is a useful and unexpected connection. A pinhole camera’s blur has a geometric part proportional to the hole’s size, and a diffraction part that is inversely proportional to it, and the best hole diameter is about λf\sqrt{\lambda f}, with ff the distance to the screen. Exchanging ff for RR produces Barlow’s rule. An ommatidium is, in effect, a pinhole camera with one pixel, and the eye is thousands of those side by side on a sphere. Nautilus has an actual pinhole eye and has always been regarded as an evolutionary puzzle, since a lens would have been so much better.

What the estimate leaves out

The simple formula uses a slit’s diffraction, whereas a real facet is a small hexagonal lens whose diffraction pattern is closer to an Airy disc and whose light passes into a waveguide; a more careful treatment changes the constant a little. The quadrature sum is an approximation to the actual convolution of two blur functions. The spacing term also requires some care, for sampling theory says that a sharp point is what counts at the Nyquist limit and not simply the angle between facets. All of those affect the constant and not the square root. Published refinements typically give a best facet slightly different from λR\sqrt{\lambda R}, by amounts less than a factor of 1.5.

An insect’s actual acuity also depends on the brain and not only on its optics. Motion can be used by some insects to see better than the static sampling limit would suggest. A hoverfly moves its receptors slightly in a way that may enhance its acuity, a process also found in fruit flies, which has been called photomechanical. The figure for insect values should be read as typical, and no attempt was made to represent the range across species. The essay takes the eye to be a sphere with a uniform pattern, and this is only sometimes close to the truth. The comparison at one arcminute also assumes bright light, at the human daytime limit.

Still open: how much a moving eye can beat its own sampling

The diffraction limit is firm, but the sampling term can be evaded if the receptors move. An eye that scans a scene samples each direction more than once. Recent measurements on fruit flies by Mikko Juusola and colleagues in 2017 found that a photoreceptor contracts quickly in response to light, moving and narrowing its field of view in a way that could allow the animal to see detail finer than its facet spacing would allow, which they called hyperacuity. In 2024, their work reported that binocular overlap adds a stereo sense at the same fine scale. How much of that actually reaches the behaviour of a real insect is under active investigation, since a measured neural signal does not always correspond to what the animal uses.

The same questions have started to appear in bio-inspired sensors. Artificial compound eyes with thousands of facets have been made on curved substrates, and they show wide fields and good motion sensitivity. Whether those can be combined with computation to give more than a compound eye’s normal resolution remains an open engineering problem. The basic scaling, with its square root, sets the ceiling, and designers are looking at how far movement can be used to bring the real system nearer to it.

A facet of width DD on an eye of radius RR blurs by D/RD/R from its spacing and λ/D\lambda/D from its diffraction, and the two balance at D=λRD = \sqrt{\lambda R}, for a blur of 2λ/R\sqrt{2\lambda/R}. A 1 mm head cannot beat about 1.8°. A blur that falls only as the inverse square root of size means that human sharpness costs a compound eye twelve metres of radius and a single lens 1.7 mm of pupil. The difference is in using one aperture or thousands.

Part 13 of 13

This essay is one argument about Diffraction. The others:

The objects named here

The third axis, after the field and the reading path: the things themselves, and every essay that touches each one.

Angular resolutionCompound eyeDiffraction limitLens eyeOmmatidiumSamplingScaling lawVisual acuity