In mathematics, physics, and art, a moiré pattern ( , , ) or moiré fringe is a large-scale wave interference pattern that can be produced when a partially opaque ruled pattern with transparent gaps is overlaid on another similar pattern. For the moiré interference pattern to appear, the two patterns must not be completely identical, but rather displaced, rotated, or have slightly different pitch.

Moiré patterns appear in many situations. In printing, the printed pattern of dots can interfere with the image. In television and digital photography, a pattern on an object being photographed can interfere with the shape of the light sensors to generate unwanted artifacts. They are also sometimes created deliberately; in micrometers, they are used to amplify the effects of very small movements.

In physics, its manifestation is wave interference like that seen in the double-slit experiment and the beat phenomenon in acoustics.

Etymology The term originates from moire (moiré in its French adjectival form), a type of textile, historically made of silk but now also made of cotton or synthetic fiber, with a rippled or "watered" appearance. Moire, or "watered textile", is made by pressing two layers of the textile when wet. The similar but imperfect spacing of the threads creates a characteristic pattern which remains after the fabric dries.

In French, the noun moire is in use from the 17th century, for "watered silk". It was a loan of the English mohair (attested 1610). In French usage, the noun gave rise to the verb moirer, "to produce a watered textile by weaving or pressing", by the 18th century. The adjective moiré formed from this verb is in use from at least 1823.

Pattern formation

Moiré patterns are often an artifact of images produced by various digital imaging and computer graphics techniques, for example when scanning a halftone picture or ray tracing a checkered plane (the latter being a special case of aliasing, due to undersampling a fine regular pattern). This can be overcome in texture mapping through the use of mipmapping and anisotropic filtering.

The drawing seen here shows a moiré pattern. The lines could represent fibers in moiré silk, or lines drawn on paper or on a computer screen. The nonlinear interaction of the optical patterns of lines creates a real and visible pattern of roughly parallel dark and light bands, the moiré pattern, superimposed on the lines.

The moiré effect also occurs between overlapping transparent objects. For example, an invisible phase mask is made of a transparent polymer with a wavy thickness profile. As light shines through two overlaid masks of similar phase patterns, a broad moiré pattern occurs on a screen some distance away. This phase moiré effect and the classical moiré effect from opaque lines are two ends of a continuous spectrum in optics, which is called the universal moiré effect. The phase moiré effect is the basis for a type of broadband interferometer in x-ray and particle wave applications. It also provides a way to reveal hidden patterns in invisible layers.

Line moiré

Line moiré is one type of moiré pattern; a pattern that appears when superposing two transparent layers containing correlated opaque patterns. Line moiré is the case when the superposed patterns comprise straight or curved lines. When moving the layer patterns, the moiré patterns transform or move at a faster speed. This effect is called optical moiré speedup.

More complex line moiré patterns are created if the lines are curved or not exactly parallel.

Shape moiré

Shape moiré is one type of moiré pattern demonstrating the phenomenon of moiré magnification. 1D shape moiré is the particular simplified case of 2D shape moiré. One-dimensional patterns may appear when superimposing an opaque layer containing tiny horizontal transparent lines on top of a layer containing a complex shape which is periodically repeating along the vertical axis.

Moiré patterns revealing complex shapes, or sequences of symbols embedded in one of the layers (in form of periodically repeated compressed shapes) are created with shape moiré, otherwise called band moiré patterns. One of the most important properties of shape moiré is its ability to magnify tiny shapes along either one or both axes, that is, stretching. A common 2D example of moiré magnification occurs when viewing a chain-link fence through a second chain-link fence of identical design. The fine structure of the design is visible even at great distances.

Calculations

Moiré of parallel patterns

Geometrical approach

Consider two patterns made of parallel and equidistant lines, e.g., vertical lines. The step of the first pattern is , the step of the second is , with .

If the lines of the patterns are superimposed at the left of the figure, the shift between the lines increases when going to the right. After a given number of lines, the patterns are opposed: the lines of the second pattern are between the lines of the first pattern. If we look from a far distance, we have the feeling of pale zones when the lines are superimposed (there is white between the lines), and of dark zones when the lines are "opposed".

The middle of the first dark zone is when the shift is equal to . The th line of the second pattern is shifted by compared to the th line of the first network. The middle of the first dark zone thus corresponds to

that is

The distance between the middle of a pale zone and a dark zone is

the distance between the middle of two dark zones, which is also the distance between two pale zones, is

