I know that for pinhole cameras and camera obscuras the holes are usually round (they are circular). But I don't see the link between the shape of the hole and the formation of the image.

  • 2
    \$\begingroup\$ Why do you think that the hole is always circular? Circular holes have some advantages, but people make pinhole cameras with any shape of holes you can think of. \$\endgroup\$ Dec 21, 2017 at 11:53
  • 8
    \$\begingroup\$ I do my holes with a needle in aluminium foil, so the shape is probably more that of an orange run over by a car... \$\endgroup\$
    – PlasmaHH
    Dec 21, 2017 at 13:48
  • 2
    \$\begingroup\$ This is based on a false premise. Although round pinholes are undoubtedly (by far) the most common, pinhole cameras have been built with various other shapes--many years ago, I built one with a star-shaped hole, so out of focus highlights came out (somewhat) star shaped. \$\endgroup\$ Dec 22, 2017 at 0:50
  • 1
    \$\begingroup\$ Round is the main supported hole type under conventional drilling. Small diameter drill-bits for circuit-board work and such all make round holes. \$\endgroup\$
    – Kaz
    Dec 22, 2017 at 10:00
  • 2
    \$\begingroup\$ I wrote always to make the question precise and more interesting. I addressed in the description "holes are usually round", meaning most of them. Btw thank you all for sharing :) \$\endgroup\$ Dec 22, 2017 at 14:20

3 Answers 3


From Wikipedia's Pinhole camera article,

The best pinhole is perfectly round (since irregularities cause higher-order diffraction effects), and in an extremely thin piece of material. Industrially produced pinholes benefit from laser etching, but a hobbyist can still produce pinholes of sufficiently high quality for photographic work.

There is a theoretical optimal size to a pinhole aperture. From a geometric standpoint, the smaller the pinhole aperture, the sharper the produced image will be — but this holds only to a point. Smaller than this size, the image sharpness becomes diffraction limited. The wave-like behavior of the light interacting with the aperture walls creates its own interference pattern, and at (or beyond) the diffraction-limited aperture size, this dominates the image clarity.

A circle is the only shape with constant curvature. Any other shape will have either tighter curves or closer edges than a circle. If you strictly maintain minimum curvature and edge distance, but neither are constant, then by definition you have part of the shape that is larger than it needs to be. Thus, a circle is the optimal shape to balance the desire for a smaller aperture (for image clarity purposes) with a lower limit to aperture size due to diffraction limitation.

  • 5
    \$\begingroup\$ Just as a side note, the Wikipediea article says "The best pinhole is perfectly round (since irregularities cause higher-order diffraction effects)". But sometimes higher-oder diffraction is preferred over the low-order diffraction pattern of a round aperture (e.g. because it's less obvious or has less pronounced maxima and minima). For this reason certain optical applications use serrated apertures. \$\endgroup\$
    – Emil
    Dec 21, 2017 at 10:18
  • 1
    \$\begingroup\$ @Emil I've never heard of serrated apertures for pinhole applications, but I have seen coded apertures for X-ray and gamma-ray imaging. But because multiple apertures create multiple overlaid images, coded aperture cameras require computational algorithms to reconstruct a usable image. Not really suitable for photographic imaging on media such as paper film. \$\endgroup\$
    – scottbb
    Dec 21, 2017 at 15:22
  • 2
    \$\begingroup\$ What industry produces pinholes (or pinhole cameras)? \$\endgroup\$
    – martineau
    Dec 21, 2017 at 19:16
  • 2
    \$\begingroup\$ @martineau The coded aperture cameras are all space telescopes, to observe high-energy radiation (x--rays and gamma rays). For those wavelengths, lenses or mirrors don't work very well. Coded aperture cameras are technically pinhole, but they resemble a pinhole box camera with paper film about as much as the Wright Flyer resembles modern aircraft. \$\endgroup\$
    – scottbb
    Dec 21, 2017 at 21:43
  • 2
    \$\begingroup\$ The reason most pinhole body caps have crappy image quality is because the material is too thick and the pinholes are too big so that exposure times aren't too long to handhold. A good quality pinhole camera with a metal plate and a pinhole that has an edge like a double edged knife blade can return very high quality images. alternativephotography.com/… \$\endgroup\$
    – Michael C
    Dec 21, 2017 at 22:48

The pin-hole casts (projects) tiny image circles on the back wall of the camera. This is also the place we position photo sensitive material so that we can replica this image on film or paper or perhaps even digitize it. For the image to appear sharp, the image circles need to be so tiny that they appear as points without perceivable shape. The criteria: ½ mm diameter viewed from normal reading distance 14 – 16 inches (355 - 400mm).

Now the image cast by the pin-hole is quire feeble. You would be tempted to enlarge the pin-hole in an attempt to gain image brightness. As you enlarge the pin-hole, the image circles enlarge and this degrades the sharpness of the image.

Likewise, you might be tempted to reduce the pin-hole diameter to gain additional acuity. As the pin-hole shrinks the image dims and acuity is gained, to a point. Soon the twin demons of diffraction and interference take their tolls. Diffraction is an edge effect, light rays that encounter a sharp edge do not stop abruptly, they bleed into unobstructed rays near the boundaries of the obstacle (pin-hole border). Interference also caused at the boundary edge. This is both a nullification and a reinforcement of the light rays. These two phenomena are jointly responsible for a loss of acuity as the pin-hole is compressed.

Faced with these twin demons, it is best if the shoreline of the pin-hole be as short as possible. This will be a geometric figure that is regular and as compacted as possible, In other words, a circular aperture.

Let me add that lenses replace the pin-hole to gain acuity. In most instances the aperture they sport is also a circle of the same reasons as above. However, in modern times, out-of-focus backgrounds are deemed attractive. They add a soft buttery look that is especially prized for some types of portraiture. This effect, in the jargon of photography is bokeh (a Japanese word for this effect). If the shape of the lens aperture is altered to a 5 or 6 sided figure, or given pointy appendages, the bokeh is heightened and some like this very much.

  • 2
    \$\begingroup\$ Actually, people seem to prefer bokeh produced by circular apertures, that's why it's so hard to find these days lenses with straight blades (or blades curved "the wrong way") which produce much better sunstars. As someone who doesn't care the slightest about bokeh but wants good sunstars, this is very frustrating. \$\endgroup\$ Dec 21, 2017 at 11:53

First of all, I am going to be practical. Here is an example of a sharpening tool.

pencil sharpener

A good way to have a sharp tip is by doing a circular rotation while sharpening a pencil. Not only when using the pencil sharpener, but you can also rotate the pencil while drawing on a paper to produce a very thin tip.

Let's explore other shapes.

enter image description here

I am exaggerating the shape of an ellipse, but it is obvious that an ellipse has more area than a circle in this case. The tool that made this shape could be sharpened further by doing a circular motion.

But now let us answer the second part of the question

I don't see the link between the shape of the hole and the formation of the image.

The image produced by a pinhole is not perfectly sharp. It has a small blur due several rays not hitting the exact same spot.

cat projected thru a pinhole

But if you use a non-circular shape, for example, an ellipse, you now introduce another type of blur, astigmatism, which is a blur on the same angle as the shape of the ellipse.


And finally, shapes that have acute corners at some point make those corners susceptible to produce interference patterns due to diffraction of light.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.