Skip to main content
Sandbox Physics

Optics 055 · Interference, coherence, cavities, and metrology

Moiré & Fringe Metrology

How can broad fringe patterns reveal a tiny shift or the shape of a surface? Overlay two nearly identical gratings and broad moiré bands appear; they move much farther than the tiny shift that caused them. For surface shape, project fringes onto the part, step their phase and read height from the phase. A mirror needs another route: view a patterned screen in it, work out each point's slope from where on the screen its ray started, then integrate slope into height.

Use Moiré bands to magnify tiny grating shifts. Recover a diffuse surface from recorded phase-stepped fringes, see where unwrapping fails at a step, and integrate the profile of a mirror surface from reflected screen coordinates.

Interactive modelMoiré & Fringe Metrology
Beat scale / signed gain, or acquired fringe periods PM,Mn;pf,pcP_M,M_n;p_f,p_c0.500.50
Grating travel / beat travel, or records / illuminated fraction d,Δsn;N,ηd,\Delta s_n;N,\eta50%50\%
Intensity product, or known-specimen height check T12;ϵsp,ϵcfT_{12};\epsilon_{\mathrm{sp}},\epsilon_{\mathrm{cf}}0.00π0.00\pi
Model regimevalid model regime\text{valid model regime}

Physics tutorial

Audit the physics of Moiré & Fringe Metrology

BackgroundA pattern can magnify motion without any coherent interference. Two transmission gratings produce T12=T1T2T_{12}=T_1T_2. Their broad beat is the difference-frequency term. Projection and reflection use the same phase-stepped intensity measurements, but they encode different geometric quantities.

Why it mattersHow can broad fringe patterns reveal a tiny shift or the shape of a surface?

Start with the essentials

Focus question
How can broad fringe patterns reveal a tiny shift or the shape of a surface?
One-sentence intuition
With a calibrated parallel projector and light collected along the vertical, height gives Δϕ=2πhtan⁡θpf\Delta\phi=\frac{2\pi h\tan\theta}{p_f}. A specular mirror instead changes which point on the screen the camera sees. Recover that screen coordinate first, then infer the slope and integrate it to get height.

Core mathematical model

Geometric Moiré, not wave interference

Tj=12(1+cos⁡φj)T12=T1T2fM=f1−f2PM=1/∣fM∣\begin{aligned}T_j&=\tfrac12(1+\cos\varphi_j)\\T_{12}&=T_1T_2\\\mathbf f_M&=\mathbf f_1-\mathbf f_2\\P_M&=1/|\mathbf f_M|\end{aligned}

In the contact limit, the two intensity transmissions multiply. The raw product contains the two carriers, their sum and their difference. A separate analytic beat panel shows the constant plus the difference term, and it is not labelled as filtered acquired data. Rotation changes the second spatial-frequency vector. The finite 80 by 60 mm overlap is cropped from a larger upper grating. The gap in the apparatus is exaggerated, and diffraction and parallax are left out.

A tiny translation gives signed, amplified travel

p2=p1(1+ϵp)Mn=−1p2∣fM∣Δsn=Mnd\begin{aligned}p_2&=p_1(1+\epsilon_p)\\M_n&=-\frac{1}{p_2|\mathbf f_M|}\\\Delta s_n&=M_nd\end{aligned}

The upper grating moves along its own normal. The beat travel is reported along the normal to the difference vector, so the gain has a sign, and that direction itself flips when the pitch mismatch reverses. For parallel gratings, the beat period equals the product of the two pitches divided by the absolute value of their difference. Equal pitches with no rotation have no finite beat period and no defined normal; the model does not clamp this to an arbitrary giant number. The pattern repeats each time the upper grating moves one period. The displayed travel follows the continuous mathematical branch, so it is not an absolute displacement measured from a single image.

Four separate exposures recover the phase

Iδ=a+bcos⁡(φ+δ)S=I3π/2−Iπ/2C=I0−Iπφ=atan2⁡(S,C)Δφw=wrap(φo−φr)\begin{aligned}I_\delta&=a+b\cos(\varphi+\delta)\\S&=I_{3\pi/2}-I_{\pi/2}\\C&=I_0-I_\pi\\\varphi&=\operatorname{atan2}(S,C)\\\Delta\varphi_w&=\mathrm{wrap}(\varphi_o-\varphi_r)\end{aligned}

The two-argument arctangent keeps track of the quadrant. Subtracting opposite exposures removes the background. The object and a flat reference are each acquired at a fine and a coarse period, for sixteen images in total. Subtracting the reference removes the carrier. Pixels with zero modulation are marked as missing and get no phase value. The method assumes a stationary geometry, exact quarter-turn steps and linear intensities.

