The Complex Number Field

Figure 2: Flipped horizontally over the right edge, then flipped vertically in place

So, what do these images constitute, exactly?

What these images constitute, exactly, is a field of complex numbers. That is, each and every coefficient in the spectral domain consists of two numeric components, traditionally called real and imaginary, and takes the form a + ib. The factor i, you may recall, magically equals negative one when squared, and invests meaning in the taking of a negative number's square root, which did not have such when our numeric sensibilities were confined solely to the real number line. Because the spectral domain is a field of complex numbers, -fft makes two images. The penultimate embodies the real components – a – and the final the imaginary – ib.

Of course, neither one looks much like cheese and antipasto – in fact, they don't look much like anything. They are encoded, as if in Base64, and they have all of the appearances of gobbledygook.

But there is a rhyme here – a hint of organization. Observe that in each image one half is the other flipped over on one axis, then flipped in-place around the midpoint normal, making a reflection like the face cards of a French deck. When we dig deeper we find that the spectral domain is highly organized place; gobbledygook is just an aspect of our incognizance.

To redress this, we run the -fft command over a really tiny image of our cheese, fifteen pixels to a side, yielding 15 × 15 = 225 coefficients, a small but sufficiently illustrative set. We also color-code the data so that like values have the same hue. Knowing about particular values is not as important as patterns, for these are the bases of our map.

Figure 3: Symmetries of the Spectral Domain. Odd sides. Origin, a self-chiral, marked in red

As it turns out, the face card model is not entirely correct – almost, but not spot on. There are, in fact, three separate regions:

  1. The Face Card – occupies most of the spectral domain, all but an almost one row strip of coefficients on the top and an almost one column strip of coefficients on the left. The Face Card region does behave like a face card. Every coefficient has a mirrored/flipped counterpart in the other half. Green and orange markers in Figure 3 show two examples. The values of their coefficients are also almost the same; they are complex conjugates of one other. Where one has the value a + ib, the other, a – ib.

    We call such coefficients chiral pairs. If one steps so many places from the top and left of the Face Card region to a particular coefficient, its counterpart in the chiral pair may be found through the same number of steps from the bottom and right. Ditto in stepping so many places from the top and right for one and bottom and left for the other.

  2. The Strips – each occupy all but one square of the top row and left column. The left and right halves of the top strip and the top and bottom halves of the left strip mirror each other. In both regions coefficients pair off with their counterparts across the reflection axis. The blue and pink markers in Figure 3 illustrate two chiral pairs in each strip.

  3. The Origin – The one coefficient, which seems to be its own chiral, occupies the upper left hand corner. It is the origin of the spectral domain. More on this particular coefficient is in the offing when we paint with waves

If we make a slightly larger spectral domain map shrinking our cheese and antipasto down to an even number of pixels, say, 18 × 18 = 324, the map changes slightly. See Figure 4:

Figure 4 Symmetries of the Spectral Domain: Even sides. Self-chirals marked in red

Two new horizontal and vertical strips further divide the Face Card into four quadrants, but the reflections of that region are otherwise unaltered. Three new self-chirals also emerge, each reflecting the image's Nyquist rate.

The Night's Quest what?

The Nyquist rate (after Harry Nyquist) is an upper sampling limit, particular to an image of a given size. This image, at 18 pixels in width and height, can capture a variation of at most nine cycles across each dimension, that being signals with just two pixel wavelengths. Any variation occurring at smaller wavelengths will alias at the beat frequency, or difference between the frequency of the given signal and the Nyquist rate of this 18 × 18 image, a source of moiré patterning that aliases the much lower beat frequency signal for the much higher (but unreproducible) given signal.

These three Nyquist coefficients, along with the origin, are benchmarks in the spectral domain map. They correspond to a variation of nine cycles along:

  1. the width, the Nyquist coefficient situated midway on the upper edge of the map,

  2. the height, the Nyquist coefficient situated midway on the left edge of the map,

  3. both width and height, the Nyquist coefficient situated in the middle of the map.

It's fair to ask why the Nyquist coefficients were not visible in the 15 × 15 image. They fell betwixt the cracks, in a manner of speaking, as half of fifteen is seven and one half, a Nyquist rate corresponding to neither seven nor eight. So, for odd-size dimensions, the precise Nyquist rate does not have an analogous coefficient, though it will still be manifest in details too fine for the image to reproduce.

This being a map, it would be useful to have something like latitude and longitude markings. Since the origin and Nyquist coefficients are remarkable points, let us label the Origin 0:0, the two colon separated numerals denoting the a count along the width and height respectively. Let the Nyquist coefficient situated midway on the upper edge of the map be labeled N:0, for some number of pixels N; similarly, let its counterpart on the left edge be labeled 0:N and the one in the middle of the map N:N. Along either width or height, when counting from the origin, we increment one or the other numerals. When counting past N, we decrement back to zero. This scheme does have its deficiencies, particularly that the label q:v could represent as many as four coefficients. For now, we will content ourselves with amendments “to the left/right of” or “above/below” a nearby remarkable point, akin to saying North or South latitude, or East or West longitude.

Trust us; better signage will emerge that arises from an intrinsic quality of the spectral domain, but that is presently beyond our ken; we are barely out of the Mediterranean, feeling our way down the coast of Africa in our caravels.


The Spectral Domain Painting With Waves: Part One