5
$\begingroup$

The question Lucky imaging with Celestron 14 - is this result reasonable? includes a beautiful example of a focus test using a Bahtinov mask and the image below from Deep Sky Watch's Home Made Bahtinov Focusing Mask & Templates shows how the middle spike moves left-right with respect to the crossing point of the pair of spikes on either side.

Question: But optically speaking how and why does this happen? What is it about the layout of the three gratings in a Bahtinov mask that makes its indicate focus in this way? Why exactly does changing focus produce a lateral shift of one pattern with respect to the other two? What is it about the mask's peculiar design that makes this happen the way it does?

update: This answer to How does a Bahtinov mask work? explains more what happens, but it does not even begin to address Why exactly...

triple diffraction pattern from Deep Sky Watch's Home Made Bahtinov Focusing Mask & Templates Source

Star image produced by Bahtinov focusing mask at different focus positions

$\endgroup$
6
  • $\begingroup$ @a_donda the goal of (almost all of) my SE questions is to provide a space and opportunity for answer-posting. If you think you know of an explanation that at least some readers will find satisfying, then consider posting a short answer with a quote and link? (fyi I've added a link to that other question, thanks for mentioning it!) $\endgroup$
    – uhoh
    Aug 13, 2020 at 10:20
  • $\begingroup$ @a_donda no I don't think it does. "... representing the transform of the mask pattern's spatial frequency and orientation." is hardly an explanation of why this happens. There is something very specific in the layout of this particular pattern, if you divide up the aperture into three gratings differently, it may not work. $\endgroup$
    – uhoh
    Aug 13, 2020 at 10:50
  • $\begingroup$ @a_donda I've edited the title and copied that into the body as well. $\endgroup$
    – uhoh
    Aug 13, 2020 at 10:59
  • 1
    $\begingroup$ Possibly useful analogy: SLR cameras with split-prism focussing element. In each case, you're at focus when two offset "tweaking elements" line up. $\endgroup$ Aug 13, 2020 at 15:08
  • 1
    $\begingroup$ @a_donda: With a split-image viewfinder, the image isn't projected onto matte glass. The split-image part was typically surrounded by ground glass, with the image projected onto it, but the prisms for the split image were ground into the surface of the focusing screen. The light/dark half was basically accidental, from your eye being off-center, so you only saw the light coming from one prism (especially common with relatively slow lenses, where the prisms were pointed at the very edge of the lens aperture). $\endgroup$ Aug 13, 2020 at 20:30

3 Answers 3

7
$\begingroup$

The movement of the diffraction spikes is similar to the phase detection autofocus that's been used in SLR cameras for decades. Before the days of autofocus, many SLR cameras had a split-image viewfinder that used the same principle as well1.

To keep things simple, let's consider a mask with just two slits out at the very edge of the aperture.

enter image description here

Now let's consider what that does as we're focusing. I'm going to draw things in terms of a refractor, but using a reflector doesn't really change things. So, here's a simplified (and drastically not to scale) diagram of light coming from a star, going through the two slits above, and coming into focus on a plane behind the lens:

enter image description here

So, we have a star on the left, two rays of light leaving the star and traveling to the two slits, going through the slits, being refracted by the lens, and coming into focus on the plane. The image is in focus when the two rays of light come back together precisely at the surface of that plane. So what we see when we look at this should be basically a single line. We really have two diffraction spikes, one from each slit, but since we've brought it into perfect focus, they'll line up with each other perfectly. So, in simplified (and hand drawn) form, what we see looking at this, is a picture like this:

enter image description here

Two diffraction spikes, but they align perfectly with each other. I've drawn a boundary between the two, but in real viewing, there won't be an obvious boundary at the edge of each diffraction spike--we'll just see basically a single line.

So let's consider what happens when we move that plane, so the image is out of focus. The rays of light continue to be refracted to exactly the same degree, so we end up with something like this:

enter image description here

In this case, we can see that the two aren't hitting the focus plane at the same point, so what we'll see will be two mis-aligned diffraction spikes:

enter image description here

That explains how (some of) the spikes appear to move as we focus. That leaves another obvious question: how do we get the other spikes that don't move as we focus? That's actually pretty simple. If you look back at the first picture above, there's a crucial fact to note. The slits are (at least approximately) tangent to the aperture.

To form the X-shaped diffraction spikes, the Bahtinov mask uses slits that are radial instead. Technically, these do still move (a little) but it involves the diffraction spike moving along its length instead of sideways, so it's much less visible even at best. There's also little or nothing at the end of each diffraction spike, so you don't have much to compare against to see the movement.

Beyond that, it's all "user interface" enhancements to make it easier to use: More slits, carefully aligned with each other, project diffraction spikes on top of each other, so you get what looks like a single diffraction spike that's a lot brighter. The X-shape guides you eye toward the place you should be looking to see whether the spikes are properly aligned, and so on.

Now don't get me wrong: those are important, and definitely part of the genius of the design--but the basic principle of how/why the spikes appear to move relative to each other remains the same (and why some move but others don't appear to).


