Rethinking Prototyping. Группа авторов
Where M is the magnitude, R the real part and I the imaginary part. Other possible quantities to be visualized are just the real part, just the imaginary part or the phase angles A, which are calculated as
Because these values contain negative values as well, either the absolute value should be taken or the values have to be normalized to range from -1 (black) to 1 (white), 0 being a medium grey (128).
Fig. 4 Sample image Afrormosia (left) and the corresponding FFT (right) with filter boundary (red)
The real part of the Fourier transformation of a 4 x 4 matrix stores the following values:
The imaginary part of the same matrix stores the following values:
These symbolic representations show that the top-left (0,0) values of each quadrant only appear once in the real part and are all zero in the imaginary part. All the other values symmetrically appear twice (colour index in Formula 5). In the imaginary part, the second appearance of these values is multiplied with -1. The library makes use of this redundancy by offering another version of the Fourier transformation. It returns a matrix of not complex but only double numbers, the two parts being interwoven into each other. This can be of great value because of the smaller memory needs. For the study presented here however, the author decided to neglect this because on one hand, the application of filters (high-pass, low-pass, band-pass, etc.) is more comfortable on the complex number matrix. On the other hand, the interwoven method requires the matrix to be square with 2n (n ϵ ℕ) rows and columns.
3.3 Application of Filters
The bright dots in Fig. 4 (right) represent high magnitudes. That means, these frequencies contribute a lot to the contrast distribution of the image, the darker dots only are responsible for little variations. By applying a rectangular low-pass filter (50 columns wide, 10 rows high or approximately 0.8 % of the original data) and reconstructing the image by only using the values within the red rectangle in Fig. 4 (right) and discarding all the rest, an image containing all the large scale features of the original input image is retrieved (Fig. 5, left). The corresponding high pass filtered image (Fig. 5, center) is globally much more monochromatic and contains all small-scale details such as the cut vessels. A rebuilt image with a low pass filter of the same size but inversed dimensions applied is shown in Fig. 5 (right). The image is much more blurred and contains less relevant details. This is typical for wood cut parallel to the grain. Features like quilt or flame on the other hand are only recognized when including these spectrums as well (Fig. 8). Usually, the term low-pass filter refers to a circular region centered around the origin. Due to the predominantly vertical orientation of most of the wood textures, an asymmetric rectangular region has been chosen. In the custom tool, dimensions and position of the filter can be adjusted freely.
A reduction to the same amount of data points (ca. 500 * 3) but without the prior shift to the frequency domain is shown in Fig. 13. The down sampled 23 by 23 pixels version only vaguely preserves the main traces of the original input image.
Fig. 5 Reconstructed image using a low-pass filter (1st) and the corresponding high-pass filter (2nd) / filter dimensions inversed to ten columns wide and 50 rows high (3rd)
The reconstruction of the image is done by first setting all the values outside of the red rectangle (low pass, inside for the high pass) to zero and then calculating the inverse Fourier transformation (IFFT) of the red, the green and the blue matrix.
3.4 Colour Space
Fig. 6 RGB colour cube with image point cloud and bounding box
After the values are Fourier transformed, filtered and then inverse transformed again, they are not in the same absolute range anymore but only keep their relative proportion. In order to again achieve the same chromaticity of the input image, the values have to be mapped to the original colour space. For that reason, the minimum and maximum value of each channel (red, green and blue) are stored. These limits describe a rhomboid within the entire colour cube. This rhomboid is the bounding box of the point cloud, where each pixel represents a point defined by the channels as its coordinates.
In a grey scale image, each pixel’s colour value has identical red, green and blue content. They all would sit on the diagonal line going from black (0/0/0) to white (255/255/255). Because of the linear dependence, an alternative description could be therefore
3.5 Eigenvector
In the above formula (7),
P is the centre of gravity of the point cloud,
Fig. 7 Original image (1st), reconstruction using two (2nd) and only the first (3rd) out of three eigenvectors
Because of its ease of implementation, the approach described first