|
|
|
|
|
by chrisjj
800 days ago
|
|
> the signal is the fundamental shape (such as a font glyph or a triangle mesh or whatever) No. The signal components being aliased are frequencies e.g. repeating patterns. "aliasing is the overlapping of frequency components resulting from a sample rate below the Nyquist rate." That is why the example is a brick wall and the result is moire banding. Nothing like your shapes and jaggies. What you've mistaken for aliasing is simply pixellation. |
|
In the case of Moiré patterns in pictures, we have lines in the real world that need to fit into pixels that fit a larger area than the Nyquist rate of those lines. The Moiré effect in pictures is just the interference pattern caused by this aliasing.
If you look at just a column of the image, and imagine the signal as being the brightness varying over the Y coordinates, you can imagine the mortar being an occasional regular pulse, and when your sampling rate (the pixel density) isn't enough, you get aliasing: you skip over, or overrepresent, the mortar to brick ratio, variably along the signal.
https://imgur.com/a/BiZcxG5
Now if you look at the graph in that picture, doesn't that look awfully similar to what happens if you try to sample an audio file at an inferior rate for display purposes?
In fact, try it right now, download Audacity, go to Generate>Tone, click OK with whatever settings it's fine, press Shift+Z to go down to sample level zoom, then start zooming out. Eventually, you'll see some interesting patterns, which are exactly the sort of aliasing caused by resampling I'm talking about:
https://i.imgur.com/bX2IFp8.png