Projection geometry measures height

q=x+htan⁡θΔφ=2πhtan⁡θpfh^=pfΔφ2πtan⁡θ\begin{aligned}q&=x+h\tan\theta\\\Delta\varphi&=\frac{2\pi h\tan\theta}{p_f}\\\widehat h&=\frac{p_f\Delta\varphi}{2\pi\tan\theta}\end{aligned}

Coordinates and lengths are in millimetres, and height is positive upward. The incoming pattern travels to the right and downward, and the collected light goes straight up before a partial reflector folds it. The projector angle is measured from the vertical. Trace a ray backward to the pattern plane to get the shifted coordinate. Within the allowed control range, the smooth cap casts no shadow on itself. An opaque plateau casts a geometric shadow beyond its right edge, and that region stays missing in the reconstructed maps. The mesh, the rays and the recorded fringes all use the same height.

Unwrap from neighbouring pixels, or record a second scale

∣Δφadj∣<πk=round ⁣((pc/pf)φc−φf2π)φcf=φf+2πk\begin{aligned}|\Delta\varphi_{\mathrm{adj}}|&<\pi\\k&=\mathrm{round}\!\left(\frac{(p_c/p_f)\varphi_c-\varphi_f}{2\pi}\right)\\\varphi_{\mathrm{cf}}&=\varphi_f+2\pi k\end{aligned}

Spatial unwrapping starts from a calibrated flat left edge and adds up the principal-value differences between neighbours. A large phase jump hidden between samples breaks this assumption, and the result can look smooth and still be wrong. The coarse–fine method uses the acquired coarse phase to choose each fine fringe order on its own, even across a step. The coarse period is 512 mm, and the signed coordinate shift must stay within half of that period. The method cannot fill shadow gaps. A narrower fine pitch raises sensitivity but leaves less margin for spatial unwrapping. Noise and frequency-registration errors are not simulated.

Reflection measures slope; height also needs a boundary value

Δxs=−2s(D−h)1−s2s=−tan⁡ ⁣[12arctan⁡ ⁣ΔxsD−h]h′=s,h(−40)=0\begin{aligned}\Delta x_s&=-\frac{2s(D-h)}{1-s^2}\\s&=-\tan\!\left[\tfrac12\arctan\!\frac{\Delta x_s}{D-h}\right]\\h'&=s,\quad h(-40)=0\end{aligned}

The mirror is a smooth one-dimensional cap, extended unchanged across the transverse direction. A vertical camera ray, traced backward, reflects about the actual surface normal and lands on the emitting screen. A partial reflector sends the upward ray sideways to the camera; the opaque mirror never transmits it. The recovered screen shifts feed a Runge–Kutta integration that uses only the known screen distance and the left-edge height. The prescribed specimen height appears only in the separate gold comparison, never in the inversion. The small remaining error comes from integrating finite samples; it does not represent laboratory precision. General two-dimensional slopes, unknown absolute height and refractive-index fields are outside the model.

Common difficulties

A plausible surface is not proof of correct measurement

Typical misconceptionAny wrapped fringe phase can be turned back into the original surface.

Better mental modelPhase repeats every cycle. Spatial continuity, extra acquired frequencies and calibrated geometry each supply a different piece of the missing information. Where no light arrived, the data stay missing. Comparing with a known shape is useful in a simulation, but it does not certify a real experiment.

Run the experiment

  1. 01

    Scene 1: Moiré displacement magnifier

    Move and rotate the upper grating. Compare the raw product with the analytic beat, which is labelled separately.

    What to observe: Moiré magnifies motion, but the periodic ambiguity remains: shifts that differ by a whole period look the same.
  2. 02

    Scene 2: Diffuse cap / fringe projection

    Raise the diffuse cap and follow the four phase-stepped exposures through to the recovered height.

    What to observe: Camera intensity is not a height map by itself; it takes calibrated phase and geometry.
  3. 03

    Scene 3: Opaque step / unwrap failure

    Switch to the opaque step. Compare the purple spatial recovery with the mint coarse–fine recovery, and look at the missing shadow region.

    What to observe: The coarse acquisition restores the fringe order across the step, but it cannot restore data where no light fell.
  4. 04

    Scene 4: Specular cap / deflectometry

    In deflectometry, change the screen distance and the specimen’s peak height. Check the source, the specimen and the receiving face, then compare the recovered center profile with its separate comparison curve.

    What to observe: Reflection measures direction. Integrating to height needs calibrated geometry and a boundary value.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy