Skip to content

#Aliasing

1 ideas

We're gathering ideas for this tag. Check back soon!

Get new #Aliasing ideas by email

Every Thursday: the week's best ideas, with the newest from #Aliasing.

Aliasing: Why Too Few Samples Blur the Truth

Aliasing is the name for a specific kind of mistake: you measure a continuous thing at intervals that are too widely spaced, and what you reconstruct afterwards contains details the original never had. The word comes from the Latin for "otherwise" — the signal comes back to you as something else.

The classic example is a wheel. Spin a wheel fast and film it at a low frame rate, and it appears to turn backwards or stand still. Nothing is wrong with the wheel; the sampling is simply too sparse to tell one rotation from the next. The same thing happens to any pattern sampled on a grid: stripes in a shirt turn into a rippling moiré on camera, a picket fence develops wavy bands, fine text on a screen shimmers as you scroll.

Where the limit comes from

The rule that governs this is the Nyquist–Shannon sampling theorem. To capture a signal faithfully you must sample more than twice as fast as the highest frequency it contains. That threshold is called the Nyquist rate. Anything above half your sampling rate does not vanish when you sample too slowly — it folds down and disguises itself as a lower frequency. That folding is the aliasing itself, and once it has happened it cannot be undone, because the false detail is indistinguishable from real detail.

Read more

In sound and in images

In audio, aliasing is heard as a brittle, metallic harshness, or as tones that seem to slide in the wrong direction. Digital instruments and samplers avoid it by filtering out high frequencies before conversion, and by computing at a higher internal rate than the output.

In images and computer graphics, aliasing shows up as jagged staircase edges on diagonal lines — the "jaggies" — and as flickering textures in motion. The remedies are grouped under anti-aliasing: sampling several points per pixel and averaging them (supersampling), blending edge pixels, or storing pre-blurred versions of a texture at several sizes so distant detail is never crammed into too few pixels.

What to keep in mind if you work with this

  • Choosing a sampling rate is a decision about what you are willing to lose. Pick it from the finest detail you genuinely need, not from habit.
  • Filtering before sampling is not cheating; it is the correct order of operations. Remove what you cannot represent, rather than letting it fold back in.
  • Doubling a low-resolution file does not recover detail. Interpolation invents plausible pixels or samples, and the invented ones carry no information.
  • Watch for repeating patterns. Regular grids, weaves and textures are the most reliable place to spot aliasing, because the eye is good at seeing beats and bands.
  • When a result looks strange, suspect the sampling before you suspect the source.

Aliasing is not a flaw in your equipment. It is a boundary, and learning to see where it sits is most of the skill.

#Aliasing: frequently asked questions

What is aliasing, in plain terms?

It is what happens when you capture a continuously changing thing at intervals spaced too far apart — the reconstruction you get afterwards contains detail the original never had. The name comes from the Latin for "otherwise," because the signal comes back to you looking like something else. The source is usually fine; the spacing of the measurements is the problem.

Why does a filmed wheel sometimes appear to spin backwards or stand still?

Between one frame and the next the wheel has turned so far that the camera can't distinguish one rotation from the next, so it locks onto the nearest matching position instead. On screen that reads as a slower turn, a freeze, or a reverse spin. The same thing happens to striped shirts, picket fences, and fine text scrolling on a display.

How do I keep aliasing out of audio recordings and software instruments?

Filter out the high frequencies you cannot represent before conversion, rather than letting them fold back in disguised as lower tones. Running the internal calculation faster than the final output gives that filtering room to work. When it does slip through, aliasing is heard as a brittle metallic edge or as tones that seem to slide the wrong way.

What is anti-aliasing, and which kind should I choose?

Anti-aliasing is the umbrella term for the fixes that stop diagonal edges breaking into staircases and stop fine textures from shimmering in motion. Supersampling takes several samples per pixel and averages them; the lighter alternatives blend edge pixels or keep pre-blurred copies of a texture at several sizes so distant detail is never crammed into too few pixels. Pick by what you can afford to spend — supersampling is the cleanest and the most expensive.

Does enlarging a small image bring back lost detail?

No. Interpolation invents plausible pixels, and invented pixels carry no information — they only look convincing at a glance. Detail destroyed by aliasing is equally unrecoverable, because the false detail has already become indistinguishable from the real thing. If it was never captured, it is not hiding in the file.

What is the most common mistake when choosing a sampling rate?

Setting it out of habit, or accepting whatever the equipment defaults to, instead of working backwards from the finest detail you actually need to keep. Repeating patterns — regular grids, weaves, textures — are where the error announces itself first, since the eye is quick to catch the resulting bands and beats. When a result looks strange, suspect the sampling before you suspect the source.

Videos come from YouTube and posts from Instagram; titles and summaries are our own. All rights belong to their creators.