From this formula, we can see that: the bigger the step, the bigger the distance between the pale and dark zones; the bigger the discrepancy , the closer the dark and pale zones; a great spacing between dark and pale zones mean that the patterns have very close steps.

The principle of the moiré is similar to the Vernier scale.

Mathematical function approach

The essence of the moiré effect is the (mainly visual) perception of a distinctly different third pattern which is caused by inexact superimposition of two similar patterns. The mathematical representation of these patterns is not trivially obtained and can seem somewhat arbitrary. In this section we shall give a mathematical example of two parallel patterns whose superimposition forms a moiré pattern, and show one way (of many possible ways) these patterns and the moiré effect can be rendered mathematically.

The visibility of these patterns is dependent on the medium or substrate in which they appear, and these may be opaque (as for example on paper) or transparent (as for example in plastic film). For purposes of discussion we shall assume the two primary patterns are each printed in greyscale ink on a white sheet, where the opacity (e.g., shade of grey) of the "printed" part is given by a value between 0 (white) and 1 (black) inclusive, with representing neutral grey. Any value less than 0 or greater than 1 using this grey scale is essentially "unprintable".

We shall also choose to represent the opacity of the pattern resulting from printing one pattern atop the other at a given point on the paper as the average (i.e. the arithmetic mean) of each pattern's opacity at that position, which is half their sum, and, as calculated, does not exceed 1. (This choice is not unique. Any other method to combine the functions that satisfies keeping the resultant function value within the bounds [0,1] will also serve; arithmetic averaging has the virtue of simplicity—with hopefully minimal damage to one's concepts of the printmaking process.)

We now consider the "printing" superimposition of two almost similar, sinusoidally varying, grey-scale patterns to show how they produce a moiré effect in first printing one pattern on the paper, and then printing the other pattern over the first, keeping their coordinate axes in register. We represent the grey intensity in each pattern by a positive opacity function of distance along a fixed direction (say, the x-coordinate) in the paper plane, in the form

where the presence of 1 keeps the function positive definite, and the division by 2 prevents function values greater than 1.

The quantity represents the periodic variation (i.e., spatial frequency) of the pattern's grey intensity, measured as the number of intensity cycles per unit distance. Since the sine function is cyclic over argument changes of , the distance increment per intensity cycle (the wavelength) obtains when , or .

Consider now two such patterns, where one has a slightly different periodic variation from the other:

such that .

The average of these two functions, representing the superimposed printed image, evaluates as follows (see reverse identities here):

where it is easily shown that

and

This function average, , clearly lies in the range [0,1]. Since the periodic variation is the average of and therefore close to and , the moiré effect is distinctively demonstrated by the sinusoidal envelope "beat" function , whose periodic variation is half the difference of the periodic variations and (and evidently much lower in frequency).

Other one-dimensional moiré effects include the classic beat frequency tone which is heard when two pure notes of almost identical pitch are sounded simultaneously. This is an acoustic version of the moiré effect in the one dimension of time: the original two notes are still present—but the listener's perception is of two pitches that are the average of and half the difference of the frequencies of the two notes. Aliasing in sampling of time-varying signals also belongs to this moiré paradigm.

Rotated patterns Consider two patterns with the same step , but the second pattern is rotated by an angle . Seen from afar, we can also see darker and paler lines: the pale lines correspond to the lines of nodes, that is, lines passing through the intersections of the two patterns.

If we consider a cell of the lattice formed, we can see that it is a rhombus with the four sides equal to ; (we have a right triangle whose hypotenuse is and the side opposite to the angle is ).

The pale lines correspond to the small diagonal of the rhombus. As the diagonals are the bisectors of the neighbouring sides, we can see that the pale line makes an angle equal to with the perpendicular of each pattern's line.

Additionally, the spacing between two pale lines is , half of the long diagonal. The long diagonal is the hypotenuse of a right triangle and the sides of the right angle are and . The Pythagorean theorem gives:

that is:

thus

When is very small () the following small-angle approximations can be made:

thus

We can see that the smaller is, the farther apart the pale lines; when both patterns are parallel (), the spacing between the pale lines is infinite (there is no pale line).

There are thus two ways to determine : by the orientation of the pale lines and by their spacing

If we choose to measure the angle, the final error is proportional to the measurement error. If we choose to measure the spacing, the final error is proportional to the inverse of the spacing. Thus, for the small angles, it is best to measure the spacing.

Implications and applications

Printing full-color images