1. Note that many rangefinder cameras also used split-image focusing, but it worked rather differently--what I'm talking about here is strictly the version used with SLRs. An SLR with a split-image viewfinder used the same principle as shown here. The difference is that instead of using an aperture with slits, it used a pair of prisms at the center of the viewfinder to collect light from near the edges of the lens. But it still used the basic idea of collecting light from two opposite edges of the aperture, and showing them next to each other, and your focusing by aligning the pictures showing from each. It didn't use diffraction spikes, because in normal photography you typically have objects in the picture with obvious lines in them. Diffraction spikes just let us take subject matter that's mostly just dots, and creating lines from them.
$\endgroup$
3
  • $\begingroup$ Citation would make the answer better. Looks a little home brew as it is ;-) $\endgroup$
    – user34599
    Aug 13, 2020 at 18:48
  • $\begingroup$ I approve of the diagrams, however it should be noted that they are not quite accurate: any pair of parallel slits should produce a single symmetric diffraction peak from any point source (i.e. a star). $\endgroup$ Aug 14, 2020 at 9:30
  • $\begingroup$ The one in the middle explains in a basic why things get blurry when out of focus, but that doesn't explain why the bars stay sharp and move when focus changes. A Bahtinov mask's A group mimics a single central horizontal bar with many parallel ones for brightness, not two of them at the top and bottom. $\endgroup$
    – user34599
    Aug 14, 2020 at 17:08
5
$\begingroup$

Diagram from the Wikipedia page:

The different sections of the mask create different diffraction spikes by using the slits to create interference based on the Huygens-Fresnel principle. The different sections create the misaligned spikes due to their radial orientation.

When the instrument is out of focus (either ahead or behind the focus point) the centers of the interference patterns are not aligned: when the primary lens or mirror is closer to the mask than the focus point the 'X' will be either to the left or right of the '|' (depending on the orientation and flipping caused by the rest of the optical train), and when the primary is further from the mask than the focus point the opposite will be true.

So, in to answer the question of 'why do the spikes move?' - as the distance from the primary element to the mask changes, the place where the rays from the diffraction peaks are intersected changes accordingly.

In theory you could achieve a similar effect with only two sections of slits with different radial alignments, but this would make it more difficult to precisely find the aligned point because it would only produce two spikes.

$\endgroup$
1
$\begingroup$

The working principle is the use of diffraction spikes. An obstruction in the light path like the spider vanes of a reflector tlescope creates a diffraction spike. Mounting a straight edge in front of the telescope does the same (see link below). I am not aware of an article that explains the exact physics, but moving the focus moves the spike over the light source that creates it. So that's the principle.

From this blog post http://www.geoastro.co.uk/bahtinov.htm

The Bahtinov mask is made up of three sets of bars, A, B and C. Each set of bars will create a diffraction spike.

and

The apparently complicated pattern of the mask can now be reduced to the equivalent of a simple 3 vane support.

followed by

The angled bars (B and C) produce the angled spikes, and they will move to the left when the focus is racked inwards.

in combination with

The vertical bars (A) produce the central spike, and this will move to the right.

this results in

Perfect focus is then easy to identify because the central spike should bisect the two angled spikes. The human eye is very good at judging when an angle is exactly bisected.

I would like to honour the inventor with linking to their Russian forum post here. And another diffraction based method to achieve focus. Further read on diffraction based focus methods would be the Scheiner disk, Hartmann mask and Carey mask. Also physics stack exchange has questions on Bahtinov and Hartman masks.

$\endgroup$
3
  • $\begingroup$ Posted this in physics: physics.stackexchange.com/questions/573008/… $\endgroup$
    – user34599
    Aug 13, 2020 at 12:11
  • 2
    $\begingroup$ This seems to answer "why do they move" with "they move", but not really even attempting to explain how/why it happens. $\endgroup$ Aug 13, 2020 at 17:33
  • $\begingroup$ @JerryCoffin I wait for the physics department to answer that specific question, they haven't reacted yet, except with voting that it seems to be a good question. $\endgroup$
    – user34599
    Aug 13, 2020 at 18:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .